diff --git a/dist/editor/assets/403-B0JE4s6j.js b/dist/editor/assets/403-B0JE4s6j.js new file mode 100644 index 0000000..2fc7001 --- /dev/null +++ b/dist/editor/assets/403-B0JE4s6j.js @@ -0,0 +1 @@ +import{u as s,j as t}from"./index-BBkS68sv.js";const e=window.antd.Button,a=window.antd.Result;function i(){const n=s();return t.jsx(a,{status:403,title:"403",subTitle:"抱歉,您当前没有权限访问此页面",extra:t.jsx(e,{type:"primary",onClick:()=>n("/pages"),children:"返回列表"})})}export{i as default}; diff --git a/dist/editor/assets/404-DIkrYxu9.js b/dist/editor/assets/404-DIkrYxu9.js new file mode 100644 index 0000000..dcfdfe8 --- /dev/null +++ b/dist/editor/assets/404-DIkrYxu9.js @@ -0,0 +1 @@ +import{u as e,j as t}from"./index-BBkS68sv.js";const o=window.antd.Button,a=window.antd.Result;function u(){const n=e(),s=()=>{n("/pages")};return t.jsx(a,{status:404,title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:t.jsx(o,{type:"primary",onClick:s,children:"回首页"})})}export{u as default}; diff --git a/dist/editor/assets/CodeOutlined-EqGcmDkC.js b/dist/editor/assets/CodeOutlined-EqGcmDkC.js new file mode 100644 index 0000000..e832e03 --- /dev/null +++ b/dist/editor/assets/CodeOutlined-EqGcmDkC.js @@ -0,0 +1 @@ +import{av as n,aw as o}from"./index-BBkS68sv.js";var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};const d=a,e=window.React;var i=function(t,c){return e.createElement(n,o({},t,{ref:c,icon:d}))};const s=e.forwardRef(i);export{s as C}; diff --git a/dist/editor/assets/ColorPicker-Dw8Os0Zn.js b/dist/editor/assets/ColorPicker-Dw8Os0Zn.js new file mode 100644 index 0000000..e90d7bb --- /dev/null +++ b/dist/editor/assets/ColorPicker-Dw8Os0Zn.js @@ -0,0 +1 @@ +import{j as r}from"./index-BBkS68sv.js";const t=window.antd.ColorPicker,C=e=>{const o=a=>{e.onChange(a.toHexString())},n=()=>{e.onChange("")};return r.jsx(t,{...e,format:"hex",showText:!0,allowClear:!0,value:e.value,onChange:o,onClear:n})};export{C as M}; diff --git a/dist/editor/assets/DeleteOutlined-B6bglta-.js b/dist/editor/assets/DeleteOutlined-B6bglta-.js new file mode 100644 index 0000000..4c1e479 --- /dev/null +++ b/dist/editor/assets/DeleteOutlined-B6bglta-.js @@ -0,0 +1 @@ +import{av as n,aw as l}from"./index-BBkS68sv.js";var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const o=a,e=window.React;var v=function(t,c){return e.createElement(n,l({},t,{ref:c,icon:o}))};const r=e.forwardRef(v);export{r as D}; diff --git a/dist/editor/assets/EditLayout-BxvD9TZ_.js b/dist/editor/assets/EditLayout-BxvD9TZ_.js new file mode 100644 index 0000000..5496111 --- /dev/null +++ b/dist/editor/assets/EditLayout-BxvD9TZ_.js @@ -0,0 +1,157 @@ +import{q as bn,i as Be,t as Fr,v as $i,w as Pr,x as kr,y as Fi,z as Pi,A as ki,B as Mi,D as Mr,E as Ai,F as zi,G as Sn,H as Li,I as Bi,J as Yi,K as _n,N as Xi,O as Vi,S as Hi,j as r,a as N,Q as Wi,P as G,p as qi,R as Ui,m as ee,T as Gi,u as Zi,C as Ji,M as Ki,e as Qi,n as Me,U as eo,V as En,W as to,X as no,o as ro,Y as io,Z as oo}from"./index-BBkS68sv.js";import{S as so,H as Xe}from"./SetterRender-CNqvv3GD.js";import{M as Bt}from"./ColorPicker-Dw8Os0Zn.js";import{B as Ar,a as zr,C as K,A as ao,b as lo,c as co,M as Lr,I as Br,S as Yr,d as uo,e as Xr,U as ho,f as fo,g as po,h as go,P as mo,i as vo,j as wo}from"./index-D9JUB6hU.js";import{V as Q,a as U,l as Vr,F as Hr}from"./VariableBind-O5QUcdA4.js";import{i as Wr,a as I,D as xo,C as Yt,P as yo,u as jo}from"./index-BZrXSPkn.js";import{Q as bo,F as So}from"./index-DsdcxFhl.js";import{E as qr}from"./SaveOutlined-BQ_jcTgK.js";import{D as rn}from"./DeleteOutlined-B6bglta-.js";import{C as _o}from"./SendOutlined-B7Eu_wmm.js";import{a as Xt}from"./pageMember-Dpti6EYv.js";import{b as Eo}from"./lib-BFfozajJ.js";import{M as To}from"./MemberSetting-Ch9IUWbG.js";import{U as Io}from"./UserOutlined-BbJ58T22.js";import{C as Co}from"./CodeOutlined-EqGcmDkC.js";import"./LockOutlined-Ds8QM0LA.js";import"./TeamOutlined-D9jTqjd3.js";function Ur(n,e,i){switch(i.length){case 0:return n.call(e);case 1:return n.call(e,i[0]);case 2:return n.call(e,i[0],i[1]);case 3:return n.call(e,i[0],i[1],i[2])}return n.apply(e,i)}var Do=800,Oo=16,Ro=Date.now;function No(n){var e=0,i=0;return function(){var o=Ro(),t=Oo-(o-i);if(i=o,t>0){if(++e>=Do)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function $o(n){return function(){return n}}var Fo=bn?function(n,e){return bn(n,"toString",{configurable:!0,enumerable:!1,value:$o(e),writable:!0})}:Wr;const Po=Fo;var ko=No(Po),Tn=Math.max;function Mo(n,e,i){return e=Tn(e===void 0?n.length-1:e,0),function(){for(var o=arguments,t=-1,s=Tn(o.length-e,0),a=Array(s);++t1?i[t-1]:void 0,a=t>2?i[2]:void 0;for(s=n.length>3&&typeof s=="function"?(t--,s):void 0,a&&Ao(i[0],i[1],a)&&(s=t<3?void 0:s,t=1),e=Object(e);++o"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Y(1));return i(Kr)(n,e)}if(typeof n!="function")throw new Error(Y(2));var t=n,s=e,a=[],l=a,c=!1;function u(){l===a&&(l=a.slice())}function h(){if(c)throw new Error(Y(3));return s}function p(f){if(typeof f!="function")throw new Error(Y(4));if(c)throw new Error(Y(5));var g=!0;return u(),l.push(f),function(){if(g){if(c)throw new Error(Y(6));g=!1,u();var w=l.indexOf(f);l.splice(w,1),a=null}}}function d(f){if(!es(f))throw new Error(Y(7));if(typeof f.type>"u")throw new Error(Y(8));if(c)throw new Error(Y(9));try{c=!0,s=t(s,f)}finally{c=!1}for(var g=a=l,y=0;yo&&o[t]?o[t]:i||null,n)}function ns(n,e){return n.filter(i=>i!==e)}function Qr(n){return typeof n=="object"}function rs(n,e){const i=new Map,o=s=>{i.set(s,i.has(s)?i.get(s)+1:1)};n.forEach(o),e.forEach(o);const t=[];return i.forEach((s,a)=>{s===1&&t.push(a)}),t}function is(n,e){return n.filter(i=>e.indexOf(i)>-1)}const sn="dnd-core/INIT_COORDS",at="dnd-core/BEGIN_DRAG",an="dnd-core/PUBLISH_DRAG_SOURCE",lt="dnd-core/HOVER",ct="dnd-core/DROP",ut="dnd-core/END_DRAG";function Dn(n,e){return{type:sn,payload:{sourceClientOffset:e||null,clientOffset:n||null}}}const os={type:sn,payload:{clientOffset:null,sourceClientOffset:null}};function ss(n){return function(i=[],o={publishSource:!0}){const{publishSource:t=!0,clientOffset:s,getSourceClientOffset:a}=o,l=n.getMonitor(),c=n.getRegistry();n.dispatch(Dn(s)),as(i,l,c);const u=us(i,l);if(u==null){n.dispatch(os);return}let h=null;if(s){if(!a)throw new Error("getSourceClientOffset must be defined");ls(a),h=a(u)}n.dispatch(Dn(s,h));const d=c.getSource(u).beginDrag(l,u);if(d==null)return;cs(d),c.pinSource(u);const m=c.getSourceType(u);return{type:at,payload:{itemType:m,item:d,sourceId:u,clientOffset:s||null,sourceClientOffset:h||null,isSourcePublic:!!t}}}}function as(n,e,i){I(!e.isDragging(),"Cannot call beginDrag while dragging."),n.forEach(function(o){I(i.getSource(o),"Expected sourceIds to be registered.")})}function ls(n){I(typeof n=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function cs(n){I(Qr(n),"Item must be an object.")}function us(n,e){let i=null;for(let o=n.length-1;o>=0;o--)if(e.canDragSource(n[o])){i=n[o];break}return i}function ds(n,e,i){return e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function hs(n){for(var e=1;e{const c=gs(a,l,t,o),u={type:ct,payload:{dropResult:hs({},i,c)}};n.dispatch(u)})}}function ps(n){I(n.isDragging(),"Cannot call drop while not dragging."),I(!n.didDrop(),"Cannot call drop twice during one drag operation.")}function gs(n,e,i,o){const t=i.getTarget(n);let s=t?t.drop(o,n):void 0;return ms(s),typeof s>"u"&&(s=e===0?{}:o.getDropResult()),s}function ms(n){I(typeof n>"u"||Qr(n),"Drop result must either be an object or undefined.")}function vs(n){const e=n.getTargetIds().filter(n.canDropOnTarget,n);return e.reverse(),e}function ws(n){return function(){const i=n.getMonitor(),o=n.getRegistry();xs(i);const t=i.getSourceId();return t!=null&&(o.getSource(t,!0).endDrag(i,t),o.unpinSource()),{type:ut}}}function xs(n){I(n.isDragging(),"Cannot call endDrag while not dragging.")}function Wt(n,e){return e===null?n===null:Array.isArray(n)?n.some(i=>i===e):n===e}function ys(n){return function(i,{clientOffset:o}={}){js(i);const t=i.slice(0),s=n.getMonitor(),a=n.getRegistry(),l=s.getItemType();return Ss(t,a,l),bs(t,s,a),_s(t,s,a),{type:lt,payload:{targetIds:t,clientOffset:o||null}}}}function js(n){I(Array.isArray(n),"Expected targetIds to be an array.")}function bs(n,e,i){I(e.isDragging(),"Cannot call hover while not dragging."),I(!e.didDrop(),"Cannot call hover after drop.");for(let o=0;o=0;o--){const t=n[o],s=e.getTargetType(t);Wt(s,i)||n.splice(o,1)}}function _s(n,e,i){n.forEach(function(o){i.getTarget(o).hover(e,o)})}function Es(n){return function(){if(n.getMonitor().isDragging())return{type:an}}}function Ts(n){return{beginDrag:ss(n),publishDragSource:Es(n),hover:ys(n),drop:fs(n),endDrag:ws(n)}}class Is{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:i}=this.store;function o(s){return(...a)=>{const l=s.apply(e,a);typeof l<"u"&&i(l)}}const t=Ts(this);return Object.keys(t).reduce((s,a)=>{const l=t[a];return s[a]=o(l),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,i){this.isSetUp=!1,this.handleRefCountChange=()=>{const o=this.store.getState().refCount>0;this.backend&&(o&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!o&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=i,e.subscribe(this.handleRefCountChange)}}function Cs(n,e){return{x:n.x+e.x,y:n.y+e.y}}function ei(n,e){return{x:n.x-e.x,y:n.y-e.y}}function Ds(n){const{clientOffset:e,initialClientOffset:i,initialSourceClientOffset:o}=n;return!e||!i||!o?null:ei(Cs(e,o),i)}function Os(n){const{clientOffset:e,initialClientOffset:i}=n;return!e||!i?null:ei(e,i)}const ze=[],ln=[];ze.__IS_NONE__=!0;ln.__IS_ALL__=!0;function Rs(n,e){return n===ze?!1:n===ln||typeof e>"u"?!0:is(e,n).length>0}class Ns{subscribeToStateChange(e,i={}){const{handlerIds:o}=i;I(typeof e=="function","listener must be a function."),I(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");let t=this.store.getState().stateId;const s=()=>{const a=this.store.getState(),l=a.stateId;try{l===t||l===t+1&&!Rs(a.dirtyHandlerIds,o)||e()}finally{t=l}};return this.store.subscribe(s)}subscribeToOffsetChange(e){I(typeof e=="function","listener must be a function.");let i=this.store.getState().dragOffset;const o=()=>{const t=this.store.getState().dragOffset;t!==i&&(i=t,e())};return this.store.subscribe(o)}canDragSource(e){if(!e)return!1;const i=this.registry.getSource(e);return I(i,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:i.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const i=this.registry.getTarget(e);if(I(i,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const o=this.registry.getTargetType(e),t=this.getItemType();return Wt(o,t)&&i.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const i=this.registry.getSource(e,!0);if(I(i,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const o=this.registry.getSourceType(e),t=this.getItemType();return o!==t?!1:i.isDragging(this,e)}isOverTarget(e,i={shallow:!1}){if(!e)return!1;const{shallow:o}=i;if(!this.isDragging())return!1;const t=this.registry.getTargetType(e),s=this.getItemType();if(s&&!Wt(t,s))return!1;const a=this.getTargetIds();if(!a.length)return!1;const l=a.indexOf(e);return o?l===a.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Ds(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Os(this.store.getState().dragOffset)}constructor(e,i){this.store=e,this.registry=i}}const On=typeof global<"u"?global:self,ti=On.MutationObserver||On.WebKitMutationObserver;function ni(n){return function(){const i=setTimeout(t,0),o=setInterval(t,50);function t(){clearTimeout(i),clearInterval(o),n()}}}function $s(n){let e=1;const i=new ti(n),o=document.createTextNode("");return i.observe(o,{characterData:!0}),function(){e=-e,o.data=e}}const Fs=typeof ti=="function"?$s:ni;class Ps{enqueueTask(e){const{queue:i,requestFlush:o}=this;i.length||(o(),this.flushing=!0),i[i.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let o=0,t=e.length-this.index;o{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Fs(this.flush),this.requestErrorThrow=ni(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ks{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,i){this.onError=e,this.release=i,this.task=null}}class Ms{create(e){const i=this.freeTasks,o=i.length?i.pop():new ks(this.onError,t=>i[i.length]=t);return o.task=e,o}constructor(e){this.onError=e,this.freeTasks=[]}}const ri=new Ps,As=new Ms(ri.registerPendingError);function zs(n){ri.enqueueTask(As.create(n))}const cn="dnd-core/ADD_SOURCE",un="dnd-core/ADD_TARGET",dn="dnd-core/REMOVE_SOURCE",dt="dnd-core/REMOVE_TARGET";function Ls(n){return{type:cn,payload:{sourceId:n}}}function Bs(n){return{type:un,payload:{targetId:n}}}function Ys(n){return{type:dn,payload:{sourceId:n}}}function Xs(n){return{type:dt,payload:{targetId:n}}}function Vs(n){I(typeof n.canDrag=="function","Expected canDrag to be a function."),I(typeof n.beginDrag=="function","Expected beginDrag to be a function."),I(typeof n.endDrag=="function","Expected endDrag to be a function.")}function Hs(n){I(typeof n.canDrop=="function","Expected canDrop to be a function."),I(typeof n.hover=="function","Expected hover to be a function."),I(typeof n.drop=="function","Expected beginDrag to be a function.")}function qt(n,e){if(e&&Array.isArray(n)){n.forEach(i=>qt(i,!1));return}I(typeof n=="string"||typeof n=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var V;(function(n){n.SOURCE="SOURCE",n.TARGET="TARGET"})(V||(V={}));let Ws=0;function qs(){return Ws++}function Us(n){const e=qs().toString();switch(n){case V.SOURCE:return`S${e}`;case V.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${n}`)}}function Rn(n){switch(n[0]){case"S":return V.SOURCE;case"T":return V.TARGET;default:throw new Error(`Cannot parse handler ID: ${n}`)}}function Nn(n,e){const i=n.entries();let o=!1;do{const{done:t,value:[,s]}=i.next();if(s===e)return!0;o=!!t}while(!o);return!1}class Gs{addSource(e,i){qt(e),Vs(i);const o=this.addHandler(V.SOURCE,e,i);return this.store.dispatch(Ls(o)),o}addTarget(e,i){qt(e,!0),Hs(i);const o=this.addHandler(V.TARGET,e,i);return this.store.dispatch(Bs(o)),o}containsHandler(e){return Nn(this.dragSources,e)||Nn(this.dropTargets,e)}getSource(e,i=!1){return I(this.isSourceId(e),"Expected a valid source ID."),i&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return I(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return I(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return I(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Rn(e)===V.SOURCE}isTargetId(e){return Rn(e)===V.TARGET}removeSource(e){I(this.getSource(e),"Expected an existing source."),this.store.dispatch(Ys(e)),zs(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){I(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Xs(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const i=this.getSource(e);I(i,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=i}unpinSource(){I(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,i,o){const t=Us(e);return this.types.set(t,i),e===V.SOURCE?this.dragSources.set(t,o):e===V.TARGET&&this.dropTargets.set(t,o),t}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Zs=(n,e)=>n===e;function Js(n,e){return!n&&!e?!0:!n||!e?!1:n.x===e.x&&n.y===e.y}function Ks(n,e,i=Zs){if(n.length!==e.length)return!1;for(let o=0;o0||!Ks(i,o)))return ze;const a=o[o.length-1],l=i[i.length-1];return a!==l&&(a&&t.push(a),l&&t.push(l)),t}function ea(n,e,i){return e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function ta(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}function pa(n,e){if(n==null)return{};var i={},o=Object.keys(n),t,s;for(s=0;s=0)&&(i[t]=n[t]);return i}const ga=window.React.memo,ma=window.React.useEffect;let Fn=0;const ot=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var va=ga(function(e){var{children:i}=e,o=fa(e,["children"]);const[t,s]=wa(o);return ma(()=>{if(s){const a=ii();return++Fn,()=>{--Fn===0&&(a[ot]=null)}}},[]),r.jsx(xo.Provider,{value:t,children:i})});function wa(n){if("manager"in n)return[{dragDropManager:n.manager},!1];const e=xa(n.backend,n.context,n.options,n.debugMode),i=!n.context;return[e,i]}function xa(n,e=ii(),i,o){const t=e;return t[ot]||(t[ot]={dragDropManager:da(n,e,i,o)}),t[ot]}function ii(){return typeof global<"u"?global:window}function oi(n){let e=null;return()=>(e==null&&(e=n()),e)}function ya(n,e){return n.filter(i=>i!==e)}function ja(n,e){const i=new Set,o=s=>i.add(s);n.forEach(o),e.forEach(o);const t=[];return i.forEach(s=>t.push(s)),t}class ba{enter(e){const i=this.entered.length,o=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));return this.entered=ja(this.entered.filter(o),[e]),i===0&&this.entered.length>0}leave(e){const i=this.entered.length;return this.entered=ya(this.entered.filter(this.isNodeInDocument),e),i>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Sa{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const i={};Object.keys(this.config.exposeProperties).forEach(o=>{const t=this.config.exposeProperties[o];t!=null&&(i[o]={value:t(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,i)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,i){return i===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const si="__NATIVE_FILE__",ai="__NATIVE_URL__",li="__NATIVE_TEXT__",ci="__NATIVE_HTML__",Pn=Object.freeze(Object.defineProperty({__proto__:null,FILE:si,HTML:ci,TEXT:li,URL:ai},Symbol.toStringTag,{value:"Module"}));function mt(n,e,i){const o=e.reduce((t,s)=>t||n.getData(s),"");return o??i}const Ut={[si]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[ci]:{exposeProperties:{html:(n,e)=>mt(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[ai]:{exposeProperties:{urls:(n,e)=>mt(n,e,"").split(` +`),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[li]:{exposeProperties:{text:(n,e)=>mt(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function _a(n,e){const i=Ut[n];if(!i)throw new Error(`native type ${n} has no configuration`);const o=new Sa(i);return o.loadDataTransfer(e),o}function vt(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(Ut).filter(i=>{const o=Ut[i];return o!=null&&o.matchesTypes?o.matchesTypes.some(t=>e.indexOf(t)>-1):!1})[0]||null}const Ea=oi(()=>/firefox/i.test(navigator.userAgent)),ui=oi(()=>!!window.safari);class kn{interpolate(e){const{xs:i,ys:o,c1s:t,c2s:s,c3s:a}=this;let l=i.length-1;if(e===i[l])return o[l];let c=0,u=a.length-1,h;for(;c<=u;){h=Math.floor(.5*(c+u));const m=i[h];if(me)u=h-1;else return o[h]}l=Math.max(0,u);const p=e-i[l],d=p*p;return o[l]+t[l]*p+s[l]*d+a[l]*p*d}constructor(e,i){const{length:o}=e,t=[];for(let m=0;me[m]{let T=new kn([0,.5,1],[c.y,c.y/h*v,c.y+v-h]).interpolate(d);return ui()&&s&&(T+=(window.devicePixelRatio-1)*v),T},g=()=>new kn([0,.5,1],[c.x,c.x/u*m,c.x+m-u]).interpolate(p),{offsetX:y,offsetY:w}=t,x=y===0||y,j=w===0||w;return{x:x?y:g(),y:j?w:f()}}class Oa{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,i){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=i}}function Ra(n,e,i){return e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Mn(n){for(var e=1;e{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,i,o){this.sourceNodes.set(e,i),this.sourceNodeOptions.set(e,o);const t=a=>this.handleDragStart(a,e),s=a=>this.handleSelectStart(a);return i.setAttribute("draggable","true"),i.addEventListener("dragstart",t),i.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),i.removeEventListener("dragstart",t),i.removeEventListener("selectstart",s),i.setAttribute("draggable","false")}}connectDropTarget(e,i){const o=a=>this.handleDragEnter(a,e),t=a=>this.handleDragOver(a,e),s=a=>this.handleDrop(a,e);return i.addEventListener("dragenter",o),i.addEventListener("dragover",t),i.addEventListener("drop",s),()=>{i.removeEventListener("dragenter",o),i.removeEventListener("dragover",t),i.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),i=this.sourceNodeOptions.get(e);return Mn({dropEffect:this.altKeyPressed?"copy":"move"},i||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),i=this.sourcePreviewNodeOptions.get(e);return Mn({anchorX:.5,anchorY:.5,captureDraggingState:!1},i||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Pn).some(i=>Pn[i]===e)}beginDragNativeItem(e,i){this.clearCurrentDragSourceNode(),this.currentNativeSource=_a(e,i),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const i=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var o;return(o=this.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},i)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,i){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(i))}handleDragEnter(e,i){this.dragEnterTargetIds.unshift(i)}handleDragOver(e,i){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(i)}handleDrop(e,i){this.dropTargetIds.unshift(i)}constructor(e,i,o){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=t=>{const s=this.sourceNodes.get(t);return s&&di(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=t=>!!(t&&this.document&&this.document.body&&this.document.body.contains(t)),this.endDragIfSourceWasRemovedFromDOM=()=>{const t=this.currentDragSourceNode;t==null||this.isNodeInDocument(t)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=t=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(t||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=t=>{if(t.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const a=Ve(t);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:l}=t,c=vt(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const h=this.monitor.getSourceId(),p=this.sourceNodes.get(h),d=this.sourcePreviewNodes.get(h)||p;if(d){const{anchorX:m,anchorY:v,offsetX:f,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),x=Da(p,d,a,{anchorX:m,anchorY:v},{offsetX:f,offsetY:g});l.setDragImage(d,x.x,x.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(t.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=t=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(t.dataTransfer)}if(!this.enterLeaveCounter.enter(t.target)||this.monitor.isDragging())return;const{dataTransfer:l}=t,c=vt(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=t=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=t.altKey,s.length>0&&this.actions.hover(s,{clientOffset:Ve(t)}),s.some(l=>this.monitor.canDropOnTarget(l))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=t=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(t.dataTransfer)}},this.handleTopDragOver=t=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none");return}this.altKeyPressed=t.altKey,this.lastClientOffset=Ve(t),this.scheduleHover(s),(s||[]).some(l=>this.monitor.canDropOnTarget(l))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=t=>{this.isDraggingNativeItem()&&t.preventDefault(),this.enterLeaveCounter.leave(t.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=t=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;t.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(t.dataTransfer)}else vt(t.dataTransfer)&&t.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=t=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:Ve(t)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=t=>{const s=t.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(t.preventDefault(),s.dragDrop()))},this.options=new Oa(i,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new ba(this.isNodeInDocument)}}const $a=function(e,i,o){return new Na(e,i,o)},Fa=window.antd.Input,Pa=window.React.useEffect,ka=window.React.useState,Ma=n=>{const[e,i]=ka("");Pa(()=>{var t;(t=n.value)!=null&&t.startsWith("url")&&i(n.value.replace("url(","").replace(")",""))},[]);const o=t=>{if(t===""){i(""),n.onChange("");return}t.startsWith("http")?(i(t),n.onChange(`url(${t})`)):(i(`${t}`),n.onChange(t))};return r.jsx(Fa,{value:e,onChange:t=>o(t.target.value)})},Aa=window.React.useEffect,za=window.React.useState,La=window.antd.InputNumber,F=({value:n,onChange:e,...i})=>{const[o,t]=za(null);Aa(()=>{const a=n==null?void 0:n.replace("px","");a!=""&&t(a)},[n]);const s=a=>{a?(t(a),e(a+"px")):(t(null),e(""))};return r.jsx(La,{placeholder:"输入尺寸: 10",...i,addonAfter:"px",value:o,onChange:a=>s(a)})},Ba=window.antd.Flex,Ya=window.antd.Select,Xa=window.React.memo,Va=window.React.useEffect,wt=window.React.useState,Ha=n=>{const[e,i]=wt("auto"),[o,t]=wt(""),[s,a]=wt(!1);Va(()=>{n.value==="contain"||n.value==="cover"?(a(!1),t(""),i(n.value)):(a(!0),t(n.value),i("auto"))},[]);const l=u=>{u==="auto"?a(!0):(a(!1),t("")),i(u),n.onChange(u)},c=u=>{t(u),n.onChange(u)};return r.jsxs(Ba,{gap:5,children:[r.jsx(Ya,{placeholder:"请选择",value:e,onChange:l,options:[{label:"默认",value:"auto"},{label:"等比填充",value:"contain"},{label:"等比覆盖",value:"cover"}]}),s&&r.jsx(F,{value:o,placeholder:"大小",onChange:u=>c(u)})]})},Wa=Xa(Ha),qa=window.React.useEffect,Ua=window.React.useState,An=window.antd.Flex,te=window.antd.Form,Ga=window.antd.Input,xt=window.antd.Radio,Za=({form:n})=>{const[e,i]=Ua("all");qa(()=>{const t=n.getFieldValue(["scopeStyle","margin"]);i(t?"all":"single")},[n.getFieldValue(["scopeStyle","margin"])]);const o=t=>{i(t)};return r.jsx(r.Fragment,{children:r.jsxs(te.Item,{label:"边距",children:[r.jsxs(xt.Group,{optionType:"button",value:e,buttonStyle:"solid",onChange:t=>o(t.target.value),children:[r.jsx(xt.Button,{value:"all",children:r.jsx(Ar,{})}),r.jsx(xt.Button,{value:"single",children:r.jsx(zr,{})})]}),e==="all"&&r.jsx(te.Item,{name:["scopeStyle","margin"],noStyle:!0,children:r.jsx(Ga,{style:{marginTop:10},placeholder:"边距: 10px"})}),e==="single"&&r.jsxs(r.Fragment,{children:[r.jsxs(An,{gap:10,style:{marginTop:10},children:[r.jsx(te.Item,{name:["scopeStyle","margin"],hidden:!0,children:r.jsx(F,{})}),r.jsx(te.Item,{name:["scopeStyle","marginTop"],noStyle:!0,children:r.jsx(F,{placeholder:"T: 10"})}),r.jsx(te.Item,{name:["scopeStyle","marginRight"],noStyle:!0,children:r.jsx(F,{placeholder:"R: 10"})})]}),r.jsxs(An,{gap:10,style:{marginTop:10},children:[r.jsx(te.Item,{name:["scopeStyle","marginBottom"],noStyle:!0,children:r.jsx(F,{placeholder:"B: 10"})}),r.jsx(te.Item,{name:["scopeStyle","marginLeft"],noStyle:!0,children:r.jsx(F,{placeholder:"L: 10"})})]})]})]})})},Ja=window.React.useEffect,Ka=window.React.useState,zn=window.antd.Flex,ne=window.antd.Form,Qa=window.antd.Input,yt=window.antd.Radio,el=({form:n})=>{const[e,i]=Ka("all");Ja(()=>{const t=n.getFieldValue(["scopeStyle","padding"]);i(t?"all":"single")},[n.getFieldValue(["scopeStyle","padding"])]);const o=t=>{i(t)};return r.jsx(r.Fragment,{children:r.jsxs(ne.Item,{label:"填充",children:[r.jsxs(yt.Group,{optionType:"button",value:e,buttonStyle:"solid",onChange:t=>o(t.target.value),children:[r.jsx(yt.Button,{value:"all",children:r.jsx(Ar,{})}),r.jsx(yt.Button,{value:"single",children:r.jsx(zr,{})})]}),e==="all"&&r.jsx(ne.Item,{name:["scopeStyle","padding"],noStyle:!0,children:r.jsx(Qa,{style:{marginTop:10},placeholder:"填充: 10px"})}),e==="single"&&r.jsxs(r.Fragment,{children:[r.jsxs(zn,{gap:10,style:{marginTop:10},children:[r.jsx(ne.Item,{name:["scopeStyle","padding"],hidden:!0,children:r.jsx(F,{placeholder:"M"})}),r.jsx(ne.Item,{name:["scopeStyle","paddingTop"],noStyle:!0,children:r.jsx(F,{placeholder:"T: 10"})}),r.jsx(ne.Item,{name:["scopeStyle","paddingRight"],noStyle:!0,children:r.jsx(F,{placeholder:"R: 10"})})]}),r.jsxs(zn,{gap:10,style:{marginTop:10},children:[r.jsx(ne.Item,{name:["scopeStyle","paddingBottom"],noStyle:!0,children:r.jsx(F,{placeholder:"B: 10"})}),r.jsx(ne.Item,{name:["scopeStyle","paddingLeft"],noStyle:!0,children:r.jsx(F,{placeholder:"L: 10"})})]})]})]})})},ue=window.antd.Form,tl=window.antd.Input,He=window.antd.Select,We=window.antd.Radio,nl=({form:n})=>r.jsxs(r.Fragment,{children:[r.jsx(ue.Item,{name:["scopeStyle","display"],label:"布局模式",children:r.jsx(He,{options:[{label:"内联布局 inline",value:"inline"},{label:"块级布局 block",value:"block"},{label:"内联块布局 inline-block",value:"inline-block"},{label:"内联弹性布局 inline-flex",value:"inline-flex"},{label:"块级弹性布局 flex",value:"flex"},{label:"隐藏 none",value:"none"}],suffixIcon:r.jsx(K,{})})}),["inline-flex","flex"].includes(n.getFieldValue(["scopeStyle","display"]))&&r.jsxs(r.Fragment,{children:[r.jsx(ue.Item,{name:["scopeStyle","flexDirection"],label:"主轴方向",children:r.jsx(He,{options:[{label:"水平",value:"row"},{label:"垂直",value:"column"},{label:"水平反转",value:"row-reverse"},{label:"垂直反转",value:"column-reverse"}],suffixIcon:r.jsx(K,{})})}),r.jsx(ue.Item,{name:["scopeStyle","justifyContent"],label:"主轴对齐",children:r.jsx(He,{options:[{label:"起点对齐",value:"flex-start"},{label:"终点对齐",value:"flex-right"},{label:"居中对齐",value:"center"},{label:"两端对齐",value:"space-between"},{label:"环绕对齐",value:"space-around"}],suffixIcon:r.jsx(K,{})})}),r.jsx(ue.Item,{name:["scopeStyle","alignItems"],label:"副轴对齐",children:r.jsx(He,{options:[{label:"起点对齐",value:"flex-start"},{label:"终点对齐",value:"flex-end"},{label:"居中对齐",value:"center"},{label:"文字基线对齐",value:"baseline"},{label:"拉伸对齐",value:"stretch"}],suffixIcon:r.jsx(K,{})})}),r.jsx(ue.Item,{name:["scopeStyle","flexWrap"],label:"换行方式",children:r.jsxs(We.Group,{buttonStyle:"solid",optionType:"button",children:[r.jsx(We,{value:"nowrap",children:"不换"}),r.jsx(We,{value:"wrap",children:"换行"}),r.jsx(We,{value:"wrap-reverse",children:"逆换行"})]})}),r.jsx(ue.Item,{name:["scopeStyle","gap"],label:"间隙",children:r.jsx(tl,{placeholder:"eg: 10px"})})]})]}),rl="_monacoEditor_afu8c_1",il="_ui_afu8c_4",ol="_title_afu8c_7",hi={monacoEditor:rl,ui:il,title:ol},re=n=>r.jsx("h2",{className:hi.title,children:n.children}),Ln=window.antd.Flex,de=window.antd.Form,qe=window.antd.Input,Ue=window.antd.Radio,sl=window.React.useEffect,he=window.React.useState,al=n=>{const[e,i]=he("none"),[o,t]=he("#000"),[s,a]=he("0"),[l,c]=he("0"),[u,h]=he("0"),[p,d]=he("0");sl(()=>{var g;const f=(g=n.value)==null?void 0:g.split(" ");f&&f.length>0&&(t(f[0]||"#000"),a(f[1]||"0px"),c(f[2]||"0px"),h(f[3]||"0px"),d(f[4]||"0px"),i(f[5]||""))},[]);const m=f=>{i(f),f==="none"?n.onChange("none"):n.onChange(`${o} ${s} ${l} ${u} ${p} ${f}`)},v=(f,g)=>{f==="color"?(t(g),n.onChange(`${g} ${s} ${l} ${u} ${p} ${e}`)):f==="x"?(g===""&&(g="0px"),a(g),n.onChange(`${o} ${g} ${l} ${u} ${p} ${e}`)):f==="y"?(g===""&&(g="0px"),c(g),n.onChange(`${o} ${s} ${g} ${u} ${p} ${e}`)):f==="blur"?(g===""&&(g="0px"),h(g),n.onChange(`${o} ${s} ${l} ${g} ${p} ${e}`)):f==="spread"&&(g===""&&(g="0px"),d(g),n.onChange(`${o} ${s} ${l} ${u} ${g} ${e}`))};return r.jsxs(r.Fragment,{children:[r.jsx(de.Item,{noStyle:!0,children:r.jsxs(Ue.Group,{buttonStyle:"solid",optionType:"button",value:e,onChange:f=>m(f.target.value),children:[r.jsx(Ue,{value:"none",children:"无"}),r.jsx(Ue,{value:"",children:"外阴影"}),r.jsx(Ue,{value:"Inset",children:"内阴影"})]})}),r.jsx(de.Item,{label:"颜色",style:{marginBlock:14},children:r.jsx(Bt,{showText:!0,allowClear:!0,value:o,onChange:f=>v("color",f)})}),r.jsxs(Ln,{gap:10,children:[r.jsx(de.Item,{label:"X轴",children:r.jsx(qe,{value:s,onChange:f=>v("x",f.target.value)})}),r.jsx(de.Item,{label:"Y轴",children:r.jsx(qe,{value:l,onChange:f=>v("y",f.target.value)})})]}),r.jsxs(Ln,{gap:10,style:{marginTop:-10,marginBottom:-24},children:[r.jsx(de.Item,{label:"模糊",children:r.jsx(qe,{value:u,onChange:f=>v("blur",f.target.value)})}),r.jsx(de.Item,{label:"扩展",children:r.jsx(qe,{value:p,onChange:f=>v("spread",f.target.value)})})]})]})},ll=window.React.useEffect,cl=window.React.useState,Ge=window.antd.Select,D=window.antd.Form,ul=window.antd.Input,dl=window.antd.Slider,Ze=window.antd.Radio,jt=window.antd.Tooltip,Bn=window.antd.Flex,hl=window.antd.InputNumber,fl=window.ahooks.useDebounceFn,pl=()=>{const[n,e]=cl(!1),i=N(),[o]=D.useForm();ll(()=>{var l;if(o.resetFields(),!i.selectedElement)o.setFieldValue("scopeCss",i.page.config.scopeCss||`/* 请在此处添加样式*/ +.mars{ + +}`),o.setFieldValue("scopeStyle",i.page.config.scopeStyle);else{const c=((l=i.page.elementsMap[i.selectedElement.id])==null?void 0:l.config)||{};o.setFieldValue("scopeCss",c.scopeCss||`/* 请在此处添加样式*/ +.mars{ + +}`),o.setFieldValue("scopeStyle",c.scopeStyle||c.style),e(!n)}},[i.selectedElement]);const{run:t}=fl(()=>{s(o.getFieldsValue())},{wait:500}),s=l=>{const c=Wi(l.scopeCss);i.selectedElement?i.editElement({id:i.selectedElement.id,type:"style",scopeCss:l.scopeCss,scopeStyle:l.scopeStyle,style:{...l.scopeStyle,...c}}):i.savePageInfo({type:"style",scopeCss:l.scopeCss,scopeStyle:l.scopeStyle,style:{...l.scopeStyle,...c}})},a={labelCol:{span:7},wrapperCol:{span:16}};return r.jsxs(D,{className:hi.ui,...a,form:o,layout:"horizontal",labelAlign:"right",onValuesChange:t,children:[r.jsx(re,{children:"自定义样式"}),r.jsx(D.Item,{name:"scopeCss",noStyle:!0,children:r.jsx(Q,{language:"css"})}),r.jsx(re,{children:"基础"}),r.jsx(D.Item,{name:["scopeStyle","width"],label:"宽度",children:r.jsx(F,{})}),r.jsx(D.Item,{name:["scopeStyle","height"],label:"高度",children:r.jsx(F,{})}),r.jsx(Za,{form:o}),r.jsx(el,{form:o}),r.jsx(D.Item,{name:["scopeStyle","opacity"],label:"透明度",children:r.jsx(dl,{min:0,max:1,step:.1})},"opacity"),r.jsx(re,{children:"布局"}),r.jsx(nl,{form:o}),r.jsx(re,{children:"文字"}),r.jsx(D.Item,{name:["scopeStyle","fontSize"],label:"字号",children:r.jsx(F,{placeholder:"eg: 14"})}),r.jsx(D.Item,{name:["scopeStyle","lineHeight"],label:"行高",children:r.jsx(F,{placeholder:"eg: 30"})}),r.jsx(D.Item,{name:["scopeStyle","fontWeight"],label:"字重",children:r.jsx(Ge,{placeholder:"eg: 400",options:[{value:100,label:"100 Thin"},{value:200,label:"200 Extra Light"},{value:300,label:"300 Light"},{value:400,label:"400 Normal"},{value:500,label:"500 Medium"},{value:600,label:"600 Semi Bold"},{value:700,label:"700 Bold"},{value:800,label:"800 Extra Bold"},{value:900,label:"900 Black Bold"}],suffixIcon:r.jsx(K,{})},"fontWeight")}),r.jsx(D.Item,{name:["scopeStyle","color"],label:"颜色",children:r.jsx(Bt,{showText:!0,allowClear:!0})}),r.jsx(D.Item,{name:["scopeStyle","textAlign"],label:"对齐",children:r.jsxs(Ze.Group,{buttonStyle:"solid",optionType:"button",children:[r.jsx(jt,{title:"左对齐",children:r.jsx(Ze,{value:"left",children:r.jsx(ao,{})})}),r.jsx(jt,{title:"居中对齐",children:r.jsx(Ze,{value:"center",children:r.jsx(lo,{})})}),r.jsx(jt,{title:"右对齐",children:r.jsx(Ze,{value:"right",children:r.jsx(co,{})})})]})}),r.jsx(re,{children:"背景"}),r.jsx(D.Item,{name:["scopeStyle","backgroundColor"],label:"颜色",children:r.jsx(Bt,{})}),r.jsx(D.Item,{name:["scopeStyle","backgroundImage"],label:"图片",tooltip:"支持渐变色。图片使用时,直接输入远程地址:http(s)://xxx.png",children:r.jsx(Ma,{})}),r.jsx(D.Item,{name:["scopeStyle","backgroundSize"],label:"尺寸",tooltip:"默认的时候,可以手动输入尺寸",children:r.jsx(Wa,{})}),r.jsx(D.Item,{name:["scopeStyle","backgroundRepeat"],label:"平铺",children:r.jsx(Ge,{options:[{label:"不平铺",value:"no-repeat"},{label:"平铺",value:"repeat"},{label:"水平平铺",value:"repeat-x"},{label:"垂直平铺",value:"repeat-y"}],suffixIcon:r.jsx(K,{})})}),r.jsx(D.Item,{name:["scopeStyle","backgroundPosition"],label:"位置",children:r.jsx(Ge,{options:[{label:"top",value:"top"},{label:"bottom",value:"bottom"},{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}],suffixIcon:r.jsx(K,{})})}),r.jsx(re,{children:"定位"}),r.jsx(D.Item,{name:["scopeStyle","position"],label:"定位",children:r.jsx(Ge,{placeholder:"请选择",options:[{label:"static",value:"static"},{label:"relative",value:"relative"},{label:"absolute",value:"absolute"},{label:"fixed",value:"fixed"},{label:"sticky",value:"sticky"}],suffixIcon:r.jsx(K,{})})},"position"),r.jsx(D.Item,{name:["scopeStyle","zIndex"],label:"zIndex",children:r.jsx(hl,{})},"zIndex"),!["",void 0,"static"].includes(o.getFieldValue(["scopeStyle","position"]))&&r.jsxs(D.Item,{label:"位置",children:[r.jsxs(Bn,{gap:10,children:[r.jsx(D.Item,{name:"top",noStyle:!0,children:r.jsx(F,{placeholder:"T: 10"})}),r.jsx(D.Item,{name:"right",noStyle:!0,children:r.jsx(F,{placeholder:"R: 10"})})]}),r.jsxs(Bn,{gap:10,style:{marginTop:10},children:[r.jsx(D.Item,{name:"bottom",noStyle:!0,children:r.jsx(F,{placeholder:"B: 10"})}),r.jsx(D.Item,{name:"left",noStyle:!0,children:r.jsx(F,{placeholder:"L: 10"})})]})]}),r.jsx(re,{children:"边框"}),r.jsx(D.Item,{name:["scopeStyle","borderRadius"],label:"圆角",children:r.jsx(F,{placeholder:"eg:5"})}),r.jsx(D.Item,{name:["scopeStyle","border"],label:"边框",children:r.jsx(ul,{placeholder:"eg:1px solid #fff"})}),r.jsx(D.Item,{label:"阴影",name:["scopeStyle","boxShadow"],children:r.jsx(al,{})})]})},L=window.antd.Form,B=window.antd.Radio,fe=window.antd.Input,gl=window.antd.Switch,Yn=window.antd.Space,ml=function(){return r.jsxs(r.Fragment,{children:[r.jsx(L.Item,{label:"接口ID",name:"id",hidden:!0,children:r.jsx(fe,{})}),r.jsx(L.Item,{label:"接口名称",name:"name",rules:[{required:!0}],children:r.jsx(fe,{placeholder:"请输入接口中文名称,eg: 用户列表"})}),r.jsx(L.Item,{label:"请求方式",name:"method",children:r.jsxs(B.Group,{buttonStyle:"solid",children:[r.jsx(B.Button,{value:"GET",children:"GET"}),r.jsx(B.Button,{value:"POST",children:"POST"}),r.jsx(B.Button,{value:"PUT",children:"PUT"}),r.jsx(B.Button,{value:"DELETE",children:"DELETE"})]})}),r.jsx(L.Item,{label:"接口地址",extra:"支持模板语法:${id},前提是事件流中有该字段。",children:r.jsxs(Yn,{direction:"vertical",style:{width:"100%"},children:[r.jsx(L.Item,{label:"STG地址",name:"stgApi",noStyle:!0,rules:[{required:!0}],children:r.jsx(fe,{prefix:"STG:",placeholder:"http://mars-api.marsview.cc/api/user"})}),r.jsx(L.Item,{label:"PRE地址",name:"preApi",noStyle:!0,rules:[{required:!0}],children:r.jsx(fe,{prefix:"PRE:",placeholder:"http://mars-api.marsview.cc/api/user"})}),r.jsx(L.Item,{label:"PRD地址",name:"prdApi",noStyle:!0,rules:[{required:!0}],children:r.jsx(fe,{prefix:"PRD:",placeholder:"http://mars-api.marsview.cc/api/user"})})]})}),r.jsx(L.Item,{label:"数据格式",name:"contentType",children:r.jsxs(B.Group,{buttonStyle:"solid",children:[r.jsx(B.Button,{value:"application/json",children:"JSON"}),r.jsx(B.Button,{value:"multipart/form-data",children:"FormData"}),r.jsx(B.Button,{value:"application/x-www-form-urlencoded",children:"Form"})]})}),r.jsx(L.Item,{label:"发送参数",children:r.jsx(L.List,{name:"params",children:(n,{add:e,remove:i})=>r.jsx(r.Fragment,{children:n.map(({name:o},t)=>r.jsxs(Yn,{align:"baseline",style:{marginBottom:n.length===t+1?0:10,alignItems:"center"},children:[r.jsx(L.Item,{name:[o,"key"],noStyle:!0,children:r.jsx(fe,{placeholder:"请输入参数名"})}),r.jsx(L.Item,{name:[o,"value"],noStyle:!0,children:r.jsx(U,{placeholder:"请输入参数值"})}),r.jsx(G,{onClick:()=>e({key:"",value:""})}),t>0&&r.jsx(Lr,{onClick:()=>{i(o)}})]},`header-${t}`))})})}),r.jsx(L.Item,{label:"参数替换",extra:"默认会把事件流参数和当前参数合并;保留参数为只取当前参数,参数支持模板语法:${id}。",name:"replaceData",children:r.jsxs(B.Group,{buttonStyle:"solid",children:[r.jsx(B.Button,{value:"merge",children:"合并参数"}),r.jsx(B.Button,{value:"cover",children:"覆盖参数"}),r.jsx(B.Button,{value:"reserve",children:"保留参数"})]})}),r.jsx(L.Item,{label:"开启代理",name:"isCors",extra:"开启接口代理对解决跨域问题很有用",children:r.jsx(gl,{})})]})},Je=window.antd.Form,bt=window.antd.Input,vl=window.antd.InputNumber,wl=function(){return r.jsxs(r.Fragment,{children:[r.jsxs("p",{style:{lineHeight:"35px",color:"#5c5c5c",marginLeft:"70px",marginBottom:"10px"},children:[r.jsx(Br,{}),r.jsxs("span",{style:{marginLeft:5},children:["用来定义接口返回结构,推荐结构:","{ ret: 0, data: {}, msg: '' }"]})]}),r.jsx(Je.Item,{label:"业务码",extra:"接口返回业务状态码,默认是:ret",name:["result","code"],children:r.jsx(bt,{placeholder:"默认为:ret"})}),r.jsx(Je.Item,{label:"成功值",extra:"接口返回成功时对应的状态码值,默认是:0",name:["result","codeValue"],children:r.jsx(vl,{placeholder:"默认为:0"})}),r.jsx(Je.Item,{label:"结果字段",extra:"接口返回结果字段,默认是:data",name:["result","data"],children:r.jsx(bt,{placeholder:"默认为:data"})}),r.jsx(Je.Item,{label:"报错字段",extra:"接口返回报错字段,默认是:msg",name:["result","msg"],children:r.jsx(bt,{placeholder:"默认为:msg"})})]})},St=window.antd.Form,Xn=window.antd.Input,xl=window.antd.Switch,yl=function(){return r.jsxs(r.Fragment,{children:[r.jsxs("p",{style:{lineHeight:"35px",color:"#5c5c5c",marginLeft:"56px",marginBottom:"10px"},children:[r.jsx(Br,{}),r.jsx("span",{style:{marginLeft:5},children:"用来定义成功或者失败时,系统显示提示文案"})]}),r.jsx(St.Item,{label:"成功提示",name:["tips","success"],children:r.jsx(Xn,{placeholder:"默认不提示"})}),r.jsx(St.Item,{label:"失败提示",name:["tips","fail"],children:r.jsx(Xn,{placeholder:"默认不提示"})}),r.jsx(St.Item,{label:"系统报错",name:["tips","isError"],valuePropName:"checked",extra:"开启系统报错后,会优先使用接口返回错误信息。",children:r.jsx(xl,{})})]})},jl=window.React.forwardRef,bl=window.React.useImperativeHandle,Sl=window.React.useState,Vn=window.antd.Form,_l=window.antd.Modal,El=window.antd.Tabs,Tl=({update:n},e)=>{const{apis:i,addApi:o,updateApi:t}=N(d=>({apis:d.page.apis,addApi:d.addApi,updateApi:d.updateApi})),[s]=Vn.useForm(),[a,l]=Sl(!1),c={method:"GET",url:"",sourceType:"json",params:[{key:"",value:""}],contentType:"application/json",replaceData:"merge",isCors:!0,result:{code:"ret",data:"data",msg:"msg",codeValue:0},tips:{success:"请求成功",fail:"请求失败",isError:!0}};bl(e,()=>({showModal:d=>{const m=d?i[d]:{};d?s.setFieldsValue({...m}):s.setFieldsValue({...c,...m}),l(!0)}}));const u=[{key:"base-set",label:"接口设置",forceRender:!0,children:r.jsx(ml,{})},{key:"structure",label:"返回结构设置",forceRender:!0,children:r.jsx(wl,{})},{key:"tips",label:"消息提示设置",forceRender:!0,children:r.jsx(yl,{})}];async function h(){if(!await s.validateFields())return;const m=s.getFieldsValue();if(m.id)t(s.getFieldsValue());else{const v=qi();o({...c,...s.getFieldsValue(),id:v})}n==null||n(m.id),p()}function p(){l(!1),s.resetFields()}return r.jsx(_l,{width:"800px",okText:"确认",cancelText:"取消",title:"接口配置",open:a,onOk:h,onCancel:p,children:r.jsx(Vn,{form:s,labelCol:{span:4},wrapperCol:{span:19},style:{maxWidth:800},autoComplete:"off",children:r.jsx(El,{defaultActiveKey:"1",items:u})})})},hn=jl(Tl),Il="_title_1mew4_1",Cl={title:Il},Dl=window.React.useEffect,Ol=window.React.useRef,Rl=window.React.useState,Nl=window.ahooks.useDebounceFn,$l=window.antd.Button,W=window.antd.Form,Se=window.antd.Select,Fl=window.antd.Tooltip,Pl=()=>{const n=N(),[e]=W.useForm(),[i,o]=Rl("json"),t=Ol();Dl(()=>{var p;e.resetFields();let u;n.selectedElement?u=((p=n.page.elementsMap[n.selectedElement.id])==null?void 0:p.config.api)||{}:u=n.page.config.api||{},o((u==null?void 0:u.sourceType)||"json");const h=JSON.stringify((u==null?void 0:u.source)||"",null,2);e.setFieldsValue({sourceType:"json",id:"",sourceField:"",...u,source:h})},[n.selectedElement]);const s=u=>{o(u)};function a(){var u;(u=t.current)==null||u.showModal(e.getFieldValue("id"))}const{run:l}=Nl(()=>{c(e.getFieldValue("id"))},{wait:500}),c=u=>{var d,m;const h=e.getFieldsValue();let p=[];try{p=JSON.parse(h.source)}catch(v){console.error(v),p=[]}if((d=n.selectedElement)!=null&&d.id){const v={id:(m=n.selectedElement)==null?void 0:m.id,type:"api",api:{...h,id:u,source:p}};n.editElement(v)}else{const v={type:"api",api:{...h,id:u,source:p}};n.savePageInfo(v)}u&&e.setFieldValue("id",u)};return r.jsxs(W,{form:e,labelCol:{span:8},wrapperCol:{span:15},labelAlign:"right",onValuesChange:l,autoComplete:"off",children:[r.jsxs("h2",{className:Cl.title,children:[r.jsx("span",{children:"数据源配置"}),r.jsx(Fl,{title:"接口配置",children:r.jsx(bo,{style:{marginLeft:5}})})]}),r.jsx(W.Item,{label:"数据来源",name:"sourceType",children:r.jsxs(Se,{onChange:u=>s(u),children:[r.jsx(Se.Option,{value:"json",children:"静态数据"}),r.jsx(Se.Option,{value:"api",children:"接口请求"}),r.jsx(Se.Option,{value:"variable",children:"动态变量"})]})}),r.jsx(W.Item,{noStyle:!0,shouldUpdate:!0,children:u=>{const h=u.getFieldValue("sourceType");if(h==="json")return r.jsx(W.Item,{name:"source",noStyle:!0,children:r.jsx(Q,{height:"calc(100vh - 300px)",language:"json"})});if(h==="api")return r.jsxs(r.Fragment,{children:[r.jsx(W.Item,{label:"请求地址",name:"id",children:r.jsx(kl,{showModal:a})}),r.jsx(W.Item,{label:"数据处理",name:"sourceField",children:r.jsx(U,{placeholder:"数据源所对应的接口字段"})}),r.jsx(W.Item,{name:"source",hidden:!0,children:r.jsx(Q,{height:"350px",language:"json"})})]});if(h==="variable")return r.jsxs(r.Fragment,{children:[r.jsx(W.Item,{label:"绑定变量",name:"name",children:r.jsx(U,{readOnly:!0,placeholder:"数据源所对应的接口字段"})}),r.jsx(W.Item,{name:"source",hidden:!0,children:r.jsx(Q,{height:"350px",language:"json"})})]})}}),r.jsx(hn,{update:c,ref:t})]})};function kl({value:n,onChange:e,showModal:i}){const o=N();return r.jsxs(r.Fragment,{children:[r.jsx(Se,{placeholder:"请选择接口",showSearch:!0,allowClear:!0,style:{width:"82%"},value:n,onChange:t=>e(t),children:Object.values(o.page.apis).map(t=>r.jsx(Se.Option,{value:t.id,children:t.name},t.id))}),r.jsx($l,{type:"link",onClick:i,icon:r.jsx(qr,{})})]})}var Ml="function",Al="object",zl="string",Ll="undefined",Bl=typeof document!==Ll&&document,Yl=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ke={cm:function(n){return n*96/2.54},mm:function(n){return n*96/254},in:function(n){return n*96},pt:function(n){return n*96/72},pc:function(n){return n*96/6},"%":function(n,e){return n*e/100},vw:function(n,e){return e===void 0&&(e=window.innerWidth),n/100*e},vh:function(n,e){return e===void 0&&(e=window.innerHeight),n/100*e},vmax:function(n,e){return e===void 0&&(e=Math.max(window.innerWidth,window.innerHeight)),n/100*e},vmin:function(n,e){return e===void 0&&(e=Math.min(window.innerWidth,window.innerHeight)),n/100*e}};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function Xl(){for(var n=0,e=0,i=arguments.length;e-1?n[o]:i}function Z(n,e){var i=Ul(n),o=i.value,t=i.unit;if(Te(e)){var s=e[t];if(s){if(Vl(s))return s(o);if(Ke[t])return Ke[t](o,s)}}else if(t==="%")return o*e/100;return Ke[t]?Ke[t](o):o}function ie(n,e,i){return Math.max(e,Math.min(n,i))}function Gl(n,e){if(!e)return n;var i=1/e;return Math.round(n/e)/i}function _e(n,e){n.classList?n.classList.add(e):n.className+=" "+e}function R(n,e,i,o){n.addEventListener(e,i,o)}function O(n,e,i,o){n.removeEventListener(e,i,o)}function pn(n){return(n==null?void 0:n.ownerDocument)||Bl}function Ee(n){var e;return((e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView)||window}function Zl(n){return n&&"postMessage"in n&&"blur"in n&&"self"in n}function Wn(n){return Te(n)&&n.nodeName&&n.nodeType&&"ownerDocument"in n}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Zt=function(){return Zt=Object.assign||function(e){for(var i,o=1,t=arguments.length;o-1&&s.splice(a,1)}}return this},e.once=function(i,o){var t=this;return o&&this._addEvent(i,o,{once:!0}),new Promise(function(s){t._addEvent(i,s,{once:!0})})},e.emit=function(i,o){var t=this;o===void 0&&(o={});var s=this._events[i];if(!i||!s)return!0;var a=!1;return o.eventType=i,o.stop=function(){a=!0},o.currentTarget=this,Jl(s).forEach(function(l){l.listener(o),l.once&&t.off(i,l.listener)}),!a},e.trigger=function(i,o){return o===void 0&&(o={}),this.emit(i,o)},e._addEvent=function(i,o,t){var s=this._events;s[i]=s[i]||[];var a=s[i];a.push(Zt({listener:o},t))},n}();const gn=Kl;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Jt=function(n,e){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var t in o)o.hasOwnProperty(t)&&(i[t]=o[t])},Jt(n,e)};function Ql(n,e){Jt(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var $=function(){return $=Object.assign||function(e){for(var i,o=1,t=arguments.length;o=0?t:t+Math.PI*2}function _t(n){return ec([n[0].clientX,n[0].clientY],[n[1].clientX,n[1].clientY])/Math.PI*180}function tc(n){return n.touches&&n.touches.length>=2}function Qe(n){return n?n.touches?rc(n.touches):[wi(n)]:[]}function nc(n){return n&&(n.type.indexOf("mouse")>-1||"button"in n)}function qn(n,e,i){var o=i.length,t=Le(n,o),s=t.clientX,a=t.clientY,l=t.originalClientX,c=t.originalClientY,u=Le(e,o),h=u.clientX,p=u.clientY,d=Le(i,o),m=d.clientX,v=d.clientY,f=s-h,g=a-p,y=s-m,w=a-v;return{clientX:l,clientY:c,deltaX:f,deltaY:g,distX:y,distY:w}}function Et(n){return Math.sqrt(Math.pow(n[0].clientX-n[1].clientX,2)+Math.pow(n[0].clientY-n[1].clientY,2))}function rc(n){for(var e=Math.min(n.length,2),i=[],o=0;o=-1;if(!(t.flag&&v)){t._isDragAPI=!0;var f=t.options,g=f.container,y=f.pinchOutside,w=f.preventWheelClick,x=f.preventRightClick,j=f.preventDefault,S=f.checkInput,T=f.dragFocusedInput,_=f.preventClickEventOnDragStart,E=f.preventClickEventOnDrag,C=f.preventClickEventByCondition,A=t._useTouch,z=!t.flag;if(t._isSecondaryButton=d.which===3||d.button===2,w&&(d.which===2||d.button===1)||x&&(d.which===3||d.button===2))return t.stop(),!1;if(z){var k=t._window.document.activeElement,P=d.target;if(P){var H=P.tagName.toLowerCase(),ht=Un.indexOf(H)>-1,Ye=P.isContentEditable;if(ht||Ye){if(S||!T&&k===P)return!1;if(k&&(k===P||Ye&&k.isContentEditable&&k.contains(P)))if(T)P.blur();else return!1}else if((j||d.type==="touchstart")&&k){var ft=k.tagName.toLowerCase();(k.isContentEditable||Un.indexOf(ft)>-1)&&k.blur()}(_||E||C)&&R(t._window,"click",t._onClick,!0)}t.clientStores=[new Tt(Qe(d))],t._isIdle=!1,t.flag=!0,t.isDrag=!1,t._isTrusted=m,t._dragFlag=!0,t._prevInputEvent=d,t.data={},t.doubleFlag=Hn()-t.prevTime<200,t._isMouseEvent=nc(d),!t._isMouseEvent&&t._preventMouseEvent&&t._allowMouseEvent();var pt=t._preventMouseEvent||t.emit("dragStart",$($({data:t.data,datas:t.data,inputEvent:d,isMouseEvent:t._isMouseEvent,isSecondaryButton:t._isSecondaryButton,isTrusted:m,isDouble:t.doubleFlag},t.getCurrentStore().getPosition()),{preventDefault:function(){d.preventDefault()},preventDrag:function(){t._dragFlag=!1}}));pt===!1&&t.stop(),t._isMouseEvent&&t.flag&&j&&d.preventDefault()}if(!t.flag)return!1;var jn=0;if(z?(t._attchDragEvent(),A&&y&&(jn=setTimeout(function(){R(g,"touchstart",t.onDragStart,{passive:!1})}))):A&&y&&O(g,"touchstart",t.onDragStart),t.flag&&tc(d)){if(clearTimeout(jn),z&&d.touches.length!==d.changedTouches.length)return;t.pinchFlag||t.onPinchStart(d)}}}},t.onDrag=function(d,m){if(t.flag){var v=t.options.preventDefault;!t._isMouseEvent&&v&&d.preventDefault(),t._prevInputEvent=d;var f=Qe(d),g=t.moveClients(f,d,!1);if(t._dragFlag){if(t.pinchFlag||g.deltaX||g.deltaY){var y=t._preventMouseEvent||t.emit("drag",$($({},g),{isScroll:!!m,inputEvent:d}));if(y===!1){t.stop();return}}t.pinchFlag&&t.onPinch(d,f)}t.getCurrentStore().getPosition(f,!0)}},t.onDragEnd=function(d){if(t.flag){var m=t.options,v=m.pinchOutside,f=m.container,g=m.preventClickEventOnDrag,y=m.preventClickEventOnDragStart,w=m.preventClickEventByCondition,x=t.isDrag;(g||y||w)&&requestAnimationFrame(function(){t._allowClickEvent()}),!w&&!y&&g&&!x&&t._allowClickEvent(),t._useTouch&&v&&O(f,"touchstart",t.onDragStart),t.pinchFlag&&t.onPinchEnd(d);var j=d!=null&&d.touches?Qe(d):[],S=j.length;S===0||!t.options.keepDragging?t.flag=!1:t._addStore(new Tt(j));var T=t._getPosition(),_=Hn(),E=!x&&t.doubleFlag;t._prevInputEvent=null,t.prevTime=x||E?0:_,t.flag||(t._dettachDragEvent(),t._preventMouseEvent||t.emit("dragEnd",$({data:t.data,datas:t.data,isDouble:E,isDrag:x,isClick:!x,isMouseEvent:t._isMouseEvent,isSecondaryButton:t._isSecondaryButton,inputEvent:d,isTrusted:t._isTrusted},T)),t.clientStores=[],t._isMouseEvent||(t._preventMouseEvent=!0,clearTimeout(t._preventMouseEventId),t._preventMouseEventId=setTimeout(function(){t._preventMouseEvent=!1},200)),t._isIdle=!0)}},t.onBlur=function(){t.onDragEnd()},t._allowClickEvent=function(){O(t._window,"click",t._onClick,!0)},t._onClick=function(d){t._allowClickEvent(),t._allowMouseEvent();var m=t.options.preventClickEventByCondition;m!=null&&m(d)||(d.stopPropagation(),d.preventDefault())},t._onContextMenu=function(d){var m=t.options;m.preventRightClick?t.onDragEnd(d):d.preventDefault()},t._passCallback=function(){};var s=[].concat(i),a=s[0];t._window=Zl(a)?a:Ee(a),t.options=$({checkInput:!1,container:a&&!("document"in a)?Ee(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},o);var l=t.options,c=l.container,u=l.events,h=l.checkWindowBlur;if(t._useDrag=u.indexOf("drag")>-1,t._useTouch=u.indexOf("touch")>-1,t._useMouse=u.indexOf("mouse")>-1,t.targets=s,t._useDrag&&s.forEach(function(d){R(d,"dragstart",t.onDragStart)}),t._useMouse&&(s.forEach(function(d){R(d,"mousedown",t.onDragStart),R(d,"mousemove",t._passCallback)}),R(c,"contextmenu",t._onContextMenu)),h&&R(Ee(),"blur",t.onBlur),t._useTouch){var p={passive:!1};s.forEach(function(d){R(d,"touchstart",t.onDragStart,p),R(d,"touchmove",t._passCallback,p)})}return t}return e.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},e.prototype.getMovement=function(i){return this.getCurrentStore().getMovement(i)+this.clientStores.slice(1).reduce(function(o,t){return o+t.movement},0)},e.prototype.isDragging=function(){return this.isDrag},e.prototype.isIdle=function(){return this._isIdle},e.prototype.isFlag=function(){return this.flag},e.prototype.isPinchFlag=function(){return this.pinchFlag},e.prototype.isDoubleFlag=function(){return this.doubleFlag},e.prototype.isPinching=function(){return this.isPinch},e.prototype.scrollBy=function(i,o,t,s){s===void 0&&(s=!0),this.flag&&(this.clientStores[0].move(i,o),s&&this.onDrag(t,!0))},e.prototype.move=function(i,o){var t=i[0],s=i[1],a=this.getCurrentStore(),l=a.prevClients;return this.moveClients(l.map(function(c){var u=c.clientX,h=c.clientY;return{clientX:u+t,clientY:h+s,originalClientX:u,originalClientY:h}}),o,!0)},e.prototype.triggerDragStart=function(i){this.onDragStart(i,!1)},e.prototype.setEventData=function(i){var o=this.data;for(var t in i)o[t]=i[t];return this},e.prototype.setEventDatas=function(i){return this.setEventData(i)},e.prototype.getCurrentEvent=function(i){return i===void 0&&(i=this._prevInputEvent),$($({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:i})},e.prototype.getEventData=function(){return this.data},e.prototype.getEventDatas=function(){return this.data},e.prototype.unset=function(){var i=this,o=this.targets,t=this.options.container;this.off(),O(this._window,"blur",this.onBlur),this._useDrag&&o.forEach(function(s){O(s,"dragstart",i.onDragStart)}),this._useMouse&&(o.forEach(function(s){O(s,"mousedown",i.onDragStart)}),O(t,"contextmenu",this._onContextMenu)),this._useTouch&&(o.forEach(function(s){O(s,"touchstart",i.onDragStart)}),O(t,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},e.prototype.onPinchStart=function(i){var o=this,t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var s=new Tt(Qe(i));this.pinchFlag=!0,this._addStore(s);var a=this.emit("pinchStart",$($({data:this.data,datas:this.data,angle:s.getAngle(),touches:this.getCurrentStore().getPositions()},s.getPosition()),{inputEvent:i,isTrusted:this._isTrusted,preventDefault:function(){i.preventDefault()},preventDrag:function(){o._dragFlag=!1}}));a===!1&&(this.pinchFlag=!1)}},e.prototype.onPinch=function(i,o){if(!(!this.flag||!this.pinchFlag||o.length<2)){var t=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",$($({data:this.data,datas:this.data,movement:this.getMovement(o),angle:t.getAngle(o),rotation:t.getRotation(o),touches:t.getPositions(o),scale:t.getScale(o),distance:t.getDistance(o)},t.getPosition(o)),{inputEvent:i,isTrusted:this._isTrusted}))}},e.prototype.onPinchEnd=function(i){if(this.pinchFlag){var o=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var t=this.getCurrentStore();this.emit("pinchEnd",$($({data:this.data,datas:this.data,isPinch:o,touches:t.getPositions()},t.getPosition()),{inputEvent:i}))}},e.prototype.getCurrentStore=function(){return this.clientStores[0]},e.prototype.moveClients=function(i,o,t){var s=this._getPosition(i,t),a=this.isDrag;(s.deltaX||s.deltaY)&&(this.isDrag=!0);var l=!1;return!a&&this.isDrag&&(l=!0),$($({data:this.data,datas:this.data},s),{movement:this.getMovement(i),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:o,isTrusted:this._isTrusted,isFirstDrag:l})},e.prototype._addStore=function(i){this.clientStores.splice(0,0,i)},e.prototype._getPosition=function(i,o){var t=this.getCurrentStore(),s=t.getPosition(i,o),a=this.clientStores.slice(1).reduce(function(u,h){var p=h.getPosition();return u.distX+=p.distX,u.distY+=p.distY,u},s),l=a.distX,c=a.distY;return $($({},s),{distX:l,distY:c})},e.prototype._attchDragEvent=function(){var i=this._window,o=this.options.container,t={passive:!1};this._isDragAPI&&(R(o,"dragover",this.onDrag,t),R(i,"dragend",this.onDragEnd)),this._useMouse&&(R(o,"mousemove",this.onDrag),R(i,"mouseup",this.onDragEnd)),this._useTouch&&(R(o,"touchmove",this.onDrag,t),R(i,"touchend",this.onDragEnd,t),R(i,"touchcancel",this.onDragEnd,t))},e.prototype._dettachDragEvent=function(){var i=this._window,o=this.options.container;this._isDragAPI&&(O(o,"dragover",this.onDrag),O(i,"dragend",this.onDragEnd)),this._useMouse&&(O(o,"mousemove",this.onDrag),O(i,"mouseup",this.onDragEnd)),this._useTouch&&(O(o,"touchstart",this.onDragStart),O(o,"touchmove",this.onDrag),O(i,"touchend",this.onDragEnd),O(i,"touchcancel",this.onDragEnd))},e.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},e}(gn);function ic(n,e){return e.replace(/([^}{]*){/gm,function(i,o){return o.replace(/\.([^{,\s\d.]+)/g,"."+n+"$1")+"{"})}function Ce(n,e){return function(i){i&&(n[e]=i)}}function oc(n,e){return function(i){var o=i.prototype;n.forEach(function(t){e(o,t)})}}function sc(n,e){return e===void 0&&(e={}),function(i,o){n.forEach(function(t){var s=e[t]||t;s in i||(i[s]=function(){for(var a,l=[],c=0;c>>0}var lc=ac;function cc(n){return lc(n).toString(36)}function uc(n){if(n&&n.getRootNode){var e=n.getRootNode();if(e.nodeType===11)return e}}function dc(n,e,i){return i.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(o,t){var s=t.trim();return(s?ql(s):[""]).map(function(a){var l=a.trim();return l.indexOf("@")===0?l:l.indexOf(":global")>-1?l.replace(/\:global/g,""):l.indexOf(":host")>-1?"".concat(l.replace(/\:host/g,".".concat(n))):l?".".concat(n," ").concat(l):".".concat(n)}).join(", ")+" {"})}function hc(n,e,i,o,t){var s=pn(o),a=s.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",n),a.setAttribute("data-styled-count","1"),i.nonce&&a.setAttribute("nonce",i.nonce),a.innerHTML=dc(n,e,i),(t||s.head||s.body).appendChild(a),a}function fc(n){var e="rCS"+cc(n);return{className:e,inject:function(i,o){o===void 0&&(o={});var t=uc(i),s=(t||i.ownerDocument||document).querySelector('style[data-styled-id="'.concat(e,'"]'));if(!s)s=hc(e,n,o,i,t);else{var a=parseFloat(s.getAttribute("data-styled-count"))||0;s.setAttribute("data-styled-count","".concat(a+1))}return{destroy:function(){var l,c=parseFloat(s.getAttribute("data-styled-count"))||0;c<=1?(s.remove?s.remove():(l=s.parentNode)===null||l===void 0||l.removeChild(s),s=null):s.setAttribute("data-styled-count","".concat(c-1))}}}}}function mn(n,e){for(var i=n.length,o=0;o"u"){if(typeof navigator>"u"||!navigator)return"";e=navigator.userAgent||""}return e.toLowerCase()}function vn(n,e){try{return new RegExp(n,"g").exec(e)}catch{return null}}function pc(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var n=navigator.userAgentData,e=n.brands||n.uaList;return!!(e&&e.length)}function gc(n,e){var i=vn("("+n+")((?:\\/|\\s|:)([0-9|\\.|_]+))",e);return i?i[3]:""}function Kt(n){return n.replace(/_/g,".")}function Ae(n,e){var i=null,o="-1";return mn(n,function(t){var s=vn("("+t.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",e);return!s||t.brand?!1:(i=t,o=s[3]||"-1",t.versionAlias?o=t.versionAlias:t.versionTest&&(o=gc(t.versionTest.toLowerCase(),e)||o),o=Kt(o),!0)}),{preset:i,version:o}}function De(n,e){var i={brand:"",version:"-1"};return mn(n,function(o){var t=bi(e,o);return t?(i.brand=o.id,i.version=o.versionAlias||t.version,i.version!=="-1"):!1}),i}function bi(n,e){return yi(n,function(i){var o=i.brand;return vn(""+e.test,o.toLowerCase())})}var Qt=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Si=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],en=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],_i=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Ei=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Ti(n){return!!Ae(_i,n).preset}function mc(n){var e=ji(n),i=!!/mobi/g.exec(e),o={name:"unknown",version:"-1",majorVersion:-1,webview:Ti(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},t={name:"unknown",version:"-1",majorVersion:-1},s=Ae(Qt,e),a=s.preset,l=s.version,c=Ae(Ei,e),u=c.preset,h=c.version,p=Ae(Si,e);if(o.chromium=!!p.preset,o.chromiumVersion=p.version,!o.chromium){var d=Ae(en,e);o.webkit=!!d.preset,o.webkitVersion=d.version}return u&&(t.name=u.id,t.version=h,t.majorVersion=parseInt(h,10)),a&&(o.name=a.id,o.version=l,o.webview&&t.name==="ios"&&o.name!=="safari"&&(o.webview=!1)),o.majorVersion=parseInt(o.version,10),{browser:o,os:t,isMobile:i,isHints:!1}}function vc(n){var e=navigator.userAgentData,i=(e.uaList||e.brands).slice(),o=n&&n.fullVersionList,t=e.mobile||!1,s=i[0],a=(n&&n.platform||e.platform||navigator.platform).toLowerCase(),l={name:s.brand,version:s.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!De(_i,i).brand||Ti(ji())},c={name:"unknown",version:"-1",majorVersion:-1};l.webkit=!l.chromium&&mn(en,function(v){return bi(i,v)});var u=De(Si,i);if(l.chromium=!!u.brand,l.chromiumVersion=u.version,!l.chromium){var h=De(en,i);l.webkit=!!h.brand,l.webkitVersion=h.version}var p=yi(Ei,function(v){return new RegExp(""+v.test,"g").exec(a)});if(c.name=p?p.id:"",n&&(c.version=n.platformVersion),o&&o.length){var d=De(Qt,o);l.name=d.brand||l.name,l.version=d.version||l.version}else{var m=De(Qt,i);l.name=m.brand||l.name,l.version=m.brand&&n?n.uaFullVersion:m.version}return l.webkit&&(c.name=t?"ios":"mac"),c.name==="ios"&&l.webview&&(l.version="-1"),c.version=Kt(c.version),l.version=Kt(l.version),c.majorVersion=parseInt(c.version,10),l.majorVersion=parseInt(l.version,10),{browser:l,os:c,isMobile:t,isHints:!0}}function wc(n){return typeof n>"u"&&pc()?vc():mc(n)}var tn=function(n,e){return tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(i[t]=o[t])},tn(n,e)};function wn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");tn(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var X=function(){return X=Object.assign||function(e){for(var i,o=1,t=arguments.length;o=0;l--)(a=n[l])&&(s=(t<3?a(s):t>3?a(e,i,s):a(e,i))||s);return t>3&&s&&Object.defineProperty(e,i,s),s}function Gn(n,e,i){if(i||arguments.length===2)for(var o=0,t=e.length,s;o=o)&&e(l)};e(l)}var rr=function(n){wn(e,n);function e(o,t,s){var a=n.call(this)||this;a.type=t,a.isAppend=!1,a.size=0,a.scrollSize=0,a.isHorizontal=!1,a._onDragStart=function(p){var d=a.isHorizontal,m=p.inputEvent.target,v=p.datas,f=a.thumbElement===m;f||setTimeout(function(){requestAnimationFrame(function(){var g=a.thumbElement.getBoundingClientRect(),y=g[d?"left":"top"],w=g[d?"width":"height"],x=y+w,j=p[d?"clientX":"clientY"];if(!(y<=j&&j<=x)){var S=a.size,T=S*S/a.scrollSize;a.scrollBy(y0?1:0,c=this.isHorizontal?["X","width"]:["Y","height"],u=c[0],h=c[1],p=s/a*100,d=Math.max(0,t)/a*100;this.thumbElement.style.cssText+="".concat(h,": ").concat(p,"%;opacity: ").concat(l,";")+"transform: translate".concat(u,"(").concat(100/p*d,"%)")},i.destroy=function(){O(this.barElement,"wheel",this._onWheel),this.gesto.off(),this.off()},e}(gn),Dc=function(n){wn(e,n);function e(o,t,s){t===void 0&&(t={}),s===void 0&&(s={});var a=n.call(this)||this;return a._containerElement=o,a.offsetX=0,a.offsetY=0,a.containerWidth=0,a.containerHeight=0,a.viewportWidth=0,a.viewportHeight=0,a.viewportScrollWidth=0,a.viewportScrollHeight=0,a.scrollLeft=0,a.scrollTop=0,a._scrollTimer=0,a._zoomTimer=0,a._viewportElement=null,a._wheelContainerElement=null,a.dragFlag=!1,a.isLoop=!1,a._tempScale=[1,1],a._tempRect=null,a._tempRectTimer=null,a._onDestroys=[],a._asLeft=0,a._asTop=0,a.resize=function(){var l=a._containerElement,c=l.offsetWidth,u=l.offsetHeight,h=a._viewportElement,p=h.offsetWidth,d=h.offsetHeight,m=h.scrollWidth,v=h.scrollHeight;a.containerWidth=c,a.containerHeight=u,a.viewportWidth=p,a.viewportHeight=d,a.viewportScrollWidth=Math.max(p,m),a.viewportScrollHeight=Math.max(d,v),a.render(),a._scrollBy(0,0)},a._onScroll=function(){var l=a.wrapperElement,c=l.scrollLeft,u=l.scrollTop,h=a.zoom,p=h===void 0?M.zoom:h,d=c-a.scrollLeft,m=u-a.scrollTop,v=a.getScrollLeft(),f=a.getScrollTop();a.isLoop&&(a.isLoop=!1),a.scrollLeft=c,a.scrollTop=u,a.scrollTo(v+d/p,f+m/p)},a.onWheel=function(l){var c=a.options,u=c.pinchDirection,h=c.maxPinchWheel||1/0,p=l["".concat(a.wheelPinchKey,"Key")]||l.ctrlKey;if(c.useWheelPinch&&p){var d=l.deltaY,m=d>=0?1:-1,v=Math.min(h,Math.abs(d));d=m*v;var f=-d,g=Math.max(1+f*(c.wheelScale||.01),Ec);clearTimeout(a._tempRectTimer),a._tempRectTimer=window.setTimeout(function(){a._tempRect=null},100),a._triggerPinch({distance:v,scale:g,rotation:0,zoom:a.zoom*g,zoomX:a.zoomX*(u==="vertical"?1:g),zoomY:a.zoomY*(u==="horizontal"?1:g),inputEvent:l,isWheel:!0,clientX:l.clientX,clientY:l.clientY,ratioX:0,ratioY:0})}else if(c.useWheelScroll){var y=l.deltaX,d=l.deltaY;l.shiftKey&&!y&&(y=d,d=0),a.scrollBy(y/a.zoomX,d/a.zoomY)}else return;l.preventDefault()},a.onGestureStart=function(l){a._tempScale=[a.zoomX,a.zoomY],a._setClientRect(),l.preventDefault()},a.onGestureChange=function(l){if(l.preventDefault(),a.gesto.isFlag()||!a._tempScale){a._tempScale=[1,1];return}var c=l.scale,u=a._tempScale[0],h=a._tempScale[1],p=a.options.pinchDirection;a._triggerPinch({distance:0,scale:c,rotation:l.rotation,inputEvent:l,isWheel:!0,zoom:(u+h)*c/2,zoomX:u*(p==="vertical"?1:c),zoomY:h*(p==="horizontal"?1:c),clientX:l.clientX,clientY:l.clientY,ratioX:0,ratioY:0})},a.onGestureEnd=function(){},Wn(t)?(a._viewportElement=t,a.options=X(X({},M),s)):(a._viewportElement=o.children[0],a.options=X(X({},M),t)),a.init(),a}var i=e.prototype;return i.getContainer=function(){return this._containerElement},i.getWheelContainer=function(){return this._wheelContainerElement},i.getViewport=function(){return this._viewportElement},i.getWrapper=function(){return this.wrapperElement},i.geScrollArea=function(){return this.scrollAreaElement},i.destroy=function(){this.off(),this.gesto.unset(),this.verticalScrollbar.destroy(),this.horizontalScrollbar.destroy(),this.injectResult.destroy();var o=this._containerElement;this._onDestroys.forEach(function(t){t()}),O(this.wrapperElement,"scroll",this._onScroll),O(this._wheelContainerElement,"wheel",this.onWheel),O(o,"gesturestart",this.onGestureStart),O(o,"gesturechange",this.onGestureChange),O(o,"gesturesend",this.onGestureEnd),this.gesto=null,this.injectResult=null,this._containerElement=null,this._viewportElement=null,this.options=null},i.getScrollTop=function(o){o===void 0&&(o={});var t=!1,s=!1;Te(o)?(t=o.range,s=o.absolute):t=o;var a=this.zoomY,l=this.scrollTop/a+this.offsetY+(t?q(this.getRangeY()[0]):0);return s?l*a:l},i.getScrollLeft=function(o){o===void 0&&(o={});var t=!1,s=!1;Te(o)?(t=o.range,s=o.absolute):t=o;var a=this.zoomX,l=this.scrollLeft/a+this.offsetX+(t?q(this.getRangeX()[0]):0);return s?l*a:l},i.getScrollWidth=function(o){var t=this._getScrollRangeX(),s=this.zoomX,a=this.containerWidth/s+q(t[0])+t[1];return o?a:a*s},i.getScrollHeight=function(o){var t=this._getScrollRangeY(),s=this.zoomY,a=this.containerHeight/s+q(t[0])+t[1];return o?a:a*s},i.scrollCenter=function(o){o===void 0&&(o={}),this.resize();var t=this.zoomX,s=this.zoomY,a=-(this.containerWidth/t-this.viewportWidth)/2,l=-(this.containerHeight/s-this.viewportHeight)/2;return o.absolute&&(a*=t,l*=s),o.horizontal===!1&&(a=this.getScrollLeft()),o.vertical===!1&&(l=this.getScrollTop()),this.scrollTo(a,l,o)},i.setTo=function(o){var t=o.x,s=t===void 0?this.getScrollLeft():t,a=o.y,l=a===void 0?this.getScrollTop():a,c=o.zoom,u=c===void 0?[this.getZoomX(),this.getZoomY()]:c,h=o.duration,p=this,d=p.zoomX,m=p.zoomY,v=p.zoomRange,f=this,g=f.zoomOffsetX,y=g===void 0?M.zoomOffsetX:g,w=f.zoomOffsetY,x=w===void 0?M.zoomOffsetY:w;"zoomOffsetX"in o&&(y=o.zoomOffsetX),"zoomOffsetY"in o&&(x=o.zoomOffsetY);var j=Ie(u)?u:[u,u],S=j[0],T=j[1],_=this.zoomRangeX||v,E=this.zoomRangeY||v,C=ie(S,_[0],_[1]),A=ie(T,E[0],E[1]),z=Z("".concat(y),this.viewportWidth)*(1/d-1/C),k=Z("".concat(x),this.viewportHeight)*(1/m-1/A);this.scrollTo(s-z,l-k,{duration:h}),this.setZoom(u,{zoomOffsetX:y,zoomOffsetY:x,duration:h,zoomBase:"fixed"})},i.setBy=function(o){var t=o.x,s=t===void 0?0:t,a=o.y,l=a===void 0?0:a,c=o.zoom,u=c===void 0?[0,0]:c,h=Ie(u)?u:[u,u],p=h[0],d=h[1];this.setTo(X(X({},o),{x:this.getScrollLeft()+s,y:this.getScrollTop()+l,zoom:[this.zoomX+p,this.zoomY+d]}))},i.scrollBy=function(o,t,s){if(this._pauseScrollAnimation(),!s||!s.duration){var a=this.getScrollLeft(),l=this.getScrollTop();return s!=null&&s.absolute&&(a*=this.zoomX,l*=this.zoomY),this._scrollTo(a+o,l+t,s)}else return this._startScrollAnimation([o,t],s),!0},i.scrollTo=function(o,t,s){if(this._pauseScrollAnimation(),!s||!s.duration)return this._scrollTo(o,t,s);var a=this.getScrollLeft(),l=this.getScrollTop();return s!=null&&s.absolute&&(a*=this.zoomX,l*=this.zoomY),this.scrollBy(o-a,t-l,s)},i.zoomBy=function(o,t){this._pauseZoomAnimation();var s=Ie(o)?o:[o,o],a=s[0],l=s[1];!t||!t.duration?this._setZoom([this.zoomX+a,this.zoomY+l],t):this._startZoomAnimation([a,l],t)},i.setZoom=function(o,t){if(this._pauseZoomAnimation(),!t||!t.duration)this._setZoom(o,t);else{var s=Ie(o)?o:[o,o],a=s[0],l=s[1];this._startZoomAnimation([a-this.zoomX,l-this.zoomY],t)}},i.getViewportWidth=function(){return this.viewportWidth},i.getViewportHeight=function(){return this.viewportWidth},i.getViewportScrollWidth=function(){return this.viewportScrollWidth},i.getViewportScrollHeight=function(){return this.viewportScrollHeight},i.getContainerWidth=function(){return this.containerWidth},i.getContainerHeight=function(){return this.containerHeight},i.getZoom=function(){return(this.zoomX+this.zoomY)/2},i.getZoomX=function(){return this.zoomX},i.getZoomY=function(){return this.zoomY},i.getRangeX=function(o,t){return this._getRangeCoord("horizontal",o,t)},i.getRangeY=function(o,t){return this._getRangeCoord("vertical",o,t)},i.init=function(){var o=this,t,s=this._containerElement,a=this.options,l=pn(s),c=Ee(s),u=a.wrapperElement||s.querySelector(".".concat(Zn)),h=a.scrollAreaElement||s.querySelector(".".concat(Jn)),p=a.horizontalScrollElement||s.querySelector(".".concat(Ii)),d=a.verticalScrollElement||s.querySelector(".".concat(Ci));u||(u=l.createElement("div"),u.insertBefore(this._viewportElement,null),s.insertBefore(u,null)),this.wrapperElement=u,h||(h=l.createElement("div"),u.insertBefore(h,u.firstChild)),this.scrollAreaElement=h,_e(s,Oi),_e(u,Zn),_e(h,Jn);var m=new rr(s,"horizontal",p),v=new rr(s,"vertical",d);this.horizontalScrollbar=m,this.verticalScrollbar=v,m.on("scroll",function(w){o.scrollBy(w.delta/o.zoomX,0)}),v.on("scroll",function(w){o.scrollBy(0,w.delta/o.zoomY)}),m.isAppend&&s.insertBefore(m.barElement,null),v.isAppend&&s.insertBefore(v.barElement,null),this.injectResult=Di.inject(s,{nonce:this.options.cspNonce});var f=a.wheelContainer,g=null;if(f&&(fi(f)?g=l.querySelector(f):Wn(f)?g=f:("value"in f||"current"in f)&&(g=f.current||f.value)),g||(g=s),this._wheelContainerElement=g,this.gesto=new xi(s,{container:Ee(s),events:["touch","mouse"],preventWheelClick:(t=this.options.preventWheelClick)!==null&&t!==void 0?t:!0}).on("dragStart",function(w){var x=w.inputEvent,j=w.stop,S=w.datas;if(!o.useMouseDrag&&w.isMouseEvent){j();return}o._pauseScrollAnimation(),o.dragFlag=!1;var T=o.trigger("dragStart",w);if(T===!1){j();return}x.preventDefault(),S.startEvent=x}).on("drag",function(w){!o.options.usePinch||w.isPinch||o.useMouseDrag&&w.isMouseEvent?(o.trigger("drag",X(X({},w),{inputEvent:w.inputEvent})),Tc(w),o.scrollBy(-w.deltaX/o.zoomX,-w.deltaY/o.zoomY)):!o.dragFlag&&w.movement>a.pinchThreshold&&(o.dragFlag=!0,o.trigger("abortPinch",{inputEvent:w.datas.startEvent||w.inputEvent}))}).on("dragEnd",function(w){o.trigger("dragEnd",{isDrag:w.isDrag,isDouble:w.isDouble,inputEvent:w.inputEvent}),o._startScrollAnimationBySpeed(w.datas.speed)}).on("pinchStart",function(w){var x=w.inputEvent,j=w.datas,S=w.stop;x.preventDefault(),o._pauseScrollAnimation(),j.startZoom=[o.zoomX,o.zoomY];var T=o.trigger("pinchStart",{inputEvent:x});T===!1&&S(),o._setClientRect()}).on("pinch",function(w){var x=w.scale,j=o.options.pinchDirection;o._triggerPinch({rotation:w.rotation,distance:w.distance,scale:w.scale,inputEvent:w.inputEvent,isWheel:!1,zoom:w.datas.startZoom*x,zoomX:o.zoomX*(j==="vertical"?1:x),zoomY:o.zoomY*(j==="horizontal"?1:x),clientX:w.clientX,clientY:w.clientY,ratioX:0,ratioY:0})}).on("pinchEnd",function(){o._tempRect=null}),R(u,"scroll",this._onScroll),a.useResizeObserver){var y=new c.ResizeObserver(function(){o.resize()});y.observe(this._viewportElement),y.observe(this._containerElement),this._onDestroys.push(function(){y.disconnect()})}else R(c,"resize",this.resize),this._onDestroys.push(function(){O(c,"resize",o.resize)});(a.useWheelPinch||a.useWheelScroll)&&R(g,"wheel",this.onWheel,{passive:!1}),a.useGesture&&(R(s,"gesturestart",this.onGestureStart,{passive:!1}),R(s,"gesturechange",this.onGestureChange,{passive:!1})),this.resize()},i.render=function(){var o=this,t=o.offsetX,s=o.offsetY,a=o.zoomX,l=a===void 0?M.zoomX:a,c=o.zoomY,u=c===void 0?M.zoomY:c,h=o.translateZ,p=h===void 0?0:h;o.rangeX,o.rangeY,o.containerWidth,o.containerHeight;var d=this.options.useTransform,m=d===void 0?M.useTransform:d,v=-t*l,f=-s*u;this.scrollAreaElement.style.cssText="width:calc(100% + ".concat(this.getScrollAreaWidth(),"px);")+"height:calc(100% + ".concat(this.getScrollAreaHeight(),"px);");var g=this._viewportElement.style;m===!1?g.cssText+="position: relative; left: ".concat(v,"px; top: ").concat(f,"px; "):g.cssText+="transform-origin: 0 0;"+"transform:translate3d(".concat(v,"px, ").concat(f,"px, ").concat(p,"px) scale(").concat(l,", ").concat(u,");"),this.renderScroll()},i.renderScroll=function(){var o=this,t=o.zoomX,s=o.zoomY,a=o.containerWidth,l=o.containerHeight,c=this.horizontalScrollbar,u=this.verticalScrollbar;if(this.options.useBounceScrollBar){var h=this.getScrollLeft(!0)*t,p=this.getRangeX(!0),d=a+q(p[0])+q(p[1]),m=this.getScrollTop(!0)*s,v=this.getRangeY(!0),f=l+q(v[0])+q(v[1]);c.render(this.displayHorizontalScroll,h,a,d),u.render(this.displayVerticalScroll,m,l,f)}else{var g=this._getScrollRangeX(),y=this._getScrollRangeY(),h=this.getScrollLeft(),m=this.getScrollTop(),d=this.containerWidth+q(g[0])+g[1],f=this.containerHeight+q(y[0])+y[1];c.render(this.displayHorizontalScroll,h-g[0],a,d),u.render(this.displayVerticalScroll,m-y[0],l,f)}},i.move=function(o,t){var s=this.wrapperElement;s.scrollLeft=o,s.scrollTop=t},i.setDisplayVerticalScroll=function(o){this.options.displayVerticalScroll=o,this.renderScroll()},i.setDisplayHorizontalScroll=function(o){this.options.displayHorizontalScroll=o,this.renderScroll()},i._startZoomAnimation=function(o,t){var s=this;if(o){var a=t.duration,l=t.easing||Qn;nr(function(c){return s._setZoom([s.zoomX+o[0]*c,s.zoomY+o[1]*c],t)},function(c){s._zoomTimer=requestAnimationFrame(c)},{easing:l,duration:a})}},i._startScrollAnimation=function(o,t){var s=this;if(!(!o[0]&&!o[1])){var a=t.duration,l=t.easing||Qn;nr(function(c){return s._scrollBy(o[0]*c,o[1]*c,t)},function(c){s._scrollTimer=requestAnimationFrame(c)},{easing:l,duration:a})}},i._startScrollAnimationBySpeed=function(o){if(!(!o||!o[0]&&!o[1])){var t=-6e-4,s=Ni(o,t),a=Ic(o,t);return this._startScrollAnimation(a,{duration:s})}},i._pauseScrollAnimation=function(){cancelAnimationFrame(this._scrollTimer),this._scrollTimer=0},i._pauseZoomAnimation=function(){cancelAnimationFrame(this._zoomTimer),this._zoomTimer=0},i.getScrollAreaWidth=function(){var o=this.getRangeX(!0),t=o[0],s=o[1];return t||s?this.margin*2:0},i.getScrollAreaHeight=function(){var o=this.getRangeY(!0),t=o[0],s=o[1];return t||s?this.margin*2:0},i._triggerPinch=function(o){var t=o.clientX,s=o.clientY,a=o.zoomX,l=o.zoomY;this.useAutoZoom&&this._zoomByClient([a,l],t,s),this._tempRect||this._setClientRect();var c=this.zoomRange,u=this.zoomRangeX||c,h=this.zoomRangeY||c,p=this._tempRect,d=p.left,m=p.top,v=p.width,f=p.height,g=(t-d)/v*100,y=(s-m)/f*100;this.trigger("pinch",X(X({},o),{zoom:ie((a+l)/2,c[0],c[1]),zoomX:ie(a,u[0],u[1]),zoomY:ie(l,h[0],h[1]),ratioX:g,ratioY:y}))},i._setClientRect=function(){var o=this.getContainer().getBoundingClientRect();this._tempRect={left:o.left,top:o.top,width:o.width,height:o.height}},i._zoomByClient=function(o,t,s){this._tempRect||this._setClientRect();var a=this._tempRect,l=a.left,c=a.top,u=a.width,h=a.height,p=this.options,d=p.zoomOffsetX,m=p.zoomOffsetY;p.zoomOffsetX="".concat((t-l)/u*100,"%"),p.zoomOffsetY="".concat((s-c)/h*100,"%"),this._setZoom(o,{zoomBase:"screen"}),p.zoomOffsetX=d,p.zoomOffsetY=m},i._setZoom=function(o,t){t===void 0&&(t={});var s=t.zoomBase,a=this,l=a.containerWidth,c=a.containerHeight,u=a.zoomX,h=a.zoomY,p=a.zoomRange,d=this,m=d.zoomOffsetX,v=m===void 0?M.zoomOffsetX:m,f=d.zoomOffsetY,g=f===void 0?M.zoomOffsetY:f;"zoomOffsetX"in t&&(v=t.zoomOffsetX),"zoomOffsetY"in t&&(g=t.zoomOffsetY);var y=this.getScrollLeft(),w=this.getScrollTop(),x=Ie(o)?o:[o,o],j=x[0],S=x[1],T=this.zoomRangeX||p,_=this.zoomRangeY||p,E=ie(j,T[0],T[1]),C=ie(S,_[0],_[1]),A=this.options;A.zoomX=E,A.zoomY=C,A.zoom=(E+C)/2;var z=this.getScrollLeft(),k=this.getScrollTop(),P=0,H=0;s==="fixed"?(P=Z("".concat(v),this.viewportWidth),H=Z("".concat(g),this.viewportHeight)):s==="viewport"?(P=(-y+Z("".concat(v),this.viewportWidth))*u,H=(-w+Z("".concat(g),this.viewportHeight))*h):(P=Z("".concat(v),l),H=Z("".concat(g),c));var ht=y+P/u,Ye=w+H/h,ft=z+P/E,pt=k+H/C;this._scrollBy(ht-ft,Ye-pt,{zoom:!!(E-u||C-h)}),this.render()},i._scrollBy=function(o,t,s){var a=this.getScrollLeft(),l=this.getScrollTop();return s!=null&&s.absolute&&(a*=this.zoomX,l*=this.zoomY),this._scrollTo(a+o,l+t,s)},i._scrollTo=function(o,t,s){var a=this,l=this,c=l.scrollLeft,u=l.scrollTop,h=s==null?void 0:s.absolute;this._scrollToType("horizontal",o,h),this._scrollToType("vertical",t,h);var p=this.scrollLeft,d=this.scrollTop;this.render();var m=this.getScrollLeft(),v=this.getScrollTop();return this._emitScrollEvent(m,v,s==null?void 0:s.zoom),Math.round(c)!==p||Math.round(u)!==d?(this.isLoop=!0,this.move(p,d),requestAnimationFrame(function(){if(a.isLoop){a.isLoop=!1;var f=a.wrapperElement,g=f.scrollLeft,y=f.scrollTop;a.scrollLeft=g,a.scrollTop=y,(p!==Math.round(g)||d!==Math.round(y))&&a._scrollTo(m,v)}}),!1):!0},i._scrollToType=function(o,t,s){var a=er[o],l=this,c=l.margin,u=c===void 0?M.margin:c,h=l.threshold,p=h===void 0?M.threshold:h,d=this["scroll".concat(a.pos)],m=this["getRange".concat(a.coord)](!0,!0),v=m[0],f=m[1],g=Math.round(d),y=this["getScrollArea".concat(a.size)](),w=this["zoom".concat(a.coord)];s&&(t=t/w);var x=t*w;if(v===f)g=v,t=v/w;else if(x-p<=v){var j=Math.max(0,x-v);g=j,t=(v+j)/w}else if(x+p>=f){var S=Math.max(0,f-x);g=y-S,t=(f-S)/w}else gy-p&&(g-=u);g=Math.round(g),this["scroll".concat(a.pos)]=g,this["offset".concat(a.coord)]=t-g/w},i._getRangeCoord=function(o,t,s){var a=this,l=a.margin,c=l===void 0?M.margin:l,u=a.threshold,h=er[o],p=tr(this["range".concat(h.coord)],M["range".concat(h.coord)]),d=tr(this["rangeOffset".concat(h.coord)],M["rangeOffset".concat(h.coord)]),m=this["zoom".concat(h.coord)],v=Cc(this["getScroll".concat(h.pos)](),c,p,u,s);return t?[v[0]*m+d[0],this.options.useOverflowScroll?Math.max(this["viewport".concat(h.size)]*m-this["container".concat(h.size)],v[1]*m+d[1]):v[1]*m+d[1]]:[v[0]+d[0],v[1]+d[1]]},i._emitScrollEvent=function(o,t,s){var a=this._asLeft,l=this._asTop;!s&&a===o&&l===t||(this._asLeft=o,this._asTop=t,this.trigger("scroll",{scrollLeft:o,scrollTop:t,zoomX:this.zoomX,zoomY:this.zoomY}))},i._getScrollRangeX=function(){var o=this.getScrollLeft(),t=this.rangeX,s=t[0],a=t[1];this.useOverflowScroll&&isFinite(a)&&(a=Math.max(a,this.viewportWidth-this.containerWidth/this.zoomX));var l=Math.min(0,isFinite(s)?Math.min(s,o):o),c=Math.max(0,isFinite(a)?Math.max(a,o):o),u=this.viewportScrollWidth,h=Math.max(this.containerWidth/this.zoomX,u)-u,p=Math.min(0,h+l);return[p,c]},i._getScrollRangeY=function(){var o=this.getScrollTop(),t=this.rangeY,s=t[0],a=t[1];this.useOverflowScroll&&isFinite(a)&&(a=Math.max(a,this.viewportHeight-this.containerHeight/this.zoomY));var l=Math.min(0,isFinite(s)?Math.min(s,o):o),c=Math.max(0,isFinite(a)?Math.max(a,o):o),u=this.viewportScrollHeight,h=Math.max(this.containerHeight/this.zoomY,u)-u,p=Math.min(0,h+l);return[p,c]},e=xc([oc(xn,function(o,t){var s={enumerable:!0,configurable:!0,get:function(){return this.options[t]}},a=mi("set ".concat(t));o[a]?s.set=function(l){this[a](l)}:s.set=function(l){this.options[t]=l},Object.defineProperty(o,t,s)})],e),e}(gn),Oc=function(n){wn(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Dc);const Rc=Oc,oe=window.React.createElement,Nc=window.React.PureComponent;var nn=function(n,e){return nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(i[t]=o[t])},nn(n,e)};function $c(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");nn(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}var st=function(){return st=Object.assign||function(e){for(var i,o=1,t=arguments.length;o=0;l--)(a=n[l])&&(s=(t<3?a(s):t>3?a(e,i,s):a(e,i))||s);return t>3&&s&&Object.defineProperty(e,i,s),s}var ir=Ri.map(function(n){return mi("on ".concat(n))}),Pc=function(n){$c(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}var i=e.prototype;return i.render=function(){var o=this.props.className;return oe("div",{className:"".concat(o||""," ").concat(Oi),ref:Ce(this,"containerElement")},oe("div",{className:"infinite-viewer-wrapper",ref:Ce(this,"wrapperElement")},oe("div",{className:"infinite-viewer-scroll-area",ref:Ce(this,"scrollAreaElement")}),this.props.children),oe("div",{className:"infinite-viewer-scroll-bar infinite-viewer-horizontal-scroll-bar",ref:Ce(this,"horizontalScrollElement")},oe("div",{className:"infinite-viewer-scroll-thumb"})),oe("div",{className:"infinite-viewer-scroll-bar infinite-viewer-vertical-scroll-bar",ref:Ce(this,"verticalScrollElement")},oe("div",{className:"infinite-viewer-scroll-thumb"})))},i.componentDidMount=function(){var o=this,t=this.props,s={};Sc.forEach(function(a){a in t&&typeof t[a]<"u"&&(s[a]=t[a])}),this.infiniteViewer=new Rc(this.containerElement,this.scrollAreaElement.nextElementSibling,st(st({},s),{wrapperElement:this.wrapperElement,scrollAreaElement:this.scrollAreaElement,horizontalScrollElement:this.horizontalScrollElement,verticalScrollElement:this.verticalScrollElement})),Ri.forEach(function(a,l){o.infiniteViewer.on(a,function(c){var u=o.props,h=u[ir[l]]&&u[ir[l]](c);h===!1&&c.stop()})})},i.componentDidUpdate=function(o){var t=this.props,s=this.infiniteViewer;xn.forEach(function(a){a in t&&s[a]!==t[a]&&(s[a]=t[a])})},i.componentWillUnmount=function(){this.infiniteViewer.destroy()},i.getElement=function(){return this.containerElement},Fc([sc(_c)],e.prototype,"infiniteViewer",void 0),e}(Nc);const kc=Pc,Mc=window.React.forwardRef,Ac=window.React.useImperativeHandle,or=window.React.useState,It=window.antd.Form,zc=window.antd.Input,Lc=window.antd.Modal;function Bc(n,e){const[i,o]=or(!1),[t,s]=or(),[a]=It.useForm();Ac(e,()=>({open(u,h){o(!0),s({callback:h}),a.setFieldsValue({title:u})}}));const l=()=>{o(!1)},c=()=>{a.validateFields().then(u=>{t==null||t.callback(u.title),o(!1)}).catch(u=>{console.log(u)})};return r.jsx(r.Fragment,{children:r.jsx(Lc,{title:"节点修改",open:i,onCancel:l,onOk:c,children:r.jsx(It,{form:a,style:{width:"80%",margin:"20px auto 0"},children:r.jsx(It.Item,{label:"名称",name:"title",rules:[{required:!0,message:"请输入节点名称"}],children:r.jsx(zc,{placeholder:"请输入节点名称"})})})})})}const Yc=Mc(Bc),Xc="_actionBox_wlxnw_2",Vc="_menuAction_wlxnw_8",Hc="_category_wlxnw_18",Wc="_navTitle_wlxnw_24",qc="_subItem_wlxnw_27",Uc="_checked_wlxnw_37",Gc="_content_wlxnw_40",Zc="_desc_wlxnw_44",Jc="_descTitle_wlxnw_44",Kc="_descInfo_wlxnw_47",b={actionBox:Xc,menuAction:Vc,category:Hc,navTitle:Wc,subItem:qc,checked:Uc,content:Gc,desc:Zc,descTitle:Jc,descInfo:Kc},Qc=window.React.useEffect,et=window.antd.Form,eu=window.antd.Divider,tu=window.antd.Input,nu=window.antd.Switch,tt=window.antd.Radio,ru=({form:n})=>(Qc(()=>{n.setFieldsValue({jumpType:"route"})},[]),r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"跳转到指定页面。1. 系统内跳转会通过自身路由实现;2. 跨服务跳转主要是基于microApp的父子应用通信方式,主应用需要监听数据,并添加跳转代码;3. 超链接跳转通过window.open或location方式实现;"}),r.jsx(eu,{})]}),r.jsx(et.Item,{label:"跳转方式",name:"jumpType",children:r.jsxs(tt.Group,{buttonStyle:"solid",children:[r.jsx(tt.Button,{value:"route",children:"系统内跳转"}),r.jsx(tt.Button,{value:"micro",children:"跨服务跳转"}),r.jsx(tt.Button,{value:"link",children:"超链接跳转"})]})}),r.jsx(et.Item,{label:"页面地址",name:"url",rules:[{required:!0,message:"请输入跳转地址"}],children:r.jsx(tu.TextArea,{placeholder:"请输入页面地址",rows:4})}),r.jsx(et.Item,{noStyle:!0,shouldUpdate:!0,children:()=>n.getFieldValue("jumpType")==="link"?r.jsx(et.Item,{label:"新窗口",name:"isNewWindow",children:r.jsx(nu,{})}):null})]})),iu=window.antd.Divider,ou=()=>r.jsx(r.Fragment,{children:r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"刷新当前页面。"}),r.jsx(iu,{})]})}),su=window.antd.Form,sr=window.antd.Select,au=window.antd.Divider,ar=()=>{const{modals:n}=N(e=>{const i=[];return Object.values(e.page.elementsMap).forEach(o=>{if(o.type==="Modal"){const t=o.config.props.title;i.push({id:o.id,title:typeof t=="string"?t:t.type==="static"?t.value:"动态标题"})}}),{modals:i}});return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发一个按钮、表单等事件动作后,可以通过此行为来打开一个弹框,前提是需要先创建一个弹框。"}),r.jsx(au,{})]}),r.jsx(su.Item,{label:"选择弹框",name:"target",rules:[{required:!0,message:"请选择弹框组件"}],children:r.jsx(sr,{children:n.map(e=>r.jsx(sr.Option,{value:e.id,children:`${e.title} (${e.id})`},e.id))})})]})},lu=window.antd.Divider,Ct=window.antd.Form,cu=window.antd.Input,uu=window.antd.InputNumber,Oe=window.antd.Radio,du=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"通过message组件显示反馈提示。"}),r.jsx(lu,{})]}),r.jsx(Ct.Item,{label:"提示类型",name:"type",children:r.jsxs(Oe.Group,{buttonStyle:"solid",optionType:"button",children:[r.jsx(Oe,{value:"success",children:"成功"}),r.jsx(Oe,{value:"info",children:"信息"}),r.jsx(Oe,{value:"warning",children:"警告"}),r.jsx(Oe,{value:"error",children:"错误"})]})}),r.jsx(Ct.Item,{label:"提示内容",name:"content",rules:[{required:!0,message:"请输入提示内容"}],children:r.jsx(cu,{placeholder:"输入提示内容"})}),r.jsx(Ct.Item,{label:"持续时间(秒)",name:"duration",tooltip:"单位是秒,表示几秒后,提示消息消失。",rules:[{required:!0,message:"请输入持续时间"}],children:r.jsx(uu,{placeholder:"eg: 3"})})]}),Re=window.antd.Form,se=window.antd.Select,hu=window.antd.Divider,lr=window.antd.Input,Ne=window.antd.Radio,fu=window.antd.InputNumber,pu=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"点击一个按钮,可以通过此行为来打开一个消息通知弹框,只需要配置通知内容即可。"}),r.jsx(hu,{})]}),r.jsx(Re.Item,{label:"通知类型",name:"type",rules:[{required:!0,message:"请选择弹框类型"}],children:r.jsxs(Ne.Group,{buttonStyle:"solid",optionType:"button",children:[r.jsx(Ne.Button,{value:"info",children:"信息"}),r.jsx(Ne.Button,{value:"success",children:"成功"}),r.jsx(Ne.Button,{value:"warning",children:"警告"}),r.jsx(Ne.Button,{value:"error",children:"错误"})]})}),r.jsx(Re.Item,{label:"通知标题",name:"message",rules:[{required:!0,message:"请输入标题"}],children:r.jsx(lr,{placeholder:"请输入通知标题"})}),r.jsx(Re.Item,{label:"通知内容",name:"description",rules:[{required:!0,message:"请输入内容"}],children:r.jsx(lr,{placeholder:"请输入通知内容"})}),r.jsx(Re.Item,{label:"通知位置",name:"placement",rules:[{required:!0,message:"请选择通知位置"}],children:r.jsxs(se,{placeholder:"请选择通知位置",children:[r.jsx(se.Option,{value:"top",children:"top"}),r.jsx(se.Option,{value:"topLeft",children:"topLeft"}),r.jsx(se.Option,{value:"topRight",children:"topRight"}),r.jsx(se.Option,{value:"bottom",children:"bottom"}),r.jsx(se.Option,{value:"bottomLeft",children:"bottomLeft"}),r.jsx(se.Option,{value:"bottomRight",children:"bottomRight"})]})}),r.jsx(Re.Item,{label:"持续时间(秒)",name:"duration",tooltip:"单位是秒,表示几秒后,消息通知消失。",rules:[{required:!0,message:"请输入持续时间"}],children:r.jsx(fu,{placeholder:"eg: 3"})})]}),$e=window.antd.Form,pe=window.antd.Select,gu=window.antd.Divider,nt=window.antd.Input,mu=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"点击一个按钮,可以通过此行为来打开一个确认弹框,只需要配置确认弹框内容即可。"}),r.jsx(gu,{})]}),r.jsx($e.Item,{label:"确认框类型",name:"type",rules:[{required:!0,message:"请选择弹框类型"}],children:r.jsxs(pe,{placeholder:"请选择确认框类型",children:[r.jsx(pe.Option,{value:"confirm",children:"确认框"}),r.jsx(pe.Option,{value:"info",children:"信息框"}),r.jsx(pe.Option,{value:"success",children:"成功框"}),r.jsx(pe.Option,{value:"warning",children:"警告框"}),r.jsx(pe.Option,{value:"error",children:"错误框"})]})}),r.jsx($e.Item,{label:"确认标题",name:"title",rules:[{required:!0,message:"请输入标题"}],children:r.jsx(nt,{placeholder:"请输入确认标题"})}),r.jsx($e.Item,{label:"显示内容",name:"content",rules:[{required:!0,message:"请输入内容"}],children:r.jsx(nt,{placeholder:"请输入确认内容"})}),r.jsx($e.Item,{label:"确认名称",name:"okText",rules:[{required:!0,message:"请输入确认按钮名称"}],children:r.jsx(nt,{placeholder:"请输入确认按钮名称"})}),r.jsx($e.Item,{label:"取消名称",name:"cancelText",rules:[{required:!0,message:"请输入取消按钮名称"}],children:r.jsx(nt,{placeholder:"请输入取消按钮名称"})})]}),cr=window.antd.Form,vu=window.antd.Divider,wu=window.antd.Input,ur=window.antd.Select,xu=window.React.useRef,dr=({type:n})=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"点击一个按钮,可以通过此行为来发送一个请求。"}),r.jsx(vu,{})]}),r.jsx(cr.Item,{label:"配置请求",name:"id",rules:[{required:!0,message:"请选择请求接口"}],children:r.jsx(yu,{})}),n==="download"&&r.jsx(cr.Item,{label:"文件名称",name:"filename",tooltip:"优先从请求头获取filename作为文件名称,其次获取此处的文件名称",children:r.jsx(wu,{placeholder:"eg: filename.xls"})})]}),yu=({value:n,onChange:e})=>{const i=N(s=>s.page.apis),o=xu(),t=()=>{var s;(s=o.current)==null||s.showModal(n)};return r.jsxs(r.Fragment,{children:[r.jsx(ur,{placeholder:"请选择接口",showSearch:!0,allowClear:!0,value:n,onChange:e,style:{width:"90%"},children:Object.values(i).map(s=>r.jsx(ur.Option,{value:s.id,children:s.name},s.id))}),r.jsx(Yr,{onClick:t,style:{marginLeft:10}}),r.jsx(hn,{update:s=>e(s),ref:o})]})},Fe=window.antd.Form,ju=window.antd.Divider,ge=window.antd.Radio,bu=window.antd.TreeSelect,Su=()=>{const n=N(e=>e.page.elements);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发事件动作后,可以指定目标组件显示和隐藏。"}),r.jsx(ju,{})]}),r.jsx(Fe.Item,{label:"目标组件",name:"target",rules:[{required:!0,message:"请选择目标组件"}],children:r.jsx(bu,{allowClear:!0,treeData:n,fieldNames:{label:"name",value:"id",children:"elements"},placeholder:"请选择目标组件"})}),r.jsx(Fe.Item,{label:"显示类型",name:"showType",children:r.jsxs(ge.Group,{children:[r.jsx(ge,{value:"static",children:"静态"}),r.jsx(ge,{value:"expression",children:"表达式"})]})}),r.jsx(Fe.Item,{noStyle:!0,shouldUpdate:!0,children:e=>e.getFieldValue("showType")==="static"?r.jsx(Fe.Item,{label:"显示结果",name:"showResult",children:r.jsxs(ge.Group,{children:[r.jsx(ge,{value:"show",children:"显示"}),r.jsx(ge,{value:"hidden",children:"隐藏"})]})}):r.jsx(Fe.Item,{label:"表达式",name:"expression",children:r.jsx(U,{})})})]})},Pe=window.antd.Form,_u=window.antd.Divider,me=window.antd.Radio,Eu=window.antd.TreeSelect,Tu=()=>{const n=N(e=>e.page.elements);return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发事件动作后,可以指定目标组件禁用,目前主要用于表单组件和按钮组件。"}),r.jsx(_u,{})]}),r.jsx(Pe.Item,{label:"目标组件",name:"target",rules:[{required:!0,message:"请选择目标组件"}],children:r.jsx(Eu,{allowClear:!0,treeData:n,fieldNames:{label:"name",value:"id",children:"elements"},placeholder:"请选择目标组件"})}),r.jsx(Pe.Item,{label:"禁用类型",name:"disableType",children:r.jsxs(me.Group,{children:[r.jsx(me,{value:"static",children:"静态"}),r.jsx(me,{value:"expression",children:"表达式"})]})}),r.jsx(Pe.Item,{noStyle:!0,shouldUpdate:!0,children:e=>e.getFieldValue("disableType")==="static"?r.jsx(Pe.Item,{label:"禁用结果",name:"disableResult",children:r.jsxs(me.Group,{children:[r.jsx(me,{value:!1,children:"启用"}),r.jsx(me,{value:!0,children:"禁用"})]})}):r.jsx(Pe.Item,{label:"表达式",name:"expression",tooltip:"表达式需要返回布尔类型,true为禁用,false为启用",children:r.jsx(U,{readOnly:!0})})})]})},Dt=window.antd.Form,Iu=window.antd.TreeSelect,Cu=window.antd.Divider,hr=window.antd.Select,Du=window.antd.Input,Ou=window.React.useEffect,Ru=window.React.useState,Nu=({form:n})=>{const e=N(),[i,o]=Ru([]);Ou(()=>{const a=n.getFieldValue("target");if(!a)return;const l=e.page.elementsMap[a];l&&o(l.methods||[])},[n==null?void 0:n.getFieldValue("target")]);const t=a=>{const l=e.page.elementsMap[a];l&&o(l.methods||[])},s=a=>{n.setFieldValue("methodName",a)};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"事件触发后,可以调用目标组件提供的方法,并自动传入参数。比如:表格的搜索、表单的提交、重置等。"}),r.jsx(Cu,{})]}),r.jsx(Dt.Item,{label:"目标组件",name:"target",rules:[{required:!0,message:"请选择目标组件"}],children:r.jsx(Iu,{allowClear:!0,placeholder:"请选择目标组件",treeDefaultExpandAll:!0,fieldNames:{label:"type",value:"id",children:"elements"},treeData:e.page.elements,onChange:t})}),r.jsx(Dt.Item,{label:"组件方法",name:"method",rules:[{required:!0,message:"请选择调用的方法"}],children:r.jsx(hr,{onChange:a=>{var l;return s((l=i.find(c=>c.name===a))==null?void 0:l.title)},placeholder:"请选择要调用的组件方法",children:i.map(a=>r.jsx(hr.Option,{value:a.name,children:a.title},a.name))})}),r.jsx(Dt.Item,{label:"方法名称",name:"methodName",hidden:!0,children:r.jsx(Du,{})})]})},ae=window.antd.Form,fr=window.antd.Select,$u=window.antd.Divider,Fu=window.antd.Input,ve=window.antd.Radio,Pu=window.React.useEffect,ku=window.React.useState,Mu=({form:n})=>{const e=N(s=>s.page.variables),[i,o]=ku("string");Pu(()=>{const s=n.getFieldValue("variableType");o(s)},[]);const t=s=>{var l;const a=(l=e.find(c=>c.name===s))==null?void 0:l.type;o(a),n.setFieldValue("variableType",a)};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"给页面全局变量动态赋值。页面中支持绑定动态变量的地方都可以使用此功能来添加动态值。"}),r.jsx($u,{})]}),r.jsx(ae.Item,{label:"赋值类型",name:"assigmentType",children:r.jsxs(ve.Group,{buttonStyle:"solid",children:[r.jsx(ve.Button,{value:"assigment",children:"变量赋值"}),r.jsx(ve.Button,{value:"reset",children:"变量重置"})]})}),r.jsx(ae.Item,{label:"选择变量",name:"name",wrapperCol:{span:16},rules:[{required:!0,message:"请选择变量"}],children:r.jsx(fr,{onChange:s=>t(s),children:e.map(s=>r.jsx(fr.Option,{value:s.name,children:s.name},s.name))})}),r.jsx(ae.Item,{label:"数据类型",name:"variableType",hidden:!0,children:r.jsx(Fu,{})}),r.jsx(ae.Item,{noStyle:!0,shouldUpdate:!0,children:s=>{if(s.getFieldValue("assigmentType")==="assigment")return r.jsx(ae.Item,{label:"赋值方式",name:"assigmentWay",wrapperCol:{span:16},tooltip:"动态赋值会默认接收上一个行为的数据作为变量值,比如上一个行为是接口请求",rules:[{required:!0,message:"请选择赋值方式"}],children:r.jsxs(ve.Group,{buttonStyle:"solid",children:[r.jsx(ve.Button,{value:"static",children:"静态赋值"}),r.jsx(ve.Button,{value:"dynamic",children:"动态赋值"})]})})}}),r.jsx(ae.Item,{noStyle:!0,shouldUpdate:!0,children:s=>{const{assigmentType:a,assigmentWay:l}=s.getFieldsValue();if(a==="assigment"&&l==="static")return r.jsxs(ae.Item,{label:"变量值",name:"value",wrapperCol:{span:16},rules:[{required:!0,message:"请输入变量值"}],children:[i==="string"||i==="number"||i==="boolean"?r.jsx(U,{}):null,(i==="array"||i==="object")&&r.jsx(Q,{height:"250px",language:"json"})]})}})]})},Au=()=>Ui.get("/robot/chat/groups"),zu=window.antd.Divider,ke=window.antd.Form,pr=window.antd.Input,Ot=window.antd.Radio,gr=window.antd.Select,Lu=window.React.useEffect,Bu=window.React.useState,Yu=()=>{const[n,e]=Bu([]);return Lu(()=>{Au().then(i=>{e(i.items)})},[]),r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发事件后,可以通过此功能发送飞书消息。"}),r.jsx(zu,{})]}),r.jsx(ke.Item,{label:"消息类型",name:"msg_type",rules:[{required:!0,message:"请选择消息类型"}],children:r.jsxs(Ot.Group,{buttonStyle:"solid",optionType:"button",children:[r.jsx(Ot.Button,{value:"text",children:"文本消息"}),r.jsx(Ot.Button,{value:"interactive",children:"卡片消息"})]})}),r.jsx(ke.Item,{noStyle:!0,shouldUpdate:!0,children:i=>i.getFieldValue("msg_type")==="text"?r.jsx(ke.Item,{label:"消息内容",name:"content",rules:[{required:!0,message:"请输入消息内容"}],children:r.jsx(pr,{placeholder:"请输入消息内容"})}):r.jsx(ke.Item,{label:"卡片模板",name:"template_id",tooltip:"去飞书创建卡片模板后,复制ID到此处",rules:[{required:!0,message:"请输入卡片模板ID"}],children:r.jsx(pr,{placeholder:"请输入卡片模板ID"})})}),r.jsx(ke.Item,{label:"接收群组",name:"receive_id",tooltip:"如果没有对应群组,需要先添加机器人到对应群组。当前暂不支持发送到某个用户。",rules:[{required:!0,message:"请选择消息发送的群组"}],children:r.jsx(gr,{placeholder:"请选择",children:n.map(i=>r.jsx(gr.Option,{value:i.chat_id,children:i.name},i.chat_id))})})]})},Xu=window.antd.Divider,Rt=window.antd.Form,mr=window.antd.Input,Vu=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发事件后,创建知识库副本,相当于复制。此功能可以用来创建周报。"}),r.jsx(Xu,{})]}),r.jsx(Rt.Item,{label:"空间ID",name:"space_id",tooltip:"打开知识库,点击左下角的设置就可以在地址栏中看到当前的SpaceId",rules:[{required:!0,message:"请输入空间ID"}],children:r.jsx(mr,{placeholder:"请输入空间ID"})}),r.jsx(Rt.Item,{label:"节点Token",name:"node_token",tooltip:"创建副本时,需要指定基于哪个节点进行创建,打开该知识库,地址栏末尾的即为Token",rules:[{required:!0,message:"请输入节点Token"}],children:r.jsx(mr,{placeholder:"请输入节点Token"})}),r.jsx(Rt.Item,{label:"知识库名称",name:"title",rules:[{required:!0,message:"请输入知识库名称"}],children:r.jsx(U,{placeholder:"请输入知识库名称"})})]}),Hu=window.antd.Divider,Wu=window.antd.Form,qu=window.antd.Input,Uu=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsxs("p",{className:b.descInfo,children:["复制文本内容至粘贴板,支持模板字符串。例如:https://xxx-v.marsview.cc/id?a=","${name}"]}),r.jsx(Hu,{})]}),r.jsx(Wu.Item,{label:"复制内容",name:"content",tooltip:"如果内容包含模板语法,请确保事件流的上一步操作返回了改字段。",children:r.jsx(qu.TextArea,{placeholder:"输入复制内容,支持模板字符串语法。",rows:5})})]}),Gu=window.antd.Divider,Zu=window.antd.Form,Ju=window.antd.InputNumber,Ku=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"触发动作后,会执行setTimeout做延迟。比如:延迟3秒执行下一个任务。"}),r.jsx(Gu,{})]}),r.jsx(Zu.Item,{label:"时间(秒)",name:"duration",rules:[{required:!0,message:"请输入持续时间"}],children:r.jsx(Ju,{placeholder:"eg: 3"})})]}),Qu=window.antd.Divider,ed=window.antd.Form,td=()=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:b.desc,children:[r.jsx("h3",{className:b.descTitle,children:"说明"}),r.jsx("p",{className:b.descInfo,children:"执行JS脚本,比如修改参数,获取变量、表单值、Store数据,以及对数据进行二次加工。"}),r.jsx(Qu,{})]}),r.jsx(ed.Item,{label:"运行脚本",name:"scripts",rules:[{required:!0,message:"请输入要执行的脚本"}],children:r.jsx(Q,{height:"260px",language:"javascript"})})]}),rt=window.antd.Form,nd=window.antd.Input,rd=window.antd.Space,id=window.antd.Button,od=()=>r.jsx(rt.Item,{label:"发送数据",children:r.jsx(rt.List,{name:["data"],children:(n,{add:e,remove:i})=>r.jsxs(r.Fragment,{children:[n.map(({name:o})=>r.jsxs(rd,{align:"baseline",style:{marginBottom:20,alignItems:"center"},children:[r.jsx(rt.Item,{name:[o,"key"],noStyle:!0,labelCol:{span:0},wrapperCol:{span:24},children:r.jsx(nd,{placeholder:"参数名"})}),r.jsx(rt.Item,{name:[o,"value"],noStyle:!0,children:r.jsx(U,{placeholder:"参数值"})}),r.jsx(G,{onClick:()=>e({key:""},o+1)}),r.jsx(uo,{onClick:()=>i(o)})]},"data"+o)),r.jsx(id,{block:!0,style:{marginBottom:10},onClick:()=>e({key:""}),children:"增加参数"})]})})}),sd=window.antd.Modal,vr=window.antd.Form,ad=window.React.forwardRef,ld=window.React.useImperativeHandle,Nt=window.React.useState,cd=(n,e)=>{var v;const[i,o]=Nt(!1),[t,s]=Nt({}),[a,l]=Nt({}),c=[{label:"页面",key:"page-nav",children:[{label:"跳转链接",key:"jumpLink",render:()=>r.jsx(ru,{form:d})},{label:"刷新页面",key:"reloadPage",render:()=>r.jsx(ou,{})}]},{label:"弹框",key:"modal-nav",children:[{label:"打开弹框",key:"openModal",render:()=>r.jsx(ar,{})},{label:"关闭弹框",key:"closeModal",render:()=>r.jsx(ar,{})},{label:"确认框",key:"showConfirm",render:()=>r.jsx(mu,{})},{label:"全局提示",key:"message",render:()=>r.jsx(du,{})},{label:"消息通知",key:"notifacation",render:()=>r.jsx(pu,{})}]},{label:"请求",key:"request-nav",children:[{label:"发送请求",key:"request",render:()=>r.jsx(dr,{type:"request"})},{label:"文件下载",key:"download",render:()=>r.jsx(dr,{type:"download"})}]},{label:"组件",key:"component-nav",children:[{label:"组件显隐",key:"visible",render:()=>r.jsx(Su,{})},{label:"组件禁用",key:"disable",render:()=>r.jsx(Tu,{})},{label:"组件方法",key:"methods",render:()=>r.jsx(Nu,{form:d})},{label:"变量赋值",key:"variable",render:()=>r.jsx(Mu,{form:d})}]},{label:"飞书",key:"feishu",children:[{label:"发送消息",key:"sendMessage",render:()=>r.jsx(Yu,{})},{label:"创建知识库副本",key:"createNode",render:()=>r.jsx(Vu,{})}]},{label:"其他",key:"other-nav",children:[{label:"复制内容",key:"copy",render:()=>r.jsx(Uu,{})},{label:"定时器",key:"setTimeout",render:()=>r.jsx(Ku,{})},{label:"脚本运行",key:"script",render:()=>r.jsx(td,{})}]}],u=async()=>{try{await d.validateFields();const f=d.getFieldsValue();if(f.assigmentType==="assigment"&&f.assigmentWay==="static"&&(f.variableType==="array"||f.variableType==="object"))try{f.value=typeof f.value=="string"?JSON.parse(f.value||""):f.value||""}catch(g){console.error(g);return}a.callback({actionType:t.key,actionName:t.label,...f}),o(!1)}catch(f){console.log(f)}},h=()=>{o(!1)},p=f=>{d.resetFields(),f.key==="variable"?d.setFieldsValue({assigmentType:"assigment",assigmentWay:"static"}):f.key==="showConfirm"?d.setFieldsValue({type:"confirm",title:"确认",content:"确定要执行此操作吗?",okText:"确认",cancelText:"取消"}):f.key==="message"?d.setFieldsValue({type:"success",content:"操作成功",duration:3}):f.key==="notifacation"?d.setFieldsValue({type:"info",message:"通知",description:"操作成功",placement:"topRight",duration:4.5}):f.key==="setTimeout"?d.setFieldsValue({duration:3}):f.key==="visible"?d.setFieldsValue({showType:"static",showResult:"show",expression:""}):f.key==="disable"?d.setFieldsValue({disableType:"static",disableResult:!0,expression:""}):f.key==="sendMessage"?d.setFieldsValue({msg_type:"text",content:"你好,我是飞书机器人"}):f.key==="script"&&d.setFieldsValue({scripts:`/** +* 触发动作后,会执行该函数 +* 变量: variable +* 事件参数: eventParams +*/ +function run(){ + +} +`}),s({key:f.key,label:f.label,render:f.render})};ld(e,()=>({open(f,g){var y;if(l({callback:g}),d.resetFields(),f!=null&&f.actionType)for(let w=0;wj.key===f.actionType))==null?void 0:y[0];if(x){s({key:x.key,label:x.label,render:x.render}),d.setFieldsValue(f);break}}else s({}),d.resetFields();o(!0)}}));const[d]=vr.useForm(),m={labelCol:{span:6},wrapperCol:{span:16}};return r.jsx(sd,{title:"事件行为配置",width:800,open:i,okText:"确认",cancelText:"取消",onOk:u,onCancel:h,children:r.jsxs("div",{className:b.actionBox,children:[r.jsx("div",{className:b.menuAction,children:r.jsx("ul",{children:c.map(f=>r.jsxs("li",{className:b.category,children:[r.jsx("span",{className:b.navTitle,children:f.label}),r.jsx("ul",{children:f.children.map(g=>r.jsx("li",{className:`${b.subItem} ${t.key===g.key?b.checked:""}`,onClick:()=>p(g),children:r.jsx("span",{children:g.label})},g.key))})]},f.key))})}),r.jsx("div",{className:b.content,children:r.jsx(vr,{form:d,...m,children:t!=null&&t.key?r.jsxs(r.Fragment,{children:[(v=t.render)==null?void 0:v.call(t),r.jsx(od,{})]}):r.jsx("div",{style:{textAlign:"center",lineHeight:"300px"},children:"请选择要执行的动作"})})})]})})},ud=ad(cd),dd=window.React.forwardRef,hd=window.React.useImperativeHandle,wr=window.React.useRef,fd=window.React.useState;function pd(n,e){const i=wr(),o=wr(),[t,s]=fd([]);hd(e,()=>({setNodeList(w){w.length===0?s([{id:"start",type:"start",title:"开始"},{id:"end",type:"end",title:"结束"}]):s(()=>[...w])},getNodeList:()=>t}));const a=()=>r.jsxs("div",{className:"start-node",children:[r.jsx("div",{className:"circle-btn",children:"开始"}),r.jsx("span",{className:"arrow-line"}),r.jsx(p,{id:"start"})]}),l=()=>r.jsx("div",{className:"end-node",children:r.jsx("div",{className:"circle-btn gray",children:"结束"})}),c=({node:w})=>r.jsxs("div",{className:"normal-node",children:[r.jsxs("div",{className:`node-info ${w.type}`,onClick:()=>g(w),children:[r.jsx("div",{className:"title",onClick:x=>f(x,w),children:w.title}),r.jsx("div",{className:"content",children:w.content}),r.jsx(rn,{className:"icon-del",onClick:x=>v(x,w.id)})]}),r.jsx("span",{className:"arrow-line"}),r.jsx(p,{id:w.id})]}),u=({children:w})=>r.jsxs("div",{className:"condition-node",children:[r.jsx("div",{className:"title",children:"分支"}),r.jsx("div",{className:"node-list",children:w}),r.jsx("span",{className:"arrow-line"})]}),h=({type:w,children:x})=>r.jsxs("div",{className:"node-item",children:[r.jsx("span",{className:"left-line "+w}),r.jsx("span",{className:"right-line "+w}),r.jsx("span",{className:"connect-line"}),r.jsx("div",{className:"normal-container",children:x})]}),p=({id:w})=>r.jsx("span",{className:"add-node-btn",children:r.jsxs("span",{className:"add-icon",children:[r.jsx(G,{style:{fontSize:16,color:"#fff"}}),r.jsxs("div",{className:"popover",children:[r.jsx("a",{onClick:()=>m("normal",w),children:"普通节点"}),r.jsx("a",{onClick:()=>m("condition",w),children:"分支节点"})]})]})}),d=(w=8)=>w===4?Math.random().toString().slice(2,6):Math.random().toString().slice(2,10),m=(w,x)=>{var S;w==="normal"?(S=i.current)==null||S.open("节点"+d(4),T=>{j(T)}):j("");function j(T){var A,z;const _=JSON.parse(JSON.stringify(t)),E=be(_,x),C={id:d(),type:w,title:T,content:"行为配置",config:{},children:[]};if(!E.parentNode)w==="normal"?_.splice(E.index+1,0,C):_.splice(E.index+1,0,{...C,children:[{id:d(),type:"success",children:[],title:"成功",content:"成功后执行此流程"},{id:d(),type:"fail",title:"失败",content:"失败后执行此流程",children:[]}]});else if(((A=E==null?void 0:E.parentNode)==null?void 0:A.type)==="condition"){if(w==="condition"){ee.error("分支节点第一个不能添加分支节点");return}E.parentNode.children[E.index].children.unshift(C)}else["normal","success","fail"].includes((z=E==null?void 0:E.parentNode)==null?void 0:z.type)&&(w==="normal"?E.parentNode.children.splice(E.index+1,0,C):E.parentNode.children.splice(E.index+1,0,{...C,children:[{...C,id:d(),type:"success",title:"成功",content:"成功后执行此流程",children:[]},{...C,id:d(),type:"fail",title:"失败",content:"失败后执行此流程",children:[]}]}));s(()=>[..._])}},v=(w,x)=>{var T,_,E;w.stopPropagation();const j=JSON.parse(JSON.stringify(t)),S=be(j,x);if(!S.parentNode)j.splice(S.index,1);else if(["success","fail","normal"].includes((T=S==null?void 0:S.parentNode)==null?void 0:T.type))S.parentNode.children.splice(S.index,1);else if(((_=S==null?void 0:S.parentNode)==null?void 0:_.type)==="condition"){const C=be(j,(E=S==null?void 0:S.parentNode)==null?void 0:E.id);C.parentNode?C.parentNode.children.splice(C.index,1):j.splice(C.index,1)}s(()=>[...j])},f=(w,x)=>{var j;w.stopPropagation(),!(x.title==="成功"||x.title==="失败")&&((j=i.current)==null||j.open(x.title,S=>{const T=JSON.parse(JSON.stringify(t)),_=be(T,x.id);_.selfNode.title=S,s(()=>[...T])}))},g=w=>{var x;(x=o.current)==null||x.open(w.config,j=>{const S=JSON.parse(JSON.stringify(t)),T=be(S,w.id);T.selfNode.content=j.actionName,T.selfNode.config=j,s(()=>[...S])})};function y(w){return w.map(x=>{switch(x.type){case"start":return r.jsx(a,{},x.id);case"end":return r.jsx(l,{},x.id);case"normal":case"success":case"fail":return r.jsx(c,{node:x},x.id);case"condition":return r.jsx(u,{title:x.title,children:x.children.map((j,S)=>r.jsxs(h,{type:S===0?"start":S==x.children.length-1?"end":"center",children:[y([j]),y(j.children)]},j.id))},x.id)}})}return r.jsxs(r.Fragment,{children:[r.jsx(kc,{className:"node-viewer",onPinch:w=>{console.log("pinch",w)},displayHorizontalScroll:!1,useMouseDrag:!0,useWheelScroll:!0,useAutoZoom:!0,zoomRange:[.5,10],useResizeObserver:!0,children:r.jsx("div",{className:"node-container",children:y(t)})}),r.jsx(Yc,{ref:i}),r.jsx(ud,{ref:o})]})}function be(n,e,i=null){for(let o=0;o({open(u,h){s({callback:h}),o(!0),setTimeout(()=>{var p;(p=a.current)==null||p.setNodeList(u)})}}));const l=()=>{var h;const u=(h=a.current)==null?void 0:h.getNodeList();t==null||t.callback(u),o(!1)},c=()=>{o(!1)};return r.jsx(md,{title:"事件流配置",width:"100vw",height:"100vh",placement:"top",push:!1,open:i,closeIcon:null,onClose:c,extra:r.jsx(r.Fragment,{children:r.jsxs(vd,{children:[r.jsx(xr,{type:"primary",onClick:l,children:"保存"}),r.jsx(xr,{onClick:c,children:"关闭"})]})}),children:r.jsx(gd,{ref:a})})}const bd=wd(jd),Sd="_event_7hmll_1",_d="_title_7hmll_5",Ed="_ml5_7hmll_20",Td="_addAction_7hmll_23",Id="_eventFlow_7hmll_27",we={event:Sd,title:_d,ml5:Ed,addAction:Td,eventFlow:Id},Cd=window.React.memo,Dd=window.React.useRef,$t=window.antd.Form,Od=window.antd.Dropdown,Rd=window.antd.Button,Nd=window.React.useEffect,$d=Cd(()=>{var l,c,u;const n=Dd(),e=N(),[i]=$t.useForm();Nd(()=>{var p;i.resetFields();let h=[];e.selectedElement?h=(((p=e.page.elementsMap[e.selectedElement.id])==null?void 0:p.config)||{}).events||[]:h=e.page.config.events||[],i.setFieldsValue({events:h})},[e.selectedElement]);const o=(l=e.selectedElement)!=null&&l.id?(u=(c=e.page.elementsMap[e.selectedElement.id])==null?void 0:c.events)==null?void 0:u.map(h=>({key:h.value,label:h.name})):e.page.events.map(h=>({key:h.value,label:h.name})),t=(h,p)=>{var d;(d=e.selectedElement)!=null&&d.id?e.editElement({id:e.selectedElement.id,type:"events",events:p.events||[]}):e.savePageInfo({type:"events",events:p.events||[]})},s=h=>{var p;(p=n.current)==null||p.open(i.getFieldValue(["events",h,"actions"]),d=>{i.setFieldValue(["events",h,"actions"],d),t(null,i.getFieldsValue())})},a={labelCol:{span:7},wrapperCol:{span:15}};return r.jsxs(r.Fragment,{children:[r.jsx($t,{form:i,...a,onValuesChange:t,children:r.jsx("div",{style:{marginBottom:10},children:r.jsx($t.List,{name:["events"],children:(h,{add:p,remove:d})=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:we.event,children:r.jsx(Od,{menu:{items:o,onClick:({key:m})=>{var f;const v=(f=o==null?void 0:o.find(g=>(g==null?void 0:g.key)===m))==null?void 0:f.label;p({nickName:v,eventName:m,actions:[]})}},placement:"bottom",children:r.jsxs("a",{onClick:m=>m.preventDefault(),children:[r.jsx(G,{}),r.jsx("span",{className:we.ml5,children:"添加事件"})]})})}),h.map(({key:m,name:v})=>r.jsxs("div",{className:we.eventFlow,children:[r.jsxs("h2",{className:we.title,children:[r.jsx("span",{children:i.getFieldValue(["events",v,"nickName"])}),r.jsx(rn,{onClick:()=>d(v),className:we.ml5})]}),r.jsx("div",{className:we.addAction,children:r.jsx(Rd,{type:"primary",onClick:()=>s(v),children:"设置事件流"})})]},"event"+m))]})})})}),r.jsx(bd,{ref:n})]})}),Fd="_attrBox_1jquz_1",Pd="_widget_1jquz_9",kd="_text_1jquz_21",Md="_ml5_1jquz_29",xe={attrBox:Fd,widget:Pd,text:kd,ml5:Md},jr=window.antd.Form,Ad=window.antd.Tabs,zd=window.React.memo,Ld=window.React.useEffect,br=window.React.useState,Bd=window.ahooks.useDebounceFn,Yd=zd(()=>{const{pageName:n,pageProps:e,selectedElement:i,savePageInfo:o,elementsMap:t,editElement:s}=N(g=>({pageName:g.page.pageName,pageProps:g.page.config.props,selectedElement:g.selectedElement,savePageInfo:g.savePageInfo,elementsMap:g.page.elementsMap,editElement:g.editElement})),[a]=jr.useForm(),[l,c]=br(!1),[u,h]=br(null);Ld(()=>{var g,y;if(a.resetFields(),i){const w=((g=t[i.id])==null?void 0:g.remoteConfigUrl)||"";if(w)import(w).then((x={})=>{var j;h(x.default),a.setFieldsValue(((j=x.default)==null?void 0:j.config.props)||{})});else{const x=Yt[i.type+"Config"];h(x),a.setFieldsValue((y=t[i.id])==null?void 0:y.config.props)}a.setFieldValue("id",i.id)}else{const w=yo;h(w),a.setFieldsValue({pageName:n,...Qo({...e},w.config.props)})}return()=>{h(null),a.resetFields()}},[i==null?void 0:i.id,n]);const{run:p}=Bd(()=>{d(a.getFieldsValue())},{wait:300}),d=g=>{i!=null&&i.id?s({id:i.id,type:"props",props:g}):o({type:"props",props:g})},m=()=>{navigator.clipboard.writeText((i==null?void 0:i.id)||n),ee.info("复制成功"),c(!0),setTimeout(()=>{c(!1)},3e3)},v={labelCol:{span:8},wrapperCol:{span:14}},f=[{key:"props",label:"属性",children:r.jsxs(jr,{form:a,style:{paddingBottom:20},...v,layout:"horizontal",labelAlign:"right",onValuesChange:p,children:[r.jsxs("div",{className:xe.widget,children:[i!=null&&i.id?r.jsxs("span",{className:xe.text,children:["组件ID:",i==null?void 0:i.id]}):r.jsxs("span",{className:xe.text,children:["页面:",n]}),l?r.jsx(Gi,{className:xe.ml5}):r.jsx(_o,{onClick:m,className:xe.ml5})]}),r.jsx(so,{attrs:(u==null?void 0:u.attrs)||[],form:a})]})},{key:"style",label:"样式",children:r.jsx(pl,{})},{key:"event",label:"事件",children:r.jsx($d,{})},{key:"api",label:"数据",children:r.jsx(Pl,{})}];return r.jsx(Ad,{className:xe.attrBox,centered:!0,defaultActiveKey:"props",items:f})}),Sr=window.antd.Button,Xd=window.antd.Flex,Ft=window.antd.List,Vd=window.antd.Spin,Hd=window.antd.Tag,Wd=window.React.useEffect,qd=window.React.useRef,_r=window.React.useState,Ud=()=>{const n=qd(),[e,i]=_r(!0),[o,t]=_r([]),s=N(p=>p.page.pageId),a=Zi();Wd(()=>{l()},[]);const l=async()=>{i(!0);const p=await Xt.getPageList();i(!1),t(p.list)},c=p=>{var d;(d=n.current)==null||d.open(p)},u=async p=>{Ki.confirm({title:"确认",content:"删除后,将无法恢复,请谨慎操作?",okText:"确认",cancelText:"取消",onOk:async()=>{await Qi({id:p}),ee.success("删除成功"),l(),o.length>0&&a(`/editor/${o[0].id}/edit`)}})},h=async(p,d)=>{p.preventDefault(),a(`/editor/${d}/edit`)};return r.jsxs(r.Fragment,{children:[r.jsxs(Xd,{justify:"space-between",align:"center",style:{borderBottom:"1px solid #e8e9eb"},children:[r.jsx(Sr,{type:"link",icon:r.jsx(G,{}),onClick:()=>c(),style:{marginLeft:-15},children:"新增"}),r.jsx(Sr,{type:"link",icon:r.jsx(Xr,{}),onClick:l,children:"刷新"})]}),r.jsx(Vd,{spinning:e,children:r.jsx(Ft,{style:{height:"calc(100vh - 150px)",overflowY:"auto"},itemLayout:"horizontal",dataSource:o,renderItem:p=>r.jsx(Ft.Item,{actions:[p.id===s?r.jsx(Hd,{color:"#7D33FF",children:"当前"}):"",r.jsx(rn,{onClick:()=>u(p.id)}),r.jsx(qr,{onClick:()=>c(p)})],children:r.jsx(Ft.Item.Meta,{title:r.jsx("a",{onClick:d=>h(d,p.id),children:p.name}),description:p.remark})})})}),r.jsx(Ji,{createRef:n,update:()=>l()})]})},Gd="_menuItem_75km7_1",Zd="_menuItemLib_75km7_2",Jd="_leftTool_75km7_13",yn={menuItem:Gd,menuItemLib:Zd,leftTool:Jd},Kd=window.React.useState,Qd=n=>{const[e,i]=Kd(Me(n.type)),{selectedElement:o,addElement:t,addChildElements:s}=N(h=>({addElement:h.addElement,addChildElements:h.addChildElements,selectedElement:h.selectedElement})),[{isDragging:a},l]=jo(()=>({type:"MENU_ITEM",item:{id:e,type:n.type,name:n.name},end:()=>{i(Me(n.type))},collect:h=>({isDragging:h.isDragging()})}),[e]),c=h=>{const{config:p,events:d,methods:m=[],elements:v=[]}=Yt[h.type+"Config"]||{},f=Me(h.type);if(!eo(h.type,o==null?void 0:o.type)){ee.warning(`${h.name}组件不支持添加到${(o==null?void 0:o.type)||"页面"}中`);return}const g=v.map(y=>{const{config:w,events:x,methods:j=[]}=Yt[y.type+"Config"]||{};return{id:y.id||Me(y.type),name:y.name,type:y.type,parentId:f,config:w,events:x,methods:j}})||[];o?s({type:h.type,name:h.name,elements:g,parentId:o.id,id:f,config:p,events:d,methods:m}):t({type:h.type,name:h.name,id:f,elements:g,config:p,events:d,methods:m})},u={color:"#7d33ff",borderColor:"#7d33ff"};return r.jsx("div",{className:yn.menuItem,style:a?u:{},ref:l,onClick:()=>c(n),children:n.name})},eh=window.React.forwardRef,th=window.React.useEffect,nh=window.React.useImperativeHandle,Er=window.React.useState,rh=window.antd.Flex,ih=window.antd.Spin;function oh(n,e){const[i,o]=Er(!1),[t,s]=Er([]),{selectedElement:a,addElement:l,addChildElements:c}=N(d=>({addElement:d.addElement,addChildElements:d.addChildElements,selectedElement:d.selectedElement}));nh(e,()=>({reload(){u()}}));const u=async()=>{o(!0);const d=await Eo();s(d),o(!1)};th(()=>{u()},[]);const h=async d=>{try{return(await import(d)).default||{}}catch(m){return console.error("模块加载失败:",m),{}}},p=async d=>{const{config:m,events:v,methods:f=[]}=await h(d.config_url),g=Me(d.tag);a?c({remoteUrl:d.react_url,remoteConfigUrl:d.config_url,remoteCssUrl:d.css_url,type:d.tag,name:d.name,elements:[],parentId:a.id,id:g,config:m,events:v,methods:f}):l({remoteUrl:d.react_url,remoteConfigUrl:d.config_url,remoteCssUrl:d.css_url,type:d.tag,name:d.name,id:g,config:m,events:v,methods:f})};return r.jsx(ih,{spinning:i,children:r.jsx(rh,{wrap:"wrap",gap:5,justify:"space-between",style:{marginTop:10},children:t.map(d=>r.jsx("div",{style:{width:"45%"},children:r.jsx("div",{className:yn.menuItemLib,onClick:()=>p(d),children:d.name})},d.id))})})}const sh=eh(oh),ah=window.React.useEffect,lh=window.React.useMemo,ch=window.React.useRef,it=window.React.useState,uh=window.antd.Row,dh=window.antd.Col,hh=window.antd.Tabs,fh=window.antd.Collapse,ph=window.antd.Input,gh=window.antd.Divider,Tr=window.antd.Empty,mh=window.ahooks.useDebounceFn,vh=()=>{const n=ch(),[e,i]=it(""),[o,t]=it([]),[s,a]=it("system"),[l,c]=it([]);ah(()=>{const v=(e?u(En,e):En).map(f=>({key:f.type,label:f.title,children:r.jsx(uh,{gutter:[10,10],children:f.data.map(g=>r.jsx(dh,{span:12,children:r.jsx(Qd,{...g})},g.type))})}));t(v.map(f=>f.key)),c(v)},[e]);function u(v,f){const g=[];function y(w,x){for(const j of w)if(Array.isArray(j.data))y(j.data,{...j,data:[]});else if(j.name.includes(f)){if(x.data.push(j),g.filter(S=>S.type===x.type).length>0)return;g.push({...x})}}return f?(y(v,null),g):v}const h=v=>{t(typeof v=="string"?[v]:v)},p=lh(()=>[{key:"system",label:"系统组件",children:r.jsxs(r.Fragment,{children:[r.jsx(fh,{style:{height:l.length>0?"calc(100vh - 210px)":"",overflowY:"auto"},items:l,ghost:!0,expandIconPosition:"end",size:"small",activeKey:o,onChange:h,expandIcon:({isActive:v})=>r.jsx(ho,{rotate:v?0:-180})}),l.length===0&&r.jsx(Tr,{image:Tr.PRESENTED_IMAGE_SIMPLE})]})},{key:"custom",label:"自定义组件",children:r.jsx(sh,{ref:n})}],[l,o]),d=v=>{var f;a(v),v==="custom"&&((f=n.current)==null||f.reload())},{run:m}=mh(v=>{const f=v.target.value;i(f)},{wait:500});return r.jsx(hh,{size:"small",defaultActiveKey:p[0].key,tabPosition:"top",onChange:d,items:p.map(v=>({key:v.key,label:v.label,children:r.jsxs(r.Fragment,{children:[s==="system"&&r.jsxs(r.Fragment,{children:[r.jsx(ph,{placeholder:"输入关键字查询组件",suffix:r.jsx(fo,{}),onChange:m}),r.jsx(gh,{style:{margin:"12px 0 0 0"}})]}),v.children]})}))})},wh=window.antd.Tree,xh=window.antd.Row,yh=window.React.useState,jh=()=>{const{pageName:n,elements:e,setSelectedElement:i}=N(l=>({pageName:l.page.pageName,elements:l.page.elements,setSelectedElement:l.setSelectedElement})),[o,t]=yh([]),s=[{type:`页面【${n}】`,id:"page",elements:e}],a=(l,{node:c})=>{t(l),l.length>0?i({id:c.id,type:c.type}):i(void 0)};return r.jsx(xh,{style:{paddingRight:"24px",height:"calc(100vh - 110px)",overflowY:"auto"},children:r.jsx(wh,{showLine:!0,defaultExpandAll:!0,switcherIcon:r.jsx(to,{}),fieldNames:{title:"type",key:"id",children:"elements"},treeData:s,selectedKeys:o,onSelect:a})})},bh=window.antd.Button,Sh=window.antd.Row,_h=window.React.useRef,Eh=window.React.useEffect,Th=window.React.useState,Ih=()=>{const n=_h(null),[e,i]=Th(!1),{userInfo:o,page:t,savePageInfo:s}=N(c=>({userInfo:c.userInfo,page:c.page,savePageInfo:c.savePageInfo}));Vr.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/loader.js"}});function a(c){var u;n.current=c,(u=n.current)==null||u.setValue(JSON.stringify({userInfo:o,page:t},null,2))}Eh(()=>{var c;(c=n.current)==null||c.setValue(JSON.stringify({userInfo:o,page:t},null,2))},[t]);const l=async c=>{var f;c.stopPropagation();let u;try{u=JSON.parse((f=n.current)==null?void 0:f.getValue())||{}}catch{u={},ee.error("页面数据格式异常,请检查重试");return}const{pageName:h,remark:p,is_public:d,...m}=u.page,v={id:t.pageId,name:h,remark:p,is_public:d,page_data:JSON.stringify({...m,pageId:void 0,stg_state:void 0,pre_state:void 0,prd_state:void 0,preview_img:void 0,variableData:{},formData:{},stg_publish_id:void 0,pre_publish_id:void 0,prd_publish_id:void 0,user_id:void 0})};i(!0);try{await no(v)}catch(g){console.error(g)}i(!1),s({...JSON.parse(v.page_data),pageId:t.pageId,pageName:h,remark:p,is_public:d,preview_img:t.preview_img,stg_publish_id:t.stg_publish_id,pre_publish_id:t.pre_publish_id,prd_publish_id:t.prd_publish_id,stg_state:t.stg_state,pre_state:t.pre_state,prd_state:t.prd_state,user_id:t.user_id,variableData:t.variableData,formData:t.formData}),ee.success("保存成功")};return r.jsxs(Sh,{style:{marginLeft:"-14px",marginRight:1},children:[r.jsx(Hr,{height:"calc(100vh - 170px)",language:"json",theme:"vs-light",options:{lineNumbers:"on",minimap:{enabled:!1}},onMount:a}),r.jsx(bh,{block:!0,type:"primary",loading:e,style:{margin:15},onClick:c=>l(c),children:"保存"})]})},J=window.antd.Form,Ir=window.antd.Input,Ch=window.antd.Space,Dh=window.antd.InputNumber,Oh=function(){return r.jsxs(r.Fragment,{children:[r.jsx(J.Item,{label:"请求头",children:r.jsx(J.List,{name:"headers",children:(n,{add:e,remove:i})=>r.jsx(r.Fragment,{children:n.map(({name:o},t)=>r.jsxs(Ch,{align:"center",style:{marginBottom:n.length===t+1?0:10},children:[r.jsx(J.Item,{name:[o,"key"],noStyle:!0,children:r.jsx(Ir,{placeholder:"请输入Key"})}),r.jsx(J.Item,{name:[o,"value"],noStyle:!0,children:r.jsx(U,{placeholder:"请输入Value"})}),r.jsx(G,{onClick:()=>e({key:"",value:""})}),t>0&&r.jsx(Lr,{onClick:()=>{i(o)}})]},`header-${t}`))})})}),r.jsx(J.Item,{label:"超时时间",name:"timeout",children:r.jsx(Dh,{addonAfter:"秒"})}),r.jsx(J.Item,{label:"超时提示",name:"timeoutErrorMessage",children:r.jsx(Ir,{placeholder:"请输入超时提示"})}),r.jsx(J.Item,{label:"请求适配",name:"requestIntercetpor",children:r.jsx(Q,{})}),r.jsx(J.Item,{label:"返回适配",name:"responseIntercetpor",children:r.jsx(Q,{})})]})},Rh=window.React.forwardRef,Nh=window.React.useImperativeHandle,$h=window.React.useState,Cr=window.antd.Form,Fh=window.antd.Modal,Ph=({update:n},e)=>{const{interceptor:i,setInterceptor:o}=N(h=>({interceptor:h.page.interceptor,setInterceptor:h.setInterceptor})),[t]=Cr.useForm(),[s,a]=$h(!1),l={headers:[{key:"",value:""}],timeout:8,timeoutErrorMessage:"请求超时,请稍后重试",requestIntercetpor:`/** + * config: 请求完整配置,请严格按照以下格式使用和返回 + * config.url: 请求地址,eg: config.url = 'https://xxx.marsview.cc/api/xxx' + * config.params: Get请求对应参数,eg: config.params = {name:'xxx'} + * config.data: Post请求对应数据,eg: config.data = {name:'xxx'} + * config.timeout: 超时时间(秒),eg: config.timeout = 5 + * config.headers: 请求头,eg: config.headers.token = 'xxx' + */ +function request(config){ + return config; +}`,responseIntercetpor:`/** +* response: 返回值完整结构 +* response.config: 请求完整配置。 +* response.data: 请求返回数据 +* response.headers: 请求头 +* response.status: 请求状态码 +*/ +function response(response){ + return response; +}`};Nh(e,()=>({showModal:()=>{t.setFieldsValue({...l,...i}),a(!0)}}));async function c(){await t.validateFields()&&(o(t.getFieldsValue()),u())}function u(){a(!1),t.resetFields()}return r.jsx(Fh,{width:"800px",okText:"确认",cancelText:"取消",title:"高级设置",open:s,onOk:c,onCancel:u,children:r.jsx(Cr,{form:t,labelCol:{span:4},wrapperCol:{span:19},style:{maxWidth:800},autoComplete:"off",children:r.jsx(Oh,{})})})},kh=Rh(Ph),Dr=window.React.useRef,Or=window.antd.Button,Mh=window.antd.Flex,Pt=window.antd.List,Ah=()=>{const n=Dr(),e=Dr(),{apis:i,removeApi:o}=N(c=>({apis:c.page.apis,removeApi:c.removeApi})),t=()=>{var c;(c=n.current)==null||c.showModal()},s=(c,u)=>{var h;c.preventDefault(),(h=n.current)==null||h.showModal(u.id)},a=(c,u)=>{c.preventDefault(),o(u)},l=()=>{var c;(c=e.current)==null||c.showModal()};return r.jsxs(r.Fragment,{children:[r.jsxs(Mh,{justify:"space-between",align:"center",style:{borderBottom:"1px solid #e8e9eb"},children:[r.jsx(Or,{type:"link",icon:r.jsx(G,{}),onClick:()=>t(),children:"新增"}),r.jsx(Or,{type:"link",icon:r.jsx(Yr,{}),onClick:()=>l(),children:"全局拦截器"})]}),r.jsx(Pt,{style:{height:"calc(100vh - 150px)",overflowY:"auto"},itemLayout:"horizontal",dataSource:Object.values(i),renderItem:c=>r.jsx(Pt.Item,{actions:[r.jsx("a",{onClick:u=>s(u,c),children:"修改"}),r.jsx("a",{onClick:u=>a(u,c.id),children:"删除"})],children:r.jsx(Pt.Item.Meta,{title:`${c.method} ${c.name}`,description:c.url})})}),r.jsx(hn,{ref:n}),r.jsx(kh,{ref:e})]})},zh=window.React.useEffect,Lh=window.React.useRef,Rr=window.React.useState,kt=window.antd.Button,Bh=window.antd.Flex,Mt=window.antd.List,Yh=window.antd.Spin,Xh=()=>{const[n,e]=Rr(!1),[i,o]=Rr([]),t=Lh(),{id:s}=ro();zh(()=>{a()},[]);const a=async()=>{if(!s)return ee.error("当前页面不存在");e(!0);const u=await Xt.getMemberList({page_id:parseInt(s)});o(u.list),e(!1)},l=()=>{var u;(u=t.current)==null||u.open(2)},c=async u=>{await Xt.deletePageMember({id:u}),o(i.filter(h=>h.id!=u))};return r.jsxs(r.Fragment,{children:[r.jsxs(Bh,{justify:"space-between",align:"center",style:{borderBottom:"1px solid #e8e9eb"},children:[r.jsx(kt,{type:"link",icon:r.jsx(G,{}),onClick:()=>l(),children:"新增"}),r.jsx(kt,{type:"link",icon:r.jsx(Xr,{}),onClick:a,children:"刷新"})]}),r.jsx(Yh,{spinning:n,children:r.jsx(Mt,{style:{height:"calc(100vh - 150px)",overflowY:"auto"},itemLayout:"horizontal",dataSource:i,renderItem:u=>r.jsx(Mt.Item,{actions:[r.jsx(kt,{type:"link",onClick:()=>c(u.id),children:"删除"})],children:r.jsx(Mt.Item.Meta,{avatar:r.jsx(Io,{}),title:r.jsx("span",{children:u.user_name}),description:u.role==1?"开发者":"体验者"})})})}),r.jsx(To,{ref:t,update:a})]})},Vh=window.antd.Modal,ye=window.antd.Form,At=window.antd.Input,je=window.antd.Radio,Hh=window.antd.InputNumber,Wh=window.antd.Switch,qh=window.React.useImperativeHandle,zt=window.React.useState,Uh=window.React.forwardRef,Gh=window.React.useRef,Zh=(n,e)=>{const[i,o]=zt(!1),[t,s]=zt("add"),[a,l]=zt("string"),c=Gh(null),[u]=ye.useForm(),{addVariable:h,editVariable:p}=N(f=>({variables:f.page.variables,addVariable:f.addVariable,editVariable:f.editVariable}));Vr.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/loader.js"}}),qh(e,()=>({open(f,g){f==="edit"&&(g.type==="array"||g.type==="object"?u.setFieldsValue({...g,defaultValue:JSON.stringify(g.defaultValue,null,4)}):u.setFieldsValue(g),l(g.type)),s(f),o(!0)}}));const d=f=>{l(f)},m=()=>{u.validateFields().then(()=>{var g;const f=u.getFieldsValue();if(a==="array"||a==="object"){const y=(g=c.current)==null?void 0:g.getValue();if(y)try{f.defaultValue=JSON.parse(y)}catch{ee.error("请输入正确的json数据");return}}t==="add"?h(f):p(f),v()})},v=()=>{u.resetFields(),o(!1),l("string")};return r.jsx(Vh,{title:"添加变量",open:i,width:650,onOk:m,onCancel:v,okText:"提交",cancelText:"取消",children:r.jsxs(ye,{form:u,labelCol:{span:6},wrapperCol:{span:16},initialValues:{type:"string"},children:[r.jsx(ye.Item,{label:"变量名称",name:"name",rules:[{required:!0,message:"请输入变量名称"},{pattern:/^[a-zA-Z]\w{0,19}$/,message:"请输入正确的变量名称"}],children:r.jsx(At,{placeholder:"请输入变量名称,以字母开头,支持大小写、下划线"})}),r.jsx(ye.Item,{label:"变量类型",name:"type",rules:[{required:!0,message:"请选择变量类型"}],children:r.jsxs(je.Group,{buttonStyle:"solid",onChange:f=>d(f.target.value),children:[r.jsx(je.Button,{value:"string",children:"字符串"}),r.jsx(je.Button,{value:"number",children:"数字"}),r.jsx(je.Button,{value:"boolean",children:"布尔"}),r.jsx(je.Button,{value:"array",children:"数组"}),r.jsx(je.Button,{value:"object",children:"对象"})]})}),r.jsxs(ye.Item,{label:"变量默认值",name:"defaultValue",rules:[{required:!0,message:"请输入变量值"}],children:[a==="string"&&r.jsx(At,{placeholder:"请输入变量值"}),a==="number"&&r.jsx(Hh,{placeholder:"请输入变量值",style:{width:"100%"}}),a==="boolean"&&r.jsx(Wh,{}),(a==="array"||a==="object")&&r.jsx(Hr,{height:"250px",language:"json",options:{lineNumbers:"on",minimap:{enabled:!1}},onMount:f=>c.current=f})]}),r.jsx(ye.Item,{label:"变量说明",name:"remark",children:r.jsx(At,{placeholder:"请输入变量说明"})})]})})},Jh=Uh(Zh),Kh=window.React.useRef,Qh=window.antd.Button,ef=window.antd.Flex,Lt=window.antd.List,tf=()=>{const n=Kh(),{variables:e,removeVariable:i}=N(a=>({variables:a.page.variables,removeVariable:a.removeVariable})),o=()=>{var a;(a=n.current)==null||a.open("add")},t=(a,l)=>{var c;a.preventDefault(),(c=n.current)==null||c.open("edit",l)},s=(a,l)=>{a.preventDefault(),i(l)};return r.jsxs(r.Fragment,{children:[r.jsx(ef,{justify:"space-between",align:"center",style:{borderBottom:"1px solid #e8e9eb"},children:r.jsx(Qh,{type:"link",icon:r.jsx(G,{}),onClick:()=>o(),children:"新增"})}),r.jsx(Lt,{style:{height:"calc(100vh - 150px)",overflowY:"auto"},itemLayout:"horizontal",dataSource:e,renderItem:a=>r.jsx(Lt.Item,{actions:[r.jsx("a",{onClick:l=>t(l,a),children:"修改"}),r.jsx("a",{onClick:l=>s(l,a.name),children:"删除"})],children:r.jsx(Lt.Item.Meta,{title:`${a.name}`,description:a.remark})})}),r.jsx(Jh,{ref:n})]})},nf=window.antd.Col,rf=window.antd.Row,of=window.antd.Tabs,Nr=window.antd.Tooltip,$r=[{key:"ComponentPanel",icon:r.jsx(go,{}),title:"组件物料",component:()=>r.jsx(vh,{})},{key:"home",icon:r.jsx(io,{}),title:"页面列表",component:()=>r.jsx(Ud,{})},{key:"OutlinePanel",icon:r.jsx(mo,{}),title:"页面大纲",component:()=>r.jsx(jh,{})},{key:"CodingPanel",icon:r.jsx(Co,{}),title:"页面JSON",component:()=>r.jsx(Ih,{})},{key:"ApiList",icon:r.jsx(vo,{}),title:"页面接口",component:()=>r.jsx(Ah,{})},{key:"Variable",icon:r.jsx(So,{}),title:"页面变量",component:()=>r.jsx(tf,{})},{key:"Member",icon:r.jsx(wo,{}),title:"页面成员",component:()=>r.jsx(Xh,{})}],sf=n=>r.jsx(r.Fragment,{children:r.jsx(of,{size:"small",defaultActiveKey:$r[0].key,tabPosition:"left",tabBarStyle:{width:"50px",height:"calc(100vh - 64px)"},className:yn.leftTool,centered:!0,onTabClick:()=>n.toggleOpen(!0),items:$r.map(e=>{var i;return{key:e.key,label:r.jsx(Nr,{placement:"right",title:e.title,children:e.icon}),children:n.isOpen&&r.jsxs("div",{style:{marginLeft:-10,marginRight:10},children:[r.jsxs(rf,{style:{height:46,paddingRight:14},align:"middle",justify:"space-between",children:[r.jsx(nf,{children:r.jsx("span",{style:{fontWeight:"bold"},children:e.title})}),r.jsx(Nr,{placement:"right",title:"关闭菜单",children:r.jsx(po,{onClick:()=>n.toggleOpen()})})]}),(i=e.component)==null?void 0:i.call(e)]})}})})}),af=window.React.useState,Ef=()=>{const[n,e]=af(!0),{mode:i,updateToolbar:o}=N(s=>({mode:s.mode,updateToolbar:s.updateToolbar})),t=s=>{s!==n&&e(!n)};return r.jsx(va,{backend:$a,children:r.jsx("div",{style:{height:"calc(100vh - 64px)"},children:r.jsxs(Xe,{onChange:o,children:[i==="edit"&&r.jsx(Xe.Pane,{preferredSize:320,minSize:n?320:49,maxSize:n?800:49,children:r.jsx(sf,{toggleOpen:t,isOpen:n})}),r.jsx(Xe.Pane,{children:r.jsx(oo,{})}),i==="edit"&&r.jsx(Xe.Pane,{preferredSize:300,minSize:300,maxSize:800,children:r.jsx(Yd,{})})]})})})};export{Ef as default}; diff --git a/dist/editor/assets/LibEditor-i9a3iLBJ.js b/dist/editor/assets/LibEditor-i9a3iLBJ.js new file mode 100644 index 0000000..074bdae --- /dev/null +++ b/dist/editor/assets/LibEditor-i9a3iLBJ.js @@ -0,0 +1,435 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bj2Qo4Z7.js","assets/index-BBkS68sv.js","assets/index-D4KGqcbN.css"])))=>i.map(i=>d[i]); +import{i as dh,r as sE,h as y1,k as Dc,n as aE,j as wn,_ as oE,u as uE,o as lE,a as cE,m as So,M as pE,p as hE}from"./index-BBkS68sv.js";import{i as fE,F as nd,l as dE}from"./VariableBind-O5QUcdA4.js";import{H as hu,S as mE}from"./SetterRender-CNqvv3GD.js";import{a as gE,u as yE,p as vE}from"./lib-BFfozajJ.js";import{Q as EE}from"./index-DsdcxFhl.js";import"./ColorPicker-Dw8Os0Zn.js";var DE=/\s/;function TE(e){for(var t=e.length;t--&&DE.test(e.charAt(t)););return t}var CE=/^\s+/;function xE(e){return e&&e.slice(0,TE(e)+1).replace(CE,"")}var jd=NaN,bE=/^[-+]0x[0-9a-f]+$/i,AE=/^0b[01]+$/i,SE=/^0o[0-7]+$/i,wE=parseInt;function Hd(e){if(typeof e=="number")return e;if(fE(e))return jd;if(dh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xE(e);var r=AE.test(e);return r||SE.test(e)?wE(e.slice(2),r?2:8):bE.test(e)?jd:+e}var Wh=function(){return sE.Date.now()},_E="Expected a function",kE=Math.max,FE=Math.min;function Hg(e,t,r){var o,g,v,E,b,N,F=0,L=!1,H=!1,ie=!0;if(typeof e!="function")throw new TypeError(_E);t=Hd(t)||0,dh(r)&&(L=!!r.leading,H="maxWait"in r,v=H?kE(Hd(r.maxWait)||0,t):v,ie="trailing"in r?!!r.trailing:ie);function re(ze){var ht=o,rr=g;return o=g=void 0,F=ze,E=e.apply(rr,ht),E}function Ae(ze){return F=ze,b=setTimeout(Ne,t),L?re(ze):E}function $e(ze){var ht=ze-N,rr=ze-F,Kt=t-ht;return H?FE(Kt,v-rr):Kt}function Be(ze){var ht=ze-N,rr=ze-F;return N===void 0||ht>=t||ht<0||H&&rr>=v}function Ne(){var ze=Wh();if(Be(ze))return et(ze);b=setTimeout(Ne,$e(ze))}function et(ze){return b=void 0,ie&&o?re(ze):(o=g=void 0,E)}function Ke(){b!==void 0&&clearTimeout(b),F=0,o=N=g=b=void 0}function Re(){return b===void 0?E:et(Wh())}function $t(){var ze=Wh(),ht=Be(ze);if(o=arguments,g=this,N=ze,ht){if(b===void 0)return Ae(N);if(H)return clearTimeout(b),b=setTimeout(Ne,t),re(N)}return b===void 0&&(b=setTimeout(Ne,t)),E}return $t.cancel=Ke,$t.flush=Re,$t}var PE="Expected a function";function NE(e,t,r){var o=!0,g=!0;if(typeof e!="function")throw new TypeError(PE);return dh(r)&&(o="leading"in r?!!r.leading:o,g="trailing"in r?!!r.trailing:g),Hg(e,t,{leading:o,maxWait:t,trailing:g})}var Ug={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){var r=(Ct,We)=>()=>(We||Ct((We={exports:{}}).exports,We),We.exports),o=r((Ct,We)=>{var je=function(Ye){return Ye&&Ye.Math==Math&&Ye};We.exports=je(typeof globalThis=="object"&&globalThis)||je(typeof window=="object"&&window)||je(typeof self=="object"&&self)||je(typeof y1=="object"&&y1)||function(){return this}()||Function("return this")()}),g=r((Ct,We)=>{We.exports=function(je){try{return!!je()}catch{return!0}}}),v=r((Ct,We)=>{var je=g();We.exports=!je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),E=r((Ct,We)=>{var je=g();We.exports=!je(function(){var Ye=(function(){}).bind();return typeof Ye!="function"||Ye.hasOwnProperty("prototype")})}),b=r((Ct,We)=>{var je=E(),Ye=Function.prototype.call;We.exports=je?Ye.bind(Ye):function(){return Ye.apply(Ye,arguments)}}),N=r(Ct=>{var We={}.propertyIsEnumerable,je=Object.getOwnPropertyDescriptor,Ye=je&&!We.call({1:2},1);Ct.f=Ye?function(Xe){var gt=je(this,Xe);return!!gt&>.enumerable}:We}),F=r((Ct,We)=>{We.exports=function(je,Ye){return{enumerable:!(je&1),configurable:!(je&2),writable:!(je&4),value:Ye}}}),L=r((Ct,We)=>{var je=E(),Ye=Function.prototype,Xe=Ye.call,gt=je&&Ye.bind.bind(Xe,Xe);We.exports=je?gt:function(Lt){return function(){return Xe.apply(Lt,arguments)}}}),H=r((Ct,We)=>{var je=L(),Ye=je({}.toString),Xe=je("".slice);We.exports=function(gt){return Xe(Ye(gt),8,-1)}}),ie=r((Ct,We)=>{var je=L(),Ye=g(),Xe=H(),gt=Object,Lt=je("".split);We.exports=Ye(function(){return!gt("z").propertyIsEnumerable(0)})?function(Gt){return Xe(Gt)=="String"?Lt(Gt,""):gt(Gt)}:gt}),re=r((Ct,We)=>{We.exports=function(je){return je==null}}),Ae=r((Ct,We)=>{var je=re(),Ye=TypeError;We.exports=function(Xe){if(je(Xe))throw Ye("Can't call method on "+Xe);return Xe}}),$e=r((Ct,We)=>{var je=ie(),Ye=Ae();We.exports=function(Xe){return je(Ye(Xe))}}),Be=r((Ct,We)=>{var je=typeof document=="object"&&document.all,Ye=typeof je>"u"&&je!==void 0;We.exports={all:je,IS_HTMLDDA:Ye}}),Ne=r((Ct,We)=>{var je=Be(),Ye=je.all;We.exports=je.IS_HTMLDDA?function(Xe){return typeof Xe=="function"||Xe===Ye}:function(Xe){return typeof Xe=="function"}}),et=r((Ct,We)=>{var je=Ne(),Ye=Be(),Xe=Ye.all;We.exports=Ye.IS_HTMLDDA?function(gt){return typeof gt=="object"?gt!==null:je(gt)||gt===Xe}:function(gt){return typeof gt=="object"?gt!==null:je(gt)}}),Ke=r((Ct,We)=>{var je=o(),Ye=Ne(),Xe=function(gt){return Ye(gt)?gt:void 0};We.exports=function(gt,Lt){return arguments.length<2?Xe(je[gt]):je[gt]&&je[gt][Lt]}}),Re=r((Ct,We)=>{var je=L();We.exports=je({}.isPrototypeOf)}),$t=r((Ct,We)=>{var je=Ke();We.exports=je("navigator","userAgent")||""}),ze=r((Ct,We)=>{var je=o(),Ye=$t(),Xe=je.process,gt=je.Deno,Lt=Xe&&Xe.versions||gt&>.version,Gt=Lt&&Lt.v8,Ut,bt;Gt&&(Ut=Gt.split("."),bt=Ut[0]>0&&Ut[0]<4?1:+(Ut[0]+Ut[1])),!bt&&Ye&&(Ut=Ye.match(/Edge\/(\d+)/),(!Ut||Ut[1]>=74)&&(Ut=Ye.match(/Chrome\/(\d+)/),Ut&&(bt=+Ut[1]))),We.exports=bt}),ht=r((Ct,We)=>{var je=ze(),Ye=g();We.exports=!!Object.getOwnPropertySymbols&&!Ye(function(){var Xe=Symbol();return!String(Xe)||!(Object(Xe)instanceof Symbol)||!Symbol.sham&&je&&je<41})}),rr=r((Ct,We)=>{var je=ht();We.exports=je&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Kt=r((Ct,We)=>{var je=Ke(),Ye=Ne(),Xe=Re(),gt=rr(),Lt=Object;We.exports=gt?function(Gt){return typeof Gt=="symbol"}:function(Gt){var Ut=je("Symbol");return Ye(Ut)&&Xe(Ut.prototype,Lt(Gt))}}),vt=r((Ct,We)=>{var je=String;We.exports=function(Ye){try{return je(Ye)}catch{return"Object"}}}),Yt=r((Ct,We)=>{var je=Ne(),Ye=vt(),Xe=TypeError;We.exports=function(gt){if(je(gt))return gt;throw Xe(Ye(gt)+" is not a function")}}),St=r((Ct,We)=>{var je=Yt(),Ye=re();We.exports=function(Xe,gt){var Lt=Xe[gt];return Ye(Lt)?void 0:je(Lt)}}),ft=r((Ct,We)=>{var je=b(),Ye=Ne(),Xe=et(),gt=TypeError;We.exports=function(Lt,Gt){var Ut,bt;if(Gt==="string"&&Ye(Ut=Lt.toString)&&!Xe(bt=je(Ut,Lt))||Ye(Ut=Lt.valueOf)&&!Xe(bt=je(Ut,Lt))||Gt!=="string"&&Ye(Ut=Lt.toString)&&!Xe(bt=je(Ut,Lt)))return bt;throw gt("Can't convert object to primitive value")}}),er=r((Ct,We)=>{We.exports=!1}),jt=r((Ct,We)=>{var je=o(),Ye=Object.defineProperty;We.exports=function(Xe,gt){try{Ye(je,Xe,{value:gt,configurable:!0,writable:!0})}catch{je[Xe]=gt}return gt}}),ur=r((Ct,We)=>{var je=o(),Ye=jt(),Xe="__core-js_shared__",gt=je[Xe]||Ye(Xe,{});We.exports=gt}),Ur=r((Ct,We)=>{var je=er(),Ye=ur();(We.exports=function(Xe,gt){return Ye[Xe]||(Ye[Xe]=gt!==void 0?gt:{})})("versions",[]).push({version:"3.26.1",mode:je?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Yr=r((Ct,We)=>{var je=Ae(),Ye=Object;We.exports=function(Xe){return Ye(je(Xe))}}),Zr=r((Ct,We)=>{var je=L(),Ye=Yr(),Xe=je({}.hasOwnProperty);We.exports=Object.hasOwn||function(gt,Lt){return Xe(Ye(gt),Lt)}}),fe=r((Ct,We)=>{var je=L(),Ye=0,Xe=Math.random(),gt=je(1 .toString);We.exports=function(Lt){return"Symbol("+(Lt===void 0?"":Lt)+")_"+gt(++Ye+Xe,36)}}),Te=r((Ct,We)=>{var je=o(),Ye=Ur(),Xe=Zr(),gt=fe(),Lt=ht(),Gt=rr(),Ut=Ye("wks"),bt=je.Symbol,yr=bt&&bt.for,Er=Gt?bt:bt&&bt.withoutSetter||gt;We.exports=function(wr){if(!Xe(Ut,wr)||!(Lt||typeof Ut[wr]=="string")){var cr="Symbol."+wr;Lt&&Xe(bt,wr)?Ut[wr]=bt[wr]:Gt&&yr?Ut[wr]=yr(cr):Ut[wr]=Er(cr)}return Ut[wr]}}),Qt=r((Ct,We)=>{var je=b(),Ye=et(),Xe=Kt(),gt=St(),Lt=ft(),Gt=Te(),Ut=TypeError,bt=Gt("toPrimitive");We.exports=function(yr,Er){if(!Ye(yr)||Xe(yr))return yr;var wr=gt(yr,bt),cr;if(wr){if(Er===void 0&&(Er="default"),cr=je(wr,yr,Er),!Ye(cr)||Xe(cr))return cr;throw Ut("Can't convert object to primitive value")}return Er===void 0&&(Er="number"),Lt(yr,Er)}}),Ve=r((Ct,We)=>{var je=Qt(),Ye=Kt();We.exports=function(Xe){var gt=je(Xe,"string");return Ye(gt)?gt:gt+""}}),br=r((Ct,We)=>{var je=o(),Ye=et(),Xe=je.document,gt=Ye(Xe)&&Ye(Xe.createElement);We.exports=function(Lt){return gt?Xe.createElement(Lt):{}}}),An=r((Ct,We)=>{var je=v(),Ye=g(),Xe=br();We.exports=!je&&!Ye(function(){return Object.defineProperty(Xe("div"),"a",{get:function(){return 7}}).a!=7})}),yn=r(Ct=>{var We=v(),je=b(),Ye=N(),Xe=F(),gt=$e(),Lt=Ve(),Gt=Zr(),Ut=An(),bt=Object.getOwnPropertyDescriptor;Ct.f=We?bt:function(yr,Er){if(yr=gt(yr),Er=Lt(Er),Ut)try{return bt(yr,Er)}catch{}if(Gt(yr,Er))return Xe(!je(Ye.f,yr,Er),yr[Er])}}),Pn=r((Ct,We)=>{var je=v(),Ye=g();We.exports=je&&Ye(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),En=r((Ct,We)=>{var je=et(),Ye=String,Xe=TypeError;We.exports=function(gt){if(je(gt))return gt;throw Xe(Ye(gt)+" is not an object")}}),Xr=r(Ct=>{var We=v(),je=An(),Ye=Pn(),Xe=En(),gt=Ve(),Lt=TypeError,Gt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,bt="enumerable",yr="configurable",Er="writable";Ct.f=We?Ye?function(wr,cr,Ue){if(Xe(wr),cr=gt(cr),Xe(Ue),typeof wr=="function"&&cr==="prototype"&&"value"in Ue&&Er in Ue&&!Ue[Er]){var Wr=Ut(wr,cr);Wr&&Wr[Er]&&(wr[cr]=Ue.value,Ue={configurable:yr in Ue?Ue[yr]:Wr[yr],enumerable:bt in Ue?Ue[bt]:Wr[bt],writable:!1})}return Gt(wr,cr,Ue)}:Gt:function(wr,cr,Ue){if(Xe(wr),cr=gt(cr),Xe(Ue),je)try{return Gt(wr,cr,Ue)}catch{}if("get"in Ue||"set"in Ue)throw Lt("Accessors not supported");return"value"in Ue&&(wr[cr]=Ue.value),wr}}),Dn=r((Ct,We)=>{var je=v(),Ye=Xr(),Xe=F();We.exports=je?function(gt,Lt,Gt){return Ye.f(gt,Lt,Xe(1,Gt))}:function(gt,Lt,Gt){return gt[Lt]=Gt,gt}}),Rn=r((Ct,We)=>{var je=v(),Ye=Zr(),Xe=Function.prototype,gt=je&&Object.getOwnPropertyDescriptor,Lt=Ye(Xe,"name"),Gt=Lt&&(function(){}).name==="something",Ut=Lt&&(!je||je&>(Xe,"name").configurable);We.exports={EXISTS:Lt,PROPER:Gt,CONFIGURABLE:Ut}}),mi=r((Ct,We)=>{var je=L(),Ye=Ne(),Xe=ur(),gt=je(Function.toString);Ye(Xe.inspectSource)||(Xe.inspectSource=function(Lt){return gt(Lt)}),We.exports=Xe.inspectSource}),bn=r((Ct,We)=>{var je=o(),Ye=Ne(),Xe=je.WeakMap;We.exports=Ye(Xe)&&/native code/.test(String(Xe))}),gi=r((Ct,We)=>{var je=Ur(),Ye=fe(),Xe=je("keys");We.exports=function(gt){return Xe[gt]||(Xe[gt]=Ye(gt))}}),Di=r((Ct,We)=>{We.exports={}}),fi=r((Ct,We)=>{var je=bn(),Ye=o(),Xe=et(),gt=Dn(),Lt=Zr(),Gt=ur(),Ut=gi(),bt=Di(),yr="Object already initialized",Er=Ye.TypeError,wr=Ye.WeakMap,cr,Ue,Wr,en=function(Je){return Wr(Je)?Ue(Je):cr(Je,{})},Vt=function(Je){return function(Ci){var ls;if(!Xe(Ci)||(ls=Ue(Ci)).type!==Je)throw Er("Incompatible receiver, "+Je+" required");return ls}};je||Gt.state?(Dt=Gt.state||(Gt.state=new wr),Dt.get=Dt.get,Dt.has=Dt.has,Dt.set=Dt.set,cr=function(Je,Ci){if(Dt.has(Je))throw Er(yr);return Ci.facade=Je,Dt.set(Je,Ci),Ci},Ue=function(Je){return Dt.get(Je)||{}},Wr=function(Je){return Dt.has(Je)}):(Jn=Ut("state"),bt[Jn]=!0,cr=function(Je,Ci){if(Lt(Je,Jn))throw Er(yr);return Ci.facade=Je,gt(Je,Jn,Ci),Ci},Ue=function(Je){return Lt(Je,Jn)?Je[Jn]:{}},Wr=function(Je){return Lt(Je,Jn)});var Dt,Jn;We.exports={set:cr,get:Ue,has:Wr,enforce:en,getterFor:Vt}}),yi=r((Ct,We)=>{var je=g(),Ye=Ne(),Xe=Zr(),gt=v(),Lt=Rn().CONFIGURABLE,Gt=mi(),Ut=fi(),bt=Ut.enforce,yr=Ut.get,Er=Object.defineProperty,wr=gt&&!je(function(){return Er(function(){},"length",{value:8}).length!==8}),cr=String(String).split("String"),Ue=We.exports=function(Wr,en,Vt){String(en).slice(0,7)==="Symbol("&&(en="["+String(en).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),Vt&&Vt.getter&&(en="get "+en),Vt&&Vt.setter&&(en="set "+en),(!Xe(Wr,"name")||Lt&&Wr.name!==en)&&(gt?Er(Wr,"name",{value:en,configurable:!0}):Wr.name=en),wr&&Vt&&Xe(Vt,"arity")&&Wr.length!==Vt.arity&&Er(Wr,"length",{value:Vt.arity});try{Vt&&Xe(Vt,"constructor")&&Vt.constructor?gt&&Er(Wr,"prototype",{writable:!1}):Wr.prototype&&(Wr.prototype=void 0)}catch{}var Dt=bt(Wr);return Xe(Dt,"source")||(Dt.source=cr.join(typeof en=="string"?en:"")),Wr};Function.prototype.toString=Ue(function(){return Ye(this)&&yr(this).source||Gt(this)},"toString")}),Li=r((Ct,We)=>{var je=Ne(),Ye=Xr(),Xe=yi(),gt=jt();We.exports=function(Lt,Gt,Ut,bt){bt||(bt={});var yr=bt.enumerable,Er=bt.name!==void 0?bt.name:Gt;if(je(Ut)&&Xe(Ut,Er,bt),bt.global)yr?Lt[Gt]=Ut:gt(Gt,Ut);else{try{bt.unsafe?Lt[Gt]&&(yr=!0):delete Lt[Gt]}catch{}yr?Lt[Gt]=Ut:Ye.f(Lt,Gt,{value:Ut,enumerable:!1,configurable:!bt.nonConfigurable,writable:!bt.nonWritable})}return Lt}}),Ti=r((Ct,We)=>{var je=Math.ceil,Ye=Math.floor;We.exports=Math.trunc||function(Xe){var gt=+Xe;return(gt>0?Ye:je)(gt)}}),gr=r((Ct,We)=>{var je=Ti();We.exports=function(Ye){var Xe=+Ye;return Xe!==Xe||Xe===0?0:je(Xe)}}),jn=r((Ct,We)=>{var je=gr(),Ye=Math.max,Xe=Math.min;We.exports=function(gt,Lt){var Gt=je(gt);return Gt<0?Ye(Gt+Lt,0):Xe(Gt,Lt)}}),ns=r((Ct,We)=>{var je=gr(),Ye=Math.min;We.exports=function(Xe){return Xe>0?Ye(je(Xe),9007199254740991):0}}),ri=r((Ct,We)=>{var je=ns();We.exports=function(Ye){return je(Ye.length)}}),ni=r((Ct,We)=>{var je=$e(),Ye=jn(),Xe=ri(),gt=function(Lt){return function(Gt,Ut,bt){var yr=je(Gt),Er=Xe(yr),wr=Ye(bt,Er),cr;if(Lt&&Ut!=Ut){for(;Er>wr;)if(cr=yr[wr++],cr!=cr)return!0}else for(;Er>wr;wr++)if((Lt||wr in yr)&&yr[wr]===Ut)return Lt||wr||0;return!Lt&&-1}};We.exports={includes:gt(!0),indexOf:gt(!1)}}),In=r((Ct,We)=>{var je=L(),Ye=Zr(),Xe=$e(),gt=ni().indexOf,Lt=Di(),Gt=je([].push);We.exports=function(Ut,bt){var yr=Xe(Ut),Er=0,wr=[],cr;for(cr in yr)!Ye(Lt,cr)&&Ye(yr,cr)&&Gt(wr,cr);for(;bt.length>Er;)Ye(yr,cr=bt[Er++])&&(~gt(wr,cr)||Gt(wr,cr));return wr}}),Hn=r((Ct,We)=>{We.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),zt=r(Ct=>{var We=In(),je=Hn(),Ye=je.concat("length","prototype");Ct.f=Object.getOwnPropertyNames||function(Xe){return We(Xe,Ye)}}),dr=r(Ct=>{Ct.f=Object.getOwnPropertySymbols}),rn=r((Ct,We)=>{var je=Ke(),Ye=L(),Xe=zt(),gt=dr(),Lt=En(),Gt=Ye([].concat);We.exports=je("Reflect","ownKeys")||function(Ut){var bt=Xe.f(Lt(Ut)),yr=gt.f;return yr?Gt(bt,yr(Ut)):bt}}),fn=r((Ct,We)=>{var je=Zr(),Ye=rn(),Xe=yn(),gt=Xr();We.exports=function(Lt,Gt,Ut){for(var bt=Ye(Gt),yr=gt.f,Er=Xe.f,wr=0;wr{var je=g(),Ye=Ne(),Xe=/#|\.prototype\./,gt=function(yr,Er){var wr=Gt[Lt(yr)];return wr==bt?!0:wr==Ut?!1:Ye(Er)?je(Er):!!Er},Lt=gt.normalize=function(yr){return String(yr).replace(Xe,".").toLowerCase()},Gt=gt.data={},Ut=gt.NATIVE="N",bt=gt.POLYFILL="P";We.exports=gt}),Nr=r((Ct,We)=>{var je=o(),Ye=yn().f,Xe=Dn(),gt=Li(),Lt=jt(),Gt=fn(),Ut=nn();We.exports=function(bt,yr){var Er=bt.target,wr=bt.global,cr=bt.stat,Ue,Wr,en,Vt,Dt,Jn;if(wr?Wr=je:cr?Wr=je[Er]||Lt(Er,{}):Wr=(je[Er]||{}).prototype,Wr)for(en in yr){if(Dt=yr[en],bt.dontCallGetSet?(Jn=Ye(Wr,en),Vt=Jn&&Jn.value):Vt=Wr[en],Ue=Ut(wr?en:Er+(cr?".":"#")+en,bt.forced),!Ue&&Vt!==void 0){if(typeof Dt==typeof Vt)continue;Gt(Dt,Vt)}(bt.sham||Vt&&Vt.sham)&&Xe(Dt,"sham",!0),gt(Wr,en,Dt,bt)}}}),On=r((Ct,We)=>{var je=H();We.exports=Array.isArray||function(Ye){return je(Ye)=="Array"}}),Ht=r((Ct,We)=>{var je=TypeError,Ye=9007199254740991;We.exports=function(Xe){if(Xe>Ye)throw je("Maximum allowed index exceeded");return Xe}}),Ar=r((Ct,We)=>{var je=H(),Ye=L();We.exports=function(Xe){if(je(Xe)==="Function")return Ye(Xe)}}),Rr=r((Ct,We)=>{var je=Ar(),Ye=Yt(),Xe=E(),gt=je(je.bind);We.exports=function(Lt,Gt){return Ye(Lt),Gt===void 0?Lt:Xe?gt(Lt,Gt):function(){return Lt.apply(Gt,arguments)}}}),jr=r((Ct,We)=>{var je=On(),Ye=ri(),Xe=Ht(),gt=Rr(),Lt=function(Gt,Ut,bt,yr,Er,wr,cr,Ue){for(var Wr=Er,en=0,Vt=cr?gt(cr,Ue):!1,Dt,Jn;en0&&je(Dt)?(Jn=Ye(Dt),Wr=Lt(Gt,Ut,Dt,Jn,Wr,wr-1)-1):(Xe(Wr+1),Gt[Wr]=Dt),Wr++),en++;return Wr};We.exports=Lt}),an=r((Ct,We)=>{var je=Te(),Ye=je("toStringTag"),Xe={};Xe[Ye]="z",We.exports=String(Xe)==="[object z]"}),Mn=r((Ct,We)=>{var je=an(),Ye=Ne(),Xe=H(),gt=Te(),Lt=gt("toStringTag"),Gt=Object,Ut=Xe(function(){return arguments}())=="Arguments",bt=function(yr,Er){try{return yr[Er]}catch{}};We.exports=je?Xe:function(yr){var Er,wr,cr;return yr===void 0?"Undefined":yr===null?"Null":typeof(wr=bt(Er=Gt(yr),Lt))=="string"?wr:Ut?Xe(Er):(cr=Xe(Er))=="Object"&&Ye(Er.callee)?"Arguments":cr}}),Xn=r((Ct,We)=>{var je=L(),Ye=g(),Xe=Ne(),gt=Mn(),Lt=Ke(),Gt=mi(),Ut=function(){},bt=[],yr=Lt("Reflect","construct"),Er=/^\s*(?:class|function)\b/,wr=je(Er.exec),cr=!Er.exec(Ut),Ue=function(en){if(!Xe(en))return!1;try{return yr(Ut,bt,en),!0}catch{return!1}},Wr=function(en){if(!Xe(en))return!1;switch(gt(en)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cr||!!wr(Er,Gt(en))}catch{return!0}};Wr.sham=!0,We.exports=!yr||Ye(function(){var en;return Ue(Ue.call)||!Ue(Object)||!Ue(function(){en=!0})||en})?Wr:Ue}),Xi=r((Ct,We)=>{var je=On(),Ye=Xn(),Xe=et(),gt=Te(),Lt=gt("species"),Gt=Array;We.exports=function(Ut){var bt;return je(Ut)&&(bt=Ut.constructor,Ye(bt)&&(bt===Gt||je(bt.prototype))?bt=void 0:Xe(bt)&&(bt=bt[Lt],bt===null&&(bt=void 0))),bt===void 0?Gt:bt}}),is=r((Ct,We)=>{var je=Xi();We.exports=function(Ye,Xe){return new(je(Ye))(Xe===0?0:Xe)}}),Ln=r(()=>{var Ct=Nr(),We=jr(),je=Yt(),Ye=Yr(),Xe=ri(),gt=is();Ct({target:"Array",proto:!0},{flatMap:function(Lt){var Gt=Ye(this),Ut=Xe(Gt),bt;return je(Lt),bt=gt(Gt,0),bt.length=We(bt,Gt,Gt,Ut,0,1,Lt,arguments.length>1?arguments[1]:void 0),bt}})}),ss=r((Ct,We)=>{We.exports={}}),as=r((Ct,We)=>{var je=Te(),Ye=ss(),Xe=je("iterator"),gt=Array.prototype;We.exports=function(Lt){return Lt!==void 0&&(Ye.Array===Lt||gt[Xe]===Lt)}}),Ji=r((Ct,We)=>{var je=Mn(),Ye=St(),Xe=re(),gt=ss(),Lt=Te(),Gt=Lt("iterator");We.exports=function(Ut){if(!Xe(Ut))return Ye(Ut,Gt)||Ye(Ut,"@@iterator")||gt[je(Ut)]}}),ln=r((Ct,We)=>{var je=b(),Ye=Yt(),Xe=En(),gt=vt(),Lt=Ji(),Gt=TypeError;We.exports=function(Ut,bt){var yr=arguments.length<2?Lt(Ut):bt;if(Ye(yr))return Xe(je(yr,Ut));throw Gt(gt(Ut)+" is not iterable")}}),eo=r((Ct,We)=>{var je=b(),Ye=En(),Xe=St();We.exports=function(gt,Lt,Gt){var Ut,bt;Ye(gt);try{if(Ut=Xe(gt,"return"),!Ut){if(Lt==="throw")throw Gt;return Gt}Ut=je(Ut,gt)}catch(yr){bt=!0,Ut=yr}if(Lt==="throw")throw Gt;if(bt)throw Ut;return Ye(Ut),Gt}}),ki=r((Ct,We)=>{var je=Rr(),Ye=b(),Xe=En(),gt=vt(),Lt=as(),Gt=ri(),Ut=Re(),bt=ln(),yr=Ji(),Er=eo(),wr=TypeError,cr=function(Wr,en){this.stopped=Wr,this.result=en},Ue=cr.prototype;We.exports=function(Wr,en,Vt){var Dt=Vt&&Vt.that,Jn=!!(Vt&&Vt.AS_ENTRIES),Je=!!(Vt&&Vt.IS_RECORD),Ci=!!(Vt&&Vt.IS_ITERATOR),ls=!!(Vt&&Vt.INTERRUPTED),Ms=je(en,Dt),Jr,ai,qn,Oi,Bn,ta,wi,Bs=function(Fi){return Jr&&Er(Jr,"normal",Fi),new cr(!0,Fi)},Ea=function(Fi){return Jn?(Xe(Fi),ls?Ms(Fi[0],Fi[1],Bs):Ms(Fi[0],Fi[1])):ls?Ms(Fi,Bs):Ms(Fi)};if(Je)Jr=Wr.iterator;else if(Ci)Jr=Wr;else{if(ai=yr(Wr),!ai)throw wr(gt(Wr)+" is not iterable");if(Lt(ai)){for(qn=0,Oi=Gt(Wr);Oi>qn;qn++)if(Bn=Ea(Wr[qn]),Bn&&Ut(Ue,Bn))return Bn;return new cr(!1)}Jr=bt(Wr,ai)}for(ta=Je?Wr.next:Jr.next;!(wi=Ye(ta,Jr)).done;){try{Bn=Ea(wi.value)}catch(Fi){Er(Jr,"throw",Fi)}if(typeof Bn=="object"&&Bn&&Ut(Ue,Bn))return Bn}return new cr(!1)}}),Tr=r((Ct,We)=>{var je=Ve(),Ye=Xr(),Xe=F();We.exports=function(gt,Lt,Gt){var Ut=je(Lt);Ut in gt?Ye.f(gt,Ut,Xe(0,Gt)):gt[Ut]=Gt}}),Mt=r(()=>{var Ct=Nr(),We=ki(),je=Tr();Ct({target:"Object",stat:!0},{fromEntries:function(Ye){var Xe={};return We(Ye,function(gt,Lt){je(Xe,gt,Lt)},{AS_ENTRIES:!0}),Xe}})}),xt=r((Ct,We)=>{var je=yi(),Ye=Xr();We.exports=function(Xe,gt,Lt){return Lt.get&&je(Lt.get,gt,{getter:!0}),Lt.set&&je(Lt.set,gt,{setter:!0}),Ye.f(Xe,gt,Lt)}}),Rt=r((Ct,We)=>{var je=En();We.exports=function(){var Ye=je(this),Xe="";return Ye.hasIndices&&(Xe+="d"),Ye.global&&(Xe+="g"),Ye.ignoreCase&&(Xe+="i"),Ye.multiline&&(Xe+="m"),Ye.dotAll&&(Xe+="s"),Ye.unicode&&(Xe+="u"),Ye.unicodeSets&&(Xe+="v"),Ye.sticky&&(Xe+="y"),Xe}}),Ft=r(()=>{var Ct=o(),We=v(),je=xt(),Ye=Rt(),Xe=g(),gt=Ct.RegExp,Lt=gt.prototype,Gt=We&&Xe(function(){var Ut=!0;try{gt(".","d")}catch{Ut=!1}var bt={},yr="",Er=Ut?"dgimsy":"gimsy",wr=function(en,Vt){Object.defineProperty(bt,en,{get:function(){return yr+=Vt,!0}})},cr={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};Ut&&(cr.hasIndices="d");for(var Ue in cr)wr(Ue,cr[Ue]);var Wr=Object.getOwnPropertyDescriptor(Lt,"flags").get.call(bt);return Wr!==Er||yr!==Er});Gt&&je(Lt,"flags",{configurable:!0,get:Ye})}),qt=r(()=>{var Ct=Nr(),We=o();Ct({global:!0,forced:We.globalThis!==We},{globalThis:We})}),lr=r(()=>{qt()}),ar=r(()=>{var Ct=Nr(),We=jr(),je=Yr(),Ye=ri(),Xe=gr(),gt=is();Ct({target:"Array",proto:!0},{flat:function(){var Lt=arguments.length?arguments[0]:void 0,Gt=je(this),Ut=Ye(Gt),bt=gt(Gt,0);return bt.length=We(bt,Gt,Gt,Ut,0,Lt===void 0?1:Xe(Lt)),bt}})}),vr=r((Ct,We)=>{var je=["cliName","cliCategory","cliDescription"],Ye=["_"],Xe=["languageId"];function gt(a,c){if(a==null)return{};var m=Lt(a,c),y,C;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(a,y)&&(m[y]=a[y])}return m}function Lt(a,c){if(a==null)return{};var m={},y=Object.keys(a),C,x;for(x=0;x=0)&&(m[C]=a[C]);return m}Ln(),Mt(),Ft(),lr(),ar();var Gt=Object.create,Ut=Object.defineProperty,bt=Object.getOwnPropertyDescriptor,yr=Object.getOwnPropertyNames,Er=Object.getPrototypeOf,wr=Object.prototype.hasOwnProperty,cr=(a,c)=>function(){return a&&(c=(0,a[yr(a)[0]])(a=0)),c},Ue=(a,c)=>function(){return c||(0,a[yr(a)[0]])((c={exports:{}}).exports,c),c.exports},Wr=(a,c)=>{for(var m in c)Ut(a,m,{get:c[m],enumerable:!0})},en=(a,c,m,y)=>{if(c&&typeof c=="object"||typeof c=="function")for(let C of yr(c))!wr.call(a,C)&&C!==m&&Ut(a,C,{get:()=>c[C],enumerable:!(y=bt(c,C))||y.enumerable});return a},Vt=(a,c,m)=>(m=a!=null?Gt(Er(a)):{},en(c||!a||!a.__esModule?Ut(m,"default",{value:a,enumerable:!0}):m,a)),Dt=a=>en(Ut({},"__esModule",{value:!0}),a),Jn,Je=cr({""(){Jn={env:{},argv:[]}}}),Ci=Ue({"package.json"(a,c){c.exports={version:"2.8.8"}}}),ls=Ue({"node_modules/diff/lib/diff/base.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.default=c;function c(){}c.prototype={diff:function(C,x){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=A.callback;typeof A=="function"&&(S=A,A={}),this.options=A;var k=this;function O(ne){return S?(setTimeout(function(){S(void 0,ne)},0),!0):ne}C=this.castInput(C),x=this.castInput(x),C=this.removeEmpty(this.tokenize(C)),x=this.removeEmpty(this.tokenize(x));var G=x.length,z=C.length,q=1,U=G+z,$=[{newPos:-1,components:[]}],Q=this.extractCommon($[0],x,C,0);if($[0].newPos+1>=G&&Q+1>=z)return O([{value:this.join(x),count:x.length}]);function ce(){for(var ne=-1*q;ne<=q;ne+=2){var me=void 0,ue=$[ne-1],Ee=$[ne+1],ye=(Ee?Ee.newPos:0)-ne;ue&&($[ne-1]=void 0);var Oe=ue&&ue.newPos+1=G&&ye+1>=z)return O(m(k,me.components,x,C,k.useLongestToken));$[ne]=me}q++}if(S)(function ne(){setTimeout(function(){if(q>U)return S();ce()||ne()},0)})();else for(;q<=U;){var ge=ce();if(ge)return ge}},pushComponent:function(C,x,A){var S=C[C.length-1];S&&S.added===x&&S.removed===A?C[C.length-1]={count:S.count+1,added:x,removed:A}:C.push({count:1,added:x,removed:A})},extractCommon:function(C,x,A,S){for(var k=x.length,O=A.length,G=C.newPos,z=G-S,q=0;G+1ge.length?me:ge}),U.value=C.join(Q)}else U.value=C.join(A.slice(z,z+U.count));z+=U.count,U.added||(q+=U.count)}}var ce=x[G-1];return G>1&&typeof ce.value=="string"&&(ce.added||ce.removed)&&C.equals("",ce.value)&&(x[G-2].value+=ce.value,x.pop()),x}function y(C){return{newPos:C.newPos,components:C.components.slice(0)}}}}),Ms=Ue({"node_modules/diff/lib/diff/array.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.diffArrays=C,a.arrayDiff=void 0;var c=m(ls());function m(x){return x&&x.__esModule?x:{default:x}}var y=new c.default;a.arrayDiff=y,y.tokenize=function(x){return x.slice()},y.join=y.removeEmpty=function(x){return x};function C(x,A,S){return y.diff(x,A,S)}}}),Jr=Ue({"src/document/doc-builders.js"(a,c){Je();function m(te){return{type:"concat",parts:te}}function y(te){return{type:"indent",contents:te}}function C(te,B){return{type:"align",contents:B,n:te}}function x(te){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:B.id,contents:te,break:!!B.shouldBreak,expandedStates:B.expandedStates}}function A(te){return C(Number.NEGATIVE_INFINITY,te)}function S(te){return C({type:"root"},te)}function k(te){return C(-1,te)}function O(te,B){return x(te[0],Object.assign(Object.assign({},B),{},{expandedStates:te}))}function G(te){return{type:"fill",parts:te}}function z(te,B){let X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:te,flatContents:B,groupId:X.groupId}}function q(te,B){return{type:"indent-if-break",contents:te,groupId:B.groupId,negate:B.negate}}function U(te){return{type:"line-suffix",contents:te}}var $={type:"line-suffix-boundary"},Q={type:"break-parent"},ce={type:"trim"},ge={type:"line",hard:!0},ne={type:"line",hard:!0,literal:!0},me={type:"line"},ue={type:"line",soft:!0},Ee=m([ge,Q]),ye=m([ne,Q]),Oe={type:"cursor",placeholder:Symbol("cursor")};function V(te,B){let X=[];for(let Z=0;Z0){for(let se=0;se=0?A.charAt(S+1)===` +`?"crlf":"cr":"lf"}function y(A){switch(A){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}function C(A,S){let k;switch(S){case` +`:k=/\n/g;break;case"\r":k=/\r/g;break;case`\r +`:k=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(S)}.`)}let O=A.match(k);return O?O.length:0}function x(A){return A.replace(/\r\n?/g,` +`)}c.exports={guessEndOfLine:m,convertEndOfLineToChars:y,countEndOfLineChars:C,normalizeEndOfLine:x}}}),qn=Ue({"src/utils/get-last.js"(a,c){Je();var m=y=>y[y.length-1];c.exports=m}});function Oi(){let{onlyFirst:a=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(c,a?void 0:"g")}var Bn=cr({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Je()}});function ta(a){if(typeof a!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof a}\``);return a.replace(Oi(),"")}var wi=cr({"node_modules/strip-ansi/index.js"(){Je(),Bn()}});function Bs(a){return Number.isInteger(a)?a>=4352&&(a<=4447||a===9001||a===9002||11904<=a&&a<=12871&&a!==12351||12880<=a&&a<=19903||19968<=a&&a<=42182||43360<=a&&a<=43388||44032<=a&&a<=55203||63744<=a&&a<=64255||65040<=a&&a<=65049||65072<=a&&a<=65131||65281<=a&&a<=65376||65504<=a&&a<=65510||110592<=a&&a<=110593||127488<=a&&a<=127569||131072<=a&&a<=262141):!1}var Ea=cr({"node_modules/is-fullwidth-code-point/index.js"(){Je()}}),Fi=Ue({"node_modules/emoji-regex/index.js"(a,c){Je(),c.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),As={};Wr(As,{default:()=>to});function to(a){if(typeof a!="string"||a.length===0||(a=ta(a),a.length===0))return 0;a=a.replace((0,Io.default)()," ");let c=0;for(let m=0;m=127&&y<=159||y>=768&&y<=879||(y>65535&&m++,c+=Bs(y)?2:1)}return c}var Io,Lo=cr({"node_modules/string-width/index.js"(){Je(),wi(),Ea(),Io=Vt(Fi())}}),ro=Ue({"src/utils/get-string-width.js"(a,c){Je();var m=(Lo(),Dt(As)).default,y=/[^\x20-\x7F]/;function C(x){return x?y.test(x)?m(x):x.length:0}c.exports=C}}),Rs=Ue({"src/document/doc-utils.js"(a,c){Je();var m=qn(),{literalline:y,join:C}=Jr(),x=B=>Array.isArray(B)||B&&B.type==="concat",A=B=>{if(Array.isArray(B))return B;if(B.type!=="concat"&&B.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return B.parts},S={};function k(B,X,Z,se){let ae=[B];for(;ae.length>0;){let pe=ae.pop();if(pe===S){Z(ae.pop());continue}if(Z&&ae.push(pe,S),!X||X(pe)!==!1)if(x(pe)||pe.type==="fill"){let De=A(pe);for(let we=De.length,Se=we-1;Se>=0;--Se)ae.push(De[Se])}else if(pe.type==="if-break")pe.flatContents&&ae.push(pe.flatContents),pe.breakContents&&ae.push(pe.breakContents);else if(pe.type==="group"&&pe.expandedStates)if(se)for(let De=pe.expandedStates.length,we=De-1;we>=0;--we)ae.push(pe.expandedStates[we]);else ae.push(pe.contents);else pe.contents&&ae.push(pe.contents)}}function O(B,X){let Z=new Map;return se(B);function se(pe){if(Z.has(pe))return Z.get(pe);let De=ae(pe);return Z.set(pe,De),De}function ae(pe){if(Array.isArray(pe))return X(pe.map(se));if(pe.type==="concat"||pe.type==="fill"){let De=pe.parts.map(se);return X(Object.assign(Object.assign({},pe),{},{parts:De}))}if(pe.type==="if-break"){let De=pe.breakContents&&se(pe.breakContents),we=pe.flatContents&&se(pe.flatContents);return X(Object.assign(Object.assign({},pe),{},{breakContents:De,flatContents:we}))}if(pe.type==="group"&&pe.expandedStates){let De=pe.expandedStates.map(se),we=De[0];return X(Object.assign(Object.assign({},pe),{},{contents:we,expandedStates:De}))}if(pe.contents){let De=se(pe.contents);return X(Object.assign(Object.assign({},pe),{},{contents:De}))}return X(pe)}}function G(B,X,Z){let se=Z,ae=!1;function pe(De){let we=X(De);if(we!==void 0&&(ae=!0,se=we),ae)return!1}return k(B,pe),se}function z(B){if(B.type==="group"&&B.break||B.type==="line"&&B.hard||B.type==="break-parent")return!0}function q(B){return G(B,z,!1)}function U(B){if(B.length>0){let X=m(B);!X.expandedStates&&!X.break&&(X.break="propagated")}return null}function $(B){let X=new Set,Z=[];function se(pe){if(pe.type==="break-parent"&&U(Z),pe.type==="group"){if(Z.push(pe),X.has(pe))return!1;X.add(pe)}}function ae(pe){pe.type==="group"&&Z.pop().break&&U(Z)}k(B,se,ae,!0)}function Q(B){return B.type==="line"&&!B.hard?B.soft?"":" ":B.type==="if-break"?B.flatContents||"":B}function ce(B){return O(B,Q)}var ge=(B,X)=>B&&B.type==="line"&&B.hard&&X&&X.type==="break-parent";function ne(B){if(!B)return B;if(x(B)||B.type==="fill"){let X=A(B);for(;X.length>1&&ge(...X.slice(-2));)X.length-=2;if(X.length>0){let Z=ne(m(X));X[X.length-1]=Z}return Array.isArray(B)?X:Object.assign(Object.assign({},B),{},{parts:X})}switch(B.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let X=ne(B.contents);return Object.assign(Object.assign({},B),{},{contents:X})}case"if-break":{let X=ne(B.breakContents),Z=ne(B.flatContents);return Object.assign(Object.assign({},B),{},{breakContents:X,flatContents:Z})}}return B}function me(B){return ne(Ee(B))}function ue(B){switch(B.type){case"fill":if(B.parts.every(Z=>Z===""))return"";break;case"group":if(!B.contents&&!B.id&&!B.break&&!B.expandedStates)return"";if(B.contents.type==="group"&&B.contents.id===B.id&&B.contents.break===B.break&&B.contents.expandedStates===B.expandedStates)return B.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!B.contents)return"";break;case"if-break":if(!B.flatContents&&!B.breakContents)return"";break}if(!x(B))return B;let X=[];for(let Z of A(B)){if(!Z)continue;let[se,...ae]=x(Z)?A(Z):[Z];typeof se=="string"&&typeof m(X)=="string"?X[X.length-1]+=se:X.push(se),X.push(...ae)}return X.length===0?"":X.length===1?X[0]:Array.isArray(B)?X:Object.assign(Object.assign({},B),{},{parts:X})}function Ee(B){return O(B,X=>ue(X))}function ye(B){let X=[],Z=B.filter(Boolean);for(;Z.length>0;){let se=Z.shift();if(se){if(x(se)){Z.unshift(...A(se));continue}if(X.length>0&&typeof m(X)=="string"&&typeof se=="string"){X[X.length-1]+=se;continue}X.push(se)}}return X}function Oe(B){return O(B,X=>Array.isArray(X)?ye(X):X.parts?Object.assign(Object.assign({},X),{},{parts:ye(X.parts)}):X)}function V(B){return O(B,X=>typeof X=="string"&&X.includes(` +`)?le(X):X)}function le(B){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return C(X,B.split(` +`)).parts}function W(B){if(B.type==="line")return!0}function te(B){return G(B,W,!1)}c.exports={isConcat:x,getDocParts:A,willBreak:q,traverseDoc:k,findInDoc:G,mapDoc:O,propagateBreaks:$,removeLines:ce,stripTrailingHardline:me,normalizeParts:ye,normalizeDoc:Oe,cleanDoc:Ee,replaceTextEndOfLine:le,replaceEndOfLine:V,canBreak:te}}}),Da=Ue({"src/document/doc-printer.js"(a,c){Je();var{convertEndOfLineToChars:m}=ai(),y=qn(),C=ro(),{fill:x,cursor:A,indent:S}=Jr(),{isConcat:k,getDocParts:O}=Rs(),G,z=1,q=2;function U(){return{value:"",length:0,queue:[]}}function $(ue,Ee){return ce(ue,{type:"indent"},Ee)}function Q(ue,Ee,ye){return Ee===Number.NEGATIVE_INFINITY?ue.root||U():Ee<0?ce(ue,{type:"dedent"},ye):Ee?Ee.type==="root"?Object.assign(Object.assign({},ue),{},{root:ue}):ce(ue,{type:typeof Ee=="string"?"stringAlign":"numberAlign",n:Ee},ye):ue}function ce(ue,Ee,ye){let Oe=Ee.type==="dedent"?ue.queue.slice(0,-1):[...ue.queue,Ee],V="",le=0,W=0,te=0;for(let De of Oe)switch(De.type){case"indent":Z(),ye.useTabs?B(1):X(ye.tabWidth);break;case"stringAlign":Z(),V+=De.n,le+=De.n.length;break;case"numberAlign":W+=1,te+=De.n;break;default:throw new Error(`Unexpected type '${De.type}'`)}return ae(),Object.assign(Object.assign({},ue),{},{value:V,length:le,queue:Oe});function B(De){V+=" ".repeat(De),le+=ye.tabWidth*De}function X(De){V+=" ".repeat(De),le+=De}function Z(){ye.useTabs?se():ae()}function se(){W>0&&B(W),pe()}function ae(){te>0&&X(te),pe()}function pe(){W=0,te=0}}function ge(ue){if(ue.length===0)return 0;let Ee=0;for(;ue.length>0&&typeof y(ue)=="string"&&/^[\t ]*$/.test(y(ue));)Ee+=ue.pop().length;if(ue.length>0&&typeof y(ue)=="string"){let ye=y(ue).replace(/[\t ]*$/,"");Ee+=y(ue).length-ye.length,ue[ue.length-1]=ye}return Ee}function ne(ue,Ee,ye,Oe,V){let le=Ee.length,W=[ue],te=[];for(;ye>=0;){if(W.length===0){if(le===0)return!0;W.push(Ee[--le]);continue}let{mode:B,doc:X}=W.pop();if(typeof X=="string")te.push(X),ye-=C(X);else if(k(X)||X.type==="fill"){let Z=O(X);for(let se=Z.length-1;se>=0;se--)W.push({mode:B,doc:Z[se]})}else switch(X.type){case"indent":case"align":case"indent-if-break":case"label":W.push({mode:B,doc:X.contents});break;case"trim":ye+=ge(te);break;case"group":{if(V&&X.break)return!1;let Z=X.break?z:B,se=X.expandedStates&&Z===z?y(X.expandedStates):X.contents;W.push({mode:Z,doc:se});break}case"if-break":{let Z=(X.groupId?G[X.groupId]||q:B)===z?X.breakContents:X.flatContents;Z&&W.push({mode:B,doc:Z});break}case"line":if(B===z||X.hard)return!0;X.soft||(te.push(" "),ye--);break;case"line-suffix":Oe=!0;break;case"line-suffix-boundary":if(Oe)return!1;break}}return!1}function me(ue,Ee){G={};let ye=Ee.printWidth,Oe=m(Ee.endOfLine),V=0,le=[{ind:U(),mode:z,doc:ue}],W=[],te=!1,B=[];for(;le.length>0;){let{ind:Z,mode:se,doc:ae}=le.pop();if(typeof ae=="string"){let pe=Oe!==` +`?ae.replace(/\n/g,Oe):ae;W.push(pe),V+=C(pe)}else if(k(ae)){let pe=O(ae);for(let De=pe.length-1;De>=0;De--)le.push({ind:Z,mode:se,doc:pe[De]})}else switch(ae.type){case"cursor":W.push(A.placeholder);break;case"indent":le.push({ind:$(Z,Ee),mode:se,doc:ae.contents});break;case"align":le.push({ind:Q(Z,ae.n,Ee),mode:se,doc:ae.contents});break;case"trim":V-=ge(W);break;case"group":switch(se){case q:if(!te){le.push({ind:Z,mode:ae.break?z:q,doc:ae.contents});break}case z:{te=!1;let pe={ind:Z,mode:q,doc:ae.contents},De=ye-V,we=B.length>0;if(!ae.break&&ne(pe,le,De,we))le.push(pe);else if(ae.expandedStates){let Se=y(ae.expandedStates);if(ae.break){le.push({ind:Z,mode:z,doc:Se});break}else for(let _e=1;_e=ae.expandedStates.length){le.push({ind:Z,mode:z,doc:Se});break}else{let Ge=ae.expandedStates[_e],xe={ind:Z,mode:q,doc:Ge};if(ne(xe,le,De,we)){le.push(xe);break}}}else le.push({ind:Z,mode:z,doc:ae.contents});break}}ae.id&&(G[ae.id]=y(le).mode);break;case"fill":{let pe=ye-V,{parts:De}=ae;if(De.length===0)break;let[we,Se]=De,_e={ind:Z,mode:q,doc:we},Ge={ind:Z,mode:z,doc:we},xe=ne(_e,[],pe,B.length>0,!0);if(De.length===1){xe?le.push(_e):le.push(Ge);break}let nt={ind:Z,mode:q,doc:Se},Fe={ind:Z,mode:z,doc:Se};if(De.length===2){xe?le.push(nt,_e):le.push(Fe,Ge);break}De.splice(0,2);let be={ind:Z,mode:se,doc:x(De)},st=De[0];ne({ind:Z,mode:q,doc:[we,Se,st]},[],pe,B.length>0,!0)?le.push(be,nt,_e):xe?le.push(be,Fe,_e):le.push(be,Fe,Ge);break}case"if-break":case"indent-if-break":{let pe=ae.groupId?G[ae.groupId]:se;if(pe===z){let De=ae.type==="if-break"?ae.breakContents:ae.negate?ae.contents:S(ae.contents);De&&le.push({ind:Z,mode:se,doc:De})}if(pe===q){let De=ae.type==="if-break"?ae.flatContents:ae.negate?S(ae.contents):ae.contents;De&&le.push({ind:Z,mode:se,doc:De})}break}case"line-suffix":B.push({ind:Z,mode:se,doc:ae.contents});break;case"line-suffix-boundary":B.length>0&&le.push({ind:Z,mode:se,doc:{type:"line",hard:!0}});break;case"line":switch(se){case q:if(ae.hard)te=!0;else{ae.soft||(W.push(" "),V+=1);break}case z:if(B.length>0){le.push({ind:Z,mode:se,doc:ae},...B.reverse()),B.length=0;break}ae.literal?Z.root?(W.push(Oe,Z.root.value),V=Z.root.length):(W.push(Oe),V=0):(V-=ge(W),W.push(Oe+Z.value),V=Z.length);break}break;case"label":le.push({ind:Z,mode:se,doc:ae.contents});break}le.length===0&&B.length>0&&(le.push(...B.reverse()),B.length=0)}let X=W.indexOf(A.placeholder);if(X!==-1){let Z=W.indexOf(A.placeholder,X+1),se=W.slice(0,X).join(""),ae=W.slice(X+1,Z).join(""),pe=W.slice(Z+1).join("");return{formatted:se+ae+pe,cursorNodeStart:se.length,cursorNodeText:ae}}return{formatted:W.join("")}}c.exports={printDocToString:me}}}),no=Ue({"src/document/doc-debug.js"(a,c){Je();var{isConcat:m,getDocParts:y}=Rs();function C(A){if(!A)return"";if(m(A)){let S=[];for(let k of y(A))if(m(k))S.push(...C(k).parts);else{let O=C(k);O!==""&&S.push(O)}return{type:"concat",parts:S}}return A.type==="if-break"?Object.assign(Object.assign({},A),{},{breakContents:C(A.breakContents),flatContents:C(A.flatContents)}):A.type==="group"?Object.assign(Object.assign({},A),{},{contents:C(A.contents),expandedStates:A.expandedStates&&A.expandedStates.map(C)}):A.type==="fill"?{type:"fill",parts:A.parts.map(C)}:A.contents?Object.assign(Object.assign({},A),{},{contents:C(A.contents)}):A}function x(A){let S=Object.create(null),k=new Set;return O(C(A));function O(z,q,U){if(typeof z=="string")return JSON.stringify(z);if(m(z)){let $=y(z).map(O).filter(Boolean);return $.length===1?$[0]:`[${$.join(", ")}]`}if(z.type==="line"){let $=Array.isArray(U)&&U[q+1]&&U[q+1].type==="break-parent";return z.literal?$?"literalline":"literallineWithoutBreakParent":z.hard?$?"hardline":"hardlineWithoutBreakParent":z.soft?"softline":"line"}if(z.type==="break-parent")return Array.isArray(U)&&U[q-1]&&U[q-1].type==="line"&&U[q-1].hard?void 0:"breakParent";if(z.type==="trim")return"trim";if(z.type==="indent")return"indent("+O(z.contents)+")";if(z.type==="align")return z.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+O(z.contents)+")":z.n<0?"dedent("+O(z.contents)+")":z.n.type==="root"?"markAsRoot("+O(z.contents)+")":"align("+JSON.stringify(z.n)+", "+O(z.contents)+")";if(z.type==="if-break")return"ifBreak("+O(z.breakContents)+(z.flatContents?", "+O(z.flatContents):"")+(z.groupId?(z.flatContents?"":', ""')+`, { groupId: ${G(z.groupId)} }`:"")+")";if(z.type==="indent-if-break"){let $=[];z.negate&&$.push("negate: true"),z.groupId&&$.push(`groupId: ${G(z.groupId)}`);let Q=$.length>0?`, { ${$.join(", ")} }`:"";return`indentIfBreak(${O(z.contents)}${Q})`}if(z.type==="group"){let $=[];z.break&&z.break!=="propagated"&&$.push("shouldBreak: true"),z.id&&$.push(`id: ${G(z.id)}`);let Q=$.length>0?`, { ${$.join(", ")} }`:"";return z.expandedStates?`conditionalGroup([${z.expandedStates.map(ce=>O(ce)).join(",")}]${Q})`:`group(${O(z.contents)}${Q})`}if(z.type==="fill")return`fill([${z.parts.map($=>O($)).join(", ")}])`;if(z.type==="line-suffix")return"lineSuffix("+O(z.contents)+")";if(z.type==="line-suffix-boundary")return"lineSuffixBoundary";if(z.type==="label")return`label(${JSON.stringify(z.label)}, ${O(z.contents)})`;throw new Error("Unknown doc type "+z.type)}function G(z){if(typeof z!="symbol")return JSON.stringify(String(z));if(z in S)return S[z];let q=String(z).slice(7,-1)||"symbol";for(let U=0;;U++){let $=q+(U>0?` #${U}`:"");if(!k.has($))return k.add($),S[z]=`Symbol.for(${JSON.stringify($)})`}}}c.exports={printDocToDebug:x}}}),Gr=Ue({"src/document/index.js"(a,c){Je(),c.exports={builders:Jr(),printer:Da(),utils:Rs(),debug:no()}}}),Zu={};Wr(Zu,{default:()=>Bl});function Bl(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Oo=cr({"node_modules/escape-string-regexp/index.js"(){Je()}}),cs=Ue({"node_modules/semver/internal/debug.js"(a,c){Je();var m=typeof Jn=="object"&&Jn.env&&Jn.env.NODE_DEBUG&&/\bsemver\b/i.test(Jn.env.NODE_DEBUG)?function(){for(var y=arguments.length,C=new Array(y),x=0;x{};c.exports=m}}),Ta=Ue({"node_modules/semver/internal/constants.js"(a,c){Je();var m="2.0.0",y=256,C=Number.MAX_SAFE_INTEGER||9007199254740991,x=16;c.exports={SEMVER_SPEC_VERSION:m,MAX_LENGTH:y,MAX_SAFE_INTEGER:C,MAX_SAFE_COMPONENT_LENGTH:x}}}),Rl=Ue({"node_modules/semver/internal/re.js"(a,c){Je();var{MAX_SAFE_COMPONENT_LENGTH:m}=Ta(),y=cs();a=c.exports={};var C=a.re=[],x=a.src=[],A=a.t={},S=0,k=(O,G,z)=>{let q=S++;y(O,q,G),A[O]=q,x[q]=G,C[q]=new RegExp(G,z?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*"),k("NUMERICIDENTIFIERLOOSE","[0-9]+"),k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),k("MAINVERSION",`(${x[A.NUMERICIDENTIFIER]})\\.(${x[A.NUMERICIDENTIFIER]})\\.(${x[A.NUMERICIDENTIFIER]})`),k("MAINVERSIONLOOSE",`(${x[A.NUMERICIDENTIFIERLOOSE]})\\.(${x[A.NUMERICIDENTIFIERLOOSE]})\\.(${x[A.NUMERICIDENTIFIERLOOSE]})`),k("PRERELEASEIDENTIFIER",`(?:${x[A.NUMERICIDENTIFIER]}|${x[A.NONNUMERICIDENTIFIER]})`),k("PRERELEASEIDENTIFIERLOOSE",`(?:${x[A.NUMERICIDENTIFIERLOOSE]}|${x[A.NONNUMERICIDENTIFIER]})`),k("PRERELEASE",`(?:-(${x[A.PRERELEASEIDENTIFIER]}(?:\\.${x[A.PRERELEASEIDENTIFIER]})*))`),k("PRERELEASELOOSE",`(?:-?(${x[A.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${x[A.PRERELEASEIDENTIFIERLOOSE]})*))`),k("BUILDIDENTIFIER","[0-9A-Za-z-]+"),k("BUILD",`(?:\\+(${x[A.BUILDIDENTIFIER]}(?:\\.${x[A.BUILDIDENTIFIER]})*))`),k("FULLPLAIN",`v?${x[A.MAINVERSION]}${x[A.PRERELEASE]}?${x[A.BUILD]}?`),k("FULL",`^${x[A.FULLPLAIN]}$`),k("LOOSEPLAIN",`[v=\\s]*${x[A.MAINVERSIONLOOSE]}${x[A.PRERELEASELOOSE]}?${x[A.BUILD]}?`),k("LOOSE",`^${x[A.LOOSEPLAIN]}$`),k("GTLT","((?:<|>)?=?)"),k("XRANGEIDENTIFIERLOOSE",`${x[A.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),k("XRANGEIDENTIFIER",`${x[A.NUMERICIDENTIFIER]}|x|X|\\*`),k("XRANGEPLAIN",`[v=\\s]*(${x[A.XRANGEIDENTIFIER]})(?:\\.(${x[A.XRANGEIDENTIFIER]})(?:\\.(${x[A.XRANGEIDENTIFIER]})(?:${x[A.PRERELEASE]})?${x[A.BUILD]}?)?)?`),k("XRANGEPLAINLOOSE",`[v=\\s]*(${x[A.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[A.XRANGEIDENTIFIERLOOSE]})(?:\\.(${x[A.XRANGEIDENTIFIERLOOSE]})(?:${x[A.PRERELEASELOOSE]})?${x[A.BUILD]}?)?)?`),k("XRANGE",`^${x[A.GTLT]}\\s*${x[A.XRANGEPLAIN]}$`),k("XRANGELOOSE",`^${x[A.GTLT]}\\s*${x[A.XRANGEPLAINLOOSE]}$`),k("COERCE",`(^|[^\\d])(\\d{1,${m}})(?:\\.(\\d{1,${m}}))?(?:\\.(\\d{1,${m}}))?(?:$|[^\\d])`),k("COERCERTL",x[A.COERCE],!0),k("LONETILDE","(?:~>?)"),k("TILDETRIM",`(\\s*)${x[A.LONETILDE]}\\s+`,!0),a.tildeTrimReplace="$1~",k("TILDE",`^${x[A.LONETILDE]}${x[A.XRANGEPLAIN]}$`),k("TILDELOOSE",`^${x[A.LONETILDE]}${x[A.XRANGEPLAINLOOSE]}$`),k("LONECARET","(?:\\^)"),k("CARETTRIM",`(\\s*)${x[A.LONECARET]}\\s+`,!0),a.caretTrimReplace="$1^",k("CARET",`^${x[A.LONECARET]}${x[A.XRANGEPLAIN]}$`),k("CARETLOOSE",`^${x[A.LONECARET]}${x[A.XRANGEPLAINLOOSE]}$`),k("COMPARATORLOOSE",`^${x[A.GTLT]}\\s*(${x[A.LOOSEPLAIN]})$|^$`),k("COMPARATOR",`^${x[A.GTLT]}\\s*(${x[A.FULLPLAIN]})$|^$`),k("COMPARATORTRIM",`(\\s*)${x[A.GTLT]}\\s*(${x[A.LOOSEPLAIN]}|${x[A.XRANGEPLAIN]})`,!0),a.comparatorTrimReplace="$1$2$3",k("HYPHENRANGE",`^\\s*(${x[A.XRANGEPLAIN]})\\s+-\\s+(${x[A.XRANGEPLAIN]})\\s*$`),k("HYPHENRANGELOOSE",`^\\s*(${x[A.XRANGEPLAINLOOSE]})\\s+-\\s+(${x[A.XRANGEPLAINLOOSE]})\\s*$`),k("STAR","(<|>)?=?\\s*\\*"),k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),jl=Ue({"node_modules/semver/internal/parse-options.js"(a,c){Je();var m=["includePrerelease","loose","rtl"],y=C=>C?typeof C!="object"?{loose:!0}:m.filter(x=>C[x]).reduce((x,A)=>(x[A]=!0,x),{}):{};c.exports=y}}),el=Ue({"node_modules/semver/internal/identifiers.js"(a,c){Je();var m=/^[0-9]+$/,y=(x,A)=>{let S=m.test(x),k=m.test(A);return S&&k&&(x=+x,A=+A),x===A?0:S&&!k?-1:k&&!S?1:xy(A,x);c.exports={compareIdentifiers:y,rcompareIdentifiers:C}}}),vu=Ue({"node_modules/semver/classes/semver.js"(a,c){Je();var m=cs(),{MAX_LENGTH:y,MAX_SAFE_INTEGER:C}=Ta(),{re:x,t:A}=Rl(),S=jl(),{compareIdentifiers:k}=el(),O=class{constructor(G,z){if(z=S(z),G instanceof O){if(G.loose===!!z.loose&&G.includePrerelease===!!z.includePrerelease)return G;G=G.version}else if(typeof G!="string")throw new TypeError(`Invalid Version: ${G}`);if(G.length>y)throw new TypeError(`version is longer than ${y} characters`);m("SemVer",G,z),this.options=z,this.loose=!!z.loose,this.includePrerelease=!!z.includePrerelease;let q=G.trim().match(z.loose?x[A.LOOSE]:x[A.FULL]);if(!q)throw new TypeError(`Invalid Version: ${G}`);if(this.raw=G,this.major=+q[1],this.minor=+q[2],this.patch=+q[3],this.major>C||this.major<0)throw new TypeError("Invalid major version");if(this.minor>C||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>C||this.patch<0)throw new TypeError("Invalid patch version");q[4]?this.prerelease=q[4].split(".").map(U=>{if(/^[0-9]+$/.test(U)){let $=+U;if($>=0&&$=0;)typeof this.prerelease[q]=="number"&&(this.prerelease[q]++,q=-2);q===-1&&this.prerelease.push(0)}z&&(k(this.prerelease[0],z)===0?isNaN(this.prerelease[1])&&(this.prerelease=[z,0]):this.prerelease=[z,0]);break;default:throw new Error(`invalid increment argument: ${G}`)}return this.format(),this.raw=this.version,this}};c.exports=O}}),ps=Ue({"node_modules/semver/functions/compare.js"(a,c){Je();var m=vu(),y=(C,x,A)=>new m(C,A).compare(new m(x,A));c.exports=y}}),tl=Ue({"node_modules/semver/functions/lt.js"(a,c){Je();var m=ps(),y=(C,x,A)=>m(C,x,A)<0;c.exports=y}}),rl=Ue({"node_modules/semver/functions/gte.js"(a,c){Je();var m=ps(),y=(C,x,A)=>m(C,x,A)>=0;c.exports=y}}),nl=Ue({"src/utils/arrayify.js"(a,c){Je(),c.exports=(m,y)=>Object.entries(m).map(C=>{let[x,A]=C;return Object.assign({[y]:x},A)})}}),Mo=Ue({"node_modules/outdent/lib/index.js"(a,c){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.outdent=void 0;function m(){for(var ne=[],me=0;metypeof z=="string"||typeof z=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:k,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:z=>typeof z=="string"||typeof z=="object",cliName:"plugin",cliCategory:y},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:k,description:m` + Custom directory that contains prettier plugins in node_modules subdirectory. + Overrides default behavior when plugins are searched relatively to the location of Prettier. + Multiple values are accepted. + `,exception:z=>typeof z=="string"||typeof z=="object",cliName:"plugin-search-dir",cliCategory:y},printWidth:{since:"0.0.0",category:k,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:O,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:m` + Format code ending at a given character offset (exclusive). + The range will extend forwards to the end of the selected statement. + This option cannot be used with --cursor-offset. + `,cliCategory:C},rangeStart:{since:"1.4.0",category:O,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:m` + Format code starting at a given character offset. + The range will extend backwards to the start of the first line containing the selected statement. + This option cannot be used with --cursor-offset. + `,cliCategory:C},requirePragma:{since:"1.7.0",category:O,type:"boolean",default:!1,description:m` + Require either '@prettier' or '@format' to be present in the file's first docblock comment + in order for it to be formatted. + `,cliCategory:A},tabWidth:{type:"int",category:k,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:k,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:k,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};c.exports={CATEGORY_CONFIG:y,CATEGORY_EDITOR:C,CATEGORY_FORMAT:x,CATEGORY_OTHER:A,CATEGORY_OUTPUT:S,CATEGORY_GLOBAL:k,CATEGORY_SPECIAL:O,options:G}}}),Ca=Ue({"src/main/support.js"(a,c){Je();var m={compare:ps(),lt:tl(),gte:rl()},y=nl(),C=Ci().version,x=Bo().options;function A(){let{plugins:k=[],showUnreleased:O=!1,showDeprecated:G=!1,showInternal:z=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=C.split("-",1)[0],U=k.flatMap(ne=>ne.languages||[]).filter(Q),$=y(Object.assign({},...k.map(ne=>{let{options:me}=ne;return me}),x),"name").filter(ne=>Q(ne)&&ce(ne)).sort((ne,me)=>ne.name===me.name?0:ne.name{ne=Object.assign({},ne),Array.isArray(ne.default)&&(ne.default=ne.default.length===1?ne.default[0].value:ne.default.filter(Q).sort((ue,Ee)=>m.compare(Ee.since,ue.since))[0].value),Array.isArray(ne.choices)&&(ne.choices=ne.choices.filter(ue=>Q(ue)&&ce(ue)),ne.name==="parser"&&S(ne,U,k));let me=Object.fromEntries(k.filter(ue=>ue.defaultOptions&&ue.defaultOptions[ne.name]!==void 0).map(ue=>[ue.name,ue.defaultOptions[ne.name]]));return Object.assign(Object.assign({},ne),{},{pluginDefaults:me})});return{languages:U,options:$};function Q(ne){return O||!("since"in ne)||ne.since&&m.gte(q,ne.since)}function ce(ne){return G||!("deprecated"in ne)||ne.deprecated&&m.lt(q,ne.deprecated)}function ge(ne){return z?ne:gt(ne,je)}}function S(k,O,G){let z=new Set(k.choices.map(q=>q.value));for(let q of O)if(q.parsers){for(let U of q.parsers)if(!z.has(U)){z.add(U);let $=G.find(ce=>ce.parsers&&ce.parsers[U]),Q=q.name;$&&$.name&&(Q+=` (plugin: ${$.name})`),k.choices.push({value:U,description:Q})}}}c.exports={getSupportInfo:A}}}),io=Ue({"src/utils/is-non-empty-array.js"(a,c){Je();function m(y){return Array.isArray(y)&&y.length>0}c.exports=m}}),Ui=Ue({"src/utils/text/skip.js"(a,c){Je();function m(S){return(k,O,G)=>{let z=G&&G.backwards;if(O===!1)return!1;let{length:q}=k,U=O;for(;U>=0&&UFe[Fe.length-2];function ce(Fe){return(be,st,At)=>{let lt=At&&At.backwards;if(st===!1)return!1;let{length:Nt}=be,Le=st;for(;Le>=0&&Le2&&arguments[2]!==void 0?arguments[2]:{},At=k(Fe,st.backwards?be-1:be,st),lt=U(Fe,At,st);return At!==lt}function ne(Fe,be,st){for(let At=be;At2&&arguments[2]!==void 0?arguments[2]:{};return k(Fe,st.backwards?be-1:be,st)!==be}function le(Fe,be){let st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,At=0;for(let lt=st;ltkt?Nt:lt}return Le}function B(Fe,be){let st=Fe.slice(1,-1),At=be.parser==="json"||be.parser==="json5"&&be.quoteProps==="preserve"&&!be.singleQuote?'"':be.__isInHtmlAttribute?"'":te(st,be.singleQuote?"'":'"').quote;return X(st,At,!(be.parser==="css"||be.parser==="less"||be.parser==="scss"||be.__embeddedInHtml))}function X(Fe,be,st){let At=be==='"'?"'":'"',lt=/\\(.)|(["'])/gs,Nt=Fe.replace(lt,(Le,Ze,kt)=>Ze===At?Ze:kt===be?"\\"+kt:kt||(st&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Ze)?Ze:"\\"+Ze));return be+Nt+be}function Z(Fe){return Fe.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function se(Fe,be){let st=Fe.match(new RegExp(`(${m(be)})+`,"g"));return st===null?0:st.reduce((At,lt)=>Math.max(At,lt.length/be.length),0)}function ae(Fe,be){let st=Fe.match(new RegExp(`(${m(be)})+`,"g"));if(st===null)return 0;let At=new Map,lt=0;for(let Nt of st){let Le=Nt.length/be.length;At.set(Le,!0),Le>lt&&(lt=Le)}for(let Nt=1;Nt{let{name:Nt}=lt;return Nt.toLowerCase()===Fe})||st.find(lt=>{let{aliases:Nt}=lt;return Array.isArray(Nt)&&Nt.includes(Fe)})||st.find(lt=>{let{extensions:Nt}=lt;return Array.isArray(Nt)&&Nt.includes(`.${Fe}`)});return At&&At.parsers[0]}function Ge(Fe){return Fe&&Fe.type==="front-matter"}function xe(Fe){let be=new WeakMap;return function(st){return be.has(st)||be.set(st,Symbol(Fe)),be.get(st)}}function nt(Fe){let be=Fe.type||Fe.kind||"(unknown type)",st=String(Fe.name||Fe.id&&(typeof Fe.id=="object"?Fe.id.name:Fe.id)||Fe.key&&(typeof Fe.key=="object"?Fe.key.name:Fe.key)||Fe.value&&(typeof Fe.value=="object"?"":String(Fe.value))||Fe.operator||"");return st.length>20&&(st=st.slice(0,19)+"…"),be+(st?" "+st:"")}c.exports={inferParserByLanguage:_e,getStringWidth:A,getMaxContinuousCount:se,getMinNotPresentContinuousCount:ae,getPenultimate:Q,getLast:y,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:$,getNextNonSpaceNonCommentCharacterIndex:ye,getNextNonSpaceNonCommentCharacter:Oe,skip:ce,skipWhitespace:S,skipSpaces:k,skipToLineEnd:O,skipEverythingButNewLine:G,skipInlineComment:z,skipTrailingComment:q,skipNewline:U,isNextLineEmptyAfterIndex:ue,isNextLineEmpty:Ee,isPreviousLineEmpty:me,hasNewline:ge,hasNewlineInRange:ne,hasSpaces:V,getAlignmentSize:le,getIndentSize:W,getPreferredQuote:te,printString:B,printNumber:Z,makeString:X,addLeadingComment:De,addDanglingComment:we,addTrailingComment:Se,isFrontMatterNode:Ge,isNonEmptyArray:x,createGroupIdMapper:xe}}}),xa={};Wr(xa,{basename:()=>js,default:()=>mr,delimiter:()=>tr,dirname:()=>lo,extname:()=>fs,isAbsolute:()=>uo,join:()=>Ds,normalize:()=>hs,relative:()=>ba,resolve:()=>oo,sep:()=>or});function ao(a,c){for(var m=0,y=a.length-1;y>=0;y--){var C=a[y];C==="."?a.splice(y,1):C===".."?(a.splice(y,1),m++):m&&(a.splice(y,1),m--)}if(c)for(;m--;m)a.unshift("..");return a}function oo(){for(var a="",c=!1,m=arguments.length-1;m>=-1&&!c;m--){var y=m>=0?arguments[m]:"/";if(typeof y!="string")throw new TypeError("Arguments to path.resolve must be strings");y&&(a=y+"/"+a,c=y.charAt(0)==="/")}return a=ao(zr(a.split("/"),function(C){return!!C}),!c).join("/"),(c?"/":"")+a||"."}function hs(a){var c=uo(a),m=h(a,-1)==="/";return a=ao(zr(a.split("/"),function(y){return!!y}),!c).join("/"),!a&&!c&&(a="."),a&&m&&(a+="/"),(c?"/":"")+a}function uo(a){return a.charAt(0)==="/"}function Ds(){var a=Array.prototype.slice.call(arguments,0);return hs(zr(a,function(c,m){if(typeof c!="string")throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))}function ba(a,c){a=oo(a).substr(1),c=oo(c).substr(1);function m(O){for(var G=0;G=0&&O[z]==="";z--);return G>z?[]:O.slice(G,z-G+1)}for(var y=m(a.split("/")),C=m(c.split("/")),x=Math.min(y.length,C.length),A=x,S=0;Sdn,__asyncDelegator:()=>ir,__asyncGenerator:()=>Et,__asyncValues:()=>xr,__await:()=>_t,__awaiter:()=>at,__classPrivateFieldGet:()=>_n,__classPrivateFieldSet:()=>cn,__createBinding:()=>ee,__decorate:()=>oe,__exportStar:()=>ve,__extends:()=>K,__generator:()=>Qe,__importDefault:()=>Kr,__importStar:()=>Fr,__makeTemplateObject:()=>Hr,__metadata:()=>it,__param:()=>de,__read:()=>qe,__rest:()=>I,__spread:()=>Pe,__spreadArrays:()=>pt,__values:()=>ke});function K(a,c){pn(a,c);function m(){this.constructor=a}a.prototype=c===null?Object.create(c):(m.prototype=c.prototype,new m)}function I(a,c){var m={};for(var y in a)Object.prototype.hasOwnProperty.call(a,y)&&c.indexOf(y)<0&&(m[y]=a[y]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,y=Object.getOwnPropertySymbols(a);C=0;S--)(A=a[S])&&(x=(C<3?A(x):C>3?A(c,m,x):A(c,m))||x);return C>3&&x&&Object.defineProperty(c,m,x),x}function de(a,c){return function(m,y){c(m,y,a)}}function it(a,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,c)}function at(a,c,m,y){function C(x){return x instanceof m?x:new m(function(A){A(x)})}return new(m||(m=Promise))(function(x,A){function S(G){try{O(y.next(G))}catch(z){A(z)}}function k(G){try{O(y.throw(G))}catch(z){A(z)}}function O(G){G.done?x(G.value):C(G.value).then(S,k)}O((y=y.apply(a,c||[])).next())})}function Qe(a,c){var m={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},y,C,x,A;return A={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function S(O){return function(G){return k([O,G])}}function k(O){if(y)throw new TypeError("Generator is already executing.");for(;m;)try{if(y=1,C&&(x=O[0]&2?C.return:O[0]?C.throw||((x=C.return)&&x.call(C),0):C.next)&&!(x=x.call(C,O[1])).done)return x;switch(C=0,x&&(O=[O[0]&2,x.value]),O[0]){case 0:case 1:x=O;break;case 4:return m.label++,{value:O[1],done:!1};case 5:m.label++,C=O[1],O=[0];continue;case 7:O=m.ops.pop(),m.trys.pop();continue;default:if(x=m.trys,!(x=x.length>0&&x[x.length-1])&&(O[0]===6||O[0]===2)){m=0;continue}if(O[0]===3&&(!x||O[1]>x[0]&&O[1]=a.length&&(a=void 0),{value:a&&a[y++],done:!a}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}function qe(a,c){var m=typeof Symbol=="function"&&a[Symbol.iterator];if(!m)return a;var y=m.call(a),C,x=[],A;try{for(;(c===void 0||c-- >0)&&!(C=y.next()).done;)x.push(C.value)}catch(S){A={error:S}}finally{try{C&&!C.done&&(m=y.return)&&m.call(y)}finally{if(A)throw A.error}}return x}function Pe(){for(var a=[],c=0;c1||S(q,U)})})}function S(q,U){try{k(y[q](U))}catch($){z(x[0][3],$)}}function k(q){q.value instanceof _t?Promise.resolve(q.value.v).then(O,G):z(x[0][2],q)}function O(q){S("next",q)}function G(q){S("throw",q)}function z(q,U){q(U),x.shift(),x.length&&S(x[0][0],x[0][1])}}function ir(a){var c,m;return c={},y("next"),y("throw",function(C){throw C}),y("return"),c[Symbol.iterator]=function(){return this},c;function y(C,x){c[C]=a[C]?function(A){return(m=!m)?{value:_t(a[C](A)),done:C==="return"}:x?x(A):A}:x}}function xr(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=a[Symbol.asyncIterator],m;return c?c.call(a):(a=typeof ke=="function"?ke(a):a[Symbol.iterator](),m={},y("next"),y("throw"),y("return"),m[Symbol.asyncIterator]=function(){return this},m);function y(x){m[x]=a[x]&&function(A){return new Promise(function(S,k){A=a[x](A),C(S,k,A.done,A.value)})}}function C(x,A,S,k){Promise.resolve(k).then(function(O){x({value:O,done:S})},A)}}function Hr(a,c){return Object.defineProperty?Object.defineProperty(a,"raw",{value:c}):a.raw=c,a}function Fr(a){if(a&&a.__esModule)return a;var c={};if(a!=null)for(var m in a)Object.hasOwnProperty.call(a,m)&&(c[m]=a[m]);return c.default=a,c}function Kr(a){return a&&a.__esModule?a:{default:a}}function _n(a,c){if(!c.has(a))throw new TypeError("attempted to get private field on non-instance");return c.get(a)}function cn(a,c,m){if(!c.has(a))throw new TypeError("attempted to set private field on non-instance");return c.set(a,m),m}var pn,dn,Fn=cr({"node_modules/tslib/tslib.es6.js"(){Je(),pn=function(a,c){return pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var C in y)y.hasOwnProperty(C)&&(m[C]=y[C])},pn(a,c)},dn=function(){return dn=Object.assign||function(a){for(var c,m=1,y=arguments.length;m/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(c)?c:JSON.stringify(c),value(c){if(c===null||typeof c!="object")return JSON.stringify(c);if(Array.isArray(c))return`[${c.map(y=>a.apiDescriptor.value(y)).join(", ")}]`;let m=Object.keys(c);return m.length===0?"{}":`{ ${m.map(y=>`${a.apiDescriptor.key(y)}: ${a.apiDescriptor.value(c[y])}`).join(", ")} }`},pair:c=>{let{key:m,value:y}=c;return a.apiDescriptor.value({[m]:y})}}}}),li=Ue({"node_modules/vnopts/lib/descriptors/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(Pi(),a)}}),zi=Ue({"scripts/build/shims/chalk.cjs"(a,c){Je();var m=y=>y;m.grey=m,m.red=m,m.bold=m,m.yellow=m,m.blue=m,m.default=m,c.exports=m}}),Hs=Ue({"node_modules/vnopts/lib/handlers/deprecated/common.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=zi();a.commonDeprecatedHandler=(m,y,C)=>{let{descriptor:x}=C,A=[`${c.default.yellow(typeof m=="string"?x.key(m):x.pair(m))} is deprecated`];return y&&A.push(`we now treat it as ${c.default.blue(typeof y=="string"?x.key(y):x.pair(y))}`),A.join("; ")+"."}}}),Us=Ue({"node_modules/vnopts/lib/handlers/deprecated/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(Hs(),a)}}),Aa=Ue({"node_modules/vnopts/lib/handlers/invalid/common.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=zi();a.commonInvalidHandler=(m,y,C)=>[`Invalid ${c.default.red(C.descriptor.key(m))} value.`,`Expected ${c.default.blue(C.schemas[m].expected(C))},`,`but received ${c.default.red(C.descriptor.value(y))}.`].join(" ")}}),Ro=Ue({"node_modules/vnopts/lib/handlers/invalid/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(Aa(),a)}}),Du=Ue({"node_modules/vnopts/node_modules/leven/index.js"(a,c){Je();var m=[],y=[];c.exports=function(C,x){if(C===x)return 0;var A=C;C.length>x.length&&(C=x,x=A);var S=C.length,k=x.length;if(S===0)return k;if(k===0)return S;for(;S>0&&C.charCodeAt(~-S)===x.charCodeAt(~-k);)S--,k--;if(S===0)return k;for(var O=0;Oz?U>z?z+1:U:U>q?q+1:U;return z}}}),Ts=Ue({"node_modules/vnopts/lib/handlers/unknown/leven.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=zi(),m=Du();a.levenUnknownHandler=(y,C,x)=>{let{descriptor:A,logger:S,schemas:k}=x,O=[`Ignored unknown option ${c.default.yellow(A.pair({key:y,value:C}))}.`],G=Object.keys(k).sort().find(z=>m(y,z)<3);G&&O.push(`Did you mean ${c.default.blue(A.key(G))}?`),S.warn(O.join(" "))}}}),ra=Ue({"node_modules/vnopts/lib/handlers/unknown/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(Ts(),a)}}),Ri=Ue({"node_modules/vnopts/lib/handlers/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(Us(),a),c.__exportStar(Ro(),a),c.__exportStar(ra(),a)}}),Cs=Ue({"node_modules/vnopts/lib/schema.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function m(x,A){let S=new x(A),k=Object.create(S);for(let O of c)O in A&&(k[O]=C(A[O],S,y.prototype[O].length));return k}a.createSchema=m;var y=class{constructor(x){this.name=x.name}static create(x){return m(this,x)}default(x){}expected(x){return"nothing"}validate(x,A){return!1}deprecated(x,A){return!1}forward(x,A){}redirect(x,A){}overlap(x,A,S){return x}preprocess(x,A){return x}postprocess(x,A){return x}};a.Schema=y;function C(x,A,S){return typeof x=="function"?function(){for(var k=arguments.length,O=new Array(k),G=0;Gx}}}),$i=Ue({"node_modules/vnopts/lib/schemas/alias.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=class extends c.Schema{constructor(y){super(y),this._sourceName=y.sourceName}expected(y){return y.schemas[this._sourceName].expected(y)}validate(y,C){return C.schemas[this._sourceName].validate(y,C)}redirect(y,C){return this._sourceName}};a.AliasSchema=m}}),Hl=Ue({"node_modules/vnopts/lib/schemas/any.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=class extends c.Schema{expected(){return"anything"}validate(){return!0}};a.AnySchema=m}}),Fp=Ue({"node_modules/vnopts/lib/schemas/array.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M)),m=Cs(),y=class extends m.Schema{constructor(x){var{valueSchema:A,name:S=A.name}=x,k=c.__rest(x,["valueSchema","name"]);super(Object.assign({},k,{name:S})),this._valueSchema=A}expected(x){return`an array of ${this._valueSchema.expected(x)}`}validate(x,A){if(!Array.isArray(x))return!1;let S=[];for(let k of x){let O=A.normalizeValidateResult(this._valueSchema.validate(k,A),k);O!==!0&&S.push(O.value)}return S.length===0?!0:{value:S}}deprecated(x,A){let S=[];for(let k of x){let O=A.normalizeDeprecatedResult(this._valueSchema.deprecated(k,A),k);O!==!1&&S.push(...O.map(G=>{let{value:z}=G;return{value:[z]}}))}return S}forward(x,A){let S=[];for(let k of x){let O=A.normalizeForwardResult(this._valueSchema.forward(k,A),k);S.push(...O.map(C))}return S}redirect(x,A){let S=[],k=[];for(let O of x){let G=A.normalizeRedirectResult(this._valueSchema.redirect(O,A),O);"remain"in G&&S.push(G.remain),k.push(...G.redirect.map(C))}return S.length===0?{redirect:k}:{redirect:k,remain:S}}overlap(x,A){return x.concat(A)}};a.ArraySchema=y;function C(x){let{from:A,to:S}=x;return{from:[A],to:S}}}}),Pp=Ue({"node_modules/vnopts/lib/schemas/boolean.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=class extends c.Schema{expected(){return"true or false"}validate(y){return typeof y=="boolean"}};a.BooleanSchema=m}}),sl=Ue({"node_modules/vnopts/lib/utils.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});function c(U,$){let Q=Object.create(null);for(let ce of U){let ge=ce[$];if(Q[ge])throw new Error(`Duplicate ${$} ${JSON.stringify(ge)}`);Q[ge]=ce}return Q}a.recordFromArray=c;function m(U,$){let Q=new Map;for(let ce of U){let ge=ce[$];if(Q.has(ge))throw new Error(`Duplicate ${$} ${JSON.stringify(ge)}`);Q.set(ge,ce)}return Q}a.mapFromArray=m;function y(){let U=Object.create(null);return $=>{let Q=JSON.stringify($);return U[Q]?!0:(U[Q]=!0,!1)}}a.createAutoChecklist=y;function C(U,$){let Q=[],ce=[];for(let ge of U)$(ge)?Q.push(ge):ce.push(ge);return[Q,ce]}a.partition=C;function x(U){return U===Math.floor(U)}a.isInt=x;function A(U,$){if(U===$)return 0;let Q=typeof U,ce=typeof $,ge=["undefined","object","boolean","number","string"];return Q!==ce?ge.indexOf(Q)-ge.indexOf(ce):Q!=="string"?Number(U)-Number($):U.localeCompare($)}a.comparePrimitive=A;function S(U){return U===void 0?{}:U}a.normalizeDefaultResult=S;function k(U,$){return U===!0?!0:U===!1?{value:$}:U}a.normalizeValidateResult=k;function O(U,$){let Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return U===!1?!1:U===!0?Q?!0:[{value:$}]:"value"in U?[U]:U.length===0?!1:U}a.normalizeDeprecatedResult=O;function G(U,$){return typeof U=="string"||"key"in U?{from:$,to:U}:"from"in U?{from:U.from,to:U.to}:{from:$,to:U.to}}a.normalizeTransferResult=G;function z(U,$){return U===void 0?[]:Array.isArray(U)?U.map(Q=>G(Q,$)):[G(U,$)]}a.normalizeForwardResult=z;function q(U,$){let Q=z(typeof U=="object"&&"redirect"in U?U.redirect:U,$);return Q.length===0?{remain:$,redirect:Q}:typeof U=="object"&&"remain"in U?{remain:U.remain,redirect:Q}:{redirect:Q}}a.normalizeRedirectResult=q}}),Ul=Ue({"node_modules/vnopts/lib/schemas/choice.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=sl(),y=class extends c.Schema{constructor(C){super(C),this._choices=m.mapFromArray(C.choices.map(x=>x&&typeof x=="object"?x:{value:x}),"value")}expected(C){let{descriptor:x}=C,A=Array.from(this._choices.keys()).map(O=>this._choices.get(O)).filter(O=>!O.deprecated).map(O=>O.value).sort(m.comparePrimitive).map(x.value),S=A.slice(0,-2),k=A.slice(-2);return S.concat(k.join(" or ")).join(", ")}validate(C){return this._choices.has(C)}deprecated(C){let x=this._choices.get(C);return x&&x.deprecated?{value:C}:!1}forward(C){let x=this._choices.get(C);return x?x.forward:void 0}redirect(C){let x=this._choices.get(C);return x?x.redirect:void 0}};a.ChoiceSchema=y}}),Sa=Ue({"node_modules/vnopts/lib/schemas/number.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=class extends c.Schema{expected(){return"a number"}validate(y,C){return typeof y=="number"}};a.NumberSchema=m}}),Ac=Ue({"node_modules/vnopts/lib/schemas/integer.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=sl(),m=Sa(),y=class extends m.NumberSchema{expected(){return"an integer"}validate(C,x){return x.normalizeValidateResult(super.validate(C,x),C)===!0&&c.isInt(C)}};a.IntegerSchema=y}}),Sc=Ue({"node_modules/vnopts/lib/schemas/string.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Cs(),m=class extends c.Schema{expected(){return"a string"}validate(y){return typeof y=="string"}};a.StringSchema=m}}),zl=Ue({"node_modules/vnopts/lib/schemas/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar($i(),a),c.__exportStar(Hl(),a),c.__exportStar(Fp(),a),c.__exportStar(Pp(),a),c.__exportStar(Ul(),a),c.__exportStar(Ac(),a),c.__exportStar(Sa(),a),c.__exportStar(Sc(),a)}}),al=Ue({"node_modules/vnopts/lib/defaults.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Pi(),m=Hs(),y=Ro(),C=Ts();a.defaultDescriptor=c.apiDescriptor,a.defaultUnknownHandler=C.levenUnknownHandler,a.defaultInvalidHandler=y.commonInvalidHandler,a.defaultDeprecatedHandler=m.commonDeprecatedHandler}}),wc=Ue({"node_modules/vnopts/lib/normalize.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=al(),m=sl();a.normalize=(C,x,A)=>new y(x,A).normalize(C);var y=class{constructor(C,x){let{logger:A=console,descriptor:S=c.defaultDescriptor,unknown:k=c.defaultUnknownHandler,invalid:O=c.defaultInvalidHandler,deprecated:G=c.defaultDeprecatedHandler}=x||{};this._utils={descriptor:S,logger:A||{warn:()=>{}},schemas:m.recordFromArray(C,"name"),normalizeDefaultResult:m.normalizeDefaultResult,normalizeDeprecatedResult:m.normalizeDeprecatedResult,normalizeForwardResult:m.normalizeForwardResult,normalizeRedirectResult:m.normalizeRedirectResult,normalizeValidateResult:m.normalizeValidateResult},this._unknownHandler=k,this._invalidHandler=O,this._deprecatedHandler=G,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=m.createAutoChecklist()}normalize(C){let x={},A=[C],S=()=>{for(;A.length!==0;){let k=A.shift(),O=this._applyNormalization(k,x);A.push(...O)}};S();for(let k of Object.keys(this._utils.schemas)){let O=this._utils.schemas[k];if(!(k in x)){let G=m.normalizeDefaultResult(O.default(this._utils));"value"in G&&A.push({[k]:G.value})}}S();for(let k of Object.keys(this._utils.schemas)){let O=this._utils.schemas[k];k in x&&(x[k]=O.postprocess(x[k],this._utils))}return x}_applyNormalization(C,x){let A=[],[S,k]=m.partition(Object.keys(C),O=>O in this._utils.schemas);for(let O of S){let G=this._utils.schemas[O],z=G.preprocess(C[O],this._utils),q=m.normalizeValidateResult(G.validate(z,this._utils),z);if(q!==!0){let{value:ce}=q,ge=this._invalidHandler(O,ce,this._utils);throw typeof ge=="string"?new Error(ge):ge}let U=ce=>{let{from:ge,to:ne}=ce;A.push(typeof ne=="string"?{[ne]:ge}:{[ne.key]:ne.value})},$=ce=>{let{value:ge,redirectTo:ne}=ce,me=m.normalizeDeprecatedResult(G.deprecated(ge,this._utils),z,!0);if(me!==!1)if(me===!0)this._hasDeprecationWarned(O)||this._utils.logger.warn(this._deprecatedHandler(O,ne,this._utils));else for(let{value:ue}of me){let Ee={key:O,value:ue};if(!this._hasDeprecationWarned(Ee)){let ye=typeof ne=="string"?{key:ne,value:ue}:ne;this._utils.logger.warn(this._deprecatedHandler(Ee,ye,this._utils))}}};m.normalizeForwardResult(G.forward(z,this._utils),z).forEach(U);let Q=m.normalizeRedirectResult(G.redirect(z,this._utils),z);if(Q.redirect.forEach(U),"remain"in Q){let ce=Q.remain;x[O]=O in x?G.overlap(x[O],ce,this._utils):ce,$({value:ce})}for(let{from:ce,to:ge}of Q.redirect)$({value:ce,redirectTo:ge})}for(let O of k){let G=C[O],z=this._unknownHandler(O,G,this._utils);if(z)for(let q of Object.keys(z)){let U={[q]:z[q]};q in this._utils.schemas?A.push(U):Object.assign(x,U)}}return A}};a.Normalizer=y}}),ol=Ue({"node_modules/vnopts/lib/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=(Fn(),Dt(M));c.__exportStar(li(),a),c.__exportStar(Ri(),a),c.__exportStar(zl(),a),c.__exportStar(wc(),a),c.__exportStar(Cs(),a)}}),Ss=Ue({"src/main/options-normalizer.js"(a,c){Je();var m=ol(),y=qn(),C={key:q=>q.length===1?`-${q}`:`--${q}`,value:q=>m.apiDescriptor.value(q),pair:q=>{let{key:U,value:$}=q;return $===!1?`--no-${U}`:$===!0?C.key(U):$===""?`${C.key(U)} without an argument`:`${C.key(U)}=${$}`}},x=q=>{let{colorsModule:U,levenshteinDistance:$}=q;return class extends m.ChoiceSchema{constructor(Q){let{name:ce,flags:ge}=Q;super({name:ce,choices:ge}),this._flags=[...ge].sort()}preprocess(Q,ce){if(typeof Q=="string"&&Q.length>0&&!this._flags.includes(Q)){let ge=this._flags.find(ne=>$(ne,Q)<3);if(ge)return ce.logger.warn([`Unknown flag ${U.yellow(ce.descriptor.value(Q))},`,`did you mean ${U.blue(ce.descriptor.value(ge))}?`].join(" ")),ge}return Q}expected(){return"a flag"}}},A;function S(q,U){let{logger:$=!1,isCLI:Q=!1,passThrough:ce=!1,colorsModule:ge=null,levenshteinDistance:ne=null}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},me=ce?Array.isArray(ce)?(le,W)=>ce.includes(le)?{[le]:W}:void 0:(le,W)=>({[le]:W}):(le,W,te)=>{let B=te.schemas,X=gt(B,Ye);return m.levenUnknownHandler(le,W,Object.assign(Object.assign({},te),{},{schemas:X}))},ue=Q?C:m.apiDescriptor,Ee=k(U,{isCLI:Q,colorsModule:ge,levenshteinDistance:ne}),ye=new m.Normalizer(Ee,{logger:$,unknown:me,descriptor:ue}),Oe=$!==!1;Oe&&A&&(ye._hasDeprecationWarned=A);let V=ye.normalize(q);return Oe&&(A=ye._hasDeprecationWarned),Q&&V["plugin-search"]===!1&&(V["plugin-search-dir"]=!1),V}function k(q,U){let{isCLI:$,colorsModule:Q,levenshteinDistance:ce}=U,ge=[];$&&ge.push(m.AnySchema.create({name:"_"}));for(let ne of q)ge.push(O(ne,{isCLI:$,optionInfos:q,colorsModule:Q,levenshteinDistance:ce})),ne.alias&&$&&ge.push(m.AliasSchema.create({name:ne.alias,sourceName:ne.name}));return ge}function O(q,U){let{isCLI:$,optionInfos:Q,colorsModule:ce,levenshteinDistance:ge}=U,{name:ne}=q;if(ne==="plugin-search-dir"||ne==="pluginSearchDirs")return m.AnySchema.create({name:ne,preprocess(ye){return ye===!1||(ye=Array.isArray(ye)?ye:[ye]),ye},validate(ye){return ye===!1?!0:ye.every(Oe=>typeof Oe=="string")},expected(){return"false or paths to plugin search dir"}});let me={name:ne},ue,Ee={};switch(q.type){case"int":ue=m.IntegerSchema,$&&(me.preprocess=Number);break;case"string":ue=m.StringSchema;break;case"choice":ue=m.ChoiceSchema,me.choices=q.choices.map(ye=>typeof ye=="object"&&ye.redirect?Object.assign(Object.assign({},ye),{},{redirect:{to:{key:q.name,value:ye.redirect}}}):ye);break;case"boolean":ue=m.BooleanSchema;break;case"flag":ue=x({colorsModule:ce,levenshteinDistance:ge}),me.flags=Q.flatMap(ye=>[ye.alias,ye.description&&ye.name,ye.oppositeDescription&&`no-${ye.name}`].filter(Boolean));break;case"path":ue=m.StringSchema;break;default:throw new Error(`Unexpected type ${q.type}`)}if(q.exception?me.validate=(ye,Oe,V)=>q.exception(ye)||Oe.validate(ye,V):me.validate=(ye,Oe,V)=>ye===void 0||Oe.validate(ye,V),q.redirect&&(Ee.redirect=ye=>ye?{to:{key:q.redirect.option,value:q.redirect.value}}:void 0),q.deprecated&&(Ee.deprecated=!0),$&&!q.array){let ye=me.preprocess||(Oe=>Oe);me.preprocess=(Oe,V,le)=>V.preprocess(ye(Array.isArray(Oe)?y(Oe):Oe),le)}return q.array?m.ArraySchema.create(Object.assign(Object.assign(Object.assign({},$?{preprocess:ye=>Array.isArray(ye)?ye:[ye]}:{}),Ee),{},{valueSchema:ue.create(me)})):ue.create(Object.assign(Object.assign({},me),Ee))}function G(q,U,$){return S(q,U,$)}function z(q,U,$){return S(q,U,Object.assign({isCLI:!0},$))}c.exports={normalizeApiOptions:G,normalizeCliOptions:z}}}),oi=Ue({"src/language-js/loc.js"(a,c){Je();var m=io();function y(k){var O,G;let z=k.range?k.range[0]:k.start,q=(O=(G=k.declaration)===null||G===void 0?void 0:G.decorators)!==null&&O!==void 0?O:k.decorators;return m(q)?Math.min(y(q[0]),z):z}function C(k){return k.range?k.range[1]:k.end}function x(k,O){let G=y(k);return Number.isInteger(G)&&G===y(O)}function A(k,O){let G=C(k);return Number.isInteger(G)&&G===C(O)}function S(k,O){return x(k,O)&&A(k,O)}c.exports={locStart:y,locEnd:C,hasSameLocStart:x,hasSameLoc:S}}}),mt=Ue({"src/main/load-parser.js"(a,c){Je(),c.exports=()=>{}}}),$l=Ue({"scripts/build/shims/babel-highlight.cjs"(a,c){Je();var m=zi(),y={shouldHighlight:()=>!1,getChalk:()=>m};c.exports=y}}),Gl=Ue({"node_modules/@babel/code-frame/lib/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.codeFrameColumns=A,a.default=S;var c=$l(),m=!1;function y(k){return{gutter:k.grey,marker:k.red.bold,message:k.red.bold}}var C=/\r\n|[\n\r\u2028\u2029]/;function x(k,O,G){let z=Object.assign({column:0,line:-1},k.start),q=Object.assign({},z,k.end),{linesAbove:U=2,linesBelow:$=3}=G||{},Q=z.line,ce=z.column,ge=q.line,ne=q.column,me=Math.max(Q-(U+1),0),ue=Math.min(O.length,ge+$);Q===-1&&(me=0),ge===-1&&(ue=O.length);let Ee=ge-Q,ye={};if(Ee)for(let Oe=0;Oe<=Ee;Oe++){let V=Oe+Q;if(!ce)ye[V]=!0;else if(Oe===0){let le=O[V-1].length;ye[V]=[ce,le-ce+1]}else if(Oe===Ee)ye[V]=[0,ne];else{let le=O[V-Oe].length;ye[V]=[0,le]}}else ce===ne?ce?ye[Q]=[ce,0]:ye[Q]=!0:ye[Q]=[ce,ne-ce];return{start:me,end:ue,markerLines:ye}}function A(k,O){let G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=(G.highlightCode||G.forceColor)&&(0,c.shouldHighlight)(G),q=(0,c.getChalk)(G),U=y(q),$=(ye,Oe)=>z?ye(Oe):Oe,Q=k.split(C),{start:ce,end:ge,markerLines:ne}=x(O,Q,G),me=O.start&&typeof O.start.column=="number",ue=String(ge).length,Ee=(z?(0,c.default)(k,G):k).split(C,ge).slice(ce,ge).map((ye,Oe)=>{let V=ce+1+Oe,le=` ${` ${V}`.slice(-ue)} |`,W=ne[V],te=!ne[V+1];if(W){let B="";if(Array.isArray(W)){let X=ye.slice(0,Math.max(W[0]-1,0)).replace(/[^\t]/g," "),Z=W[1]||1;B=[` + `,$(U.gutter,le.replace(/\d/g," "))," ",X,$(U.marker,"^").repeat(Z)].join(""),te&&G.message&&(B+=" "+$(U.message,G.message))}return[$(U.marker,">"),$(U.gutter,le),ye.length>0?` ${ye}`:"",B].join("")}else return` ${$(U.gutter,le)}${ye.length>0?` ${ye}`:""}`}).join(` +`);return G.message&&!me&&(Ee=`${" ".repeat(ue+1)}${G.message} +${Ee}`),z?q.reset(Ee):Ee}function S(k,O,G){let z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!m){m=!0;let q="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Jn.emitWarning)Jn.emitWarning(q,"DeprecationWarning");else{let U=new Error(q);U.name="DeprecationWarning",console.warn(new Error(q))}}return G=Math.max(G,0),A(k,{start:{column:G,line:O}},z)}}}),wa=Ue({"src/main/parser.js"(a,c){Je();var{ConfigError:m}=w(),y=oi();mt();var{locStart:C,locEnd:x}=y,A=Object.getOwnPropertyNames,S=Object.getOwnPropertyDescriptor;function k(z){let q={};for(let U of z.plugins)if(U.parsers)for(let $ of A(U.parsers))Object.defineProperty(q,$,S(U.parsers,$));return q}function O(z){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k(z);if(typeof z.parser=="function")return{parse:z.parser,astFormat:"estree",locStart:C,locEnd:x};if(typeof z.parser=="string"){if(Object.prototype.hasOwnProperty.call(q,z.parser))return q[z.parser];throw new m(`Couldn't resolve parser "${z.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function G(z,q){let U=k(q),$=Object.defineProperties({},Object.fromEntries(Object.keys(U).map(ce=>[ce,{enumerable:!0,get(){return U[ce].parse}}]))),Q=O(q,U);try{return Q.preprocess&&(z=Q.preprocess(z,q)),{text:z,ast:Q.parse(z,$,q)}}catch(ce){let{loc:ge}=ce;if(ge){let{codeFrameColumns:ne}=Gl();throw ce.codeFrame=ne(z,ge,{highlightCode:!0}),ce.message+=` +`+ce.codeFrame,ce}throw ce}}c.exports={parse:G,resolveParser:O}}}),ul=Ue({"src/main/options.js"(a,c){Je();var m=T(),{UndefinedParserError:y}=w(),{getSupportInfo:C}=Ca(),x=Ss(),{resolveParser:A}=wa(),S={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function k(z){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=Object.assign({},z),$=C({plugins:z.plugins,showUnreleased:!0,showDeprecated:!0}).options,Q=Object.assign(Object.assign({},S),Object.fromEntries($.filter(ue=>ue.default!==void 0).map(ue=>[ue.name,ue.default])));if(!U.parser){if(!U.filepath)(q.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),U.parser="babel";else if(U.parser=G(U.filepath,U.plugins),!U.parser)throw new y(`No parser could be inferred for file: ${U.filepath}`)}let ce=A(x.normalizeApiOptions(U,[$.find(ue=>ue.name==="parser")],{passThrough:!0,logger:!1}));U.astFormat=ce.astFormat,U.locEnd=ce.locEnd,U.locStart=ce.locStart;let ge=O(U);U.printer=ge.printers[U.astFormat];let ne=Object.fromEntries($.filter(ue=>ue.pluginDefaults&&ue.pluginDefaults[ge.name]!==void 0).map(ue=>[ue.name,ue.pluginDefaults[ge.name]])),me=Object.assign(Object.assign({},Q),ne);for(let[ue,Ee]of Object.entries(me))(U[ue]===null||U[ue]===void 0)&&(U[ue]=Ee);return U.parser==="json"&&(U.trailingComma="none"),x.normalizeApiOptions(U,$,Object.assign({passThrough:Object.keys(S)},q))}function O(z){let{astFormat:q}=z;if(!q)throw new Error("getPlugin() requires astFormat to be set");let U=z.plugins.find($=>$.printers&&$.printers[q]);if(!U)throw new Error(`Couldn't find plugin for AST format "${q}"`);return U}function G(z,q){let U=m.basename(z).toLowerCase(),$=C({plugins:q}).languages.filter(Q=>Q.since!==null).find(Q=>Q.extensions&&Q.extensions.some(ce=>U.endsWith(ce))||Q.filenames&&Q.filenames.some(ce=>ce.toLowerCase()===U));return $&&$.parsers[0]}c.exports={normalize:k,hiddenDefaults:S,inferParser:G}}}),Wl=Ue({"src/main/massage-ast.js"(a,c){Je();function m(y,C,x){if(Array.isArray(y))return y.map(O=>m(O,C,x)).filter(Boolean);if(!y||typeof y!="object")return y;let A=C.printer.massageAstNode,S;A&&A.ignoredProperties?S=A.ignoredProperties:S=new Set;let k={};for(let[O,G]of Object.entries(y))!S.has(O)&&typeof G!="function"&&(k[O]=m(G,C,y));if(A){let O=A(y,k,x);if(O===null)return;if(O)return O}return k}c.exports=m}}),jo=Ue({"scripts/build/shims/assert.cjs"(a,c){Je();var m=()=>{};m.ok=m,m.strictEqual=m,c.exports=m}}),xi=Ue({"src/main/comments.js"(a,c){Je();var m=jo(),{builders:{line:y,hardline:C,breakParent:x,indent:A,lineSuffix:S,join:k,cursor:O}}=Gr(),{hasNewline:G,skipNewline:z,skipSpaces:q,isPreviousLineEmpty:U,addLeadingComment:$,addDanglingComment:Q,addTrailingComment:ce}=Tn(),ge=new WeakMap;function ne(De,we,Se){if(!De)return;let{printer:_e,locStart:Ge,locEnd:xe}=we;if(Se){if(_e.canAttachComment&&_e.canAttachComment(De)){let Fe;for(Fe=Se.length-1;Fe>=0&&!(Ge(Se[Fe])<=Ge(De)&&xe(Se[Fe])<=xe(De));--Fe);Se.splice(Fe+1,0,De);return}}else if(ge.has(De))return ge.get(De);let nt=_e.getCommentChildNodes&&_e.getCommentChildNodes(De,we)||typeof De=="object"&&Object.entries(De).filter(Fe=>{let[be]=Fe;return be!=="enclosingNode"&&be!=="precedingNode"&&be!=="followingNode"&&be!=="tokens"&&be!=="comments"&&be!=="parent"}).map(Fe=>{let[,be]=Fe;return be});if(nt){Se||(Se=[],ge.set(De,Se));for(let Fe of nt)ne(Fe,we,Se);return Se}}function me(De,we,Se,_e){let{locStart:Ge,locEnd:xe}=Se,nt=Ge(we),Fe=xe(we),be=ne(De,Se),st,At,lt=0,Nt=be.length;for(;lt>1,Ze=be[Le],kt=Ge(Ze),Pt=xe(Ze);if(kt<=nt&&Fe<=Pt)return me(Ze,we,Se,Ze);if(Pt<=nt){st=Ze,lt=Le+1;continue}if(Fe<=kt){At=Ze,Nt=Le;continue}throw new Error("Comment location overlaps with node location")}if(_e&&_e.type==="TemplateLiteral"){let{quasis:Le}=_e,Ze=te(Le,we,Se);st&&te(Le,st,Se)!==Ze&&(st=null),At&&te(Le,At,Se)!==Ze&&(At=null)}return{enclosingNode:_e,precedingNode:st,followingNode:At}}var ue=()=>!1;function Ee(De,we,Se,_e){if(!Array.isArray(De))return;let Ge=[],{locStart:xe,locEnd:nt,printer:{handleComments:Fe={}}}=_e,{avoidAstMutation:be,ownLine:st=ue,endOfLine:At=ue,remaining:lt=ue}=Fe,Nt=De.map((Le,Ze)=>Object.assign(Object.assign({},me(we,Le,_e)),{},{comment:Le,text:Se,options:_e,ast:we,isLastComment:De.length-1===Ze}));for(let[Le,Ze]of Nt.entries()){let{comment:kt,precedingNode:Pt,enclosingNode:Jt,followingNode:tt,text:He,options:ot,ast:Tt,isLastComment:Bt}=Ze;if(ot.parser==="json"||ot.parser==="json5"||ot.parser==="__js_expression"||ot.parser==="__vue_expression"||ot.parser==="__vue_ts_expression"){if(xe(kt)-xe(Tt)<=0){$(Tt,kt);continue}if(nt(kt)-nt(Tt)>=0){ce(Tt,kt);continue}}let Xt;if(be?Xt=[Ze]:(kt.enclosingNode=Jt,kt.precedingNode=Pt,kt.followingNode=tt,Xt=[kt,He,ot,Tt,Bt]),Oe(He,ot,Nt,Le))kt.placement="ownLine",st(...Xt)||(tt?$(tt,kt):Pt?ce(Pt,kt):Q(Jt||Tt,kt));else if(V(He,ot,Nt,Le))kt.placement="endOfLine",At(...Xt)||(Pt?ce(Pt,kt):tt?$(tt,kt):Q(Jt||Tt,kt));else if(kt.placement="remaining",!lt(...Xt))if(Pt&&tt){let Wt=Ge.length;Wt>0&&Ge[Wt-1].followingNode!==tt&&le(Ge,He,ot),Ge.push(Ze)}else Pt?ce(Pt,kt):tt?$(tt,kt):Q(Jt||Tt,kt)}if(le(Ge,Se,_e),!be)for(let Le of De)delete Le.precedingNode,delete Le.enclosingNode,delete Le.followingNode}var ye=De=>!/[\S\n\u2028\u2029]/.test(De);function Oe(De,we,Se,_e){let{comment:Ge,precedingNode:xe}=Se[_e],{locStart:nt,locEnd:Fe}=we,be=nt(Ge);if(xe)for(let st=_e-1;st>=0;st--){let{comment:At,precedingNode:lt}=Se[st];if(lt!==xe||!ye(De.slice(Fe(At),be)))break;be=nt(At)}return G(De,be,{backwards:!0})}function V(De,we,Se,_e){let{comment:Ge,followingNode:xe}=Se[_e],{locStart:nt,locEnd:Fe}=we,be=Fe(Ge);if(xe)for(let st=_e+1;st0;--st){let{comment:At,precedingNode:lt,followingNode:Nt}=De[st-1];m.strictEqual(lt,Ge),m.strictEqual(Nt,xe);let Le=we.slice(Se.locEnd(At),be);if(Fe.test(Le))be=Se.locStart(At);else break}for(let[At,{comment:lt}]of De.entries())At1&&At.comments.sort((lt,Nt)=>Se.locStart(lt)-Se.locStart(Nt));De.length=0}function W(De,we){let Se=De.getValue();return Se.printed=!0,we.printer.printComment(De,we)}function te(De,we,Se){let _e=Se.locStart(we)-1;for(let Ge=1;Ge{let nt=De.getValue();!nt.leading&&!nt.trailing&&(!_e||_e(nt))&&Ge.push(W(De,we))},"comments"),Ge.length===0)?"":Se?k(C,Ge):A([C,k(C,Ge)])}function se(De,we,Se){let _e=De.getValue();if(!_e)return{};let Ge=_e.comments||[];Se&&(Ge=Ge.filter(be=>!Se.has(be)));let xe=_e===we.cursorNode;if(Ge.length===0){let be=xe?O:"";return{leading:be,trailing:be}}let nt=[],Fe=[];return De.each(()=>{let be=De.getValue();if(Se&&Se.has(be))return;let{leading:st,trailing:At}=be;st?nt.push(B(De,we)):At&&Fe.push(X(De,we))},"comments"),xe&&(nt.unshift(O),Fe.push(O)),{leading:nt,trailing:Fe}}function ae(De,we,Se,_e){let{leading:Ge,trailing:xe}=se(De,Se,_e);return!Ge&&!xe?we:[Ge,we,xe]}function pe(De){if(De)for(let we of De){if(!we.printed)throw new Error('Comment "'+we.value.trim()+'" was not printed. Please report this error!');delete we.printed}}c.exports={attach:Ee,printComments:ae,printCommentsSeparately:se,printDanglingComments:Z,getSortedChildNodes:ne,ensureAllCommentsPrinted:pe}}}),co=Ue({"src/common/ast-path.js"(a,c){Je();var m=qn();function y(A,S){let k=C(A.stack,S);return k===-1?null:A.stack[k]}function C(A,S){for(let k=A.length-1;k>=0;k-=2){let O=A[k];if(O&&!Array.isArray(O)&&--S<0)return k}return-1}var x=class{constructor(A){this.stack=[A]}getName(){let{stack:A}=this,{length:S}=A;return S>1?A[S-2]:null}getValue(){return m(this.stack)}getNode(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return y(this,A)}getParentNode(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return y(this,A+1)}call(A){let{stack:S}=this,{length:k}=S,O=m(S);for(var G=arguments.length,z=new Array(G>1?G-1:0),q=1;q1&&arguments[1]!==void 0?arguments[1]:0,k=C(this.stack,S+1),O=this.stack.splice(k+1),G=A(this);return this.stack.push(...O),G}each(A){let{stack:S}=this,{length:k}=S,O=m(S);for(var G=arguments.length,z=new Array(G>1?G-1:0),q=1;q1?k-1:0),G=1;G{S[q]=A(z,q,U)},...O),S}try(A){let{stack:S}=this,k=[...S];try{return A()}finally{S.length=0,S.push(...k)}}match(){let A=this.stack.length-1,S=null,k=this.stack[A--];for(var O=arguments.length,G=new Array(O),z=0;zA(z,q,O,G,U),O)}function A(S,k,O,G){let{stripTrailingHardline:z=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},q=y(Object.assign(Object.assign(Object.assign({},O),k),{},{parentParser:O.parser,originalText:S}),{passThrough:!0}),U=wa().parse(S,q),{ast:$}=U;S=U.text;let Q=$.comments;delete $.comments,C.attach(Q,$,S,q),q[Symbol.for("comments")]=Q||[],q[Symbol.for("tokens")]=$.tokens||[];let ce=G($,q);return C.ensureAllCommentsPrinted(Q),z?typeof ce=="string"?ce.replace(/(?:\r?\n)*$/,""):m(ce):ce}c.exports={printSubtree:x}}}),Ho=Ue({"src/main/ast-to-doc.js"(a,c){Je();var m=co(),{builders:{hardline:y,addAlignmentToDoc:C},utils:{propagateBreaks:x}}=Gr(),{printComments:A}=xi(),S=po();function k(z,q){let U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:$}=q;$.preprocess&&(z=$.preprocess(z,q));let Q=new Map,ce=new m(z),ge=ne();return U>0&&(ge=C([y,ge],U,q.tabWidth)),x(ge),ge;function ne(ue,Ee){return ue===void 0||ue===ce?me(Ee):Array.isArray(ue)?ce.call(()=>me(Ee),...ue):ce.call(()=>me(Ee),ue)}function me(ue){let Ee=ce.getValue(),ye=Ee&&typeof Ee=="object"&&ue===void 0;if(ye&&Q.has(Ee))return Q.get(Ee);let Oe=G(ce,q,ne,ue);return ye&&Q.set(Ee,Oe),Oe}}function O(z,q){let{originalText:U,[Symbol.for("comments")]:$,locStart:Q,locEnd:ce}=q,ge=Q(z),ne=ce(z),me=new Set;for(let ue of $)Q(ue)>=ge&&ce(ue)<=ne&&(ue.printed=!0,me.add(ue));return{doc:U.slice(ge,ne),printedComments:me}}function G(z,q,U,$){let Q=z.getValue(),{printer:ce}=q,ge,ne;if(ce.hasPrettierIgnore&&ce.hasPrettierIgnore(z))({doc:ge,printedComments:ne}=O(Q,q));else{if(Q)try{ge=S.printSubtree(z,U,q,k)}catch(me){if(globalThis.PRETTIER_DEBUG)throw me}ge||(ge=ce.print(z,q,U,$))}return(!ce.willPrintOwnComments||!ce.willPrintOwnComments(z,q))&&(ge=A(z,ge,q,ne)),ge}c.exports=k}}),Tu=Ue({"src/main/range-util.js"(a,c){Je();var m=jo(),y=xi(),C=$=>{let{parser:Q}=$;return Q==="json"||Q==="json5"||Q==="json-stringify"};function x($,Q){let ce=[$.node,...$.parentNodes],ge=new Set([Q.node,...Q.parentNodes]);return ce.find(ne=>G.has(ne.type)&&ge.has(ne))}function A($){let Q=$.length-1;for(;;){let ce=$[Q];if(ce&&(ce.type==="Program"||ce.type==="File"))Q--;else break}return $.slice(0,Q+1)}function S($,Q,ce){let{locStart:ge,locEnd:ne}=ce,me=$.node,ue=Q.node;if(me===ue)return{startNode:me,endNode:ue};let Ee=ge($.node);for(let Oe of A(Q.parentNodes))if(ge(Oe)>=Ee)ue=Oe;else break;let ye=ne(Q.node);for(let Oe of A($.parentNodes)){if(ne(Oe)<=ye)me=Oe;else break;if(me===ue)break}return{startNode:me,endNode:ue}}function k($,Q,ce,ge){let ne=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],me=arguments.length>5?arguments[5]:void 0,{locStart:ue,locEnd:Ee}=ce,ye=ue($),Oe=Ee($);if(!(Q>Oe||Qge);let Ee=$.slice(ge,ne).search(/\S/),ye=Ee===-1;if(!ye)for(ge+=Ee;ne>ge&&!/\S/.test($[ne-1]);--ne);let Oe=k(ce,ge,Q,(te,B)=>q(Q,te,B),[],"rangeStart"),V=ye?Oe:k(ce,ne,Q,te=>q(Q,te),[],"rangeEnd");if(!Oe||!V)return{rangeStart:0,rangeEnd:0};let le,W;if(C(Q)){let te=x(Oe,V);le=te,W=te}else({startNode:le,endNode:W}=S(Oe,V,Q));return{rangeStart:Math.min(me(le),me(W)),rangeEnd:Math.max(ue(le),ue(W))}}c.exports={calculateRange:U,findNodeAtOffset:k}}}),ws=Ue({"src/main/core.js"(a,c){Je();var{diffArrays:m}=Ms(),{printer:{printDocToString:y},debug:{printDocToDebug:C}}=Gr(),{getAlignmentSize:x}=Tn(),{guessEndOfLine:A,convertEndOfLineToChars:S,countEndOfLineChars:k,normalizeEndOfLine:O}=ai(),G=ul().normalize,z=Wl(),q=xi(),U=wa(),$=Ho(),Q=Tu(),ce="\uFEFF",ge=Symbol("cursor");function ne(W,te,B){let X=te.comments;return X&&(delete te.comments,q.attach(X,te,W,B)),B[Symbol.for("comments")]=X||[],B[Symbol.for("tokens")]=te.tokens||[],B.originalText=W,X}function me(W,te){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!W||W.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:X,text:Z}=U.parse(W,te);if(te.cursorOffset>=0){let De=Q.findNodeAtOffset(X,te.cursorOffset,te);De&&De.node&&(te.cursorNode=De.node)}let se=ne(Z,X,te),ae=$(X,te,B),pe=y(ae,te);if(q.ensureAllCommentsPrinted(se),B>0){let De=pe.formatted.trim();pe.cursorNodeStart!==void 0&&(pe.cursorNodeStart-=pe.formatted.indexOf(De)),pe.formatted=De+S(te.endOfLine)}if(te.cursorOffset>=0){let De,we,Se,_e,Ge;if(te.cursorNode&&pe.cursorNodeText?(De=te.locStart(te.cursorNode),we=Z.slice(De,te.locEnd(te.cursorNode)),Se=te.cursorOffset-De,_e=pe.cursorNodeStart,Ge=pe.cursorNodeText):(De=0,we=Z,Se=te.cursorOffset,_e=0,Ge=pe.formatted),we===Ge)return{formatted:pe.formatted,cursorOffset:_e+Se,comments:se};let xe=[...we];xe.splice(Se,0,ge);let nt=[...Ge],Fe=m(xe,nt),be=_e;for(let st of Fe)if(st.removed){if(st.value.includes(ge))break}else be+=st.count;return{formatted:pe.formatted,cursorOffset:be,comments:se}}return{formatted:pe.formatted,cursorOffset:-1,comments:se}}function ue(W,te){let{ast:B,text:X}=U.parse(W,te),{rangeStart:Z,rangeEnd:se}=Q.calculateRange(X,te,B),ae=X.slice(Z,se),pe=Math.min(Z,X.lastIndexOf(` +`,Z)+1),De=X.slice(pe,Z).match(/^\s*/)[0],we=x(De,te.tabWidth),Se=me(ae,Object.assign(Object.assign({},te),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:te.cursorOffset>Z&&te.cursorOffset<=se?te.cursorOffset-Z:-1,endOfLine:"lf"}),we),_e=Se.formatted.trimEnd(),{cursorOffset:Ge}=te;Ge>se?Ge+=_e.length-ae.length:Se.cursorOffset>=0&&(Ge=Se.cursorOffset+Z);let xe=X.slice(0,Z)+_e+X.slice(se);if(te.endOfLine!=="lf"){let nt=S(te.endOfLine);Ge>=0&&nt===`\r +`&&(Ge+=k(xe.slice(0,Ge),` +`)),xe=xe.replace(/\n/g,nt)}return{formatted:xe,cursorOffset:Ge,comments:Se.comments}}function Ee(W,te,B){return typeof te!="number"||Number.isNaN(te)||te<0||te>W.length?B:te}function ye(W,te){let{cursorOffset:B,rangeStart:X,rangeEnd:Z}=te;return B=Ee(W,B,-1),X=Ee(W,X,0),Z=Ee(W,Z,W.length),Object.assign(Object.assign({},te),{},{cursorOffset:B,rangeStart:X,rangeEnd:Z})}function Oe(W,te){let{cursorOffset:B,rangeStart:X,rangeEnd:Z,endOfLine:se}=ye(W,te),ae=W.charAt(0)===ce;if(ae&&(W=W.slice(1),B--,X--,Z--),se==="auto"&&(se=A(W)),W.includes("\r")){let pe=De=>k(W.slice(0,Math.max(De,0)),`\r +`);B-=pe(B),X-=pe(X),Z-=pe(Z),W=O(W)}return{hasBOM:ae,text:W,options:ye(W,Object.assign(Object.assign({},te),{},{cursorOffset:B,rangeStart:X,rangeEnd:Z,endOfLine:se}))}}function V(W,te){let B=U.resolveParser(te);return!B.hasPragma||B.hasPragma(W)}function le(W,te){let{hasBOM:B,text:X,options:Z}=Oe(W,G(te));if(Z.rangeStart>=Z.rangeEnd&&X!==""||Z.requirePragma&&!V(X,Z))return{formatted:W,cursorOffset:te.cursorOffset,comments:[]};let se;return Z.rangeStart>0||Z.rangeEnd=0&&se.cursorOffset++),se}c.exports={formatWithCursor:le,parse(W,te,B){let{text:X,options:Z}=Oe(W,G(te)),se=U.parse(X,Z);return B&&(se.ast=z(se.ast,Z)),se},formatAST(W,te){te=G(te);let B=$(W,te);return y(B,te)},formatDoc(W,te){return le(C(W),Object.assign(Object.assign({},te),{},{parser:"__js_expression"})).formatted},printToDoc(W,te){te=G(te);let{ast:B,text:X}=U.parse(W,te);return ne(X,B,te),$(B,te)},printDocToString(W,te){return y(W,G(te))}}}}),ho=Ue({"src/common/util-shared.js"(a,c){Je();var{getMaxContinuousCount:m,getStringWidth:y,getAlignmentSize:C,getIndentSize:x,skip:A,skipWhitespace:S,skipSpaces:k,skipNewline:O,skipToLineEnd:G,skipEverythingButNewLine:z,skipInlineComment:q,skipTrailingComment:U,hasNewline:$,hasNewlineInRange:Q,hasSpaces:ce,isNextLineEmpty:ge,isNextLineEmptyAfterIndex:ne,isPreviousLineEmpty:me,getNextNonSpaceNonCommentCharacterIndex:ue,makeString:Ee,addLeadingComment:ye,addDanglingComment:Oe,addTrailingComment:V}=Tn();c.exports={getMaxContinuousCount:m,getStringWidth:y,getAlignmentSize:C,getIndentSize:x,skip:A,skipWhitespace:S,skipSpaces:k,skipNewline:O,skipToLineEnd:G,skipEverythingButNewLine:z,skipInlineComment:q,skipTrailingComment:U,hasNewline:$,hasNewlineInRange:Q,hasSpaces:ce,isNextLineEmpty:ge,isNextLineEmptyAfterIndex:ne,isPreviousLineEmpty:me,getNextNonSpaceNonCommentCharacterIndex:ue,makeString:Ee,addLeadingComment:ye,addDanglingComment:Oe,addTrailingComment:V}}}),_s=Ue({"src/utils/create-language.js"(a,c){Je(),c.exports=function(m,y){let{languageId:C}=m,x=gt(m,Xe);return Object.assign(Object.assign({linguistLanguageId:C},x),y(m))}}}),fo=Ue({"node_modules/esutils/lib/ast.js"(a,c){Je(),function(){function m(k){if(k==null)return!1;switch(k.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function y(k){if(k==null)return!1;switch(k.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function C(k){if(k==null)return!1;switch(k.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function x(k){return C(k)||k!=null&&k.type==="FunctionDeclaration"}function A(k){switch(k.type){case"IfStatement":return k.alternate!=null?k.alternate:k.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return k.body}return null}function S(k){var O;if(k.type!=="IfStatement"||k.alternate==null)return!1;O=k.consequent;do{if(O.type==="IfStatement"&&O.alternate==null)return!0;O=A(O)}while(O);return!1}c.exports={isExpression:m,isStatement:C,isIterationStatement:y,isSourceElement:x,isProblematicIfStatement:S,trailingStatement:A}}()}}),_a=Ue({"node_modules/esutils/lib/code.js"(a,c){Je(),function(){var m,y,C,x,A,S;y={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},m={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function k(ne){return 48<=ne&&ne<=57}function O(ne){return 48<=ne&&ne<=57||97<=ne&&ne<=102||65<=ne&&ne<=70}function G(ne){return ne>=48&&ne<=55}C=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function z(ne){return ne===32||ne===9||ne===11||ne===12||ne===160||ne>=5760&&C.indexOf(ne)>=0}function q(ne){return ne===10||ne===13||ne===8232||ne===8233}function U(ne){if(ne<=65535)return String.fromCharCode(ne);var me=String.fromCharCode(Math.floor((ne-65536)/1024)+55296),ue=String.fromCharCode((ne-65536)%1024+56320);return me+ue}for(x=new Array(128),S=0;S<128;++S)x[S]=S>=97&&S<=122||S>=65&&S<=90||S===36||S===95;for(A=new Array(128),S=0;S<128;++S)A[S]=S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===36||S===95;function $(ne){return ne<128?x[ne]:y.NonAsciiIdentifierStart.test(U(ne))}function Q(ne){return ne<128?A[ne]:y.NonAsciiIdentifierPart.test(U(ne))}function ce(ne){return ne<128?x[ne]:m.NonAsciiIdentifierStart.test(U(ne))}function ge(ne){return ne<128?A[ne]:m.NonAsciiIdentifierPart.test(U(ne))}c.exports={isDecimalDigit:k,isHexDigit:O,isOctalDigit:G,isWhiteSpace:z,isLineTerminator:q,isIdentifierStartES5:$,isIdentifierPartES5:Q,isIdentifierStartES6:ce,isIdentifierPartES6:ge}}()}}),Qi=Ue({"node_modules/esutils/lib/keyword.js"(a,c){Je(),function(){var m=_a();function y($){switch($){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function C($,Q){return!Q&&$==="yield"?!1:x($,Q)}function x($,Q){if(Q&&y($))return!0;switch($.length){case 2:return $==="if"||$==="in"||$==="do";case 3:return $==="var"||$==="for"||$==="new"||$==="try";case 4:return $==="this"||$==="else"||$==="case"||$==="void"||$==="with"||$==="enum";case 5:return $==="while"||$==="break"||$==="catch"||$==="throw"||$==="const"||$==="yield"||$==="class"||$==="super";case 6:return $==="return"||$==="typeof"||$==="delete"||$==="switch"||$==="export"||$==="import";case 7:return $==="default"||$==="finally"||$==="extends";case 8:return $==="function"||$==="continue"||$==="debugger";case 10:return $==="instanceof";default:return!1}}function A($,Q){return $==="null"||$==="true"||$==="false"||C($,Q)}function S($,Q){return $==="null"||$==="true"||$==="false"||x($,Q)}function k($){return $==="eval"||$==="arguments"}function O($){var Q,ce,ge;if($.length===0||(ge=$.charCodeAt(0),!m.isIdentifierStartES5(ge)))return!1;for(Q=1,ce=$.length;Q=ce||(ne=$.charCodeAt(Q),!(56320<=ne&&ne<=57343)))return!1;ge=G(ge,ne)}if(!me(ge))return!1;me=m.isIdentifierPartES6}return!0}function q($,Q){return O($)&&!A($,Q)}function U($,Q){return z($)&&!S($,Q)}c.exports={isKeywordES5:C,isKeywordES6:x,isReservedWordES5:A,isReservedWordES6:S,isRestrictedWord:k,isIdentifierNameES5:O,isIdentifierNameES6:z,isIdentifierES5:q,isIdentifierES6:U}}()}}),na=Ue({"node_modules/esutils/lib/utils.js"(a){Je(),function(){a.ast=fo(),a.code=_a(),a.keyword=Qi()}()}}),Zi=Ue({"src/language-js/utils/is-block-comment.js"(a,c){Je();var m=new Set(["Block","CommentBlock","MultiLine"]),y=C=>m.has(C==null?void 0:C.type);c.exports=y}}),Cu=Ue({"src/language-js/utils/is-node-matches.js"(a,c){Je();function m(C,x){let A=x.split(".");for(let S=A.length-1;S>=0;S--){let k=A[S];if(S===0)return C.type==="Identifier"&&C.name===k;if(C.type!=="MemberExpression"||C.optional||C.computed||C.property.type!=="Identifier"||C.property.name!==k)return!1;C=C.object}}function y(C,x){return x.some(A=>m(C,A))}c.exports=y}}),Kn=Ue({"src/language-js/utils/index.js"(a,c){Je();var m=na().keyword.isIdentifierNameES5,{getLast:y,hasNewline:C,skipWhitespace:x,isNonEmptyArray:A,isNextLineEmptyAfterIndex:S,getStringWidth:k}=Tn(),{locStart:O,locEnd:G,hasSameLocStart:z}=oi(),q=Zi(),U=Cu(),$="(?:(?=.)\\s)",Q=new RegExp(`^${$}*:`),ce=new RegExp(`^${$}*::`);function ge(Ce){var wt,Pr;return((wt=Ce.extra)===null||wt===void 0?void 0:wt.parenthesized)&&q((Pr=Ce.trailingComments)===null||Pr===void 0?void 0:Pr[0])&&Q.test(Ce.trailingComments[0].value)}function ne(Ce){let wt=Ce==null?void 0:Ce[0];return q(wt)&&ce.test(wt.value)}function me(Ce,wt){if(!Ce||typeof Ce!="object")return!1;if(Array.isArray(Ce))return Ce.some(xn=>me(xn,wt));let Pr=wt(Ce);return typeof Pr=="boolean"?Pr:Object.values(Ce).some(xn=>me(xn,wt))}function ue(Ce){return Ce.type==="AssignmentExpression"||Ce.type==="BinaryExpression"||Ce.type==="LogicalExpression"||Ce.type==="NGPipeExpression"||Ce.type==="ConditionalExpression"||kt(Ce)||Pt(Ce)||Ce.type==="SequenceExpression"||Ce.type==="TaggedTemplateExpression"||Ce.type==="BindExpression"||Ce.type==="UpdateExpression"&&!Ce.prefix||Zn(Ce)||Ce.type==="TSNonNullExpression"}function Ee(Ce){var wt,Pr,xn,gn,ii,zn;return Ce.expressions?Ce.expressions[0]:(wt=(Pr=(xn=(gn=(ii=(zn=Ce.left)!==null&&zn!==void 0?zn:Ce.test)!==null&&ii!==void 0?ii:Ce.callee)!==null&&gn!==void 0?gn:Ce.object)!==null&&xn!==void 0?xn:Ce.tag)!==null&&Pr!==void 0?Pr:Ce.argument)!==null&&wt!==void 0?wt:Ce.expression}function ye(Ce,wt){if(wt.expressions)return["expressions",0];if(wt.left)return["left"];if(wt.test)return["test"];if(wt.object)return["object"];if(wt.callee)return["callee"];if(wt.tag)return["tag"];if(wt.argument)return["argument"];if(wt.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function Oe(Ce){return Ce=new Set(Ce),wt=>Ce.has(wt==null?void 0:wt.type)}var V=Oe(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),le=Oe(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function W(Ce){let wt=Ce.getParentNode();return Ce.getName()==="declaration"&&le(wt)?wt:null}var te=Oe(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function B(Ce){return Ce.type==="NumericLiteral"||Ce.type==="Literal"&&typeof Ce.value=="number"}function X(Ce){return Ce.type==="UnaryExpression"&&(Ce.operator==="+"||Ce.operator==="-")&&B(Ce.argument)}function Z(Ce){return Ce.type==="StringLiteral"||Ce.type==="Literal"&&typeof Ce.value=="string"}var se=Oe(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),ae=Oe(["FunctionExpression","ArrowFunctionExpression"]);function pe(Ce){return Ce.type==="FunctionExpression"||Ce.type==="ArrowFunctionExpression"&&Ce.body.type==="BlockStatement"}function De(Ce){return kt(Ce)&&Ce.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(Ce.callee.name)}var we=Oe(["JSXElement","JSXFragment"]);function Se(Ce,wt){if(Ce.parentParser!=="markdown"&&Ce.parentParser!=="mdx")return!1;let Pr=wt.getNode();if(!Pr.expression||!we(Pr.expression))return!1;let xn=wt.getParentNode();return xn.type==="Program"&&xn.body.length===1}function _e(Ce){return Ce.kind==="get"||Ce.kind==="set"}function Ge(Ce){return _e(Ce)||z(Ce,Ce.value)}function xe(Ce){return(Ce.type==="ObjectTypeProperty"||Ce.type==="ObjectTypeInternalSlot")&&Ce.value.type==="FunctionTypeAnnotation"&&!Ce.static&&!Ge(Ce)}function nt(Ce){return(Ce.type==="TypeAnnotation"||Ce.type==="TSTypeAnnotation")&&Ce.typeAnnotation.type==="FunctionTypeAnnotation"&&!Ce.static&&!z(Ce,Ce.typeAnnotation)}var Fe=Oe(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function be(Ce){return Pt(Ce)||Ce.type==="BindExpression"&&!!Ce.object}var st=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function At(Ce){return Ce?!!((Ce.type==="GenericTypeAnnotation"||Ce.type==="TSTypeReference")&&!Ce.typeParameters||st.has(Ce.type)):!1}function lt(Ce){let wt=/^(?:before|after)(?:Each|All)$/;return Ce.callee.type==="Identifier"&&wt.test(Ce.callee.name)&&Ce.arguments.length===1}var Nt=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Le(Ce){return U(Ce,Nt)}function Ze(Ce,wt){if(Ce.type!=="CallExpression")return!1;if(Ce.arguments.length===1){if(De(Ce)&&wt&&Ze(wt))return ae(Ce.arguments[0]);if(lt(Ce))return De(Ce.arguments[0])}else if((Ce.arguments.length===2||Ce.arguments.length===3)&&(Ce.arguments[0].type==="TemplateLiteral"||Z(Ce.arguments[0]))&&Le(Ce.callee))return Ce.arguments[2]&&!B(Ce.arguments[2])?!1:(Ce.arguments.length===2?ae(Ce.arguments[1]):pe(Ce.arguments[1])&&rt(Ce.arguments[1]).length<=1)||De(Ce.arguments[1]);return!1}var kt=Oe(["CallExpression","OptionalCallExpression"]),Pt=Oe(["MemberExpression","OptionalMemberExpression"]);function Jt(Ce){let wt="expressions";Ce.type==="TSTemplateLiteralType"&&(wt="types");let Pr=Ce[wt];return Pr.length===0?!1:Pr.every(xn=>{if(Br(xn))return!1;if(xn.type==="Identifier"||xn.type==="ThisExpression")return!0;if(Pt(xn)){let gn=xn;for(;Pt(gn);)if(gn.property.type!=="Identifier"&&gn.property.type!=="Literal"&&gn.property.type!=="StringLiteral"&&gn.property.type!=="NumericLiteral"||(gn=gn.object,Br(gn)))return!1;return gn.type==="Identifier"||gn.type==="ThisExpression"}return!1})}function tt(Ce,wt){return Ce==="+"||Ce==="-"?Ce+wt:wt}function He(Ce,wt){let Pr=O(wt),xn=x(Ce,G(wt));return xn!==!1&&Ce.slice(Pr,Pr+2)==="/*"&&Ce.slice(xn,xn+2)==="*/"}function ot(Ce,wt){return we(wt)?hr(wt):Br(wt,nr.Leading,Pr=>C(Ce,G(Pr)))}function Tt(Ce,wt){return wt.parser!=="json"&&Z(Ce.key)&&s(Ce.key).slice(1,-1)===Ce.key.value&&(m(Ce.key.value)&&!(wt.parser==="babel-ts"&&Ce.type==="ClassProperty"||wt.parser==="typescript"&&Ce.type==="PropertyDefinition")||Bt(Ce.key.value)&&String(Number(Ce.key.value))===Ce.key.value&&(wt.parser==="babel"||wt.parser==="acorn"||wt.parser==="espree"||wt.parser==="meriyah"||wt.parser==="__babel_estree"))}function Bt(Ce){return/^(?:\d+|\d+\.\d+)$/.test(Ce)}function Xt(Ce,wt){let Pr=/^[fx]?(?:describe|it|test)$/;return wt.type==="TaggedTemplateExpression"&&wt.quasi===Ce&&wt.tag.type==="MemberExpression"&&wt.tag.property.type==="Identifier"&&wt.tag.property.name==="each"&&(wt.tag.object.type==="Identifier"&&Pr.test(wt.tag.object.name)||wt.tag.object.type==="MemberExpression"&&wt.tag.object.property.type==="Identifier"&&(wt.tag.object.property.name==="only"||wt.tag.object.property.name==="skip")&&wt.tag.object.object.type==="Identifier"&&Pr.test(wt.tag.object.object.name))}function Wt(Ce){return Ce.quasis.some(wt=>wt.value.raw.includes(` +`))}function Mr(Ce,wt){return(Ce.type==="TemplateLiteral"&&Wt(Ce)||Ce.type==="TaggedTemplateExpression"&&Wt(Ce.quasi))&&!C(wt,O(Ce),{backwards:!0})}function hn(Ce){if(!Br(Ce))return!1;let wt=y(yt(Ce,nr.Dangling));return wt&&!q(wt)}function on(Ce){if(Ce.length<=1)return!1;let wt=0;for(let Pr of Ce)if(ae(Pr)){if(wt+=1,wt>1)return!0}else if(kt(Pr)){for(let xn of Pr.arguments)if(ae(xn))return!0}return!1}function Ir(Ce){let wt=Ce.getValue(),Pr=Ce.getParentNode();return kt(wt)&&kt(Pr)&&Pr.callee===wt&&wt.arguments.length>Pr.arguments.length&&Pr.arguments.length>0}function n(Ce,wt){if(wt>=2)return!1;let Pr=zn=>n(zn,wt+1),xn=Ce.type==="Literal"&&"regex"in Ce&&Ce.regex.pattern||Ce.type==="RegExpLiteral"&&Ce.pattern;if(xn&&k(xn)>5)return!1;if(Ce.type==="Literal"||Ce.type==="BigIntLiteral"||Ce.type==="DecimalLiteral"||Ce.type==="BooleanLiteral"||Ce.type==="NullLiteral"||Ce.type==="NumericLiteral"||Ce.type==="RegExpLiteral"||Ce.type==="StringLiteral"||Ce.type==="Identifier"||Ce.type==="ThisExpression"||Ce.type==="Super"||Ce.type==="PrivateName"||Ce.type==="PrivateIdentifier"||Ce.type==="ArgumentPlaceholder"||Ce.type==="Import")return!0;if(Ce.type==="TemplateLiteral")return Ce.quasis.every(zn=>!zn.value.raw.includes(` +`))&&Ce.expressions.every(Pr);if(Ce.type==="ObjectExpression")return Ce.properties.every(zn=>!zn.computed&&(zn.shorthand||zn.value&&Pr(zn.value)));if(Ce.type==="ArrayExpression")return Ce.elements.every(zn=>zn===null||Pr(zn));if(Qn(Ce))return(Ce.type==="ImportExpression"||n(Ce.callee,wt))&&fr(Ce).every(Pr);if(Pt(Ce))return n(Ce.object,wt)&&n(Ce.property,wt);let gn={"!":!0,"-":!0,"+":!0,"~":!0};if(Ce.type==="UnaryExpression"&&gn[Ce.operator])return n(Ce.argument,wt);let ii={"++":!0,"--":!0};return Ce.type==="UpdateExpression"&&ii[Ce.operator]?n(Ce.argument,wt):Ce.type==="TSNonNullExpression"?n(Ce.expression,wt):!1}function s(Ce){var wt,Pr;return(wt=(Pr=Ce.extra)===null||Pr===void 0?void 0:Pr.raw)!==null&&wt!==void 0?wt:Ce.raw}function u(Ce){return Ce}function p(Ce){return Ce.filepath&&/\.tsx$/i.test(Ce.filepath)}function f(Ce){let wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return Ce.trailingComma==="es5"&&wt==="es5"||Ce.trailingComma==="all"&&(wt==="all"||wt==="es5")}function D(Ce,wt){switch(Ce.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return D(Ce.left,wt);case"MemberExpression":case"OptionalMemberExpression":return D(Ce.object,wt);case"TaggedTemplateExpression":return Ce.tag.type==="FunctionExpression"?!1:D(Ce.tag,wt);case"CallExpression":case"OptionalCallExpression":return Ce.callee.type==="FunctionExpression"?!1:D(Ce.callee,wt);case"ConditionalExpression":return D(Ce.test,wt);case"UpdateExpression":return!Ce.prefix&&D(Ce.argument,wt);case"BindExpression":return Ce.object&&D(Ce.object,wt);case"SequenceExpression":return D(Ce.expressions[0],wt);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return D(Ce.expression,wt);default:return wt(Ce)}}var P={"==":!0,"!=":!0,"===":!0,"!==":!0},R={"*":!0,"/":!0,"%":!0},j={">>":!0,">>>":!0,"<<":!0};function _(Ce,wt){return!(he(wt)!==he(Ce)||Ce==="**"||P[Ce]&&P[wt]||wt==="%"&&R[Ce]||Ce==="%"&&R[wt]||wt!==Ce&&R[wt]&&R[Ce]||j[Ce]&&j[wt])}var Y=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ce,wt)=>Ce.map(Pr=>[Pr,wt])));function he(Ce){return Y.get(Ce)}function Me(Ce){return!!j[Ce]||Ce==="|"||Ce==="^"||Ce==="&"}function Ie(Ce){var wt;if(Ce.rest)return!0;let Pr=rt(Ce);return((wt=y(Pr))===null||wt===void 0?void 0:wt.type)==="RestElement"}var ct=new WeakMap;function rt(Ce){if(ct.has(Ce))return ct.get(Ce);let wt=[];return Ce.this&&wt.push(Ce.this),Array.isArray(Ce.parameters)?wt.push(...Ce.parameters):Array.isArray(Ce.params)&&wt.push(...Ce.params),Ce.rest&&wt.push(Ce.rest),ct.set(Ce,wt),wt}function sr(Ce,wt){let Pr=Ce.getValue(),xn=0,gn=ii=>wt(ii,xn++);Pr.this&&Ce.call(gn,"this"),Array.isArray(Pr.parameters)?Ce.each(gn,"parameters"):Array.isArray(Pr.params)&&Ce.each(gn,"params"),Pr.rest&&Ce.call(gn,"rest")}var Ot=new WeakMap;function fr(Ce){if(Ot.has(Ce))return Ot.get(Ce);let wt=Ce.arguments;return Ce.type==="ImportExpression"&&(wt=[Ce.source],Ce.attributes&&wt.push(Ce.attributes)),Ot.set(Ce,wt),wt}function It(Ce,wt){let Pr=Ce.getValue();Pr.type==="ImportExpression"?(Ce.call(xn=>wt(xn,0),"source"),Pr.attributes&&Ce.call(xn=>wt(xn,1),"attributes")):Ce.each(wt,"arguments")}function Zt(Ce){return Ce.value.trim()==="prettier-ignore"&&!Ce.unignore}function hr(Ce){return Ce&&(Ce.prettierIgnore||Br(Ce,nr.PrettierIgnore))}function Sr(Ce){let wt=Ce.getValue();return hr(wt)}var nr={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Or=(Ce,wt)=>{if(typeof Ce=="function"&&(wt=Ce,Ce=0),Ce||wt)return(Pr,xn,gn)=>!(Ce&nr.Leading&&!Pr.leading||Ce&nr.Trailing&&!Pr.trailing||Ce&nr.Dangling&&(Pr.leading||Pr.trailing)||Ce&nr.Block&&!q(Pr)||Ce&nr.Line&&!V(Pr)||Ce&nr.First&&xn!==0||Ce&nr.Last&&xn!==gn.length-1||Ce&nr.PrettierIgnore&&!Zt(Pr)||wt&&!wt(Pr))};function Br(Ce,wt,Pr){if(!A(Ce==null?void 0:Ce.comments))return!1;let xn=Or(wt,Pr);return xn?Ce.comments.some(xn):!0}function yt(Ce,wt,Pr){if(!Array.isArray(Ce==null?void 0:Ce.comments))return[];let xn=Or(wt,Pr);return xn?Ce.comments.filter(xn):Ce.comments}var ci=(Ce,wt)=>{let{originalText:Pr}=wt;return S(Pr,G(Ce))};function Qn(Ce){return kt(Ce)||Ce.type==="NewExpression"||Ce.type==="ImportExpression"}function Vr(Ce){return Ce&&(Ce.type==="ObjectProperty"||Ce.type==="Property"&&!Ce.method&&Ce.kind==="init")}function tn(Ce){return!!Ce.__isUsingHackPipeline}var Cn=Symbol("ifWithoutBlockAndSameLineComment");function Zn(Ce){return Ce.type==="TSAsExpression"||Ce.type==="TSSatisfiesExpression"}c.exports={getFunctionParameters:rt,iterateFunctionParametersPath:sr,getCallArguments:fr,iterateCallArgumentsPath:It,hasRestParameter:Ie,getLeftSide:Ee,getLeftSidePathName:ye,getParentExportDeclaration:W,getTypeScriptMappedTypeModifier:tt,hasFlowAnnotationComment:ne,hasFlowShorthandAnnotationComment:ge,hasLeadingOwnLineComment:ot,hasNakedLeftSide:ue,hasNode:me,hasIgnoreComment:Sr,hasNodeIgnoreComment:hr,identity:u,isBinaryish:Fe,isCallLikeExpression:Qn,isEnabledHackPipeline:tn,isLineComment:V,isPrettierIgnoreComment:Zt,isCallExpression:kt,isMemberExpression:Pt,isExportDeclaration:le,isFlowAnnotationComment:He,isFunctionCompositionArgs:on,isFunctionNotation:Ge,isFunctionOrArrowExpression:ae,isGetterOrSetter:_e,isJestEachTemplateLiteral:Xt,isJsxNode:we,isLiteral:te,isLongCurriedCallExpression:Ir,isSimpleCallArgument:n,isMemberish:be,isNumericLiteral:B,isSignedNumericLiteral:X,isObjectProperty:Vr,isObjectType:se,isObjectTypePropertyAFunction:xe,isSimpleType:At,isSimpleNumber:Bt,isSimpleTemplateLiteral:Jt,isStringLiteral:Z,isStringPropSafeToUnquote:Tt,isTemplateOnItsOwnLine:Mr,isTestCall:Ze,isTheOnlyJsxElementInMarkdown:Se,isTSXFile:p,isTypeAnnotationAFunction:nt,isNextLineEmpty:ci,needsHardlineAfterDanglingComment:hn,rawText:s,shouldPrintComma:f,isBitwiseOperator:Me,shouldFlatten:_,startsWithNoLookaheadToken:D,getPrecedence:he,hasComment:Br,getComments:yt,CommentCheckFlags:nr,markerForIfWithoutBlockAndSameLineComment:Cn,isTSTypeExpression:Zn}}}),mo=Ue({"src/language-js/print/template-literal.js"(a,c){Je();var m=qn(),{getStringWidth:y,getIndentSize:C}=Tn(),{builders:{join:x,hardline:A,softline:S,group:k,indent:O,align:G,lineSuffixBoundary:z,addAlignmentToDoc:q},printer:{printDocToString:U},utils:{mapDoc:$}}=Gr(),{isBinaryish:Q,isJestEachTemplateLiteral:ce,isSimpleTemplateLiteral:ge,hasComment:ne,isMemberExpression:me,isTSTypeExpression:ue}=Kn();function Ee(te,B,X){let Z=te.getValue();if(Z.type==="TemplateLiteral"&&ce(Z,te.getParentNode())){let we=ye(te,X,B);if(we)return we}let se="expressions";Z.type==="TSTemplateLiteralType"&&(se="types");let ae=[],pe=te.map(B,se),De=ge(Z);return De&&(pe=pe.map(we=>U(we,Object.assign(Object.assign({},X),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),ae.push(z,"`"),te.each(we=>{let Se=we.getName();if(ae.push(B()),Se1||se.some(ae=>ae.length>0)){B.__inJestEach=!0;let ae=te.map(X,"expressions");B.__inJestEach=!1;let pe=[],De=ae.map(xe=>"${"+U(xe,Object.assign(Object.assign({},B),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),we=[{hasLineBreak:!1,cells:[]}];for(let xe=1;xexe.cells.length)),_e=Array.from({length:Se}).fill(0),Ge=[{cells:se},...we.filter(xe=>xe.cells.length>0)];for(let{cells:xe}of Ge.filter(nt=>!nt.hasLineBreak))for(let[nt,Fe]of xe.entries())_e[nt]=Math.max(_e[nt],y(Fe));return pe.push(z,"`",O([A,x(A,Ge.map(xe=>x(" | ",xe.cells.map((nt,Fe)=>xe.hasLineBreak?nt:nt+" ".repeat(_e[Fe]-y(nt))))))]),A,"`"),pe}}function Oe(te,B){let X=te.getValue(),Z=B();return ne(X)&&(Z=k([O([S,Z]),S])),["${",Z,z,"}"]}function V(te,B){return te.map(X=>Oe(X,B),"expressions")}function le(te,B){return $(te,X=>typeof X=="string"?B?X.replace(/(\\*)`/g,"$1$1\\`"):W(X):X)}function W(te){return te.replace(/([\\`]|\${)/g,"\\$1")}c.exports={printTemplateLiteral:Ee,printTemplateExpressions:V,escapeTemplateCharacters:le,uncookTemplateElementValue:W}}}),xu=Ue({"src/language-js/embed/markdown.js"(a,c){Je();var{builders:{indent:m,softline:y,literalline:C,dedentToRoot:x}}=Gr(),{escapeTemplateCharacters:A}=mo();function S(O,G,z){let q=O.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(ce,ge)=>"\\".repeat(ge.length/2)+"`"),U=k(q),$=U!=="";$&&(q=q.replace(new RegExp(`^${U}`,"gm"),""));let Q=A(z(q,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",$?m([y,Q]):[C,x(Q)],y,"`"]}function k(O){let G=O.match(/^([^\S\n]*)\S/m);return G===null?"":G[1]}c.exports=S}}),_c=Ue({"src/language-js/embed/css.js"(a,c){Je();var{isNonEmptyArray:m}=Tn(),{builders:{indent:y,hardline:C,softline:x},utils:{mapDoc:A,replaceEndOfLine:S,cleanDoc:k}}=Gr(),{printTemplateExpressions:O}=mo();function G(U,$,Q){let ce=U.getValue(),ge=ce.quasis.map(ye=>ye.value.raw),ne=0,me=ge.reduce((ye,Oe,V)=>V===0?Oe:ye+"@prettier-placeholder-"+ne+++"-id"+Oe,""),ue=Q(me,{parser:"scss"},{stripTrailingHardline:!0}),Ee=O(U,$);return z(ue,ce,Ee)}function z(U,$,Q){if($.quasis.length===1&&!$.quasis[0].value.raw.trim())return"``";let ce=q(U,Q);if(!ce)throw new Error("Couldn't insert all the expressions");return["`",y([C,ce]),x,"`"]}function q(U,$){if(!m($))return U;let Q=0,ce=A(k(U),ge=>typeof ge!="string"||!ge.includes("@prettier-placeholder")?ge:ge.split(/@prettier-placeholder-(\d+)-id/).map((ne,me)=>me%2===0?S(ne):(Q++,$[ne])));return $.length===Q?ce:null}c.exports=G}}),Vl=Ue({"src/language-js/embed/graphql.js"(a,c){Je();var{builders:{indent:m,join:y,hardline:C}}=Gr(),{escapeTemplateCharacters:x,printTemplateExpressions:A}=mo();function S(O,G,z){let q=O.getValue(),U=q.quasis.length;if(U===1&&q.quasis[0].value.raw.trim()==="")return"``";let $=A(O,G),Q=[];for(let ce=0;ce2&&Ee[0].trim()===""&&Ee[1].trim()==="",le=ye>2&&Ee[ye-1].trim()===""&&Ee[ye-2].trim()==="",W=Ee.every(B=>/^\s*(?:#[^\n\r]*)?$/.test(B));if(!me&&/#[^\n\r]*$/.test(Ee[ye-1]))return null;let te=null;W?te=k(Ee):te=z(ue,{parser:"graphql"},{stripTrailingHardline:!0}),te?(te=x(te,!1),!ne&&V&&Q.push(""),Q.push(te),!me&&le&&Q.push("")):!ne&&!me&&V&&Q.push(""),Oe&&Q.push(Oe)}return["`",m([C,y(C,Q)]),C,"`"]}function k(O){let G=[],z=!1,q=O.map(U=>U.trim());for(let[U,$]of q.entries())$!==""&&(q[U-1]===""&&z?G.push([C,$]):G.push($),z=!0);return G.length===0?null:y(C,G)}c.exports=S}}),ia=Ue({"src/language-js/embed/html.js"(a,c){Je();var{builders:{indent:m,line:y,hardline:C,group:x},utils:{mapDoc:A}}=Gr(),{printTemplateExpressions:S,uncookTemplateElementValue:k}=mo(),O=0;function G(z,q,U,$,Q){let{parser:ce}=Q,ge=z.getValue(),ne=O;O=O+1>>>0;let me=X=>`PRETTIER_HTML_PLACEHOLDER_${X}_${ne}_IN_JS`,ue=ge.quasis.map((X,Z,se)=>Z===se.length-1?X.value.cooked:X.value.cooked+me(Z)).join(""),Ee=S(z,q);if(Ee.length===0&&ue.trim().length===0)return"``";let ye=new RegExp(me("(\\d+)"),"g"),Oe=0,V=U(ue,{parser:ce,__onHtmlRoot(X){Oe=X.children.length}},{stripTrailingHardline:!0}),le=A(V,X=>{if(typeof X!="string")return X;let Z=[],se=X.split(ye);for(let ae=0;ae1?m(x(le)):x(le),te,"`"])}c.exports=G}}),Uo=Ue({"src/language-js/embed.js"(a,c){Je();var{hasComment:m,CommentCheckFlags:y,isObjectProperty:C}=Kn(),x=xu(),A=_c(),S=Vl(),k=ia();function O(V){if(q(V)||ce(V)||ge(V)||U(V))return"css";if(ue(V))return"graphql";if(ye(V))return"html";if($(V))return"angular";if(z(V))return"markdown"}function G(V,le,W,te){let B=V.getValue();if(B.type!=="TemplateLiteral"||Oe(B))return;let X=O(V);if(X){if(X==="markdown")return x(V,le,W);if(X==="css")return A(V,le,W);if(X==="graphql")return S(V,le,W);if(X==="html"||X==="angular")return k(V,le,W,te,{parser:X})}}function z(V){let le=V.getValue(),W=V.getParentNode();return W&&W.type==="TaggedTemplateExpression"&&le.quasis.length===1&&W.tag.type==="Identifier"&&(W.tag.name==="md"||W.tag.name==="markdown")}function q(V){let le=V.getValue(),W=V.getParentNode(),te=V.getParentNode(1);return te&&le.quasis&&W.type==="JSXExpressionContainer"&&te.type==="JSXElement"&&te.openingElement.name.name==="style"&&te.openingElement.attributes.some(B=>B.name.name==="jsx")||W&&W.type==="TaggedTemplateExpression"&&W.tag.type==="Identifier"&&W.tag.name==="css"||W&&W.type==="TaggedTemplateExpression"&&W.tag.type==="MemberExpression"&&W.tag.object.name==="css"&&(W.tag.property.name==="global"||W.tag.property.name==="resolve")}function U(V){return V.match(le=>le.type==="TemplateLiteral",(le,W)=>le.type==="ArrayExpression"&&W==="elements",(le,W)=>C(le)&&le.key.type==="Identifier"&&le.key.name==="styles"&&W==="value",...Q)}function $(V){return V.match(le=>le.type==="TemplateLiteral",(le,W)=>C(le)&&le.key.type==="Identifier"&&le.key.name==="template"&&W==="value",...Q)}var Q=[(V,le)=>V.type==="ObjectExpression"&&le==="properties",(V,le)=>V.type==="CallExpression"&&V.callee.type==="Identifier"&&V.callee.name==="Component"&&le==="arguments",(V,le)=>V.type==="Decorator"&&le==="expression"];function ce(V){let le=V.getParentNode();if(!le||le.type!=="TaggedTemplateExpression")return!1;let W=le.tag.type==="ParenthesizedExpression"?le.tag.expression:le.tag;switch(W.type){case"MemberExpression":return ne(W.object)||me(W);case"CallExpression":return ne(W.callee)||W.callee.type==="MemberExpression"&&(W.callee.object.type==="MemberExpression"&&(ne(W.callee.object.object)||me(W.callee.object))||W.callee.object.type==="CallExpression"&&ne(W.callee.object.callee));case"Identifier":return W.name==="css";default:return!1}}function ge(V){let le=V.getParentNode(),W=V.getParentNode(1);return W&&le.type==="JSXExpressionContainer"&&W.type==="JSXAttribute"&&W.name.type==="JSXIdentifier"&&W.name.name==="css"}function ne(V){return V.type==="Identifier"&&V.name==="styled"}function me(V){return/^[A-Z]/.test(V.object.name)&&V.property.name==="extend"}function ue(V){let le=V.getValue(),W=V.getParentNode();return Ee(le,"GraphQL")||W&&(W.type==="TaggedTemplateExpression"&&(W.tag.type==="MemberExpression"&&W.tag.object.name==="graphql"&&W.tag.property.name==="experimental"||W.tag.type==="Identifier"&&(W.tag.name==="gql"||W.tag.name==="graphql"))||W.type==="CallExpression"&&W.callee.type==="Identifier"&&W.callee.name==="graphql")}function Ee(V,le){return m(V,y.Block|y.Leading,W=>{let{value:te}=W;return te===` ${le} `})}function ye(V){return Ee(V.getValue(),"HTML")||V.match(le=>le.type==="TemplateLiteral",(le,W)=>le.type==="TaggedTemplateExpression"&&le.tag.type==="Identifier"&&le.tag.name==="html"&&W==="quasi")}function Oe(V){let{quasis:le}=V;return le.some(W=>{let{value:{cooked:te}}=W;return te===null})}c.exports=G}}),ks=Ue({"src/language-js/clean.js"(a,c){Je();var m=Zi(),y=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),C=A=>{for(let S of A.quasis)delete S.value};function x(A,S,k){if(A.type==="Program"&&delete S.sourceType,(A.type==="BigIntLiteral"||A.type==="BigIntLiteralTypeAnnotation")&&S.value&&(S.value=S.value.toLowerCase()),(A.type==="BigIntLiteral"||A.type==="Literal")&&S.bigint&&(S.bigint=S.bigint.toLowerCase()),A.type==="DecimalLiteral"&&(S.value=Number(S.value)),A.type==="Literal"&&S.decimal&&(S.decimal=Number(S.decimal)),A.type==="EmptyStatement"||A.type==="JSXText"||A.type==="JSXExpressionContainer"&&(A.expression.type==="Literal"||A.expression.type==="StringLiteral")&&A.expression.value===" ")return null;if((A.type==="Property"||A.type==="ObjectProperty"||A.type==="MethodDefinition"||A.type==="ClassProperty"||A.type==="ClassMethod"||A.type==="PropertyDefinition"||A.type==="TSDeclareMethod"||A.type==="TSPropertySignature"||A.type==="ObjectTypeProperty")&&typeof A.key=="object"&&A.key&&(A.key.type==="Literal"||A.key.type==="NumericLiteral"||A.key.type==="StringLiteral"||A.key.type==="Identifier")&&delete S.key,A.type==="JSXElement"&&A.openingElement.name.name==="style"&&A.openingElement.attributes.some(z=>z.name.name==="jsx"))for(let{type:z,expression:q}of S.children)z==="JSXExpressionContainer"&&q.type==="TemplateLiteral"&&C(q);A.type==="JSXAttribute"&&A.name.name==="css"&&A.value.type==="JSXExpressionContainer"&&A.value.expression.type==="TemplateLiteral"&&C(S.value.expression),A.type==="JSXAttribute"&&A.value&&A.value.type==="Literal"&&/["']|"|'/.test(A.value.value)&&(S.value.value=S.value.value.replace(/["']|"|'/g,'"'));let O=A.expression||A.callee;if(A.type==="Decorator"&&O.type==="CallExpression"&&O.callee.name==="Component"&&O.arguments.length===1){let z=A.expression.arguments[0].properties;for(let[q,U]of S.expression.arguments[0].properties.entries())switch(z[q].key.name){case"styles":U.value.type==="ArrayExpression"&&C(U.value.elements[0]);break;case"template":U.value.type==="TemplateLiteral"&&C(U.value);break}}if(A.type==="TaggedTemplateExpression"&&(A.tag.type==="MemberExpression"||A.tag.type==="Identifier"&&(A.tag.name==="gql"||A.tag.name==="graphql"||A.tag.name==="css"||A.tag.name==="md"||A.tag.name==="markdown"||A.tag.name==="html")||A.tag.type==="CallExpression")&&C(S.quasi),A.type==="TemplateLiteral"){var G;(!((G=A.leadingComments)===null||G===void 0)&&G.some(z=>m(z)&&["GraphQL","HTML"].some(q=>z.value===` ${q} `))||k.type==="CallExpression"&&k.callee.name==="graphql"||!A.leadingComments)&&C(S)}if(A.type==="InterpreterDirective"&&(S.value=S.value.trimEnd()),(A.type==="TSIntersectionType"||A.type==="TSUnionType")&&A.types.length===1)return S.types[0]}x.ignoredProperties=y,c.exports=x}}),bu={};Wr(bu,{EOL:()=>oa,arch:()=>sa,cpus:()=>Su,default:()=>_u,endianness:()=>Au,freemem:()=>zo,getNetworkInterfaces:()=>$s,hostname:()=>go,loadavg:()=>ka,networkInterfaces:()=>wu,platform:()=>$o,release:()=>Fa,tmpDir:()=>Go,tmpdir:()=>Wo,totalmem:()=>zs,type:()=>Ps,uptime:()=>Fs});function Au(){if(typeof aa>"u"){var a=new ArrayBuffer(2),c=new Uint8Array(a),m=new Uint16Array(a);if(c[0]=1,c[1]=2,m[0]===258)aa="BE";else if(m[0]===513)aa="LE";else throw new Error("unable to figure out endianess")}return aa}function go(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function ka(){return[]}function Fs(){return 0}function zo(){return Number.MAX_VALUE}function zs(){return Number.MAX_VALUE}function Su(){return[]}function Ps(){return"Browser"}function Fa(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function wu(){}function $s(){}function sa(){return"javascript"}function $o(){return"browser"}function Go(){return"/tmp"}var aa,Wo,oa,_u,Ns=cr({"node-modules-polyfills:os"(){Je(),Wo=Go,oa=` +`,_u={EOL:oa,tmpdir:Wo,tmpDir:Go,networkInterfaces:wu,getNetworkInterfaces:$s,release:Fa,type:Ps,cpus:Su,totalmem:zs,freemem:zo,uptime:Fs,loadavg:ka,hostname:go,endianness:Au}}}),Pa=Ue({"node-modules-polyfills-commonjs:os"(a,c){Je();var m=(Ns(),Dt(bu));if(m&&m.default){c.exports=m.default;for(let y in m)c.exports[y]=m[y]}else m&&(c.exports=m)}}),Na=Ue({"node_modules/detect-newline/index.js"(a,c){Je();var m=y=>{if(typeof y!="string")throw new TypeError("Expected a string");let C=y.match(/(?:\r?\n)/g)||[];if(C.length===0)return;let x=C.filter(S=>S===`\r +`).length,A=C.length-x;return x>A?`\r +`:` +`};c.exports=m,c.exports.graceful=y=>typeof y=="string"&&m(y)||` +`}}),Gs=Ue({"node_modules/jest-docblock/build/index.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.extract=U,a.parse=Q,a.parseWithComments=ce,a.print=ge,a.strip=$;function c(){let me=Pa();return c=function(){return me},me}function m(){let me=y(Na());return m=function(){return me},me}function y(me){return me&&me.__esModule?me:{default:me}}var C=/\*\/$/,x=/^\/\*\*?/,A=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,S=/(^|\s+)\/\/([^\r\n]*)/g,k=/^(\r?\n)+/,O=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,G=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,z=/(\r?\n|^) *\* ?/g,q=[];function U(me){let ue=me.match(A);return ue?ue[0].trimLeft():""}function $(me){let ue=me.match(A);return ue&&ue[0]?me.substring(ue[0].length):me}function Q(me){return ce(me).pragmas}function ce(me){let ue=(0,m().default)(me)||c().EOL;me=me.replace(x,"").replace(C,"").replace(z,"$1");let Ee="";for(;Ee!==me;)Ee=me,me=me.replace(O,`${ue}$1 $2${ue}`);me=me.replace(k,"").trimRight();let ye=Object.create(null),Oe=me.replace(G,"").replace(k,"").trimRight(),V;for(;V=G.exec(me);){let le=V[2].replace(S,"");typeof ye[V[1]]=="string"||Array.isArray(ye[V[1]])?ye[V[1]]=q.concat(ye[V[1]],le):ye[V[1]]=le}return{comments:Oe,pragmas:ye}}function ge(me){let{comments:ue="",pragmas:Ee={}}=me,ye=(0,m().default)(ue)||c().EOL,Oe="/**",V=" *",le=" */",W=Object.keys(Ee),te=W.map(X=>ne(X,Ee[X])).reduce((X,Z)=>X.concat(Z),[]).map(X=>`${V} ${X}${ye}`).join("");if(!ue){if(W.length===0)return"";if(W.length===1&&!Array.isArray(Ee[W[0]])){let X=Ee[W[0]];return`${Oe} ${ne(W[0],X)[0]}${le}`}}let B=ue.split(ye).map(X=>`${V} ${X}`).join(ye)+ye;return Oe+ye+(ue?B:"")+(ue&&W.length?V+ye:"")+te+le}function ne(me,ue){return q.concat(ue).map(Ee=>`@${me} ${Ee}`.trim())}}}),Vo=Ue({"src/language-js/utils/get-shebang.js"(a,c){Je();function m(y){if(!y.startsWith("#!"))return"";let C=y.indexOf(` +`);return C===-1?y:y.slice(0,C)}c.exports=m}}),qo=Ue({"src/language-js/pragma.js"(a,c){Je();var{parseWithComments:m,strip:y,extract:C,print:x}=Gs(),{normalizeEndOfLine:A}=ai(),S=Vo();function k(z){let q=S(z);q&&(z=z.slice(q.length+1));let U=C(z),{pragmas:$,comments:Q}=m(U);return{shebang:q,text:z,pragmas:$,comments:Q}}function O(z){let q=Object.keys(k(z).pragmas);return q.includes("prettier")||q.includes("format")}function G(z){let{shebang:q,text:U,pragmas:$,comments:Q}=k(z),ce=y(U),ge=x({pragmas:Object.assign({format:""},$),comments:Q.trimStart()});return(q?`${q} +`:"")+A(ge)+(ce.startsWith(` +`)?` +`:` + +`)+ce}c.exports={hasPragma:O,insertPragma:G}}}),ql=Ue({"src/language-js/utils/is-type-cast-comment.js"(a,c){Je();var m=Zi();function y(C){return m(C)&&C.value[0]==="*"&&/@(?:type|satisfies)\b/.test(C.value)}c.exports=y}}),Kl=Ue({"src/language-js/comments.js"(a,c){Je();var{getLast:m,hasNewline:y,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:C,getNextNonSpaceNonCommentCharacter:x,hasNewlineInRange:A,addLeadingComment:S,addTrailingComment:k,addDanglingComment:O,getNextNonSpaceNonCommentCharacterIndex:G,isNonEmptyArray:z}=Tn(),{getFunctionParameters:q,isPrettierIgnoreComment:U,isJsxNode:$,hasFlowShorthandAnnotationComment:Q,hasFlowAnnotationComment:ce,hasIgnoreComment:ge,isCallLikeExpression:ne,getCallArguments:me,isCallExpression:ue,isMemberExpression:Ee,isObjectProperty:ye,isLineComment:Oe,getComments:V,CommentCheckFlags:le,markerForIfWithoutBlockAndSameLineComment:W}=Kn(),{locStart:te,locEnd:B}=oi(),X=Zi(),Z=ql();function se(j){return[u,Jt,nt,_e,Ge,xe,At,Wt,Tt,Xt,Mr,hn,Nt,tt,He].some(_=>_(j))}function ae(j){return[Se,Jt,Fe,Mr,_e,Ge,xe,At,tt,ot,Bt,Xt,n,He,f].some(_=>_(j))}function pe(j){return[u,_e,Ge,be,Pt,Nt,Xt,kt,Ze,p,He,s].some(_=>_(j))}function De(j,_){let Y=(j.body||j.properties).find(he=>{let{type:Me}=he;return Me!=="EmptyStatement"});Y?S(Y,_):O(j,_)}function we(j,_){j.type==="BlockStatement"?De(j,_):S(j,_)}function Se(j){let{comment:_,followingNode:Y}=j;return Y&&Z(_)?(S(Y,_),!0):!1}function _e(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me,text:Ie}=j;if((he==null?void 0:he.type)!=="IfStatement"||!Me)return!1;if(x(Ie,_,B)===")")return k(Y,_),!0;if(Y===he.consequent&&Me===he.alternate){if(Y.type==="BlockStatement")k(Y,_);else{let ct=_.type==="SingleLine"||_.loc.start.line===_.loc.end.line,rt=_.loc.start.line===Y.loc.start.line;ct&&rt?O(Y,_,W):O(he,_)}return!0}return Me.type==="BlockStatement"?(De(Me,_),!0):Me.type==="IfStatement"?(we(Me.consequent,_),!0):he.consequent===Me?(S(Me,_),!0):!1}function Ge(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me,text:Ie}=j;return(he==null?void 0:he.type)!=="WhileStatement"||!Me?!1:x(Ie,_,B)===")"?(k(Y,_),!0):Me.type==="BlockStatement"?(De(Me,_),!0):he.body===Me?(S(Me,_),!0):!1}function xe(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me}=j;return(he==null?void 0:he.type)!=="TryStatement"&&(he==null?void 0:he.type)!=="CatchClause"||!Me?!1:he.type==="CatchClause"&&Y?(k(Y,_),!0):Me.type==="BlockStatement"?(De(Me,_),!0):Me.type==="TryStatement"?(we(Me.finalizer,_),!0):Me.type==="CatchClause"?(we(Me.body,_),!0):!1}function nt(j){let{comment:_,enclosingNode:Y,followingNode:he}=j;return Ee(Y)&&(he==null?void 0:he.type)==="Identifier"?(S(Y,_),!0):!1}function Fe(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me,text:Ie}=j,ct=Y&&!A(Ie,B(Y),te(_));return(!Y||!ct)&&((he==null?void 0:he.type)==="ConditionalExpression"||(he==null?void 0:he.type)==="TSConditionalType")&&Me?(S(Me,_),!0):!1}function be(j){let{comment:_,precedingNode:Y,enclosingNode:he}=j;return ye(he)&&he.shorthand&&he.key===Y&&he.value.type==="AssignmentPattern"?(k(he.value.left,_),!0):!1}var st=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function At(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me}=j;if(st.has(he==null?void 0:he.type)){if(z(he.decorators)&&!(Me&&Me.type==="Decorator"))return k(m(he.decorators),_),!0;if(he.body&&Me===he.body)return De(he.body,_),!0;if(Me){if(he.superClass&&Me===he.superClass&&Y&&(Y===he.id||Y===he.typeParameters))return k(Y,_),!0;for(let Ie of["implements","extends","mixins"])if(he[Ie]&&Me===he[Ie][0])return Y&&(Y===he.id||Y===he.typeParameters||Y===he.superClass)?k(Y,_):O(he,_,Ie),!0}}return!1}var lt=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Nt(j){let{comment:_,precedingNode:Y,enclosingNode:he,text:Me}=j;return he&&Y&&x(Me,_,B)==="("&&(he.type==="Property"||he.type==="TSDeclareMethod"||he.type==="TSAbstractMethodDefinition")&&Y.type==="Identifier"&&he.key===Y&&x(Me,Y,B)!==":"||(Y==null?void 0:Y.type)==="Decorator"&<.has(he==null?void 0:he.type)?(k(Y,_),!0):!1}var Le=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ze(j){let{comment:_,precedingNode:Y,enclosingNode:he,text:Me}=j;return x(Me,_,B)!=="("?!1:Y&&Le.has(he==null?void 0:he.type)?(k(Y,_),!0):!1}function kt(j){let{comment:_,enclosingNode:Y,text:he}=j;if((Y==null?void 0:Y.type)!=="ArrowFunctionExpression")return!1;let Me=G(he,_,B);return Me!==!1&&he.slice(Me,Me+2)==="=>"?(O(Y,_),!0):!1}function Pt(j){let{comment:_,enclosingNode:Y,text:he}=j;return x(he,_,B)!==")"?!1:Y&&(D(Y)&&q(Y).length===0||ne(Y)&&me(Y).length===0)?(O(Y,_),!0):((Y==null?void 0:Y.type)==="MethodDefinition"||(Y==null?void 0:Y.type)==="TSAbstractMethodDefinition")&&q(Y.value).length===0?(O(Y.value,_),!0):!1}function Jt(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me,text:Ie}=j;if((Y==null?void 0:Y.type)==="FunctionTypeParam"&&(he==null?void 0:he.type)==="FunctionTypeAnnotation"&&(Me==null?void 0:Me.type)!=="FunctionTypeParam"||((Y==null?void 0:Y.type)==="Identifier"||(Y==null?void 0:Y.type)==="AssignmentPattern")&&he&&D(he)&&x(Ie,_,B)===")")return k(Y,_),!0;if((he==null?void 0:he.type)==="FunctionDeclaration"&&(Me==null?void 0:Me.type)==="BlockStatement"){let ct=(()=>{let rt=q(he);if(rt.length>0)return C(Ie,B(m(rt)));let sr=C(Ie,B(he.id));return sr!==!1&&C(Ie,sr+1)})();if(te(_)>ct)return De(Me,_),!0}return!1}function tt(j){let{comment:_,enclosingNode:Y}=j;return(Y==null?void 0:Y.type)==="LabeledStatement"?(S(Y,_),!0):!1}function He(j){let{comment:_,enclosingNode:Y}=j;return((Y==null?void 0:Y.type)==="ContinueStatement"||(Y==null?void 0:Y.type)==="BreakStatement")&&!Y.label?(k(Y,_),!0):!1}function ot(j){let{comment:_,precedingNode:Y,enclosingNode:he}=j;return ue(he)&&Y&&he.callee===Y&&he.arguments.length>0?(S(he.arguments[0],_),!0):!1}function Tt(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me}=j;return(he==null?void 0:he.type)==="UnionTypeAnnotation"||(he==null?void 0:he.type)==="TSUnionType"?(U(_)&&(Me.prettierIgnore=!0,_.unignore=!0),Y?(k(Y,_),!0):!1):(((Me==null?void 0:Me.type)==="UnionTypeAnnotation"||(Me==null?void 0:Me.type)==="TSUnionType")&&U(_)&&(Me.types[0].prettierIgnore=!0,_.unignore=!0),!1)}function Bt(j){let{comment:_,enclosingNode:Y}=j;return ye(Y)?(S(Y,_),!0):!1}function Xt(j){let{comment:_,enclosingNode:Y,followingNode:he,ast:Me,isLastComment:Ie}=j;return Me&&Me.body&&Me.body.length===0?(Ie?O(Me,_):S(Me,_),!0):(Y==null?void 0:Y.type)==="Program"&&(Y==null?void 0:Y.body.length)===0&&!z(Y.directives)?(Ie?O(Y,_):S(Y,_),!0):(he==null?void 0:he.type)==="Program"&&(he==null?void 0:he.body.length)===0&&(Y==null?void 0:Y.type)==="ModuleExpression"?(O(he,_),!0):!1}function Wt(j){let{comment:_,enclosingNode:Y}=j;return(Y==null?void 0:Y.type)==="ForInStatement"||(Y==null?void 0:Y.type)==="ForOfStatement"?(S(Y,_),!0):!1}function Mr(j){let{comment:_,precedingNode:Y,enclosingNode:he,text:Me}=j;if((he==null?void 0:he.type)==="ImportSpecifier"||(he==null?void 0:he.type)==="ExportSpecifier")return S(he,_),!0;let Ie=(Y==null?void 0:Y.type)==="ImportSpecifier"&&(he==null?void 0:he.type)==="ImportDeclaration",ct=(Y==null?void 0:Y.type)==="ExportSpecifier"&&(he==null?void 0:he.type)==="ExportNamedDeclaration";return(Ie||ct)&&y(Me,B(_))?(k(Y,_),!0):!1}function hn(j){let{comment:_,enclosingNode:Y}=j;return(Y==null?void 0:Y.type)==="AssignmentPattern"?(S(Y,_),!0):!1}var on=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Ir=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function n(j){let{comment:_,enclosingNode:Y,followingNode:he}=j;return on.has(Y==null?void 0:Y.type)&&he&&(Ir.has(he.type)||X(_))?(S(he,_),!0):!1}function s(j){let{comment:_,enclosingNode:Y,followingNode:he,text:Me}=j;return!he&&((Y==null?void 0:Y.type)==="TSMethodSignature"||(Y==null?void 0:Y.type)==="TSDeclareFunction"||(Y==null?void 0:Y.type)==="TSAbstractMethodDefinition")&&x(Me,_,B)===";"?(k(Y,_),!0):!1}function u(j){let{comment:_,enclosingNode:Y,followingNode:he}=j;if(U(_)&&(Y==null?void 0:Y.type)==="TSMappedType"&&(he==null?void 0:he.type)==="TSTypeParameter"&&he.constraint)return Y.prettierIgnore=!0,_.unignore=!0,!0}function p(j){let{comment:_,precedingNode:Y,enclosingNode:he,followingNode:Me}=j;return(he==null?void 0:he.type)!=="TSMappedType"?!1:(Me==null?void 0:Me.type)==="TSTypeParameter"&&Me.name?(S(Me.name,_),!0):(Y==null?void 0:Y.type)==="TSTypeParameter"&&Y.constraint?(k(Y.constraint,_),!0):!1}function f(j){let{comment:_,enclosingNode:Y,followingNode:he}=j;return!Y||Y.type!=="SwitchCase"||Y.test||!he||he!==Y.consequent[0]?!1:(he.type==="BlockStatement"&&Oe(_)?De(he,_):O(Y,_),!0)}function D(j){return j.type==="ArrowFunctionExpression"||j.type==="FunctionExpression"||j.type==="FunctionDeclaration"||j.type==="ObjectMethod"||j.type==="ClassMethod"||j.type==="TSDeclareFunction"||j.type==="TSCallSignatureDeclaration"||j.type==="TSConstructSignatureDeclaration"||j.type==="TSMethodSignature"||j.type==="TSConstructorType"||j.type==="TSFunctionType"||j.type==="TSDeclareMethod"}function P(j,_){if((_.parser==="typescript"||_.parser==="flow"||_.parser==="acorn"||_.parser==="espree"||_.parser==="meriyah"||_.parser==="__babel_estree")&&j.type==="MethodDefinition"&&j.value&&j.value.type==="FunctionExpression"&&q(j.value).length===0&&!j.value.returnType&&!z(j.value.typeParameters)&&j.value.body)return[...j.decorators||[],j.key,j.value.body]}function R(j){let _=j.getValue(),Y=j.getParentNode(),he=Me=>ce(V(Me,le.Leading))||ce(V(Me,le.Trailing));return(_&&($(_)||Q(_)||ue(Y)&&he(_))||Y&&(Y.type==="JSXSpreadAttribute"||Y.type==="JSXSpreadChild"||Y.type==="UnionTypeAnnotation"||Y.type==="TSUnionType"||(Y.type==="ClassDeclaration"||Y.type==="ClassExpression")&&Y.superClass===_))&&(!ge(j)||Y.type==="UnionTypeAnnotation"||Y.type==="TSUnionType")}c.exports={handleOwnLineComment:se,handleEndOfLineComment:ae,handleRemainingComment:pe,getCommentChildNodes:P,willPrintOwnComments:R}}}),Ko=Ue({"src/language-js/needs-parens.js"(a,c){Je();var m=qn(),y=io(),{getFunctionParameters:C,getLeftSidePathName:x,hasFlowShorthandAnnotationComment:A,hasNakedLeftSide:S,hasNode:k,isBitwiseOperator:O,startsWithNoLookaheadToken:G,shouldFlatten:z,getPrecedence:q,isCallExpression:U,isMemberExpression:$,isObjectProperty:Q,isTSTypeExpression:ce}=Kn();function ge(V,le){let W=V.getParentNode();if(!W)return!1;let te=V.getName(),B=V.getNode();if(le.__isInHtmlInterpolation&&!le.bracketSpacing&&Ee(B)&&ye(V))return!0;if(ne(B))return!1;if(le.parser!=="flow"&&A(V.getValue()))return!0;if(B.type==="Identifier"){if(B.extra&&B.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(B.name)||te==="left"&&(B.name==="async"&&!W.await||B.name==="let")&&W.type==="ForOfStatement")return!0;if(B.name==="let"){var X;let se=(X=V.findAncestor(ae=>ae.type==="ForOfStatement"))===null||X===void 0?void 0:X.left;if(se&&G(se,ae=>ae===B))return!0}if(te==="object"&&B.name==="let"&&W.type==="MemberExpression"&&W.computed&&!W.optional){let se=V.findAncestor(pe=>pe.type==="ExpressionStatement"||pe.type==="ForStatement"||pe.type==="ForInStatement"),ae=se?se.type==="ExpressionStatement"?se.expression:se.type==="ForStatement"?se.init:se.left:void 0;if(ae&&G(ae,pe=>pe===B))return!0}return!1}if(B.type==="ObjectExpression"||B.type==="FunctionExpression"||B.type==="ClassExpression"||B.type==="DoExpression"){var Z;let se=(Z=V.findAncestor(ae=>ae.type==="ExpressionStatement"))===null||Z===void 0?void 0:Z.expression;if(se&&G(se,ae=>ae===B))return!0}switch(W.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(te==="superClass"&&(B.type==="ArrowFunctionExpression"||B.type==="AssignmentExpression"||B.type==="AwaitExpression"||B.type==="BinaryExpression"||B.type==="ConditionalExpression"||B.type==="LogicalExpression"||B.type==="NewExpression"||B.type==="ObjectExpression"||B.type==="SequenceExpression"||B.type==="TaggedTemplateExpression"||B.type==="UnaryExpression"||B.type==="UpdateExpression"||B.type==="YieldExpression"||B.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return Oe(V,le)||B.type==="SequenceExpression";case"Decorator":{if(te==="expression"){if($(B)&&B.computed)return!0;let se=!1,ae=!1,pe=B;for(;pe;)switch(pe.type){case"MemberExpression":ae=!0,pe=pe.object;break;case"CallExpression":if(ae||se)return le.parser!=="typescript";se=!0,pe=pe.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return le.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if(te==="body"&&B.type!=="SequenceExpression"&&G(B,se=>se.type==="ObjectExpression"))return!0;break}}switch(B.type){case"UpdateExpression":if(W.type==="UnaryExpression")return B.prefix&&(B.operator==="++"&&W.operator==="+"||B.operator==="--"&&W.operator==="-");case"UnaryExpression":switch(W.type){case"UnaryExpression":return B.operator===W.operator&&(B.operator==="+"||B.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return te==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return te==="callee";case"BinaryExpression":return te==="left"&&W.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(W.type==="UpdateExpression"||B.operator==="in"&&me(V))return!0;if(B.operator==="|>"&&B.extra&&B.extra.parenthesized){let se=V.getParentNode(1);if(se.type==="BinaryExpression"&&se.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(W.type){case"TSSatisfiesExpression":case"TSAsExpression":return!ce(B);case"ConditionalExpression":return ce(B);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return te==="callee";case"ClassExpression":case"ClassDeclaration":return te==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return te==="object";case"AssignmentExpression":case"AssignmentPattern":return te==="left"&&(B.type==="TSTypeAssertion"||ce(B));case"LogicalExpression":if(B.type==="LogicalExpression")return W.operator!==B.operator;case"BinaryExpression":{let{operator:se,type:ae}=B;if(!se&&ae!=="TSTypeAssertion")return!0;let pe=q(se),De=W.operator,we=q(De);return we>pe||te==="right"&&we===pe||we===pe&&!z(De,se)?!0:we");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if(te==="extendsType"&&W.type==="TSConditionalType"){if(B.type==="TSConditionalType")return!0;let{typeAnnotation:se}=B.returnType||B.typeAnnotation;if(se.type==="TSTypePredicate"&&se.typeAnnotation&&(se=se.typeAnnotation.typeAnnotation),se.type==="TSInferType"&&se.typeParameter.constraint)return!0}if(te==="checkType"&&W.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((W.type==="TSUnionType"||W.type==="TSIntersectionType")&&W.types.length>1&&(!B.types||B.types.length>1))return!0;case"TSInferType":if(B.type==="TSInferType"&&W.type==="TSRestType")return!1;case"TSTypeOperator":return W.type==="TSArrayType"||W.type==="TSOptionalType"||W.type==="TSRestType"||te==="objectType"&&W.type==="TSIndexedAccessType"||W.type==="TSTypeOperator"||W.type==="TSTypeAnnotation"&&V.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return te==="objectType"&&W.type==="TSIndexedAccessType"||te==="elementType"&&W.type==="TSArrayType";case"TypeofTypeAnnotation":return te==="objectType"&&(W.type==="IndexedAccessType"||W.type==="OptionalIndexedAccessType")||te==="elementType"&&W.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return W.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return W.type==="ArrayTypeAnnotation"||W.type==="NullableTypeAnnotation"||W.type==="IntersectionTypeAnnotation"||W.type==="UnionTypeAnnotation"||te==="objectType"&&(W.type==="IndexedAccessType"||W.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return W.type==="ArrayTypeAnnotation"||te==="objectType"&&(W.type==="IndexedAccessType"||W.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let se=W.type==="NullableTypeAnnotation"?V.getParentNode(1):W;return se.type==="UnionTypeAnnotation"||se.type==="IntersectionTypeAnnotation"||se.type==="ArrayTypeAnnotation"||te==="objectType"&&(se.type==="IndexedAccessType"||se.type==="OptionalIndexedAccessType")||se.type==="NullableTypeAnnotation"||W.type==="FunctionTypeParam"&&W.name===null&&C(B).some(ae=>ae.typeAnnotation&&ae.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return te==="objectType"&&W.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof B.value=="string"&&W.type==="ExpressionStatement"&&!W.directive){let se=V.getParentNode(1);return se.type==="Program"||se.type==="BlockStatement"}return te==="object"&&W.type==="MemberExpression"&&typeof B.value=="number";case"AssignmentExpression":{let se=V.getParentNode(1);return te==="body"&&W.type==="ArrowFunctionExpression"?!0:te==="key"&&(W.type==="ClassProperty"||W.type==="PropertyDefinition")&&W.computed||(te==="init"||te==="update")&&W.type==="ForStatement"?!1:W.type==="ExpressionStatement"?B.left.type==="ObjectPattern":!(te==="key"&&W.type==="TSPropertySignature"||W.type==="AssignmentExpression"||W.type==="SequenceExpression"&&se&&se.type==="ForStatement"&&(se.init===W||se.update===W)||te==="value"&&W.type==="Property"&&se&&se.type==="ObjectPattern"&&se.properties.includes(W)||W.type==="NGChainedExpression")}case"ConditionalExpression":switch(W.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return te==="callee";case"ConditionalExpression":return te==="test";case"MemberExpression":case"OptionalMemberExpression":return te==="object";default:return!1}case"FunctionExpression":switch(W.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return te==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(W.type){case"BinaryExpression":return W.operator!=="|>"||B.extra&&B.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return te==="callee";case"MemberExpression":case"OptionalMemberExpression":return te==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return te==="test";default:return!1}case"ClassExpression":if(y(B.decorators))return!0;switch(W.type){case"NewExpression":return te==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let se=V.getParentNode(1);if(te==="object"&&W.type==="MemberExpression"||te==="callee"&&(W.type==="CallExpression"||W.type==="NewExpression")||W.type==="TSNonNullExpression"&&se.type==="MemberExpression"&&se.object===W)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(te==="callee"&&(W.type==="BindExpression"||W.type==="NewExpression")){let se=B;for(;se;)switch(se.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":se=se.object;break;case"TaggedTemplateExpression":se=se.tag;break;case"TSNonNullExpression":se=se.expression;break;default:return!1}}return!1;case"BindExpression":return te==="callee"&&(W.type==="BindExpression"||W.type==="NewExpression")||te==="object"&&$(W);case"NGPipeExpression":return!(W.type==="NGRoot"||W.type==="NGMicrosyntaxExpression"||W.type==="ObjectProperty"&&!(B.extra&&B.extra.parenthesized)||W.type==="ArrayExpression"||U(W)&&W.arguments[te]===B||te==="right"&&W.type==="NGPipeExpression"||te==="property"&&W.type==="MemberExpression"||W.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return te==="callee"||te==="left"&&W.type==="BinaryExpression"&&W.operator==="<"||W.type!=="ArrayExpression"&&W.type!=="ArrowFunctionExpression"&&W.type!=="AssignmentExpression"&&W.type!=="AssignmentPattern"&&W.type!=="BinaryExpression"&&W.type!=="NewExpression"&&W.type!=="ConditionalExpression"&&W.type!=="ExpressionStatement"&&W.type!=="JsExpressionRoot"&&W.type!=="JSXAttribute"&&W.type!=="JSXElement"&&W.type!=="JSXExpressionContainer"&&W.type!=="JSXFragment"&&W.type!=="LogicalExpression"&&!U(W)&&!Q(W)&&W.type!=="ReturnStatement"&&W.type!=="ThrowStatement"&&W.type!=="TypeCastExpression"&&W.type!=="VariableDeclarator"&&W.type!=="YieldExpression";case"TypeAnnotation":return te==="returnType"&&W.type==="ArrowFunctionExpression"&&ue(B)}return!1}function ne(V){return V.type==="BlockStatement"||V.type==="BreakStatement"||V.type==="ClassBody"||V.type==="ClassDeclaration"||V.type==="ClassMethod"||V.type==="ClassProperty"||V.type==="PropertyDefinition"||V.type==="ClassPrivateProperty"||V.type==="ContinueStatement"||V.type==="DebuggerStatement"||V.type==="DeclareClass"||V.type==="DeclareExportAllDeclaration"||V.type==="DeclareExportDeclaration"||V.type==="DeclareFunction"||V.type==="DeclareInterface"||V.type==="DeclareModule"||V.type==="DeclareModuleExports"||V.type==="DeclareVariable"||V.type==="DoWhileStatement"||V.type==="EnumDeclaration"||V.type==="ExportAllDeclaration"||V.type==="ExportDefaultDeclaration"||V.type==="ExportNamedDeclaration"||V.type==="ExpressionStatement"||V.type==="ForInStatement"||V.type==="ForOfStatement"||V.type==="ForStatement"||V.type==="FunctionDeclaration"||V.type==="IfStatement"||V.type==="ImportDeclaration"||V.type==="InterfaceDeclaration"||V.type==="LabeledStatement"||V.type==="MethodDefinition"||V.type==="ReturnStatement"||V.type==="SwitchStatement"||V.type==="ThrowStatement"||V.type==="TryStatement"||V.type==="TSDeclareFunction"||V.type==="TSEnumDeclaration"||V.type==="TSImportEqualsDeclaration"||V.type==="TSInterfaceDeclaration"||V.type==="TSModuleDeclaration"||V.type==="TSNamespaceExportDeclaration"||V.type==="TypeAlias"||V.type==="VariableDeclaration"||V.type==="WhileStatement"||V.type==="WithStatement"}function me(V){let le=0,W=V.getValue();for(;W;){let te=V.getParentNode(le++);if(te&&te.type==="ForStatement"&&te.init===W)return!0;W=te}return!1}function ue(V){return k(V,le=>le.type==="ObjectTypeAnnotation"&&k(le,W=>W.type==="FunctionTypeAnnotation"||void 0)||void 0)}function Ee(V){switch(V.type){case"ObjectExpression":return!0;default:return!1}}function ye(V){let le=V.getValue(),W=V.getParentNode(),te=V.getName();switch(W.type){case"NGPipeExpression":if(typeof te=="number"&&W.arguments[te]===le&&W.arguments.length-1===te)return V.callParent(ye);break;case"ObjectProperty":if(te==="value"){let B=V.getParentNode(1);return m(B.properties)===W}break;case"BinaryExpression":case"LogicalExpression":if(te==="right")return V.callParent(ye);break;case"ConditionalExpression":if(te==="alternate")return V.callParent(ye);break;case"UnaryExpression":if(W.prefix)return V.callParent(ye);break}return!1}function Oe(V,le){let W=V.getValue(),te=V.getParentNode();return W.type==="FunctionExpression"||W.type==="ClassExpression"?te.type==="ExportDefaultDeclaration"||!ge(V,le):!S(W)||te.type!=="ExportDefaultDeclaration"&&ge(V,le)?!1:V.call(B=>Oe(B,le),...x(V,W))}c.exports=ge}}),ua=Ue({"src/language-js/print-preprocess.js"(a,c){Je();function m(y,C){switch(C.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},y),{},{type:C.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:y,comments:[],rootMarker:C.rootMarker});default:return y}}c.exports=m}}),Ia=Ue({"src/language-js/print/html-binding.js"(a,c){Je();var{builders:{join:m,line:y,group:C,softline:x,indent:A}}=Gr();function S(O,G,z){let q=O.getValue();if(G.__onHtmlBindingRoot&&O.getName()===null&&G.__onHtmlBindingRoot(q,G),q.type==="File"){if(G.__isVueForBindingLeft)return O.call(U=>{let $=m([",",y],U.map(z,"params")),{params:Q}=U.getValue();return Q.length===1?$:["(",A([x,C($)]),x,")"]},"program","body",0);if(G.__isVueBindings)return O.call(U=>m([",",y],U.map(z,"params")),"program","body",0)}}function k(O){switch(O.type){case"MemberExpression":switch(O.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return k(O.object)}return!1;case"Identifier":return!0;default:return!1}}c.exports={isVueEventBindingExpression:k,printHtmlBinding:S}}}),Ws=Ue({"src/language-js/print/binaryish.js"(a,c){Je();var{printComments:m}=xi(),{getLast:y}=Tn(),{builders:{join:C,line:x,softline:A,group:S,indent:k,align:O,indentIfBreak:G},utils:{cleanDoc:z,getDocParts:q,isConcat:U}}=Gr(),{hasLeadingOwnLineComment:$,isBinaryish:Q,isJsxNode:ce,shouldFlatten:ge,hasComment:ne,CommentCheckFlags:me,isCallExpression:ue,isMemberExpression:Ee,isObjectProperty:ye,isEnabledHackPipeline:Oe}=Kn(),V=0;function le(B,X,Z){let se=B.getValue(),ae=B.getParentNode(),pe=B.getParentNode(1),De=se!==ae.body&&(ae.type==="IfStatement"||ae.type==="WhileStatement"||ae.type==="SwitchStatement"||ae.type==="DoWhileStatement"),we=Oe(X)&&se.operator==="|>",Se=W(B,Z,X,!1,De);if(De)return Se;if(we)return S(Se);if(ue(ae)&&ae.callee===se||ae.type==="UnaryExpression"||Ee(ae)&&!ae.computed)return S([k([A,...Se]),A]);let _e=ae.type==="ReturnStatement"||ae.type==="ThrowStatement"||ae.type==="JSXExpressionContainer"&&pe.type==="JSXAttribute"||se.operator!=="|"&&ae.type==="JsExpressionRoot"||se.type!=="NGPipeExpression"&&(ae.type==="NGRoot"&&X.parser==="__ng_binding"||ae.type==="NGMicrosyntaxExpression"&&pe.type==="NGMicrosyntax"&&pe.body.length===1)||se===ae.body&&ae.type==="ArrowFunctionExpression"||se!==ae.body&&ae.type==="ForStatement"||ae.type==="ConditionalExpression"&&pe.type!=="ReturnStatement"&&pe.type!=="ThrowStatement"&&!ue(pe)||ae.type==="TemplateLiteral",Ge=ae.type==="AssignmentExpression"||ae.type==="VariableDeclarator"||ae.type==="ClassProperty"||ae.type==="PropertyDefinition"||ae.type==="TSAbstractPropertyDefinition"||ae.type==="ClassPrivateProperty"||ye(ae),xe=Q(se.left)&&ge(se.operator,se.left.operator);if(_e||te(se)&&!xe||!te(se)&&Ge)return S(Se);if(Se.length===0)return"";let nt=ce(se.right),Fe=Se.findIndex(Le=>typeof Le!="string"&&!Array.isArray(Le)&&Le.type==="group"),be=Se.slice(0,Fe===-1?1:Fe+1),st=Se.slice(be.length,nt?-1:void 0),At=Symbol("logicalChain-"+ ++V),lt=S([...be,k(st)],{id:At});if(!nt)return lt;let Nt=y(Se);return S([lt,G(Nt,{groupId:At})])}function W(B,X,Z,se,ae){let pe=B.getValue();if(!Q(pe))return[S(X())];let De=[];ge(pe.operator,pe.left.operator)?De=B.call(st=>W(st,X,Z,!0,ae),"left"):De.push(S(X("left")));let we=te(pe),Se=(pe.operator==="|>"||pe.type==="NGPipeExpression"||pe.operator==="|"&&Z.parser==="__vue_expression")&&!$(Z.originalText,pe.right),_e=pe.type==="NGPipeExpression"?"|":pe.operator,Ge=pe.type==="NGPipeExpression"&&pe.arguments.length>0?S(k([x,": ",C([x,": "],B.map(X,"arguments").map(st=>O(2,S(st))))])):"",xe;if(we)xe=[_e," ",X("right"),Ge];else{let st=Oe(Z)&&_e==="|>"?B.call(At=>W(At,X,Z,!0,ae),"right"):X("right");xe=[Se?x:"",_e,Se?" ":x,st,Ge]}let nt=B.getParentNode(),Fe=ne(pe.left,me.Trailing|me.Line),be=Fe||!(ae&&pe.type==="LogicalExpression")&&nt.type!==pe.type&&pe.left.type!==pe.type&&pe.right.type!==pe.type;if(De.push(Se?"":" ",be?S(xe,{shouldBreak:Fe}):xe),se&&ne(pe)){let st=z(m(B,De,Z));return U(st)||st.type==="fill"?q(st):[st]}return De}function te(B){return B.type!=="LogicalExpression"?!1:!!(B.right.type==="ObjectExpression"&&B.right.properties.length>0||B.right.type==="ArrayExpression"&&B.right.elements.length>0||ce(B.right))}c.exports={printBinaryishExpression:le,shouldInlineLogicalExpression:te}}}),Np=Ue({"src/language-js/print/angular.js"(a,c){Je();var{builders:{join:m,line:y,group:C}}=Gr(),{hasNode:x,hasComment:A,getComments:S}=Kn(),{printBinaryishExpression:k}=Ws();function O(q,U,$){let Q=q.getValue();if(Q.type.startsWith("NG"))switch(Q.type){case"NGRoot":return[$("node"),A(Q.node)?" //"+S(Q.node)[0].value.trimEnd():""];case"NGPipeExpression":return k(q,U,$);case"NGChainedExpression":return C(m([";",y],q.map(ce=>z(ce)?$():["(",$(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[Q.prefix,": ",Q.value.trim()];case"NGMicrosyntax":return q.map((ce,ge)=>[ge===0?"":G(ce.getValue(),ge,Q)?" ":[";",y],$()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(Q.name)?Q.name:JSON.stringify(Q.name);case"NGMicrosyntaxExpression":return[$("expression"),Q.alias===null?"":[" as ",$("alias")]];case"NGMicrosyntaxKeyedExpression":{let ce=q.getName(),ge=q.getParentNode(),ne=G(Q,ce,ge)||(ce===1&&(Q.key.name==="then"||Q.key.name==="else")||ce===2&&Q.key.name==="else"&&ge.body[ce-1].type==="NGMicrosyntaxKeyedExpression"&&ge.body[ce-1].key.name==="then")&&ge.body[0].type==="NGMicrosyntaxExpression";return[$("key"),ne?" ":": ",$("expression")]}case"NGMicrosyntaxLet":return["let ",$("key"),Q.value===null?"":[" = ",$("value")]];case"NGMicrosyntaxAs":return[$("key")," as ",$("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(Q.type)}.`)}}function G(q,U,$){return q.type==="NGMicrosyntaxKeyedExpression"&&q.key.name==="of"&&U===1&&$.body[0].type==="NGMicrosyntaxLet"&&$.body[0].value===null}function z(q){return x(q.getValue(),U=>{switch(U.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}c.exports={printAngular:O}}}),Ip=Ue({"src/language-js/print/jsx.js"(a,c){Je();var{printComments:m,printDanglingComments:y,printCommentsSeparately:C}=xi(),{builders:{line:x,hardline:A,softline:S,group:k,indent:O,conditionalGroup:G,fill:z,ifBreak:q,lineSuffixBoundary:U,join:$},utils:{willBreak:Q}}=Gr(),{getLast:ce,getPreferredQuote:ge}=Tn(),{isJsxNode:ne,rawText:me,isCallExpression:ue,isStringLiteral:Ee,isBinaryish:ye,hasComment:Oe,CommentCheckFlags:V,hasNodeIgnoreComment:le}=Kn(),W=Ko(),{willPrintOwnComments:te}=Kl(),B=He=>He===""||He===x||He===A||He===S;function X(He,ot,Tt){let Bt=He.getValue();if(Bt.type==="JSXElement"&&kt(Bt))return[Tt("openingElement"),Tt("closingElement")];let Xt=Bt.type==="JSXElement"?Tt("openingElement"):Tt("openingFragment"),Wt=Bt.type==="JSXElement"?Tt("closingElement"):Tt("closingFragment");if(Bt.children.length===1&&Bt.children[0].type==="JSXExpressionContainer"&&(Bt.children[0].expression.type==="TemplateLiteral"||Bt.children[0].expression.type==="TaggedTemplateExpression"))return[Xt,...He.map(Tt,"children"),Wt];Bt.children=Bt.children.map(_=>Jt(_)?{type:"JSXText",value:" ",raw:" "}:_);let Mr=Bt.children.some(ne),hn=Bt.children.filter(_=>_.type==="JSXExpressionContainer").length>1,on=Bt.type==="JSXElement"&&Bt.openingElement.attributes.length>1,Ir=Q(Xt)||Mr||on||hn,n=He.getParentNode().rootMarker==="mdx",s=ot.singleQuote?"{' '}":'{" "}',u=n?" ":q([s,S]," "),p=Bt.openingElement&&Bt.openingElement.name&&Bt.openingElement.name.name==="fbt",f=Z(He,ot,Tt,u,p),D=Bt.children.some(_=>Pt(_));for(let _=f.length-2;_>=0;_--){let Y=f[_]===""&&f[_+1]==="",he=f[_]===A&&f[_+1]===""&&f[_+2]===A,Me=(f[_]===S||f[_]===A)&&f[_+1]===""&&f[_+2]===u,Ie=f[_]===u&&f[_+1]===""&&(f[_+2]===S||f[_+2]===A),ct=f[_]===u&&f[_+1]===""&&f[_+2]===u,rt=f[_]===S&&f[_+1]===""&&f[_+2]===A||f[_]===A&&f[_+1]===""&&f[_+2]===S;he&&D||Y||Me||ct||rt?f.splice(_,2):Ie&&f.splice(_+1,2)}for(;f.length>0&&B(ce(f));)f.pop();for(;f.length>1&&B(f[0])&&B(f[1]);)f.shift(),f.shift();let P=[];for(let[_,Y]of f.entries()){if(Y===u){if(_===1&&f[_-1]===""){if(f.length===2){P.push(s);continue}P.push([s,A]);continue}else if(_===f.length-1){P.push(s);continue}else if(f[_-1]===""&&f[_-2]===A){P.push(s);continue}}P.push(Y),Q(Y)&&(Ir=!0)}let R=D?z(P):k(P,{shouldBreak:!0});if(n)return R;let j=k([Xt,O([A,R]),A,Wt]);return Ir?j:G([k([Xt,...f,Wt]),j])}function Z(He,ot,Tt,Bt,Xt){let Wt=[];return He.each((Mr,hn,on)=>{let Ir=Mr.getValue();if(Ir.type==="JSXText"){let n=me(Ir);if(Pt(Ir)){let s=n.split(Nt);if(s[0]===""){if(Wt.push(""),s.shift(),/\n/.test(s[0])){let p=on[hn+1];Wt.push(ae(Xt,s[1],Ir,p))}else Wt.push(Bt);s.shift()}let u;if(ce(s)===""&&(s.pop(),u=s.pop()),s.length===0)return;for(let[p,f]of s.entries())p%2===1?Wt.push(x):Wt.push(f);if(u!==void 0)if(/\n/.test(u)){let p=on[hn+1];Wt.push(ae(Xt,ce(Wt),Ir,p))}else Wt.push(Bt);else{let p=on[hn+1];Wt.push(se(Xt,ce(Wt),Ir,p))}}else/\n/.test(n)?n.match(/\n/g).length>1&&Wt.push("",A):Wt.push("",Bt)}else{let n=Tt();Wt.push(n);let s=on[hn+1];if(s&&Pt(s)){let u=Ze(me(s)).split(Nt)[0];Wt.push(se(Xt,u,Ir,s))}else Wt.push(A)}},"children"),Wt}function se(He,ot,Tt,Bt){return He?"":Tt.type==="JSXElement"&&!Tt.closingElement||Bt&&Bt.type==="JSXElement"&&!Bt.closingElement?ot.length===1?S:A:S}function ae(He,ot,Tt,Bt){return He?A:ot.length===1?Tt.type==="JSXElement"&&!Tt.closingElement||Bt&&Bt.type==="JSXElement"&&!Bt.closingElement?A:S:A}function pe(He,ot,Tt){let Bt=He.getParentNode();if(!Bt||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[Bt.type])return ot;let Xt=He.match(void 0,Mr=>Mr.type==="ArrowFunctionExpression",ue,Mr=>Mr.type==="JSXExpressionContainer"),Wt=W(He,Tt);return k([Wt?"":q("("),O([S,ot]),S,Wt?"":q(")")],{shouldBreak:Xt})}function De(He,ot,Tt){let Bt=He.getValue(),Xt=[];if(Xt.push(Tt("name")),Bt.value){let Wt;if(Ee(Bt.value)){let Mr=me(Bt.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:hn,quote:on,regex:Ir}=ge(Mr,ot.jsxSingleQuote?"'":'"');Mr=Mr.replace(Ir,hn);let{leading:n,trailing:s}=He.call(()=>C(He,ot),"value");Wt=[n,on,Mr,on,s]}else Wt=Tt("value");Xt.push("=",Wt)}return Xt}function we(He,ot,Tt){let Bt=He.getValue(),Xt=(Wt,Mr)=>Wt.type==="JSXEmptyExpression"||!Oe(Wt)&&(Wt.type==="ArrayExpression"||Wt.type==="ObjectExpression"||Wt.type==="ArrowFunctionExpression"||Wt.type==="AwaitExpression"&&(Xt(Wt.argument,Wt)||Wt.argument.type==="JSXElement")||ue(Wt)||Wt.type==="FunctionExpression"||Wt.type==="TemplateLiteral"||Wt.type==="TaggedTemplateExpression"||Wt.type==="DoExpression"||ne(Mr)&&(Wt.type==="ConditionalExpression"||ye(Wt)));return Xt(Bt.expression,He.getParentNode(0))?k(["{",Tt("expression"),U,"}"]):k(["{",O([S,Tt("expression")]),S,U,"}"])}function Se(He,ot,Tt){let Bt=He.getValue(),Xt=Bt.name&&Oe(Bt.name)||Bt.typeParameters&&Oe(Bt.typeParameters);if(Bt.selfClosing&&Bt.attributes.length===0&&!Xt)return["<",Tt("name"),Tt("typeParameters")," />"];if(Bt.attributes&&Bt.attributes.length===1&&Bt.attributes[0].value&&Ee(Bt.attributes[0].value)&&!Bt.attributes[0].value.value.includes(` +`)&&!Xt&&!Oe(Bt.attributes[0]))return k(["<",Tt("name"),Tt("typeParameters")," ",...He.map(Tt,"attributes"),Bt.selfClosing?" />":">"]);let Wt=Bt.attributes&&Bt.attributes.some(hn=>hn.value&&Ee(hn.value)&&hn.value.value.includes(` +`)),Mr=ot.singleAttributePerLine&&Bt.attributes.length>1?A:x;return k(["<",Tt("name"),Tt("typeParameters"),O(He.map(()=>[Mr,Tt()],"attributes")),..._e(Bt,ot,Xt)],{shouldBreak:Wt})}function _e(He,ot,Tt){return He.selfClosing?[x,"/>"]:Ge(He,ot,Tt)?[">"]:[S,">"]}function Ge(He,ot,Tt){let Bt=He.attributes.length>0&&Oe(ce(He.attributes),V.Trailing);return He.attributes.length===0&&!Tt||(ot.bracketSameLine||ot.jsxBracketSameLine)&&(!Tt||He.attributes.length>0)&&!Bt}function xe(He,ot,Tt){let Bt=He.getValue(),Xt=[];Xt.push(""),Xt}function nt(He,ot){let Tt=He.getValue(),Bt=Oe(Tt),Xt=Oe(Tt,V.Line),Wt=Tt.type==="JSXOpeningFragment";return[Wt?"<":""]}function Fe(He,ot,Tt){let Bt=m(He,X(He,ot,Tt),ot);return pe(He,Bt,ot)}function be(He,ot){let Tt=He.getValue(),Bt=Oe(Tt,V.Line);return[y(He,ot,!Bt),Bt?A:""]}function st(He,ot,Tt){let Bt=He.getValue();return["{",He.call(Xt=>{let Wt=["...",Tt()],Mr=Xt.getValue();return!Oe(Mr)||!te(Xt)?Wt:[O([S,m(Xt,Wt,ot)]),S]},Bt.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function At(He,ot,Tt){let Bt=He.getValue();if(Bt.type.startsWith("JSX"))switch(Bt.type){case"JSXAttribute":return De(He,ot,Tt);case"JSXIdentifier":return String(Bt.name);case"JSXNamespacedName":return $(":",[Tt("namespace"),Tt("name")]);case"JSXMemberExpression":return $(".",[Tt("object"),Tt("property")]);case"JSXSpreadAttribute":return st(He,ot,Tt);case"JSXSpreadChild":return st(He,ot,Tt);case"JSXExpressionContainer":return we(He,ot,Tt);case"JSXFragment":case"JSXElement":return Fe(He,ot,Tt);case"JSXOpeningElement":return Se(He,ot,Tt);case"JSXClosingElement":return xe(He,ot,Tt);case"JSXOpeningFragment":case"JSXClosingFragment":return nt(He,ot);case"JSXEmptyExpression":return be(He,ot);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(Bt.type)}.`)}}var lt=` +\r `,Nt=new RegExp("(["+lt+"]+)"),Le=new RegExp("[^"+lt+"]"),Ze=He=>He.replace(new RegExp("(?:^"+Nt.source+"|"+Nt.source+"$)"),"");function kt(He){if(He.children.length===0)return!0;if(He.children.length>1)return!1;let ot=He.children[0];return ot.type==="JSXText"&&!Pt(ot)}function Pt(He){return He.type==="JSXText"&&(Le.test(me(He))||!/\n/.test(me(He)))}function Jt(He){return He.type==="JSXExpressionContainer"&&Ee(He.expression)&&He.expression.value===" "&&!Oe(He.expression)}function tt(He){let ot=He.getValue(),Tt=He.getParentNode();if(!Tt||!ot||!ne(ot)||!ne(Tt))return!1;let Bt=Tt.children.indexOf(ot),Xt=null;for(let Wt=Bt;Wt>0;Wt--){let Mr=Tt.children[Wt-1];if(!(Mr.type==="JSXText"&&!Pt(Mr))){Xt=Mr;break}}return Xt&&Xt.type==="JSXExpressionContainer"&&Xt.expression.type==="JSXEmptyExpression"&&le(Xt.expression)}c.exports={hasJsxIgnoreComment:tt,printJsx:At}}}),ds=Ue({"src/language-js/print/misc.js"(a,c){Je();var{isNonEmptyArray:m}=Tn(),{builders:{indent:y,join:C,line:x}}=Gr(),{isFlowAnnotationComment:A}=Kn();function S(ce){let ge=ce.getValue();return!ge.optional||ge.type==="Identifier"&&ge===ce.getParentNode().key?"":ge.type==="OptionalCallExpression"||ge.type==="OptionalMemberExpression"&&ge.computed?"?.":"?"}function k(ce){return ce.getValue().definite||ce.match(void 0,(ge,ne)=>ne==="id"&&ge.type==="VariableDeclarator"&&ge.definite)?"!":""}function O(ce,ge,ne){let me=ce.getValue();return me.typeArguments?ne("typeArguments"):me.typeParameters?ne("typeParameters"):""}function G(ce,ge,ne){let me=ce.getValue();if(!me.typeAnnotation)return"";let ue=ce.getParentNode(),Ee=ue.type==="DeclareFunction"&&ue.id===me;return A(ge.originalText,me.typeAnnotation)?[" /*: ",ne("typeAnnotation")," */"]:[Ee?"":": ",ne("typeAnnotation")]}function z(ce,ge,ne){return["::",ne("callee")]}function q(ce,ge,ne){let me=ce.getValue();return m(me.modifiers)?[C(" ",ce.map(ne,"modifiers"))," "]:""}function U(ce,ge,ne){return ce.type==="EmptyStatement"?";":ce.type==="BlockStatement"||ne?[" ",ge]:y([x,ge])}function $(ce,ge,ne){return["...",ne("argument"),G(ce,ge,ne)]}function Q(ce,ge){let ne=ce.slice(1,-1);if(ne.includes('"')||ne.includes("'"))return ce;let me=ge.singleQuote?"'":'"';return me+ne+me}c.exports={printOptionalToken:S,printDefiniteToken:k,printFunctionTypeParameters:O,printBindExpressionCallee:z,printTypeScriptModifiers:q,printTypeAnnotation:G,printRestSpread:$,adjustClause:U,printDirective:Q}}}),Yo=Ue({"src/language-js/print/array.js"(a,c){Je();var{printDanglingComments:m}=xi(),{builders:{line:y,softline:C,hardline:x,group:A,indent:S,ifBreak:k,fill:O}}=Gr(),{getLast:G,hasNewline:z}=Tn(),{shouldPrintComma:q,hasComment:U,CommentCheckFlags:$,isNextLineEmpty:Q,isNumericLiteral:ce,isSignedNumericLiteral:ge}=Kn(),{locStart:ne}=oi(),{printOptionalToken:me,printTypeAnnotation:ue}=ds();function Ee(le,W,te){let B=le.getValue(),X=[],Z=B.type==="TupleExpression"?"#[":"[",se="]";if(B.elements.length===0)U(B,$.Dangling)?X.push(A([Z,m(le,W),C,se])):X.push(Z,se);else{let ae=G(B.elements),pe=!(ae&&ae.type==="RestElement"),De=ae===null,we=Symbol("array"),Se=!W.__inJestEach&&B.elements.length>1&&B.elements.every((xe,nt,Fe)=>{let be=xe&&xe.type;if(be!=="ArrayExpression"&&be!=="ObjectExpression")return!1;let st=Fe[nt+1];if(st&&be!==st.type)return!1;let At=be==="ArrayExpression"?"elements":"properties";return xe[At]&&xe[At].length>1}),_e=ye(B,W),Ge=pe?De?",":q(W)?_e?k(",","",{groupId:we}):k(","):"":"";X.push(A([Z,S([C,_e?V(le,W,te,Ge):[Oe(le,W,"elements",te),Ge],m(le,W,!0)]),C,se],{shouldBreak:Se,id:we}))}return X.push(me(le),ue(le,W,te)),X}function ye(le,W){return le.elements.length>1&&le.elements.every(te=>te&&(ce(te)||ge(te)&&!U(te.argument))&&!U(te,$.Trailing|$.Line,B=>!z(W.originalText,ne(B),{backwards:!0})))}function Oe(le,W,te,B){let X=[],Z=[];return le.each(se=>{X.push(Z,A(B())),Z=[",",y],se.getValue()&&Q(se.getValue(),W)&&Z.push(C)},te),X}function V(le,W,te,B){let X=[];return le.each((Z,se,ae)=>{let pe=se===ae.length-1;X.push([te(),pe?B:","]),pe||X.push(Q(Z.getValue(),W)?[x,x]:U(ae[se+1],$.Leading|$.Line)?x:y)},"elements"),O(X)}c.exports={printArray:Ee,printArrayItems:Oe,isConciselyPrintedArray:ye}}}),kc=Ue({"src/language-js/print/call-arguments.js"(a,c){Je();var{printDanglingComments:m}=xi(),{getLast:y,getPenultimate:C}=Tn(),{getFunctionParameters:x,hasComment:A,CommentCheckFlags:S,isFunctionCompositionArgs:k,isJsxNode:O,isLongCurriedCallExpression:G,shouldPrintComma:z,getCallArguments:q,iterateCallArgumentsPath:U,isNextLineEmpty:$,isCallExpression:Q,isStringLiteral:ce,isObjectProperty:ge,isTSTypeExpression:ne}=Kn(),{builders:{line:me,hardline:ue,softline:Ee,group:ye,indent:Oe,conditionalGroup:V,ifBreak:le,breakParent:W},utils:{willBreak:te}}=Gr(),{ArgExpansionBailout:B}=w(),{isConciselyPrintedArray:X}=Yo();function Z(_e,Ge,xe){let nt=_e.getValue(),Fe=nt.type==="ImportExpression",be=q(nt);if(be.length===0)return["(",m(_e,Ge,!0),")"];if(De(be))return["(",xe(["arguments",0]),", ",xe(["arguments",1]),")"];let st=!1,At=!1,lt=be.length-1,Nt=[];U(_e,(tt,He)=>{let ot=tt.getNode(),Tt=[xe()];He===lt||($(ot,Ge)?(He===0&&(At=!0),st=!0,Tt.push(",",ue,ue)):Tt.push(",",me)),Nt.push(Tt)});let Le=!(Fe||nt.callee&&nt.callee.type==="Import")&&z(Ge,"all")?",":"";function Ze(){return ye(["(",Oe([me,...Nt]),Le,me,")"],{shouldBreak:!0})}if(st||_e.getParentNode().type!=="Decorator"&&k(be))return Ze();let kt=pe(be),Pt=ae(be,Ge);if(kt||Pt){if(kt?Nt.slice(1).some(te):Nt.slice(0,-1).some(te))return Ze();let tt=[];try{_e.try(()=>{U(_e,(He,ot)=>{kt&&ot===0&&(tt=[[xe([],{expandFirstArg:!0}),Nt.length>1?",":"",At?ue:me,At?ue:""],...Nt.slice(1)]),Pt&&ot===lt&&(tt=[...Nt.slice(0,-1),xe([],{expandLastArg:!0})])})})}catch(He){if(He instanceof B)return Ze();throw He}return[Nt.some(te)?W:"",V([["(",...tt,")"],kt?["(",ye(tt[0],{shouldBreak:!0}),...tt.slice(1),")"]:["(",...Nt.slice(0,-1),ye(y(tt),{shouldBreak:!0}),")"],Ze()])]}let Jt=["(",Oe([Ee,...Nt]),le(Le),Ee,")"];return G(_e)?Jt:ye(Jt,{shouldBreak:Nt.some(te)||st})}function se(_e){let Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _e.type==="ObjectExpression"&&(_e.properties.length>0||A(_e))||_e.type==="ArrayExpression"&&(_e.elements.length>0||A(_e))||_e.type==="TSTypeAssertion"&&se(_e.expression)||ne(_e)&&se(_e.expression)||_e.type==="FunctionExpression"||_e.type==="ArrowFunctionExpression"&&(!_e.returnType||!_e.returnType.typeAnnotation||_e.returnType.typeAnnotation.type!=="TSTypeReference"||we(_e.body))&&(_e.body.type==="BlockStatement"||_e.body.type==="ArrowFunctionExpression"&&se(_e.body,!0)||_e.body.type==="ObjectExpression"||_e.body.type==="ArrayExpression"||!Ge&&(Q(_e.body)||_e.body.type==="ConditionalExpression")||O(_e.body))||_e.type==="DoExpression"||_e.type==="ModuleExpression"}function ae(_e,Ge){let xe=y(_e),nt=C(_e);return!A(xe,S.Leading)&&!A(xe,S.Trailing)&&se(xe)&&(!nt||nt.type!==xe.type)&&(_e.length!==2||nt.type!=="ArrowFunctionExpression"||xe.type!=="ArrayExpression")&&!(_e.length>1&&xe.type==="ArrayExpression"&&X(xe,Ge))}function pe(_e){if(_e.length!==2)return!1;let[Ge,xe]=_e;return Ge.type==="ModuleExpression"&&Se(xe)?!0:!A(Ge)&&(Ge.type==="FunctionExpression"||Ge.type==="ArrowFunctionExpression"&&Ge.body.type==="BlockStatement")&&xe.type!=="FunctionExpression"&&xe.type!=="ArrowFunctionExpression"&&xe.type!=="ConditionalExpression"&&!se(xe)}function De(_e){return _e.length===2&&_e[0].type==="ArrowFunctionExpression"&&x(_e[0]).length===0&&_e[0].body.type==="BlockStatement"&&_e[1].type==="ArrayExpression"&&!_e.some(Ge=>A(Ge))}function we(_e){return _e.type==="BlockStatement"&&(_e.body.some(Ge=>Ge.type!=="EmptyStatement")||A(_e,S.Dangling))}function Se(_e){return _e.type==="ObjectExpression"&&_e.properties.length===1&&ge(_e.properties[0])&&_e.properties[0].key.type==="Identifier"&&_e.properties[0].key.name==="type"&&ce(_e.properties[0].value)&&_e.properties[0].value.value==="module"}c.exports=Z}}),Mi=Ue({"src/language-js/print/member.js"(a,c){Je();var{builders:{softline:m,group:y,indent:C,label:x}}=Gr(),{isNumericLiteral:A,isMemberExpression:S,isCallExpression:k}=Kn(),{printOptionalToken:O}=ds();function G(q,U,$){let Q=q.getValue(),ce=q.getParentNode(),ge,ne=0;do ge=q.getParentNode(ne),ne++;while(ge&&(S(ge)||ge.type==="TSNonNullExpression"));let me=$("object"),ue=z(q,U,$),Ee=ge&&(ge.type==="NewExpression"||ge.type==="BindExpression"||ge.type==="AssignmentExpression"&&ge.left.type!=="Identifier")||Q.computed||Q.object.type==="Identifier"&&Q.property.type==="Identifier"&&!S(ce)||(ce.type==="AssignmentExpression"||ce.type==="VariableDeclarator")&&(k(Q.object)&&Q.object.arguments.length>0||Q.object.type==="TSNonNullExpression"&&k(Q.object.expression)&&Q.object.expression.arguments.length>0||me.label==="member-chain");return x(me.label==="member-chain"?"member-chain":"member",[me,Ee?ue:y(C([m,ue]))])}function z(q,U,$){let Q=$("property"),ce=q.getValue(),ge=O(q);return ce.computed?!ce.property||A(ce.property)?[ge,"[",Q,"]"]:y([ge,"[",C([m,Q]),m,"]"]):[ge,".",Q]}c.exports={printMemberExpression:G,printMemberLookup:z}}}),bi=Ue({"src/language-js/print/member-chain.js"(a,c){Je();var{printComments:m}=xi(),{getLast:y,isNextLineEmptyAfterIndex:C,getNextNonSpaceNonCommentCharacterIndex:x}=Tn(),A=Ko(),{isCallExpression:S,isMemberExpression:k,isFunctionOrArrowExpression:O,isLongCurriedCallExpression:G,isMemberish:z,isNumericLiteral:q,isSimpleCallArgument:U,hasComment:$,CommentCheckFlags:Q,isNextLineEmpty:ce}=Kn(),{locEnd:ge}=oi(),{builders:{join:ne,hardline:me,group:ue,indent:Ee,conditionalGroup:ye,breakParent:Oe,label:V},utils:{willBreak:le}}=Gr(),W=kc(),{printMemberLookup:te}=Mi(),{printOptionalToken:B,printFunctionTypeParameters:X,printBindExpressionCallee:Z}=ds();function se(ae,pe,De){let we=ae.getParentNode(),Se=!we||we.type==="ExpressionStatement",_e=[];function Ge(Ir){let{originalText:n}=pe,s=x(n,Ir,ge);return n.charAt(s)===")"?s!==!1&&C(n,s+1):ce(Ir,pe)}function xe(Ir){let n=Ir.getValue();S(n)&&(z(n.callee)||S(n.callee))?(_e.unshift({node:n,printed:[m(Ir,[B(Ir),X(Ir,pe,De),W(Ir,pe,De)],pe),Ge(n)?me:""]}),Ir.call(s=>xe(s),"callee")):z(n)?(_e.unshift({node:n,needsParens:A(Ir,pe),printed:m(Ir,k(n)?te(Ir,pe,De):Z(Ir,pe,De),pe)}),Ir.call(s=>xe(s),"object")):n.type==="TSNonNullExpression"?(_e.unshift({node:n,printed:m(Ir,"!",pe)}),Ir.call(s=>xe(s),"expression")):_e.unshift({node:n,printed:De()})}let nt=ae.getValue();_e.unshift({node:nt,printed:[B(ae),X(ae,pe,De),W(ae,pe,De)]}),nt.callee&&ae.call(Ir=>xe(Ir),"callee");let Fe=[],be=[_e[0]],st=1;for(;st<_e.length&&(_e[st].node.type==="TSNonNullExpression"||S(_e[st].node)||k(_e[st].node)&&_e[st].node.computed&&q(_e[st].node.property));++st)be.push(_e[st]);if(!S(_e[0].node))for(;st+1<_e.length&&z(_e[st].node)&&z(_e[st+1].node);++st)be.push(_e[st]);Fe.push(be),be=[];let At=!1;for(;st<_e.length;++st){if(At&&z(_e[st].node)){if(_e[st].node.computed&&q(_e[st].node.property)){be.push(_e[st]);continue}Fe.push(be),be=[],At=!1}(S(_e[st].node)||_e[st].node.type==="ImportExpression")&&(At=!0),be.push(_e[st]),$(_e[st].node,Q.Trailing)&&(Fe.push(be),be=[],At=!1)}be.length>0&&Fe.push(be);function lt(Ir){return/^[A-Z]|^[$_]+$/.test(Ir)}function Nt(Ir){return Ir.length<=pe.tabWidth}function Le(Ir){let n=Ir[1].length>0&&Ir[1][0].node.computed;if(Ir[0].length===1){let u=Ir[0][0].node;return u.type==="ThisExpression"||u.type==="Identifier"&&(lt(u.name)||Se&&Nt(u.name)||n)}let s=y(Ir[0]).node;return k(s)&&s.property.type==="Identifier"&&(lt(s.property.name)||n)}let Ze=Fe.length>=2&&!$(Fe[1][0].node)&&Le(Fe);function kt(Ir){let n=Ir.map(s=>s.printed);return Ir.length>0&&y(Ir).needsParens?["(",...n,")"]:n}function Pt(Ir){return Ir.length===0?"":Ee(ue([me,ne(me,Ir.map(kt))]))}let Jt=Fe.map(kt),tt=Jt,He=Ze?3:2,ot=Fe.flat(),Tt=ot.slice(1,-1).some(Ir=>$(Ir.node,Q.Leading))||ot.slice(0,-1).some(Ir=>$(Ir.node,Q.Trailing))||Fe[He]&&$(Fe[He][0].node,Q.Leading);if(Fe.length<=He&&!Tt)return G(ae)?tt:ue(tt);let Bt=y(Fe[Ze?1:0]).node,Xt=!S(Bt)&&Ge(Bt),Wt=[kt(Fe[0]),Ze?Fe.slice(1,2).map(kt):"",Xt?me:"",Pt(Fe.slice(Ze?2:1))],Mr=_e.map(Ir=>{let{node:n}=Ir;return n}).filter(S);function hn(){let Ir=y(y(Fe)).node,n=y(Jt);return S(Ir)&&le(n)&&Mr.slice(0,-1).some(s=>s.arguments.some(O))}let on;return Tt||Mr.length>2&&Mr.some(Ir=>!Ir.arguments.every(n=>U(n,0)))||Jt.slice(0,-1).some(le)||hn()?on=ue(Wt):on=[le(tt)||Xt?Oe:"",ye([tt,Wt])],V("member-chain",on)}c.exports=se}}),Ni=Ue({"src/language-js/print/call-expression.js"(a,c){Je();var{builders:{join:m,group:y}}=Gr(),C=Ko(),{getCallArguments:x,hasFlowAnnotationComment:A,isCallExpression:S,isMemberish:k,isStringLiteral:O,isTemplateOnItsOwnLine:G,isTestCall:z,iterateCallArgumentsPath:q}=Kn(),U=bi(),$=kc(),{printOptionalToken:Q,printFunctionTypeParameters:ce}=ds();function ge(me,ue,Ee){let ye=me.getValue(),Oe=me.getParentNode(),V=ye.type==="NewExpression",le=ye.type==="ImportExpression",W=Q(me),te=x(ye);if(te.length>0&&(!le&&!V&&ne(ye,Oe)||te.length===1&&G(te[0],ue.originalText)||!V&&z(ye,Oe))){let Z=[];return q(me,()=>{Z.push(Ee())}),[V?"new ":"",Ee("callee"),W,ce(me,ue,Ee),"(",m(", ",Z),")"]}let B=(ue.parser==="babel"||ue.parser==="babel-flow")&&ye.callee&&ye.callee.type==="Identifier"&&A(ye.callee.trailingComments);if(B&&(ye.callee.trailingComments[0].printed=!0),!le&&!V&&k(ye.callee)&&!me.call(Z=>C(Z,ue),"callee"))return U(me,ue,Ee);let X=[V?"new ":"",le?"import":Ee("callee"),W,B?`/*:: ${ye.callee.trailingComments[0].value.slice(2).trim()} */`:"",ce(me,ue,Ee),$(me,ue,Ee)];return le||S(ye.callee)?y(X):X}function ne(me,ue){if(me.callee.type!=="Identifier")return!1;if(me.callee.name==="require")return!0;if(me.callee.name==="define"){let Ee=x(me);return ue.type==="ExpressionStatement"&&(Ee.length===1||Ee.length===2&&Ee[0].type==="ArrayExpression"||Ee.length===3&&O(Ee[0])&&Ee[1].type==="ArrayExpression")}return!1}c.exports={printCallExpression:ge}}}),ui=Ue({"src/language-js/print/assignment.js"(a,c){Je();var{isNonEmptyArray:m,getStringWidth:y}=Tn(),{builders:{line:C,group:x,indent:A,indentIfBreak:S,lineSuffixBoundary:k},utils:{cleanDoc:O,willBreak:G,canBreak:z}}=Gr(),{hasLeadingOwnLineComment:q,isBinaryish:U,isStringLiteral:$,isLiteral:Q,isNumericLiteral:ce,isCallExpression:ge,isMemberExpression:ne,getCallArguments:me,rawText:ue,hasComment:Ee,isSignedNumericLiteral:ye,isObjectProperty:Oe}=Kn(),{shouldInlineLogicalExpression:V}=Ws(),{printCallExpression:le}=Ni();function W(Le,Ze,kt,Pt,Jt,tt){let He=X(Le,Ze,kt,Pt,tt),ot=kt(tt,{assignmentLayout:He});switch(He){case"break-after-operator":return x([x(Pt),Jt,x(A([C,ot]))]);case"never-break-after-operator":return x([x(Pt),Jt," ",ot]);case"fluid":{let Tt=Symbol("assignment");return x([x(Pt),Jt,x(A(C),{id:Tt}),k,S(ot,{groupId:Tt})])}case"break-lhs":return x([Pt,Jt," ",x(ot)]);case"chain":return[x(Pt),Jt,C,ot];case"chain-tail":return[x(Pt),Jt,A([C,ot])];case"chain-tail-arrow-chain":return[x(Pt),Jt,ot];case"only-left":return Pt}}function te(Le,Ze,kt){let Pt=Le.getValue();return W(Le,Ze,kt,kt("left"),[" ",Pt.operator],"right")}function B(Le,Ze,kt){return W(Le,Ze,kt,kt("id")," =","init")}function X(Le,Ze,kt,Pt,Jt){let tt=Le.getValue(),He=tt[Jt];if(!He)return"only-left";let ot=!ae(He);if(Le.match(ae,pe,Bt=>!ot||Bt.type!=="ExpressionStatement"&&Bt.type!=="VariableDeclaration"))return ot?He.type==="ArrowFunctionExpression"&&He.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!ot&&ae(He.right)||q(Ze.originalText,He))return"break-after-operator";if(He.type==="CallExpression"&&He.callee.name==="require"||Ze.parser==="json5"||Ze.parser==="json")return"never-break-after-operator";if(se(tt)||De(tt)||_e(tt)||Ge(tt)&&z(Pt))return"break-lhs";let Tt=At(tt,Pt,Ze);return Le.call(()=>Z(Le,Ze,kt,Tt),Jt)?"break-after-operator":Tt||He.type==="TemplateLiteral"||He.type==="TaggedTemplateExpression"||He.type==="BooleanLiteral"||ce(He)||He.type==="ClassExpression"?"never-break-after-operator":"fluid"}function Z(Le,Ze,kt,Pt){let Jt=Le.getValue();if(U(Jt)&&!V(Jt))return!0;switch(Jt.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:ot}=Jt;return U(ot)&&!V(ot)}case"ClassExpression":return m(Jt.decorators)}if(Pt)return!1;let tt=Jt,He=[];for(;;)if(tt.type==="UnaryExpression")tt=tt.argument,He.push("argument");else if(tt.type==="TSNonNullExpression")tt=tt.expression,He.push("expression");else break;return!!($(tt)||Le.call(()=>Fe(Le,Ze,kt),...He))}function se(Le){if(pe(Le)){let Ze=Le.left||Le.id;return Ze.type==="ObjectPattern"&&Ze.properties.length>2&&Ze.properties.some(kt=>Oe(kt)&&(!kt.shorthand||kt.value&&kt.value.type==="AssignmentPattern"))}return!1}function ae(Le){return Le.type==="AssignmentExpression"}function pe(Le){return ae(Le)||Le.type==="VariableDeclarator"}function De(Le){let Ze=we(Le);if(m(Ze)){let kt=Le.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(Ze.length>1&&Ze.some(Pt=>Pt[kt]||Pt.default))return!0}return!1}function we(Le){return Se(Le)&&Le.typeParameters&&Le.typeParameters.params?Le.typeParameters.params:null}function Se(Le){return Le.type==="TSTypeAliasDeclaration"||Le.type==="TypeAlias"}function _e(Le){if(Le.type!=="VariableDeclarator")return!1;let{typeAnnotation:Ze}=Le.id;if(!Ze||!Ze.typeAnnotation)return!1;let kt=xe(Ze.typeAnnotation);return m(kt)&&kt.length>1&&kt.some(Pt=>m(xe(Pt))||Pt.type==="TSConditionalType")}function Ge(Le){return Le.type==="VariableDeclarator"&&Le.init&&Le.init.type==="ArrowFunctionExpression"}function xe(Le){return nt(Le)&&Le.typeParameters&&Le.typeParameters.params?Le.typeParameters.params:null}function nt(Le){return Le.type==="TSTypeReference"||Le.type==="GenericTypeAnnotation"}function Fe(Le,Ze,kt){let Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=Le.getValue(),tt=()=>Fe(Le,Ze,kt,!0);if(Jt.type==="TSNonNullExpression")return Le.call(tt,"expression");if(ge(Jt)){if(le(Le,Ze,kt).label==="member-chain")return!1;let He=me(Jt);return!(He.length===0||He.length===1&&st(He[0],Ze))||lt(Jt,kt)?!1:Le.call(tt,"callee")}return ne(Jt)?Le.call(tt,"object"):Pt&&(Jt.type==="Identifier"||Jt.type==="ThisExpression")}var be=.25;function st(Le,Ze){let{printWidth:kt}=Ze;if(Ee(Le))return!1;let Pt=kt*be;if(Le.type==="ThisExpression"||Le.type==="Identifier"&&Le.name.length<=Pt||ye(Le)&&!Ee(Le.argument))return!0;let Jt=Le.type==="Literal"&&"regex"in Le&&Le.regex.pattern||Le.type==="RegExpLiteral"&&Le.pattern;return Jt?Jt.length<=Pt:$(Le)?ue(Le).length<=Pt:Le.type==="TemplateLiteral"?Le.expressions.length===0&&Le.quasis[0].value.raw.length<=Pt&&!Le.quasis[0].value.raw.includes(` +`):Q(Le)}function At(Le,Ze,kt){return Oe(Le)?(Ze=O(Ze),typeof Ze=="string"&&y(Ze)1)return!0;if(kt.length===1){let Jt=kt[0];if(Jt.type==="TSUnionType"||Jt.type==="UnionTypeAnnotation"||Jt.type==="TSIntersectionType"||Jt.type==="IntersectionTypeAnnotation"||Jt.type==="TSTypeLiteral"||Jt.type==="ObjectTypeAnnotation")return!0}let Pt=Le.typeParameters?"typeParameters":"typeArguments";if(G(Ze(Pt)))return!0}return!1}function Nt(Le){return Le.typeParameters&&Le.typeParameters.params||Le.typeArguments&&Le.typeArguments.params}c.exports={printVariableDeclarator:B,printAssignmentExpression:te,printAssignment:W,isArrowFunctionVariableDeclarator:Ge}}}),La=Ue({"src/language-js/print/function-parameters.js"(a,c){Je();var{getNextNonSpaceNonCommentCharacter:m}=Tn(),{printDanglingComments:y}=xi(),{builders:{line:C,hardline:x,softline:A,group:S,indent:k,ifBreak:O},utils:{removeLines:G,willBreak:z}}=Gr(),{getFunctionParameters:q,iterateFunctionParametersPath:U,isSimpleType:$,isTestCall:Q,isTypeAnnotationAFunction:ce,isObjectType:ge,isObjectTypePropertyAFunction:ne,hasRestParameter:me,shouldPrintComma:ue,hasComment:Ee,isNextLineEmpty:ye}=Kn(),{locEnd:Oe}=oi(),{ArgExpansionBailout:V}=w(),{printFunctionTypeParameters:le}=ds();function W(Z,se,ae,pe,De){let we=Z.getValue(),Se=q(we),_e=De?le(Z,ae,se):"";if(Se.length===0)return[_e,"(",y(Z,ae,!0,st=>m(ae.originalText,st,Oe)===")"),")"];let Ge=Z.getParentNode(),xe=Q(Ge),nt=te(we),Fe=[];if(U(Z,(st,At)=>{let lt=At===Se.length-1;lt&&we.rest&&Fe.push("..."),Fe.push(se()),!lt&&(Fe.push(","),xe||nt?Fe.push(" "):ye(Se[At],ae)?Fe.push(x,x):Fe.push(C))}),pe){if(z(_e)||z(Fe))throw new V;return S([G(_e),"(",G(Fe),")"])}let be=Se.every(st=>!st.decorators);return nt&&be?[_e,"(",...Fe,")"]:xe?[_e,"(",...Fe,")"]:(ne(Ge)||ce(Ge)||Ge.type==="TypeAlias"||Ge.type==="UnionTypeAnnotation"||Ge.type==="TSUnionType"||Ge.type==="IntersectionTypeAnnotation"||Ge.type==="FunctionTypeAnnotation"&&Ge.returnType===we)&&Se.length===1&&Se[0].name===null&&we.this!==Se[0]&&Se[0].typeAnnotation&&we.typeParameters===null&&$(Se[0].typeAnnotation)&&!we.rest?ae.arrowParens==="always"?["(",...Fe,")"]:Fe:[_e,"(",k([A,...Fe]),O(!me(we)&&ue(ae,"all")?",":""),A,")"]}function te(Z){if(!Z)return!1;let se=q(Z);if(se.length!==1)return!1;let[ae]=se;return!Ee(ae)&&(ae.type==="ObjectPattern"||ae.type==="ArrayPattern"||ae.type==="Identifier"&&ae.typeAnnotation&&(ae.typeAnnotation.type==="TypeAnnotation"||ae.typeAnnotation.type==="TSTypeAnnotation")&&ge(ae.typeAnnotation.typeAnnotation)||ae.type==="FunctionTypeParam"&&ge(ae.typeAnnotation)||ae.type==="AssignmentPattern"&&(ae.left.type==="ObjectPattern"||ae.left.type==="ArrayPattern")&&(ae.right.type==="Identifier"||ae.right.type==="ObjectExpression"&&ae.right.properties.length===0||ae.right.type==="ArrayExpression"&&ae.right.elements.length===0))}function B(Z){let se;return Z.returnType?(se=Z.returnType,se.typeAnnotation&&(se=se.typeAnnotation)):Z.typeAnnotation&&(se=Z.typeAnnotation),se}function X(Z,se){let ae=B(Z);if(!ae)return!1;let pe=Z.typeParameters&&Z.typeParameters.params;if(pe){if(pe.length>1)return!1;if(pe.length===1){let De=pe[0];if(De.constraint||De.default)return!1}}return q(Z).length===1&&(ge(ae)||z(se))}c.exports={printFunctionParameters:W,shouldHugFunctionParameters:te,shouldGroupFunctionParameters:X}}}),ll=Ue({"src/language-js/print/type-annotation.js"(a,c){Je();var{printComments:m,printDanglingComments:y}=xi(),{isNonEmptyArray:C}=Tn(),{builders:{group:x,join:A,line:S,softline:k,indent:O,align:G,ifBreak:z}}=Gr(),q=Ko(),{locStart:U}=oi(),{isSimpleType:$,isObjectType:Q,hasLeadingOwnLineComment:ce,isObjectTypePropertyAFunction:ge,shouldPrintComma:ne}=Kn(),{printAssignment:me}=ui(),{printFunctionParameters:ue,shouldGroupFunctionParameters:Ee}=La(),{printArrayItems:ye}=Yo();function Oe(ae){if($(ae)||Q(ae))return!0;if(ae.type==="UnionTypeAnnotation"||ae.type==="TSUnionType"){let pe=ae.types.filter(we=>we.type==="VoidTypeAnnotation"||we.type==="TSVoidKeyword"||we.type==="NullLiteralTypeAnnotation"||we.type==="TSNullKeyword").length,De=ae.types.some(we=>we.type==="ObjectTypeAnnotation"||we.type==="TSTypeLiteral"||we.type==="GenericTypeAnnotation"||we.type==="TSTypeReference");if(ae.types.length-1===pe&&De)return!0}return!1}function V(ae,pe,De){let we=pe.semi?";":"",Se=ae.getValue(),_e=[];return _e.push("opaque type ",De("id"),De("typeParameters")),Se.supertype&&_e.push(": ",De("supertype")),Se.impltype&&_e.push(" = ",De("impltype")),_e.push(we),_e}function le(ae,pe,De){let we=pe.semi?";":"",Se=ae.getValue(),_e=[];Se.declare&&_e.push("declare "),_e.push("type ",De("id"),De("typeParameters"));let Ge=Se.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[me(ae,pe,De,_e," =",Ge),we]}function W(ae,pe,De){let we=ae.getValue(),Se=ae.map(De,"types"),_e=[],Ge=!1;for(let xe=0;xe1&&(Ge=!0),_e.push(" & ",xe>1?O(Se[xe]):Se[xe]));return x(_e)}function te(ae,pe,De){let we=ae.getValue(),Se=ae.getParentNode(),_e=Se.type!=="TypeParameterInstantiation"&&Se.type!=="TSTypeParameterInstantiation"&&Se.type!=="GenericTypeAnnotation"&&Se.type!=="TSTypeReference"&&Se.type!=="TSTypeAssertion"&&Se.type!=="TupleTypeAnnotation"&&Se.type!=="TSTupleType"&&!(Se.type==="FunctionTypeParam"&&!Se.name&&ae.getParentNode(1).this!==Se)&&!((Se.type==="TypeAlias"||Se.type==="VariableDeclarator"||Se.type==="TSTypeAliasDeclaration")&&ce(pe.originalText,we)),Ge=Oe(we),xe=ae.map(be=>{let st=De();return Ge||(st=G(2,st)),m(be,st,pe)},"types");if(Ge)return A(" | ",xe);let nt=_e&&!ce(pe.originalText,we),Fe=[z([nt?S:"","| "]),A([S,"| "],xe)];return q(ae,pe)?x([O(Fe),k]):Se.type==="TupleTypeAnnotation"&&Se.types.length>1||Se.type==="TSTupleType"&&Se.elementTypes.length>1?x([O([z(["(",k]),Fe]),k,z(")")]):x(_e?O(Fe):Fe)}function B(ae,pe,De){let we=ae.getValue(),Se=[],_e=ae.getParentNode(0),Ge=ae.getParentNode(1),xe=ae.getParentNode(2),nt=we.type==="TSFunctionType"||!((_e.type==="ObjectTypeProperty"||_e.type==="ObjectTypeInternalSlot")&&!_e.variance&&!_e.optional&&U(_e)===U(we)||_e.type==="ObjectTypeCallProperty"||xe&&xe.type==="DeclareFunction"),Fe=nt&&(_e.type==="TypeAnnotation"||_e.type==="TSTypeAnnotation"),be=Fe&&nt&&(_e.type==="TypeAnnotation"||_e.type==="TSTypeAnnotation")&&Ge.type==="ArrowFunctionExpression";ge(_e)&&(nt=!0,Fe=!0),be&&Se.push("(");let st=ue(ae,De,pe,!1,!0),At=we.returnType||we.predicate||we.typeAnnotation?[nt?" => ":": ",De("returnType"),De("predicate"),De("typeAnnotation")]:"",lt=Ee(we,At);return Se.push(lt?x(st):st),At&&Se.push(At),be&&Se.push(")"),x(Se)}function X(ae,pe,De){let we=ae.getValue(),Se=we.type==="TSTupleType"?"elementTypes":"types",_e=we[Se],Ge=C(_e),xe=Ge?k:"";return x(["[",O([xe,ye(ae,pe,Se,De)]),z(Ge&&ne(pe,"all")?",":""),y(ae,pe,!0),xe,"]"])}function Z(ae,pe,De){let we=ae.getValue(),Se=we.type==="OptionalIndexedAccessType"&&we.optional?"?.[":"[";return[De("objectType"),Se,De("indexType"),"]"]}function se(ae,pe,De){let we=ae.getValue();return[we.postfix?"":De,pe("typeAnnotation"),we.postfix?De:""]}c.exports={printOpaqueType:V,printTypeAlias:le,printIntersectionType:W,printUnionType:te,printFunctionType:B,printTupleType:X,printIndexedAccessType:Z,shouldHugType:Oe,printJSDocType:se}}}),yo=Ue({"src/language-js/print/type-parameters.js"(a,c){Je();var{printDanglingComments:m}=xi(),{builders:{join:y,line:C,hardline:x,softline:A,group:S,indent:k,ifBreak:O}}=Gr(),{isTestCall:G,hasComment:z,CommentCheckFlags:q,isTSXFile:U,shouldPrintComma:$,getFunctionParameters:Q,isObjectType:ce,getTypeScriptMappedTypeModifier:ge}=Kn(),{createGroupIdMapper:ne}=Tn(),{shouldHugType:me}=ll(),{isArrowFunctionVariableDeclarator:ue}=ui(),Ee=ne("typeParameters");function ye(le,W,te,B){let X=le.getValue();if(!X[B])return"";if(!Array.isArray(X[B]))return te(B);let Z=le.getNode(2),se=Z&&G(Z),ae=le.match(De=>!(De[B].length===1&&ce(De[B][0])),void 0,(De,we)=>we==="typeAnnotation",De=>De.type==="Identifier",ue);if(X[B].length===0||!ae&&(se||X[B].length===1&&(X[B][0].type==="NullableTypeAnnotation"||me(X[B][0]))))return["<",y(", ",le.map(te,B)),Oe(le,W),">"];let pe=X.type==="TSTypeParameterInstantiation"?"":Q(X).length===1&&U(W)&&!X[B][0].constraint&&le.getParentNode().type==="ArrowFunctionExpression"?",":$(W,"all")?O(","):"";return S(["<",k([A,y([",",C],le.map(te,B))]),pe,A,">"],{id:Ee(X)})}function Oe(le,W){let te=le.getValue();if(!z(te,q.Dangling))return"";let B=!z(te,q.Line),X=m(le,W,B);return B?X:[X,x]}function V(le,W,te){let B=le.getValue(),X=[B.type==="TSTypeParameter"&&B.const?"const ":""],Z=le.getParentNode();return Z.type==="TSMappedType"?(Z.readonly&&X.push(ge(Z.readonly,"readonly")," "),X.push("[",te("name")),B.constraint&&X.push(" in ",te("constraint")),Z.nameType&&X.push(" as ",le.callParent(()=>te("nameType"))),X.push("]"),X):(B.variance&&X.push(te("variance")),B.in&&X.push("in "),B.out&&X.push("out "),X.push(te("name")),B.bound&&X.push(": ",te("bound")),B.constraint&&X.push(" extends ",te("constraint")),B.default&&X.push(" = ",te("default")),X)}c.exports={printTypeParameter:V,printTypeParameters:ye,getTypeParametersGroupId:Ee}}}),ku=Ue({"src/language-js/print/property.js"(a,c){Je();var{printComments:m}=xi(),{printString:y,printNumber:C}=Tn(),{isNumericLiteral:x,isSimpleNumber:A,isStringLiteral:S,isStringPropSafeToUnquote:k,rawText:O}=Kn(),{printAssignment:G}=ui(),z=new WeakMap;function q($,Q,ce){let ge=$.getNode();if(ge.computed)return["[",ce("key"),"]"];let ne=$.getParentNode(),{key:me}=ge;if(Q.quoteProps==="consistent"&&!z.has(ne)){let ue=(ne.properties||ne.body||ne.members).some(Ee=>!Ee.computed&&Ee.key&&S(Ee.key)&&!k(Ee,Q));z.set(ne,ue)}if((me.type==="Identifier"||x(me)&&A(C(O(me)))&&String(me.value)===C(O(me))&&!(Q.parser==="typescript"||Q.parser==="babel-ts"))&&(Q.parser==="json"||Q.quoteProps==="consistent"&&z.get(ne))){let ue=y(JSON.stringify(me.type==="Identifier"?me.name:me.value.toString()),Q);return $.call(Ee=>m(Ee,ue,Q),"key")}return k(ge,Q)&&(Q.quoteProps==="as-needed"||Q.quoteProps==="consistent"&&!z.get(ne))?$.call(ue=>m(ue,/^\d/.test(me.value)?C(me.value):me.value,Q),"key"):ce("key")}function U($,Q,ce){return $.getValue().shorthand?ce("value"):G($,Q,ce,q($,Q,ce),":","value")}c.exports={printProperty:U,printPropertyKey:q}}}),Xo=Ue({"src/language-js/print/function.js"(a,c){Je();var m=jo(),{printDanglingComments:y,printCommentsSeparately:C}=xi(),x=qn(),{getNextNonSpaceNonCommentCharacterIndex:A}=Tn(),{builders:{line:S,softline:k,group:O,indent:G,ifBreak:z,hardline:q,join:U,indentIfBreak:$},utils:{removeLines:Q,willBreak:ce}}=Gr(),{ArgExpansionBailout:ge}=w(),{getFunctionParameters:ne,hasLeadingOwnLineComment:me,isFlowAnnotationComment:ue,isJsxNode:Ee,isTemplateOnItsOwnLine:ye,shouldPrintComma:Oe,startsWithNoLookaheadToken:V,isBinaryish:le,isLineComment:W,hasComment:te,getComments:B,CommentCheckFlags:X,isCallLikeExpression:Z,isCallExpression:se,getCallArguments:ae,hasNakedLeftSide:pe,getLeftSide:De}=Kn(),{locEnd:we}=oi(),{printFunctionParameters:Se,shouldGroupFunctionParameters:_e}=La(),{printPropertyKey:Ge}=ku(),{printFunctionTypeParameters:xe}=ds();function nt(He,ot,Tt,Bt){let Xt=He.getValue(),Wt=!1;if((Xt.type==="FunctionDeclaration"||Xt.type==="FunctionExpression")&&Bt&&Bt.expandLastArg){let n=He.getParentNode();se(n)&&ae(n).length>1&&(Wt=!0)}let Mr=[];Xt.type==="TSDeclareFunction"&&Xt.declare&&Mr.push("declare "),Xt.async&&Mr.push("async "),Xt.generator?Mr.push("function* "):Mr.push("function "),Xt.id&&Mr.push(ot("id"));let hn=Se(He,ot,Tt,Wt),on=Ze(He,ot,Tt),Ir=_e(Xt,on);return Mr.push(xe(He,Tt,ot),O([Ir?O(hn):hn,on]),Xt.body?" ":"",ot("body")),Tt.semi&&(Xt.declare||!Xt.body)&&Mr.push(";"),Mr}function Fe(He,ot,Tt){let Bt=He.getNode(),{kind:Xt}=Bt,Wt=Bt.value||Bt,Mr=[];return!Xt||Xt==="init"||Xt==="method"||Xt==="constructor"?Wt.async&&Mr.push("async "):(m.ok(Xt==="get"||Xt==="set"),Mr.push(Xt," ")),Wt.generator&&Mr.push("*"),Mr.push(Ge(He,ot,Tt),Bt.optional||Bt.key.optional?"?":""),Bt===Wt?Mr.push(be(He,ot,Tt)):Wt.type==="FunctionExpression"?Mr.push(He.call(hn=>be(hn,ot,Tt),"value")):Mr.push(Tt("value")),Mr}function be(He,ot,Tt){let Bt=He.getNode(),Xt=Se(He,Tt,ot),Wt=Ze(He,Tt,ot),Mr=_e(Bt,Wt),hn=[xe(He,ot,Tt),O([Mr?O(Xt):Xt,Wt])];return Bt.body?hn.push(" ",Tt("body")):hn.push(ot.semi?";":""),hn}function st(He,ot,Tt,Bt){let Xt=He.getValue(),Wt=[];if(Xt.async&&Wt.push("async "),Le(He,ot))Wt.push(Tt(["params",0]));else{let hn=Bt&&(Bt.expandLastArg||Bt.expandFirstArg),on=Ze(He,Tt,ot);if(hn){if(ce(on))throw new ge;on=O(Q(on))}Wt.push(O([Se(He,Tt,ot,hn,!0),on]))}let Mr=y(He,ot,!0,hn=>{let on=A(ot.originalText,hn,we);return on!==!1&&ot.originalText.slice(on,on+2)==="=>"});return Mr&&Wt.push(" ",Mr),Wt}function At(He,ot,Tt,Bt,Xt,Wt){let Mr=He.getName(),hn=He.getParentNode(),on=Z(hn)&&Mr==="callee",Ir=!!(ot&&ot.assignmentLayout),n=Wt.body.type!=="BlockStatement"&&Wt.body.type!=="ObjectExpression"&&Wt.body.type!=="SequenceExpression",s=on&&n||ot&&ot.assignmentLayout==="chain-tail-arrow-chain",u=Symbol("arrow-chain");return Wt.body.type==="SequenceExpression"&&(Xt=O(["(",G([k,Xt]),k,")"])),O([O(G([on||Ir?k:"",O(U([" =>",S],Tt),{shouldBreak:Bt})]),{id:u,shouldBreak:s})," =>",$(n?G([S,Xt]):[" ",Xt],{groupId:u}),on?z(k,"",{groupId:u}):""])}function lt(He,ot,Tt,Bt){let Xt=He.getValue(),Wt=[],Mr=[],hn=!1;if(function u(){let p=st(He,ot,Tt,Bt);if(Wt.length===0)Wt.push(p);else{let{leading:f,trailing:D}=C(He,ot);Wt.push([f,p]),Mr.unshift(D)}hn=hn||Xt.returnType&&ne(Xt).length>0||Xt.typeParameters||ne(Xt).some(f=>f.type!=="Identifier"),Xt.body.type!=="ArrowFunctionExpression"||Bt&&Bt.expandLastArg?Mr.unshift(Tt("body",Bt)):(Xt=Xt.body,He.call(u,"body"))}(),Wt.length>1)return At(He,Bt,Wt,hn,Mr,Xt);let on=Wt;if(on.push(" =>"),!me(ot.originalText,Xt.body)&&(Xt.body.type==="ArrayExpression"||Xt.body.type==="ObjectExpression"||Xt.body.type==="BlockStatement"||Ee(Xt.body)||ye(Xt.body,ot.originalText)||Xt.body.type==="ArrowFunctionExpression"||Xt.body.type==="DoExpression"))return O([...on," ",Mr]);if(Xt.body.type==="SequenceExpression")return O([...on,O([" (",G([k,Mr]),k,")"])]);let Ir=(Bt&&Bt.expandLastArg||He.getParentNode().type==="JSXExpressionContainer")&&!te(Xt),n=Bt&&Bt.expandLastArg&&Oe(ot,"all"),s=Xt.body.type==="ConditionalExpression"&&!V(Xt.body,u=>u.type==="ObjectExpression");return O([...on,O([G([S,s?z("","("):"",Mr,s?z("",")"):""]),Ir?[z(n?",":""),k]:""])])}function Nt(He){let ot=ne(He);return ot.length===1&&!He.typeParameters&&!te(He,X.Dangling)&&ot[0].type==="Identifier"&&!ot[0].typeAnnotation&&!te(ot[0])&&!ot[0].optional&&!He.predicate&&!He.returnType}function Le(He,ot){if(ot.arrowParens==="always")return!1;if(ot.arrowParens==="avoid"){let Tt=He.getValue();return Nt(Tt)}return!1}function Ze(He,ot,Tt){let Bt=He.getValue(),Xt=ot("returnType");if(Bt.returnType&&ue(Tt.originalText,Bt.returnType))return[" /*: ",Xt," */"];let Wt=[Xt];return Bt.returnType&&Bt.returnType.typeAnnotation&&Wt.unshift(": "),Bt.predicate&&Wt.push(Bt.returnType?" ":": ",ot("predicate")),Wt}function kt(He,ot,Tt){let Bt=He.getValue(),Xt=ot.semi?";":"",Wt=[];Bt.argument&&(tt(ot,Bt.argument)?Wt.push([" (",G([q,Tt("argument")]),q,")"]):le(Bt.argument)||Bt.argument.type==="SequenceExpression"?Wt.push(O([z(" ("," "),G([k,Tt("argument")]),k,z(")")])):Wt.push(" ",Tt("argument")));let Mr=B(Bt),hn=x(Mr),on=hn&&W(hn);return on&&Wt.push(Xt),te(Bt,X.Dangling)&&Wt.push(" ",y(He,ot,!0)),on||Wt.push(Xt),Wt}function Pt(He,ot,Tt){return["return",kt(He,ot,Tt)]}function Jt(He,ot,Tt){return["throw",kt(He,ot,Tt)]}function tt(He,ot){if(me(He.originalText,ot))return!0;if(pe(ot)){let Tt=ot,Bt;for(;Bt=De(Tt);)if(Tt=Bt,me(He.originalText,Tt))return!0}return!1}c.exports={printFunction:nt,printArrowFunction:lt,printMethod:Fe,printReturnStatement:Pt,printThrowStatement:Jt,printMethodInternal:be,shouldPrintParamsWithoutParens:Le}}}),Fu=Ue({"src/language-js/print/decorators.js"(a,c){Je();var{isNonEmptyArray:m,hasNewline:y}=Tn(),{builders:{line:C,hardline:x,join:A,breakParent:S,group:k}}=Gr(),{locStart:O,locEnd:G}=oi(),{getParentExportDeclaration:z}=Kn();function q(ge,ne,me){let ue=ge.getValue();return k([A(C,ge.map(me,"decorators")),Q(ue,ne)?x:C])}function U(ge,ne,me){return[A(x,ge.map(me,"declaration","decorators")),x]}function $(ge,ne,me){let ue=ge.getValue(),{decorators:Ee}=ue;if(!m(Ee)||ce(ge.getParentNode()))return;let ye=ue.type==="ClassExpression"||ue.type==="ClassDeclaration"||Q(ue,ne);return[z(ge)?x:ye?S:"",A(C,ge.map(me,"decorators")),C]}function Q(ge,ne){return ge.decorators.some(me=>y(ne.originalText,G(me)))}function ce(ge){if(ge.type!=="ExportDefaultDeclaration"&&ge.type!=="ExportNamedDeclaration"&&ge.type!=="DeclareExportDeclaration")return!1;let ne=ge.declaration&&ge.declaration.decorators;return m(ne)&&O(ge)===O(ne[0])}c.exports={printDecorators:$,printClassMemberDecorators:q,printDecoratorsBeforeExport:U,hasDecoratorsBeforeExport:ce}}}),la=Ue({"src/language-js/print/class.js"(a,c){Je();var{isNonEmptyArray:m,createGroupIdMapper:y}=Tn(),{printComments:C,printDanglingComments:x}=xi(),{builders:{join:A,line:S,hardline:k,softline:O,group:G,indent:z,ifBreak:q}}=Gr(),{hasComment:U,CommentCheckFlags:$}=Kn(),{getTypeParametersGroupId:Q}=yo(),{printMethod:ce}=Xo(),{printOptionalToken:ge,printTypeAnnotation:ne,printDefiniteToken:me}=ds(),{printPropertyKey:ue}=ku(),{printAssignment:Ee}=ui(),{printClassMemberDecorators:ye}=Fu();function Oe(ae,pe,De){let we=ae.getValue(),Se=[];we.declare&&Se.push("declare "),we.abstract&&Se.push("abstract "),Se.push("class");let _e=we.id&&U(we.id,$.Trailing)||we.typeParameters&&U(we.typeParameters,$.Trailing)||we.superClass&&U(we.superClass)||m(we.extends)||m(we.mixins)||m(we.implements),Ge=[],xe=[];if(we.id&&Ge.push(" ",De("id")),Ge.push(De("typeParameters")),we.superClass){let nt=[X(ae,pe,De),De("superTypeParameters")],Fe=ae.call(be=>["extends ",C(be,nt,pe)],"superClass");_e?xe.push(S,G(Fe)):xe.push(" ",Fe)}else xe.push(B(ae,pe,De,"extends"));if(xe.push(B(ae,pe,De,"mixins"),B(ae,pe,De,"implements")),_e){let nt;te(we)?nt=[...Ge,z(xe)]:nt=z([...Ge,xe]),Se.push(G(nt,{id:V(we)}))}else Se.push(...Ge,...xe);return Se.push(" ",De("body")),Se}var V=y("heritageGroup");function le(ae){return q(k,"",{groupId:V(ae)})}function W(ae){return["superClass","extends","mixins","implements"].filter(pe=>!!ae[pe]).length>1}function te(ae){return ae.typeParameters&&!U(ae.typeParameters,$.Trailing|$.Line)&&!W(ae)}function B(ae,pe,De,we){let Se=ae.getValue();if(!m(Se[we]))return"";let _e=x(ae,pe,!0,Ge=>{let{marker:xe}=Ge;return xe===we});return[te(Se)?q(" ",S,{groupId:Q(Se.typeParameters)}):S,_e,_e&&k,we,G(z([S,A([",",S],ae.map(De,we))]))]}function X(ae,pe,De){let we=De("superClass");return ae.getParentNode().type==="AssignmentExpression"?G(q(["(",z([O,we]),O,")"],we)):we}function Z(ae,pe,De){let we=ae.getValue(),Se=[];return m(we.decorators)&&Se.push(ye(ae,pe,De)),we.accessibility&&Se.push(we.accessibility+" "),we.readonly&&Se.push("readonly "),we.declare&&Se.push("declare "),we.static&&Se.push("static "),(we.type==="TSAbstractMethodDefinition"||we.abstract)&&Se.push("abstract "),we.override&&Se.push("override "),Se.push(ce(ae,pe,De)),Se}function se(ae,pe,De){let we=ae.getValue(),Se=[],_e=pe.semi?";":"";return m(we.decorators)&&Se.push(ye(ae,pe,De)),we.accessibility&&Se.push(we.accessibility+" "),we.declare&&Se.push("declare "),we.static&&Se.push("static "),(we.type==="TSAbstractPropertyDefinition"||we.type==="TSAbstractAccessorProperty"||we.abstract)&&Se.push("abstract "),we.override&&Se.push("override "),we.readonly&&Se.push("readonly "),we.variance&&Se.push(De("variance")),(we.type==="ClassAccessorProperty"||we.type==="AccessorProperty"||we.type==="TSAbstractAccessorProperty")&&Se.push("accessor "),Se.push(ue(ae,pe,De),ge(ae),me(ae),ne(ae,pe,De)),[Ee(ae,pe,De,Se," =","value"),_e]}c.exports={printClass:Oe,printClassMethod:Z,printClassProperty:se,printHardlineAfterHeritage:le}}}),Yl=Ue({"src/language-js/print/interface.js"(a,c){Je();var{isNonEmptyArray:m}=Tn(),{builders:{join:y,line:C,group:x,indent:A,ifBreak:S}}=Gr(),{hasComment:k,identity:O,CommentCheckFlags:G}=Kn(),{getTypeParametersGroupId:z}=yo(),{printTypeScriptModifiers:q}=ds();function U($,Q,ce){let ge=$.getValue(),ne=[];ge.declare&&ne.push("declare "),ge.type==="TSInterfaceDeclaration"&&ne.push(ge.abstract?"abstract ":"",q($,Q,ce)),ne.push("interface");let me=[],ue=[];ge.type!=="InterfaceTypeAnnotation"&&me.push(" ",ce("id"),ce("typeParameters"));let Ee=ge.typeParameters&&!k(ge.typeParameters,G.Trailing|G.Line);return m(ge.extends)&&ue.push(Ee?S(" ",C,{groupId:z(ge.typeParameters)}):C,"extends ",(ge.extends.length===1?O:A)(y([",",C],$.map(ce,"extends")))),ge.id&&k(ge.id,G.Trailing)||m(ge.extends)?Ee?ne.push(x([...me,A(ue)])):ne.push(x(A([...me,...ue]))):ne.push(...me,...ue),ne.push(" ",ce("body")),x(ne)}c.exports={printInterface:U}}}),cl=Ue({"src/language-js/print/module.js"(a,c){Je();var{isNonEmptyArray:m}=Tn(),{builders:{softline:y,group:C,indent:x,join:A,line:S,ifBreak:k,hardline:O}}=Gr(),{printDanglingComments:G}=xi(),{hasComment:z,CommentCheckFlags:q,shouldPrintComma:U,needsHardlineAfterDanglingComment:$,isStringLiteral:Q,rawText:ce}=Kn(),{locStart:ge,hasSameLoc:ne}=oi(),{hasDecoratorsBeforeExport:me,printDecoratorsBeforeExport:ue}=Fu();function Ee(se,ae,pe){let De=se.getValue(),we=ae.semi?";":"",Se=[],{importKind:_e}=De;return Se.push("import"),_e&&_e!=="value"&&Se.push(" ",_e),Se.push(W(se,ae,pe),le(se,ae,pe),B(se,ae,pe),we),Se}function ye(se,ae,pe){let De=se.getValue(),we=[];me(De)&&we.push(ue(se,ae,pe));let{type:Se,exportKind:_e,declaration:Ge}=De;return we.push("export"),(De.default||Se==="ExportDefaultDeclaration")&&we.push(" default"),z(De,q.Dangling)&&(we.push(" ",G(se,ae,!0)),$(De)&&we.push(O)),Ge?we.push(" ",pe("declaration")):we.push(_e==="type"?" type":"",W(se,ae,pe),le(se,ae,pe),B(se,ae,pe)),V(De,ae)&&we.push(";"),we}function Oe(se,ae,pe){let De=se.getValue(),we=ae.semi?";":"",Se=[],{exportKind:_e,exported:Ge}=De;return Se.push("export"),_e==="type"&&Se.push(" type"),Se.push(" *"),Ge&&Se.push(" as ",pe("exported")),Se.push(le(se,ae,pe),B(se,ae,pe),we),Se}function V(se,ae){if(!ae.semi)return!1;let{type:pe,declaration:De}=se,we=se.default||pe==="ExportDefaultDeclaration";if(!De)return!0;let{type:Se}=De;return!!(we&&Se!=="ClassDeclaration"&&Se!=="FunctionDeclaration"&&Se!=="TSInterfaceDeclaration"&&Se!=="DeclareClass"&&Se!=="DeclareFunction"&&Se!=="TSDeclareFunction"&&Se!=="EnumDeclaration")}function le(se,ae,pe){let De=se.getValue();if(!De.source)return"";let we=[];return te(De,ae)||we.push(" from"),we.push(" ",pe("source")),we}function W(se,ae,pe){let De=se.getValue();if(te(De,ae))return"";let we=[" "];if(m(De.specifiers)){let Se=[],_e=[];se.each(()=>{let Ge=se.getValue().type;if(Ge==="ExportNamespaceSpecifier"||Ge==="ExportDefaultSpecifier"||Ge==="ImportNamespaceSpecifier"||Ge==="ImportDefaultSpecifier")Se.push(pe());else if(Ge==="ExportSpecifier"||Ge==="ImportSpecifier")_e.push(pe());else throw new Error(`Unknown specifier type ${JSON.stringify(Ge)}`)},"specifiers"),we.push(A(", ",Se)),_e.length>0&&(Se.length>0&&we.push(", "),_e.length>1||Se.length>0||De.specifiers.some(Ge=>z(Ge))?we.push(C(["{",x([ae.bracketSpacing?S:y,A([",",S],_e)]),k(U(ae)?",":""),ae.bracketSpacing?S:y,"}"])):we.push(["{",ae.bracketSpacing?" ":"",..._e,ae.bracketSpacing?" ":"","}"]))}else we.push("{}");return we}function te(se,ae){let{type:pe,importKind:De,source:we,specifiers:Se}=se;return pe!=="ImportDeclaration"||m(Se)||De==="type"?!1:!/{\s*}/.test(ae.originalText.slice(ge(se),ge(we)))}function B(se,ae,pe){let De=se.getNode();return m(De.assertions)?[" assert {",ae.bracketSpacing?" ":"",A(", ",se.map(pe,"assertions")),ae.bracketSpacing?" ":"","}"]:""}function X(se,ae,pe){let De=se.getNode(),{type:we}=De,Se=[],_e=we==="ImportSpecifier"?De.importKind:De.exportKind;_e&&_e!=="value"&&Se.push(_e," ");let Ge=we.startsWith("Import"),xe=Ge?"imported":"local",nt=Ge?"local":"exported",Fe=De[xe],be=De[nt],st="",At="";return we==="ExportNamespaceSpecifier"||we==="ImportNamespaceSpecifier"?st="*":Fe&&(st=pe(xe)),be&&!Z(De)&&(At=pe(nt)),Se.push(st,st&&At?" as ":"",At),Se}function Z(se){if(se.type!=="ImportSpecifier"&&se.type!=="ExportSpecifier")return!1;let{local:ae,[se.type==="ImportSpecifier"?"imported":"exported"]:pe}=se;if(ae.type!==pe.type||!ne(ae,pe))return!1;if(Q(ae))return ae.value===pe.value&&ce(ae)===ce(pe);switch(ae.type){case"Identifier":return ae.name===pe.name;default:return!1}}c.exports={printImportDeclaration:Ee,printExportDeclaration:ye,printExportAllDeclaration:Oe,printModuleSpecifier:X}}}),Xl=Ue({"src/language-js/print/object.js"(a,c){Je();var{printDanglingComments:m}=xi(),{builders:{line:y,softline:C,group:x,indent:A,ifBreak:S,hardline:k}}=Gr(),{getLast:O,hasNewlineInRange:G,hasNewline:z,isNonEmptyArray:q}=Tn(),{shouldPrintComma:U,hasComment:$,getComments:Q,CommentCheckFlags:ce,isNextLineEmpty:ge}=Kn(),{locStart:ne,locEnd:me}=oi(),{printOptionalToken:ue,printTypeAnnotation:Ee}=ds(),{shouldHugFunctionParameters:ye}=La(),{shouldHugType:Oe}=ll(),{printHardlineAfterHeritage:V}=la();function le(W,te,B){let X=te.semi?";":"",Z=W.getValue(),se;Z.type==="TSTypeLiteral"?se="members":Z.type==="TSInterfaceBody"?se="body":se="properties";let ae=Z.type==="ObjectTypeAnnotation",pe=[se];ae&&pe.push("indexers","callProperties","internalSlots");let De=pe.map(Le=>Z[Le][0]).sort((Le,Ze)=>ne(Le)-ne(Ze))[0],we=W.getParentNode(0),Se=ae&&we&&(we.type==="InterfaceDeclaration"||we.type==="DeclareInterface"||we.type==="DeclareClass")&&W.getName()==="body",_e=Z.type==="TSInterfaceBody"||Se||Z.type==="ObjectPattern"&&we.type!=="FunctionDeclaration"&&we.type!=="FunctionExpression"&&we.type!=="ArrowFunctionExpression"&&we.type!=="ObjectMethod"&&we.type!=="ClassMethod"&&we.type!=="ClassPrivateMethod"&&we.type!=="AssignmentPattern"&&we.type!=="CatchClause"&&Z.properties.some(Le=>Le.value&&(Le.value.type==="ObjectPattern"||Le.value.type==="ArrayPattern"))||Z.type!=="ObjectPattern"&&De&&G(te.originalText,ne(Z),ne(De)),Ge=Se?";":Z.type==="TSInterfaceBody"||Z.type==="TSTypeLiteral"?S(X,";"):",",xe=Z.type==="RecordExpression"?"#{":Z.exact?"{|":"{",nt=Z.exact?"|}":"}",Fe=[];for(let Le of pe)W.each(Ze=>{let kt=Ze.getValue();Fe.push({node:kt,printed:B(),loc:ne(kt)})},Le);pe.length>1&&Fe.sort((Le,Ze)=>Le.loc-Ze.loc);let be=[],st=Fe.map(Le=>{let Ze=[...be,x(Le.printed)];return be=[Ge,y],(Le.node.type==="TSPropertySignature"||Le.node.type==="TSMethodSignature"||Le.node.type==="TSConstructSignatureDeclaration")&&$(Le.node,ce.PrettierIgnore)&&be.shift(),ge(Le.node,te)&&be.push(k),Ze});if(Z.inexact){let Le;if($(Z,ce.Dangling)){let Ze=$(Z,ce.Line);Le=[m(W,te,!0),Ze||z(te.originalText,me(O(Q(Z))))?k:y,"..."]}else Le=["..."];st.push([...be,...Le])}let At=O(Z[se]),lt=!(Z.inexact||At&&At.type==="RestElement"||At&&(At.type==="TSPropertySignature"||At.type==="TSCallSignatureDeclaration"||At.type==="TSMethodSignature"||At.type==="TSConstructSignatureDeclaration")&&$(At,ce.PrettierIgnore)),Nt;if(st.length===0){if(!$(Z,ce.Dangling))return[xe,nt,Ee(W,te,B)];Nt=x([xe,m(W,te),C,nt,ue(W),Ee(W,te,B)])}else Nt=[Se&&q(Z.properties)?V(we):"",xe,A([te.bracketSpacing?y:C,...st]),S(lt&&(Ge!==","||U(te))?Ge:""),te.bracketSpacing?y:C,nt,ue(W),Ee(W,te,B)];return W.match(Le=>Le.type==="ObjectPattern"&&!Le.decorators,(Le,Ze,kt)=>ye(Le)&&(Ze==="params"||Ze==="parameters"||Ze==="this"||Ze==="rest")&&kt===0)||W.match(Oe,(Le,Ze)=>Ze==="typeAnnotation",(Le,Ze)=>Ze==="typeAnnotation",(Le,Ze,kt)=>ye(Le)&&(Ze==="params"||Ze==="parameters"||Ze==="this"||Ze==="rest")&&kt===0)||!_e&&W.match(Le=>Le.type==="ObjectPattern",Le=>Le.type==="AssignmentExpression"||Le.type==="VariableDeclarator")?Nt:x(Nt,{shouldBreak:_e})}c.exports={printObject:le}}}),pl=Ue({"src/language-js/print/flow.js"(a,c){Je();var m=jo(),{printDanglingComments:y}=xi(),{printString:C,printNumber:x}=Tn(),{builders:{hardline:A,softline:S,group:k,indent:O}}=Gr(),{getParentExportDeclaration:G,isFunctionNotation:z,isGetterOrSetter:q,rawText:U,shouldPrintComma:$}=Kn(),{locStart:Q,locEnd:ce}=oi(),{replaceTextEndOfLine:ge}=Rs(),{printClass:ne}=la(),{printOpaqueType:me,printTypeAlias:ue,printIntersectionType:Ee,printUnionType:ye,printFunctionType:Oe,printTupleType:V,printIndexedAccessType:le}=ll(),{printInterface:W}=Yl(),{printTypeParameter:te,printTypeParameters:B}=yo(),{printExportDeclaration:X,printExportAllDeclaration:Z}=cl(),{printArrayItems:se}=Yo(),{printObject:ae}=Xl(),{printPropertyKey:pe}=ku(),{printOptionalToken:De,printTypeAnnotation:we,printRestSpread:Se}=ds();function _e(xe,nt,Fe){let be=xe.getValue(),st=nt.semi?";":"",At=[];switch(be.type){case"DeclareClass":return Ge(xe,ne(xe,nt,Fe));case"DeclareFunction":return Ge(xe,["function ",Fe("id"),be.predicate?" ":"",Fe("predicate"),st]);case"DeclareModule":return Ge(xe,["module ",Fe("id")," ",Fe("body")]);case"DeclareModuleExports":return Ge(xe,["module.exports",": ",Fe("typeAnnotation"),st]);case"DeclareVariable":return Ge(xe,["var ",Fe("id"),st]);case"DeclareOpaqueType":return Ge(xe,me(xe,nt,Fe));case"DeclareInterface":return Ge(xe,W(xe,nt,Fe));case"DeclareTypeAlias":return Ge(xe,ue(xe,nt,Fe));case"DeclareExportDeclaration":return Ge(xe,X(xe,nt,Fe));case"DeclareExportAllDeclaration":return Ge(xe,Z(xe,nt,Fe));case"OpaqueType":return me(xe,nt,Fe);case"TypeAlias":return ue(xe,nt,Fe);case"IntersectionTypeAnnotation":return Ee(xe,nt,Fe);case"UnionTypeAnnotation":return ye(xe,nt,Fe);case"FunctionTypeAnnotation":return Oe(xe,nt,Fe);case"TupleTypeAnnotation":return V(xe,nt,Fe);case"GenericTypeAnnotation":return[Fe("id"),B(xe,nt,Fe,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return le(xe,nt,Fe);case"TypeAnnotation":return Fe("typeAnnotation");case"TypeParameter":return te(xe,nt,Fe);case"TypeofTypeAnnotation":return["typeof ",Fe("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[Fe("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(be.value);case"EnumDeclaration":return["enum ",Fe("id")," ",Fe("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(be.type==="EnumSymbolBody"||be.explicitType){let lt=null;switch(be.type){case"EnumBooleanBody":lt="boolean";break;case"EnumNumberBody":lt="number";break;case"EnumStringBody":lt="string";break;case"EnumSymbolBody":lt="symbol";break}At.push("of ",lt," ")}if(be.members.length===0&&!be.hasUnknownMembers)At.push(k(["{",y(xe,nt),S,"}"]));else{let lt=be.members.length>0?[A,se(xe,nt,"members",Fe),be.hasUnknownMembers||$(nt)?",":""]:[];At.push(k(["{",O([...lt,...be.hasUnknownMembers?[A,"..."]:[]]),y(xe,nt,!0),A,"}"]))}return At}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[Fe("id")," = ",typeof be.init=="object"?Fe("init"):String(be.init)];case"EnumDefaultedMember":return Fe("id");case"FunctionTypeParam":{let lt=be.name?Fe("name"):xe.getParentNode().this===be?"this":"";return[lt,De(xe),lt?": ":"",Fe("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return W(xe,nt,Fe);case"ClassImplements":case"InterfaceExtends":return[Fe("id"),Fe("typeParameters")];case"NullableTypeAnnotation":return["?",Fe("typeAnnotation")];case"Variance":{let{kind:lt}=be;return m.ok(lt==="plus"||lt==="minus"),lt==="plus"?"+":"-"}case"ObjectTypeCallProperty":return be.static&&At.push("static "),At.push(Fe("value")),At;case"ObjectTypeIndexer":return[be.static?"static ":"",be.variance?Fe("variance"):"","[",Fe("id"),be.id?": ":"",Fe("key"),"]: ",Fe("value")];case"ObjectTypeProperty":{let lt="";return be.proto?lt="proto ":be.static&&(lt="static "),[lt,q(be)?be.kind+" ":"",be.variance?Fe("variance"):"",pe(xe,nt,Fe),De(xe),z(be)?"":": ",Fe("value")]}case"ObjectTypeAnnotation":return ae(xe,nt,Fe);case"ObjectTypeInternalSlot":return[be.static?"static ":"","[[",Fe("id"),"]]",De(xe),be.method?"":": ",Fe("value")];case"ObjectTypeSpreadProperty":return Se(xe,nt,Fe);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[Fe("qualification"),".",Fe("id")];case"StringLiteralTypeAnnotation":return ge(C(U(be),nt));case"NumberLiteralTypeAnnotation":m.strictEqual(typeof be.value,"number");case"BigIntLiteralTypeAnnotation":return be.extra?x(be.extra.raw):x(be.raw);case"TypeCastExpression":return["(",Fe("expression"),we(xe,nt,Fe),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let lt=B(xe,nt,Fe,"params");if(nt.parser==="flow"){let Nt=Q(be),Le=ce(be),Ze=nt.originalText.lastIndexOf("/*",Nt),kt=nt.originalText.indexOf("*/",Le);if(Ze!==-1&&kt!==-1){let Pt=nt.originalText.slice(Ze+2,kt).trim();if(Pt.startsWith("::")&&!Pt.includes("/*")&&!Pt.includes("*/"))return["/*:: ",lt," */"]}}return lt}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",Fe("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(be.type))}}function Ge(xe,nt){let Fe=G(xe);return Fe?(m.strictEqual(Fe.type,"DeclareExportDeclaration"),nt):["declare ",nt]}c.exports={printFlow:_e}}}),Jl=Ue({"src/language-js/utils/is-ts-keyword-type.js"(a,c){Je();function m(y){let{type:C}=y;return C.startsWith("TS")&&C.endsWith("Keyword")}c.exports=m}}),vo=Ue({"src/language-js/print/ternary.js"(a,c){Je();var{hasNewlineInRange:m}=Tn(),{isJsxNode:y,getComments:C,isCallExpression:x,isMemberExpression:A,isTSTypeExpression:S}=Kn(),{locStart:k,locEnd:O}=oi(),G=Zi(),{builders:{line:z,softline:q,group:U,indent:$,align:Q,ifBreak:ce,dedent:ge,breakParent:ne}}=Gr();function me(V){let le=[V];for(let W=0;WSe[kt]===te),Ge=Se.type===te.type&&!_e,xe,nt,Fe=0;do nt=xe||te,xe=V.getParentNode(Fe),Fe++;while(xe&&xe.type===te.type&&se.every(kt=>xe[kt]!==nt));let be=xe||Se,st=nt;if(B&&(y(te[se[0]])||y(ae)||y(pe)||me(st))){we=!0,Ge=!0;let kt=Jt=>[ce("("),$([q,Jt]),q,ce(")")],Pt=Jt=>Jt.type==="NullLiteral"||Jt.type==="Literal"&&Jt.value===null||Jt.type==="Identifier"&&Jt.name==="undefined";De.push(" ? ",Pt(ae)?W(X):kt(W(X))," : ",pe.type===te.type||Pt(pe)?W(Z):kt(W(Z)))}else{let kt=[z,"? ",ae.type===te.type?ce("","("):"",Q(2,W(X)),ae.type===te.type?ce("",")"):"",z,": ",pe.type===te.type?W(Z):Q(2,W(Z))];De.push(Se.type!==te.type||Se[Z]===te||_e?kt:le.useTabs?ge($(kt)):Q(Math.max(0,le.tabWidth-2),kt))}let At=[...se.map(kt=>C(te[kt])),C(ae),C(pe)].flat().some(kt=>G(kt)&&m(le.originalText,k(kt),O(kt))),lt=kt=>Se===be?U(kt,{shouldBreak:At}):At?[kt,ne]:kt,Nt=!we&&(A(Se)||Se.type==="NGPipeExpression"&&Se.left===te)&&!Se.computed,Le=ye(V),Ze=lt([ue(V,le,W),Ge?De:$(De),B&&Nt&&!Le?q:""]);return _e||Le?U([$([q,Ze]),q]):Ze}c.exports={printTernary:Oe}}}),Eo=Ue({"src/language-js/print/statement.js"(a,c){Je();var{builders:{hardline:m}}=Gr(),y=Ko(),{getLeftSidePathName:C,hasNakedLeftSide:x,isJsxNode:A,isTheOnlyJsxElementInMarkdown:S,hasComment:k,CommentCheckFlags:O,isNextLineEmpty:G}=Kn(),{shouldPrintParamsWithoutParens:z}=Xo();function q(ue,Ee,ye,Oe){let V=ue.getValue(),le=[],W=V.type==="ClassBody",te=U(V[Oe]);return ue.each((B,X,Z)=>{let se=B.getValue();if(se.type==="EmptyStatement")return;let ae=ye();!Ee.semi&&!W&&!S(Ee,B)&&$(B,Ee)?k(se,O.Leading)?le.push(ye([],{needsSemi:!0})):le.push(";",ae):le.push(ae),!Ee.semi&&W&&ne(se)&&me(se,Z[X+1])&&le.push(";"),se!==te&&(le.push(m),G(se,Ee)&&le.push(m))},Oe),le}function U(ue){for(let Ee=ue.length-1;Ee>=0;Ee--){let ye=ue[Ee];if(ye.type!=="EmptyStatement")return ye}}function $(ue,Ee){return ue.getNode().type!=="ExpressionStatement"?!1:ue.call(ye=>Q(ye,Ee),"expression")}function Q(ue,Ee){let ye=ue.getValue();switch(ye.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!z(ue,Ee))return!0;break}case"UnaryExpression":{let{prefix:Oe,operator:V}=ye;if(Oe&&(V==="+"||V==="-"))return!0;break}case"BindExpression":{if(!ye.object)return!0;break}case"Literal":{if(ye.regex)return!0;break}default:if(A(ye))return!0}return y(ue,Ee)?!0:x(ye)?ue.call(Oe=>Q(Oe,Ee),...C(ue,ye)):!1}function ce(ue,Ee,ye){return q(ue,Ee,ye,"body")}function ge(ue,Ee,ye){return q(ue,Ee,ye,"consequent")}var ne=ue=>{let{type:Ee}=ue;return Ee==="ClassProperty"||Ee==="PropertyDefinition"||Ee==="ClassPrivateProperty"||Ee==="ClassAccessorProperty"||Ee==="AccessorProperty"||Ee==="TSAbstractPropertyDefinition"||Ee==="TSAbstractAccessorProperty"};function me(ue,Ee){let{type:ye,name:Oe}=ue.key;if(!ue.computed&&ye==="Identifier"&&(Oe==="static"||Oe==="get"||Oe==="set"||Oe==="accessor")&&!ue.value&&!ue.typeAnnotation)return!0;if(!Ee||Ee.static||Ee.accessibility)return!1;if(!Ee.computed){let V=Ee.key&&Ee.key.name;if(V==="in"||V==="instanceof")return!0}if(ne(Ee)&&Ee.variance&&!Ee.static&&!Ee.declare)return!0;switch(Ee.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return Ee.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((Ee.value?Ee.value.async:Ee.async)||Ee.kind==="get"||Ee.kind==="set")return!1;let V=Ee.value?Ee.value.generator:Ee.generator;return!!(Ee.computed||V)}case"TSIndexSignature":return!0}return!1}c.exports={printBody:ce,printSwitchCaseConsequent:ge}}}),hl=Ue({"src/language-js/print/block.js"(a,c){Je();var{printDanglingComments:m}=xi(),{isNonEmptyArray:y}=Tn(),{builders:{hardline:C,indent:x}}=Gr(),{hasComment:A,CommentCheckFlags:S,isNextLineEmpty:k}=Kn(),{printHardlineAfterHeritage:O}=la(),{printBody:G}=Eo();function z(U,$,Q){let ce=U.getValue(),ge=[];if(ce.type==="StaticBlock"&&ge.push("static "),ce.type==="ClassBody"&&y(ce.body)){let me=U.getParentNode();ge.push(O(me))}ge.push("{");let ne=q(U,$,Q);if(ne)ge.push(x([C,ne]),C);else{let me=U.getParentNode(),ue=U.getParentNode(1);me.type==="ArrowFunctionExpression"||me.type==="FunctionExpression"||me.type==="FunctionDeclaration"||me.type==="ObjectMethod"||me.type==="ClassMethod"||me.type==="ClassPrivateMethod"||me.type==="ForStatement"||me.type==="WhileStatement"||me.type==="DoWhileStatement"||me.type==="DoExpression"||me.type==="CatchClause"&&!ue.finalizer||me.type==="TSModuleDeclaration"||me.type==="TSDeclareFunction"||ce.type==="StaticBlock"||ce.type==="ClassBody"||ge.push(C)}return ge.push("}"),ge}function q(U,$,Q){let ce=U.getValue(),ge=y(ce.directives),ne=ce.body.some(Ee=>Ee.type!=="EmptyStatement"),me=A(ce,S.Dangling);if(!ge&&!ne&&!me)return"";let ue=[];if(ge&&U.each((Ee,ye,Oe)=>{ue.push(Q()),(ye"]),He=[z("("),O([S,Le("expression")]),S,z(")")];return Jt?G([[tt,Le("expression")],[tt,k(He,{shouldBreak:!0})],[tt,Le("expression")]]):k([tt,Le("expression")])}case"TSDeclareFunction":return pe(lt,Le,Nt);case"TSExportAssignment":return["export = ",Le("expression"),kt];case"TSModuleBlock":return Se(lt,Nt,Le);case"TSInterfaceBody":case"TSTypeLiteral":return te(lt,Nt,Le);case"TSTypeAliasDeclaration":return _e(lt,Nt,Le);case"TSQualifiedName":return C(".",[Le("left"),Le("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return X(lt,Nt,Le);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return B(lt,Nt,Le);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return Pt.push(Le("expression")),Ze.typeParameters&&Pt.push(Le("typeParameters")),Pt;case"TSTemplateLiteralType":return le(lt,Le,Nt);case"TSNamedTupleMember":return[Le("label"),Ze.optional?"?":"",": ",Le("elementType")];case"TSRestType":return["...",Le("typeAnnotation")];case"TSOptionalType":return[Le("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return we(lt,Nt,Le);case"TSClassImplements":return[Le("expression"),Le("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return se(lt,Nt,Le,"params");case"TSTypeParameter":return Z(lt,Nt,Le);case"TSSatisfiesExpression":case"TSAsExpression":{let Jt=Ze.type==="TSAsExpression"?"as":"satisfies";Pt.push(Le("expression"),` ${Jt} `,Le("typeAnnotation"));let tt=lt.getParentNode();return Q(tt)&&tt.callee===Ze||ce(tt)&&tt.object===Ze?k([O([S,...Pt]),S]):Pt}case"TSArrayType":return[Le("elementType"),"[]"];case"TSPropertySignature":return Ze.readonly&&Pt.push("readonly "),Pt.push(ae(lt,Nt,Le),ue(lt)),Ze.typeAnnotation&&Pt.push(": ",Le("typeAnnotation")),Ze.initializer&&Pt.push(" = ",Le("initializer")),Pt;case"TSParameterProperty":return Ze.accessibility&&Pt.push(Ze.accessibility+" "),Ze.export&&Pt.push("export "),Ze.static&&Pt.push("static "),Ze.override&&Pt.push("override "),Ze.readonly&&Pt.push("readonly "),Pt.push(Le("parameter")),Pt;case"TSTypeQuery":return["typeof ",Le("exprName"),Le("typeParameters")];case"TSIndexSignature":{let Jt=lt.getParentNode(),tt=Ze.parameters.length>1?z($(Nt)?",":""):"",He=k([O([S,C([", ",S],lt.map(Le,"parameters"))]),tt,S]);return[Ze.export?"export ":"",Ze.accessibility?[Ze.accessibility," "]:"",Ze.static?"static ":"",Ze.readonly?"readonly ":"",Ze.declare?"declare ":"","[",Ze.parameters?He:"",Ze.typeAnnotation?"]: ":"]",Ze.typeAnnotation?Le("typeAnnotation"):"",Jt.type==="ClassBody"?kt:""]}case"TSTypePredicate":return[Ze.asserts?"asserts ":"",Le("parameterName"),Ze.typeAnnotation?[" is ",Le("typeAnnotation")]:""];case"TSNonNullExpression":return[Le("expression"),"!"];case"TSImportType":return[Ze.isTypeOf?"typeof ":"","import(",Le(Ze.parameter?"parameter":"argument"),")",Ze.qualifier?[".",Le("qualifier")]:"",se(lt,Nt,Le,"typeParameters")];case"TSLiteralType":return Le("literal");case"TSIndexedAccessType":return be(lt,Nt,Le);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(Ze.type==="TSConstructorType"&&Ze.abstract&&Pt.push("abstract "),Ze.type!=="TSCallSignatureDeclaration"&&Pt.push("new "),Pt.push(k(Oe(lt,Le,Nt,!1,!0))),Ze.returnType||Ze.typeAnnotation){let Jt=Ze.type==="TSConstructorType";Pt.push(Jt?" => ":": ",Le("returnType"),Le("typeAnnotation"))}return Pt}case"TSTypeOperator":return[Ze.operator," ",Le("typeAnnotation")];case"TSMappedType":{let Jt=y(Nt.originalText,ne(Ze),me(Ze));return k(["{",O([Nt.bracketSpacing?x:S,Le("typeParameter"),Ze.optional?U(Ze.optional,"?"):"",Ze.typeAnnotation?": ":"",Le("typeAnnotation"),z(kt)]),m(lt,Nt,!0),Nt.bracketSpacing?x:S,"}"],{shouldBreak:Jt})}case"TSMethodSignature":{let Jt=Ze.kind&&Ze.kind!=="method"?`${Ze.kind} `:"";Pt.push(Ze.accessibility?[Ze.accessibility," "]:"",Jt,Ze.export?"export ":"",Ze.static?"static ":"",Ze.readonly?"readonly ":"",Ze.abstract?"abstract ":"",Ze.declare?"declare ":"",Ze.computed?"[":"",Le("key"),Ze.computed?"]":"",ue(lt));let tt=Oe(lt,Le,Nt,!1,!0),He=Ze.returnType?"returnType":"typeAnnotation",ot=Ze[He],Tt=ot?Le(He):"",Bt=V(Ze,Tt);return Pt.push(Bt?k(tt):tt),ot&&Pt.push(": ",k(Tt)),k(Pt)}case"TSNamespaceExportDeclaration":return Pt.push("export as namespace ",Le("id")),Nt.semi&&Pt.push(";"),k(Pt);case"TSEnumDeclaration":return Ze.declare&&Pt.push("declare "),Ze.modifiers&&Pt.push(Ee(lt,Nt,Le)),Ze.const&&Pt.push("const "),Pt.push("enum ",Le("id")," "),Ze.members.length===0?Pt.push(k(["{",m(lt,Nt),S,"}"])):Pt.push(k(["{",O([A,W(lt,Nt,"members",Le),$(Nt,"es5")?",":""]),m(lt,Nt,!0),A,"}"])),Pt;case"TSEnumMember":return Ze.computed?Pt.push("[",Le("id"),"]"):Pt.push(Le("id")),Ze.initializer&&Pt.push(" = ",Le("initializer")),Pt;case"TSImportEqualsDeclaration":return Ze.isExport&&Pt.push("export "),Pt.push("import "),Ze.importKind&&Ze.importKind!=="value"&&Pt.push(Ze.importKind," "),Pt.push(Le("id")," = ",Le("moduleReference")),Nt.semi&&Pt.push(";"),k(Pt);case"TSExternalModuleReference":return["require(",Le("expression"),")"];case"TSModuleDeclaration":{let Jt=lt.getParentNode(),tt=q(Ze.id),He=Jt.type==="TSModuleDeclaration",ot=Ze.body&&Ze.body.type==="TSModuleDeclaration";if(He)Pt.push(".");else{Ze.declare&&Pt.push("declare "),Pt.push(Ee(lt,Nt,Le));let Tt=Nt.originalText.slice(ne(Ze),ne(Ze.id));Ze.id.type==="Identifier"&&Ze.id.name==="global"&&!/namespace|module/.test(Tt)||Pt.push(tt||/(?:^|\s)module(?:\s|$)/.test(Tt)?"module ":"namespace ")}return Pt.push(Le("id")),ot?Pt.push(Le("body")):Ze.body?Pt.push(" ",k(Le("body"))):Pt.push(kt),Pt}case"TSConditionalType":return ye(lt,Nt,Le);case"TSInferType":return["infer"," ",Le("typeParameter")];case"TSIntersectionType":return Ge(lt,Nt,Le);case"TSUnionType":return xe(lt,Nt,Le);case"TSFunctionType":return nt(lt,Nt,Le);case"TSTupleType":return Fe(lt,Nt,Le);case"TSTypeReference":return[Le("typeName"),se(lt,Nt,Le,"typeParameters")];case"TSTypeAnnotation":return Le("typeAnnotation");case"TSEmptyBodyFunctionExpression":return De(lt,Nt,Le);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return st(lt,Le,"?");case"TSJSDocNonNullableType":return st(lt,Le,"!");case"TSInstantiationExpression":return[Le("expression"),Le("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(Ze.type)}.`)}}c.exports={printTypescript:At}}}),Oa=Ue({"src/language-js/print/comment.js"(a,c){Je();var{hasNewline:m}=Tn(),{builders:{join:y,hardline:C},utils:{replaceTextEndOfLine:x}}=Gr(),{isLineComment:A}=Kn(),{locStart:S,locEnd:k}=oi(),O=Zi();function G(U,$){let Q=U.getValue();if(A(Q))return $.originalText.slice(S(Q),k(Q)).trimEnd();if(O(Q)){if(z(Q)){let ne=q(Q);return Q.trailing&&!m($.originalText,S(Q),{backwards:!0})?[C,ne]:ne}let ce=k(Q),ge=$.originalText.slice(ce-3,ce)==="*-/";return["/*",x(Q.value),ge?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(Q))}function z(U){let $=`*${U.value}*`.split(` +`);return $.length>1&&$.every(Q=>Q.trim()[0]==="*")}function q(U){let $=U.value.split(` +`);return["/*",y(C,$.map((Q,ce)=>ce===0?Q.trimEnd():" "+(ce<$.length-1?Q.trim():Q.trimStart()))),"*/"]}c.exports={printComment:G}}}),Pu=Ue({"src/language-js/print/literal.js"(a,c){Je();var{printString:m,printNumber:y}=Tn(),{replaceTextEndOfLine:C}=Rs(),{printDirective:x}=ds();function A(G,z){let q=G.getNode();switch(q.type){case"RegExpLiteral":return O(q);case"BigIntLiteral":return k(q.bigint||q.extra.raw);case"NumericLiteral":return y(q.extra.raw);case"StringLiteral":return C(m(q.extra.raw,z));case"NullLiteral":return"null";case"BooleanLiteral":return String(q.value);case"DecimalLiteral":return y(q.value)+"m";case"Literal":{if(q.regex)return O(q.regex);if(q.bigint)return k(q.raw);if(q.decimal)return y(q.decimal)+"m";let{value:U}=q;return typeof U=="number"?y(q.raw):typeof U=="string"?S(G)?x(q.raw,z):C(m(q.raw,z)):String(U)}}}function S(G){if(G.getName()!=="expression")return;let z=G.getParentNode();return z.type==="ExpressionStatement"&&z.directive}function k(G){return G.toLowerCase()}function O(G){let{pattern:z,flags:q}=G;return q=[...q].sort().join(""),`/${z}/${q}`}c.exports={printLiteral:A}}}),Jo=Ue({"src/language-js/printer-estree.js"(a,c){Je();var{printDanglingComments:m}=xi(),{hasNewline:y}=Tn(),{builders:{join:C,line:x,hardline:A,softline:S,group:k,indent:O},utils:{replaceTextEndOfLine:G}}=Gr(),z=Uo(),q=ks(),{insertPragma:U}=qo(),$=Kl(),Q=Ko(),ce=ua(),{hasFlowShorthandAnnotationComment:ge,hasComment:ne,CommentCheckFlags:me,isTheOnlyJsxElementInMarkdown:ue,isLineComment:Ee,isNextLineEmpty:ye,needsHardlineAfterDanglingComment:Oe,hasIgnoreComment:V,isCallExpression:le,isMemberExpression:W,markerForIfWithoutBlockAndSameLineComment:te}=Kn(),{locStart:B,locEnd:X}=oi(),Z=Zi(),{printHtmlBinding:se,isVueEventBindingExpression:ae}=Ia(),{printAngular:pe}=Np(),{printJsx:De,hasJsxIgnoreComment:we}=Ip(),{printFlow:Se}=pl(),{printTypescript:_e}=fl(),{printOptionalToken:Ge,printBindExpressionCallee:xe,printTypeAnnotation:nt,adjustClause:Fe,printRestSpread:be,printDefiniteToken:st,printDirective:At}=ds(),{printImportDeclaration:lt,printExportDeclaration:Nt,printExportAllDeclaration:Le,printModuleSpecifier:Ze}=cl(),{printTernary:kt}=vo(),{printTemplateLiteral:Pt}=mo(),{printArray:Jt}=Yo(),{printObject:tt}=Xl(),{printClass:He,printClassMethod:ot,printClassProperty:Tt}=la(),{printProperty:Bt}=ku(),{printFunction:Xt,printArrowFunction:Wt,printMethod:Mr,printReturnStatement:hn,printThrowStatement:on}=Xo(),{printCallExpression:Ir}=Ni(),{printVariableDeclarator:n,printAssignmentExpression:s}=ui(),{printBinaryishExpression:u}=Ws(),{printSwitchCaseConsequent:p}=Eo(),{printMemberExpression:f}=Mi(),{printBlock:D,printBlockBody:P}=hl(),{printComment:R}=Oa(),{printLiteral:j}=Pu(),{printDecorators:_}=Fu();function Y(Ie,ct,rt,sr){let Ot=he(Ie,ct,rt,sr);if(!Ot)return"";let fr=Ie.getValue(),{type:It}=fr;if(It==="ClassMethod"||It==="ClassPrivateMethod"||It==="ClassProperty"||It==="ClassAccessorProperty"||It==="AccessorProperty"||It==="TSAbstractAccessorProperty"||It==="PropertyDefinition"||It==="TSAbstractPropertyDefinition"||It==="ClassPrivateProperty"||It==="MethodDefinition"||It==="TSAbstractMethodDefinition"||It==="TSDeclareMethod")return Ot;let Zt=[Ot],hr=_(Ie,ct,rt),Sr=fr.type==="ClassExpression"&&hr;if(hr&&(Zt=[...hr,Ot],!Sr))return k(Zt);if(!Q(Ie,ct))return sr&&sr.needsSemi&&Zt.unshift(";"),Zt.length===1&&Zt[0]===Ot?Ot:Zt;if(Sr&&(Zt=[O([x,...Zt])]),Zt.unshift("("),sr&&sr.needsSemi&&Zt.unshift(";"),ge(fr)){let[nr]=fr.trailingComments;Zt.push(" /*",nr.value.trimStart(),"*/"),nr.printed=!0}return Sr&&Zt.push(x),Zt.push(")"),Zt}function he(Ie,ct,rt,sr){let Ot=Ie.getValue(),fr=ct.semi?";":"";if(!Ot)return"";if(typeof Ot=="string")return Ot;for(let Zt of[j,se,pe,De,Se,_e]){let hr=Zt(Ie,ct,rt);if(typeof hr<"u")return hr}let It=[];switch(Ot.type){case"JsExpressionRoot":return rt("node");case"JsonRoot":return[rt("node"),A];case"File":return Ot.program&&Ot.program.interpreter&&It.push(rt(["program","interpreter"])),It.push(rt("program")),It;case"Program":return P(Ie,ct,rt);case"EmptyStatement":return"";case"ExpressionStatement":{if(ct.parser==="__vue_event_binding"||ct.parser==="__vue_ts_event_binding"){let hr=Ie.getParentNode();if(hr.type==="Program"&&hr.body.length===1&&hr.body[0]===Ot)return[rt("expression"),ae(Ot.expression)?";":""]}let Zt=m(Ie,ct,!0,hr=>{let{marker:Sr}=hr;return Sr===te});return[rt("expression"),ue(ct,Ie)?"":fr,Zt?[" ",Zt]:""]}case"ParenthesizedExpression":return!ne(Ot.expression)&&(Ot.expression.type==="ObjectExpression"||Ot.expression.type==="ArrayExpression")?["(",rt("expression"),")"]:k(["(",O([S,rt("expression")]),S,")"]);case"AssignmentExpression":return s(Ie,ct,rt);case"VariableDeclarator":return n(Ie,ct,rt);case"BinaryExpression":case"LogicalExpression":return u(Ie,ct,rt);case"AssignmentPattern":return[rt("left")," = ",rt("right")];case"OptionalMemberExpression":case"MemberExpression":return f(Ie,ct,rt);case"MetaProperty":return[rt("meta"),".",rt("property")];case"BindExpression":return Ot.object&&It.push(rt("object")),It.push(k(O([S,xe(Ie,ct,rt)]))),It;case"Identifier":return[Ot.name,Ge(Ie),st(Ie),nt(Ie,ct,rt)];case"V8IntrinsicIdentifier":return["%",Ot.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return be(Ie,ct,rt);case"FunctionDeclaration":case"FunctionExpression":return Xt(Ie,rt,ct,sr);case"ArrowFunctionExpression":return Wt(Ie,ct,rt,sr);case"YieldExpression":return It.push("yield"),Ot.delegate&&It.push("*"),Ot.argument&&It.push(" ",rt("argument")),It;case"AwaitExpression":{if(It.push("await"),Ot.argument){It.push(" ",rt("argument"));let Zt=Ie.getParentNode();if(le(Zt)&&Zt.callee===Ot||W(Zt)&&Zt.object===Ot){It=[O([S,...It]),S];let hr=Ie.findAncestor(Sr=>Sr.type==="AwaitExpression"||Sr.type==="BlockStatement");if(!hr||hr.type!=="AwaitExpression")return k(It)}}return It}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return Nt(Ie,ct,rt);case"ExportAllDeclaration":return Le(Ie,ct,rt);case"ImportDeclaration":return lt(Ie,ct,rt);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ze(Ie,ct,rt);case"ImportAttribute":return[rt("key"),": ",rt("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return D(Ie,ct,rt);case"ThrowStatement":return on(Ie,ct,rt);case"ReturnStatement":return hn(Ie,ct,rt);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Ir(Ie,ct,rt);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return tt(Ie,ct,rt);case"ObjectProperty":case"Property":return Ot.method||Ot.kind==="get"||Ot.kind==="set"?Mr(Ie,ct,rt):Bt(Ie,ct,rt);case"ObjectMethod":return Mr(Ie,ct,rt);case"Decorator":return["@",rt("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Jt(Ie,ct,rt);case"SequenceExpression":{let Zt=Ie.getParentNode(0);if(Zt.type==="ExpressionStatement"||Zt.type==="ForStatement"){let hr=[];return Ie.each((Sr,nr)=>{nr===0?hr.push(rt()):hr.push(",",O([x,rt()]))},"expressions"),k(hr)}return k(C([",",x],Ie.map(rt,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[rt("value"),fr];case"DirectiveLiteral":return At(Ot.extra.raw,ct);case"UnaryExpression":return It.push(Ot.operator),/[a-z]$/.test(Ot.operator)&&It.push(" "),ne(Ot.argument)?It.push(k(["(",O([S,rt("argument")]),S,")"])):It.push(rt("argument")),It;case"UpdateExpression":return It.push(rt("argument"),Ot.operator),Ot.prefix&&It.reverse(),It;case"ConditionalExpression":return kt(Ie,ct,rt);case"VariableDeclaration":{let Zt=Ie.map(rt,"declarations"),hr=Ie.getParentNode(),Sr=hr.type==="ForStatement"||hr.type==="ForInStatement"||hr.type==="ForOfStatement",nr=Ot.declarations.some(Br=>Br.init),Or;return Zt.length===1&&!ne(Ot.declarations[0])?Or=Zt[0]:Zt.length>0&&(Or=O(Zt[0])),It=[Ot.declare?"declare ":"",Ot.kind,Or?[" ",Or]:"",O(Zt.slice(1).map(Br=>[",",nr&&!Sr?A:x,Br]))],Sr&&hr.body!==Ot||It.push(fr),k(It)}case"WithStatement":return k(["with (",rt("object"),")",Fe(Ot.body,rt("body"))]);case"IfStatement":{let Zt=Fe(Ot.consequent,rt("consequent")),hr=k(["if (",k([O([S,rt("test")]),S]),")",Zt]);if(It.push(hr),Ot.alternate){let Sr=ne(Ot.consequent,me.Trailing|me.Line)||Oe(Ot),nr=Ot.consequent.type==="BlockStatement"&&!Sr;It.push(nr?" ":A),ne(Ot,me.Dangling)&&It.push(m(Ie,ct,!0),Sr?A:" "),It.push("else",k(Fe(Ot.alternate,rt("alternate"),Ot.alternate.type==="IfStatement")))}return It}case"ForStatement":{let Zt=Fe(Ot.body,rt("body")),hr=m(Ie,ct,!0),Sr=hr?[hr,S]:"";return!Ot.init&&!Ot.test&&!Ot.update?[Sr,k(["for (;;)",Zt])]:[Sr,k(["for (",k([O([S,rt("init"),";",x,rt("test"),";",x,rt("update")]),S]),")",Zt])]}case"WhileStatement":return k(["while (",k([O([S,rt("test")]),S]),")",Fe(Ot.body,rt("body"))]);case"ForInStatement":return k(["for (",rt("left")," in ",rt("right"),")",Fe(Ot.body,rt("body"))]);case"ForOfStatement":return k(["for",Ot.await?" await":""," (",rt("left")," of ",rt("right"),")",Fe(Ot.body,rt("body"))]);case"DoWhileStatement":{let Zt=Fe(Ot.body,rt("body"));return It=[k(["do",Zt])],Ot.body.type==="BlockStatement"?It.push(" "):It.push(A),It.push("while (",k([O([S,rt("test")]),S]),")",fr),It}case"DoExpression":return[Ot.async?"async ":"","do ",rt("body")];case"BreakStatement":return It.push("break"),Ot.label&&It.push(" ",rt("label")),It.push(fr),It;case"ContinueStatement":return It.push("continue"),Ot.label&&It.push(" ",rt("label")),It.push(fr),It;case"LabeledStatement":return Ot.body.type==="EmptyStatement"?[rt("label"),":;"]:[rt("label"),": ",rt("body")];case"TryStatement":return["try ",rt("block"),Ot.handler?[" ",rt("handler")]:"",Ot.finalizer?[" finally ",rt("finalizer")]:""];case"CatchClause":if(Ot.param){let Zt=ne(Ot.param,Sr=>!Z(Sr)||Sr.leading&&y(ct.originalText,X(Sr))||Sr.trailing&&y(ct.originalText,B(Sr),{backwards:!0})),hr=rt("param");return["catch ",Zt?["(",O([S,hr]),S,") "]:["(",hr,") "],rt("body")]}return["catch ",rt("body")];case"SwitchStatement":return[k(["switch (",O([S,rt("discriminant")]),S,")"])," {",Ot.cases.length>0?O([A,C(A,Ie.map((Zt,hr,Sr)=>{let nr=Zt.getValue();return[rt(),hr!==Sr.length-1&&ye(nr,ct)?A:""]},"cases"))]):"",A,"}"];case"SwitchCase":{Ot.test?It.push("case ",rt("test"),":"):It.push("default:"),ne(Ot,me.Dangling)&&It.push(" ",m(Ie,ct,!0));let Zt=Ot.consequent.filter(hr=>hr.type!=="EmptyStatement");if(Zt.length>0){let hr=p(Ie,ct,rt);It.push(Zt.length===1&&Zt[0].type==="BlockStatement"?[" ",hr]:O([A,hr]))}return It}case"DebuggerStatement":return["debugger",fr];case"ClassDeclaration":case"ClassExpression":return He(Ie,ct,rt);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ot(Ie,ct,rt);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Tt(Ie,ct,rt);case"TemplateElement":return G(Ot.value.raw);case"TemplateLiteral":return Pt(Ie,rt,ct);case"TaggedTemplateExpression":return[rt("tag"),rt("typeParameters"),rt("quasi")];case"PrivateIdentifier":return["#",rt("name")];case"PrivateName":return["#",rt("id")];case"InterpreterDirective":return It.push("#!",Ot.value,A),ye(Ot,ct)&&It.push(A),It;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{It.push("module {");let Zt=rt("body");return Zt&&It.push(O([A,Zt]),A),It.push("}"),It}default:throw new Error("unknown type: "+JSON.stringify(Ot.type))}}function Me(Ie){return Ie.type&&!Z(Ie)&&!Ee(Ie)&&Ie.type!=="EmptyStatement"&&Ie.type!=="TemplateElement"&&Ie.type!=="Import"&&Ie.type!=="TSEmptyBodyFunctionExpression"}c.exports={preprocess:ce,print:Y,embed:z,insertPragma:U,massageAstNode:q,hasPrettierIgnore(Ie){return V(Ie)||we(Ie)},willPrintOwnComments:$.willPrintOwnComments,canAttachComment:Me,printComment:R,isBlockComment:Z,handleComments:{avoidAstMutation:!0,ownLine:$.handleOwnLineComment,endOfLine:$.handleEndOfLineComment,remaining:$.handleRemainingComment},getCommentChildNodes:$.getCommentChildNodes}}}),ca=Ue({"src/language-js/printer-estree-json.js"(a,c){Je();var{builders:{hardline:m,indent:y,join:C}}=Gr(),x=ua();function A(G,z,q){let U=G.getValue();switch(U.type){case"JsonRoot":return[q("node"),m];case"ArrayExpression":{if(U.elements.length===0)return"[]";let $=G.map(()=>G.getValue()===null?"null":q(),"elements");return["[",y([m,C([",",m],$)]),m,"]"]}case"ObjectExpression":return U.properties.length===0?"{}":["{",y([m,C([",",m],G.map(q,"properties"))]),m,"}"];case"ObjectProperty":return[q("key"),": ",q("value")];case"UnaryExpression":return[U.operator==="+"?"":U.operator,q("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return U.value?"true":"false";case"StringLiteral":return JSON.stringify(U.value);case"NumericLiteral":return S(G)?JSON.stringify(String(U.value)):JSON.stringify(U.value);case"Identifier":return S(G)?JSON.stringify(U.name):U.name;case"TemplateLiteral":return q(["quasis",0]);case"TemplateElement":return JSON.stringify(U.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(U.type))}}function S(G){return G.getName()==="key"&&G.getParentNode().type==="ObjectProperty"}var k=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function O(G,z){let{type:q}=G;if(q==="ObjectProperty"){let{key:U}=G;U.type==="Identifier"?z.key={type:"StringLiteral",value:U.name}:U.type==="NumericLiteral"&&(z.key={type:"StringLiteral",value:String(U.value)});return}if(q==="UnaryExpression"&&G.operator==="+")return z.argument;if(q==="ArrayExpression"){for(let[U,$]of G.elements.entries())$===null&&z.elements.splice(U,0,{type:"NullLiteral"});return}if(q==="TemplateLiteral")return{type:"StringLiteral",value:G.quasis[0].value.cooked}}O.ignoredProperties=k,c.exports={preprocess:x,print:A,massageAstNode:O}}}),Ma=Ue({"src/common/common-options.js"(a,c){Je();var m="Common";c.exports={bracketSpacing:{since:"0.0.0",category:m,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:m,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:m,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:m,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:m,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),Lp=Ue({"src/language-js/options.js"(a,c){Je();var m=Ma(),y="JavaScript";c.exports={arrowParens:{since:"1.9.0",category:y,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:m.bracketSameLine,bracketSpacing:m.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:y,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:y,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:m.singleQuote,jsxSingleQuote:{since:"1.15.0",category:y,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:y,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:y,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:m.singleAttributePerLine}}}),Ql=Ue({"src/language-js/parse/parsers.js"(){Je()}}),es=Ue({"node_modules/linguist-languages/data/JavaScript.json"(a,c){c.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),Un=Ue({"node_modules/linguist-languages/data/TypeScript.json"(a,c){c.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),os=Ue({"node_modules/linguist-languages/data/TSX.json"(a,c){c.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),Vs=Ue({"node_modules/linguist-languages/data/JSON.json"(a,c){c.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),Ba=Ue({"node_modules/linguist-languages/data/JSON with Comments.json"(a,c){c.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),Fc=Ue({"node_modules/linguist-languages/data/JSON5.json"(a,c){c.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),Nu=Ue({"src/language-js/index.js"(a,c){Je();var m=_s(),y=Jo(),C=ca(),x=Lp(),A=Ql(),S=[m(es(),O=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...O.interpreters,"zx"],extensions:[...O.extensions.filter(G=>G!==".jsx"),".wxs"]})),m(es(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),m(es(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),m(Un(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),m(os(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),m(Vs(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),m(Vs(),O=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:O.extensions.filter(G=>G!==".jsonl")})),m(Ba(),O=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...O.filenames,".eslintrc",".swcrc"]})),m(Fc(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],k={estree:y,"estree-json":C};c.exports={languages:S,options:x,printers:k,parsers:A}}}),Zl=Ue({"src/language-css/clean.js"(a,c){Je();var{isFrontMatterNode:m}=Tn(),y=qn(),C=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function x(S,k,O){if(m(S)&&S.lang==="yaml"&&delete k.value,S.type==="css-comment"&&O.type==="css-root"&&O.nodes.length>0&&((O.nodes[0]===S||m(O.nodes[0])&&O.nodes[1]===S)&&(delete k.text,/^\*\s*@(?:format|prettier)\s*$/.test(S.text))||O.type==="css-root"&&y(O.nodes)===S))return null;if(S.type==="value-root"&&delete k.text,(S.type==="media-query"||S.type==="media-query-list"||S.type==="media-feature-expression")&&delete k.value,S.type==="css-rule"&&delete k.params,S.type==="selector-combinator"&&(k.value=k.value.replace(/\s+/g," ")),S.type==="media-feature"&&(k.value=k.value.replace(/ /g,"")),(S.type==="value-word"&&(S.isColor&&S.isHex||["initial","inherit","unset","revert"].includes(k.value.replace().toLowerCase()))||S.type==="media-feature"||S.type==="selector-root-invalid"||S.type==="selector-pseudo")&&(k.value=k.value.toLowerCase()),S.type==="css-decl"&&(k.prop=k.prop.toLowerCase()),(S.type==="css-atrule"||S.type==="css-import")&&(k.name=k.name.toLowerCase()),S.type==="value-number"&&(k.unit=k.unit.toLowerCase()),(S.type==="media-feature"||S.type==="media-keyword"||S.type==="media-type"||S.type==="media-unknown"||S.type==="media-url"||S.type==="media-value"||S.type==="selector-attribute"||S.type==="selector-string"||S.type==="selector-class"||S.type==="selector-combinator"||S.type==="value-string")&&k.value&&(k.value=A(k.value)),S.type==="selector-attribute"&&(k.attribute=k.attribute.trim(),k.namespace&&typeof k.namespace=="string"&&(k.namespace=k.namespace.trim(),k.namespace.length===0&&(k.namespace=!0)),k.value&&(k.value=k.value.trim().replace(/^["']|["']$/g,""),delete k.quoted)),(S.type==="media-value"||S.type==="media-type"||S.type==="value-number"||S.type==="selector-root-invalid"||S.type==="selector-class"||S.type==="selector-combinator"||S.type==="selector-tag")&&k.value&&(k.value=k.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(G,z,q)=>{let U=Number(z);return Number.isNaN(U)?G:U+q.toLowerCase()})),S.type==="selector-tag"){let G=S.value.toLowerCase();["from","to"].includes(G)&&(k.value=G)}if(S.type==="css-atrule"&&S.name.toLowerCase()==="supports"&&delete k.value,S.type==="selector-unknown"&&delete k.value,S.type==="value-comma_group"){let G=S.groups.findIndex(z=>z.type==="value-number"&&z.unit==="...");G!==-1&&(k.groups[G].unit="",k.groups.splice(G+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(S.type==="value-comma_group"&&S.groups.some(G=>G.type==="value-atword"&&G.value.endsWith("[")||G.type==="value-word"&&G.value.startsWith("]")))return{type:"value-atword",value:S.groups.map(G=>G.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}x.ignoredProperties=C;function A(S){return S.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}c.exports=x}}),dl=Ue({"src/utils/front-matter/print.js"(a,c){Je();var{builders:{hardline:m,markAsRoot:y}}=Gr();function C(x,A){if(x.lang==="yaml"){let S=x.value.trim(),k=S?A(S,{parser:"yaml"},{stripTrailingHardline:!0}):"";return y([x.startDelimiter,m,k,k?m:"",x.endDelimiter])}}c.exports=C}}),ec=Ue({"src/language-css/embed.js"(a,c){Je();var{builders:{hardline:m}}=Gr(),y=dl();function C(x,A,S){let k=x.getValue();if(k.type==="front-matter"){let O=y(k,S);return O?[O,m]:""}}c.exports=C}}),Qo=Ue({"src/utils/front-matter/parse.js"(a,c){Je();var m=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function y(C){let x=C.match(m);if(!x)return{content:C};let{startDelimiter:A,language:S,value:k="",endDelimiter:O}=x.groups,G=S.trim()||"yaml";if(A==="+++"&&(G="toml"),G!=="yaml"&&A!==O)return{content:C};let[z]=x;return{frontMatter:{type:"front-matter",lang:G,value:k,startDelimiter:A,endDelimiter:O,raw:z.replace(/\n$/,"")},content:z.replace(/[^\n]/g," ")+C.slice(z.length)}}c.exports=y}}),Zo=Ue({"src/language-css/pragma.js"(a,c){Je();var m=qo(),y=Qo();function C(A){return m.hasPragma(y(A).content)}function x(A){let{frontMatter:S,content:k}=y(A);return(S?S.raw+` + +`:"")+m.insertPragma(k)}c.exports={hasPragma:C,insertPragma:x}}}),tc=Ue({"src/language-css/utils/index.js"(a,c){Je();var m=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function y(tt,He){let ot=Array.isArray(He)?He:[He],Tt=-1,Bt;for(;Bt=tt.getParentNode(++Tt);)if(ot.includes(Bt.type))return Tt;return-1}function C(tt,He){let ot=y(tt,He);return ot===-1?null:tt.getParentNode(ot)}function x(tt){var He;let ot=C(tt,"css-decl");return ot==null||(He=ot.prop)===null||He===void 0?void 0:He.toLowerCase()}var A=new Set(["initial","inherit","unset","revert"]);function S(tt){return A.has(tt.toLowerCase())}function k(tt,He){let ot=C(tt,"css-atrule");return(ot==null?void 0:ot.name)&&ot.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(He.toLowerCase())}function O(tt){return tt.includes("$")||tt.includes("@")||tt.includes("#")||tt.startsWith("%")||tt.startsWith("--")||tt.startsWith(":--")||tt.includes("(")&&tt.includes(")")?tt:tt.toLowerCase()}function G(tt,He){var ot;let Tt=C(tt,"value-func");return(Tt==null||(ot=Tt.value)===null||ot===void 0?void 0:ot.toLowerCase())===He}function z(tt){var He;let ot=C(tt,"css-rule"),Tt=ot==null||(He=ot.raws)===null||He===void 0?void 0:He.selector;return Tt&&(Tt.startsWith(":import")||Tt.startsWith(":export"))}function q(tt,He){let ot=Array.isArray(He)?He:[He],Tt=C(tt,"css-atrule");return Tt&&ot.includes(Tt.name.toLowerCase())}function U(tt){let He=tt.getValue(),ot=C(tt,"css-atrule");return(ot==null?void 0:ot.name)==="import"&&He.groups[0].value==="url"&&He.groups.length===2}function $(tt){return tt.type==="value-func"&&tt.value.toLowerCase()==="url"}function Q(tt,He){var ot;let Tt=(ot=tt.getParentNode())===null||ot===void 0?void 0:ot.nodes;return Tt&&Tt.indexOf(He)===Tt.length-1}function ce(tt){let{selector:He}=tt;return He?typeof He=="string"&&/^@.+:.*$/.test(He)||He.value&&/^@.+:.*$/.test(He.value):!1}function ge(tt){return tt.type==="value-word"&&["from","through","end"].includes(tt.value)}function ne(tt){return tt.type==="value-word"&&["and","or","not"].includes(tt.value)}function me(tt){return tt.type==="value-word"&&tt.value==="in"}function ue(tt){return tt.type==="value-operator"&&tt.value==="*"}function Ee(tt){return tt.type==="value-operator"&&tt.value==="/"}function ye(tt){return tt.type==="value-operator"&&tt.value==="+"}function Oe(tt){return tt.type==="value-operator"&&tt.value==="-"}function V(tt){return tt.type==="value-operator"&&tt.value==="%"}function le(tt){return ue(tt)||Ee(tt)||ye(tt)||Oe(tt)||V(tt)}function W(tt){return tt.type==="value-word"&&["==","!="].includes(tt.value)}function te(tt){return tt.type==="value-word"&&["<",">","<=",">="].includes(tt.value)}function B(tt){return tt.type==="css-atrule"&&["if","else","for","each","while"].includes(tt.name)}function X(tt){var He;return((He=tt.raws)===null||He===void 0?void 0:He.params)&&/^\(\s*\)$/.test(tt.raws.params)}function Z(tt){return tt.name.startsWith("prettier-placeholder")}function se(tt){return tt.prop.startsWith("@prettier-placeholder")}function ae(tt,He){return tt.value==="$$"&&tt.type==="value-func"&&(He==null?void 0:He.type)==="value-word"&&!He.raws.before}function pe(tt){var He,ot;return((He=tt.value)===null||He===void 0?void 0:He.type)==="value-root"&&((ot=tt.value.group)===null||ot===void 0?void 0:ot.type)==="value-value"&&tt.prop.toLowerCase()==="composes"}function De(tt){var He,ot,Tt;return((He=tt.value)===null||He===void 0||(ot=He.group)===null||ot===void 0||(Tt=ot.group)===null||Tt===void 0?void 0:Tt.type)==="value-paren_group"&&tt.value.group.group.open!==null&&tt.value.group.group.close!==null}function we(tt){var He;return((He=tt.raws)===null||He===void 0?void 0:He.before)===""}function Se(tt){var He,ot;return tt.type==="value-comma_group"&&((He=tt.groups)===null||He===void 0||(ot=He[1])===null||ot===void 0?void 0:ot.type)==="value-colon"}function _e(tt){var He;return tt.type==="value-paren_group"&&((He=tt.groups)===null||He===void 0?void 0:He[0])&&Se(tt.groups[0])}function Ge(tt){var He;let ot=tt.getValue();if(ot.groups.length===0)return!1;let Tt=tt.getParentNode(1);if(!_e(ot)&&!(Tt&&_e(Tt)))return!1;let Bt=C(tt,"css-decl");return!!(Bt!=null&&(He=Bt.prop)!==null&&He!==void 0&&He.startsWith("$")||_e(Tt)||Tt.type==="value-func")}function xe(tt){return tt.type==="value-comment"&&tt.inline}function nt(tt){return tt.type==="value-word"&&tt.value==="#"}function Fe(tt){return tt.type==="value-word"&&tt.value==="{"}function be(tt){return tt.type==="value-word"&&tt.value==="}"}function st(tt){return["value-word","value-atword"].includes(tt.type)}function At(tt){return(tt==null?void 0:tt.type)==="value-colon"}function lt(tt,He){if(!Se(He))return!1;let{groups:ot}=He,Tt=ot.indexOf(tt);return Tt===-1?!1:At(ot[Tt+1])}function Nt(tt){return tt.value&&["not","and","or"].includes(tt.value.toLowerCase())}function Le(tt){return tt.type!=="value-func"?!1:m.has(tt.value.toLowerCase())}function Ze(tt){return/\/\//.test(tt.split(/[\n\r]/).pop())}function kt(tt){return(tt==null?void 0:tt.type)==="value-atword"&&tt.value.startsWith("prettier-placeholder-")}function Pt(tt,He){var ot,Tt;if(((ot=tt.open)===null||ot===void 0?void 0:ot.value)!=="("||((Tt=tt.close)===null||Tt===void 0?void 0:Tt.value)!==")"||tt.groups.some(Bt=>Bt.type!=="value-comma_group"))return!1;if(He.type==="value-comma_group"){let Bt=He.groups.indexOf(tt)-1,Xt=He.groups[Bt];if((Xt==null?void 0:Xt.type)==="value-word"&&Xt.value==="with")return!0}return!1}function Jt(tt){var He,ot;return tt.type==="value-paren_group"&&((He=tt.open)===null||He===void 0?void 0:He.value)==="("&&((ot=tt.close)===null||ot===void 0?void 0:ot.value)===")"}c.exports={getAncestorCounter:y,getAncestorNode:C,getPropOfDeclNode:x,maybeToLowerCase:O,insideValueFunctionNode:G,insideICSSRuleNode:z,insideAtRuleNode:q,insideURLFunctionInImportAtRuleNode:U,isKeyframeAtRuleKeywords:k,isWideKeywords:S,isLastNode:Q,isSCSSControlDirectiveNode:B,isDetachedRulesetDeclarationNode:ce,isRelationalOperatorNode:te,isEqualityOperatorNode:W,isMultiplicationNode:ue,isDivisionNode:Ee,isAdditionNode:ye,isSubtractionNode:Oe,isModuloNode:V,isMathOperatorNode:le,isEachKeywordNode:me,isForKeywordNode:ge,isURLFunctionNode:$,isIfElseKeywordNode:ne,hasComposesNode:pe,hasParensAroundNode:De,hasEmptyRawBefore:we,isDetachedRulesetCallNode:X,isTemplatePlaceholderNode:Z,isTemplatePropNode:se,isPostcssSimpleVarNode:ae,isKeyValuePairNode:Se,isKeyValuePairInParenGroupNode:_e,isKeyInValuePairNode:lt,isSCSSMapItemNode:Ge,isInlineValueCommentNode:xe,isHashNode:nt,isLeftCurlyBraceNode:Fe,isRightCurlyBraceNode:be,isWordNode:st,isColonNode:At,isMediaAndSupportsKeywords:Nt,isColorAdjusterFuncNode:Le,lastLineHasInlineComment:Ze,isAtWordPlaceholderNode:kt,isConfigurationNode:Pt,isParenGroupNode:Jt}}}),ts=Ue({"src/utils/line-column-to-index.js"(a,c){Je(),c.exports=function(m,y){let C=0;for(let x=0;x0?z:""]}case"css-comment":{let Vr=yt.inline||yt.raws.inline,tn=Or.originalText.slice(P(yt),R(yt));return Vr?tn.trimEnd():tn}case"css-rule":return[Br("selector"),yt.important?" !important":"",yt.nodes?[yt.selector&&yt.selector.type==="selector-unknown"&&u(yt.selector.value)?G:" ","{",yt.nodes.length>0?Q([z,Ie(nr,Or,Br)]):"",z,"}",we(yt)?";":""]:";"];case"css-decl":{let Vr=nr.getParentNode(),{between:tn}=yt.raws,Cn=tn.trim(),Zn=Cn===":",Ce=Le(yt)?me(Br("value")):Br("value");return!Zn&&u(Cn)&&(Ce=Q([z,ce(Ce)])),[yt.raws.before.replace(/[\s;]/g,""),Vr.type==="css-atrule"&&Vr.variable||B(nr)?yt.prop:W(yt.prop),Cn.startsWith("//")?" ":"",Cn,yt.extend?"":" ",j(Or)&&yt.extend&&yt.selector?["extend(",Br("selector"),")"]:"",Ce,yt.raws.important?yt.raws.important.replace(/\s*!\s*important/i," !important"):yt.important?" !important":"",yt.raws.scssDefault?yt.raws.scssDefault.replace(/\s*!default/i," !default"):yt.scssDefault?" !default":"",yt.raws.scssGlobal?yt.raws.scssGlobal.replace(/\s*!global/i," !global"):yt.scssGlobal?" !global":"",yt.nodes?[" {",Q([q,Ie(nr,Or,Br)]),q,"}"]:ot(yt)&&!Vr.raws.semicolon&&Or.originalText[R(yt)-1]!==";"?"":Or.__isHTMLStyleAttribute&&pe(nr,yt)?ge(";"):";"]}case"css-atrule":{let Vr=nr.getParentNode(),tn=He(yt)&&!Vr.raws.semicolon&&Or.originalText[R(yt)-1]!==";";if(j(Or)){if(yt.mixin)return[Br("selector"),yt.important?" !important":"",tn?"":";"];if(yt.function)return[yt.name,Br("params"),tn?"":";"];if(yt.variable)return["@",yt.name,": ",yt.value?Br("value"):"",yt.raws.between.trim()?yt.raws.between.trim()+" ":"",yt.nodes?["{",Q([yt.nodes.length>0?q:"",Ie(nr,Or,Br)]),q,"}"]:"",tn?"":";"]}return["@",tt(yt)||yt.name.endsWith(":")?yt.name:W(yt.name),yt.params?[tt(yt)?"":He(yt)?yt.raws.afterName===""?"":yt.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(yt.raws.afterName)?[z,z]:/^\s*\n/.test(yt.raws.afterName)?z:" ":" ",Br("params")]:"",yt.selector?Q([" ",Br("selector")]):"",yt.value?U([" ",Br("value"),De(yt)?Ze(yt)?" ":G:""]):yt.name==="else"?" ":"",yt.nodes?[De(yt)?"":yt.selector&&!yt.selector.nodes&&typeof yt.selector.value=="string"&&u(yt.selector.value)||!yt.selector&&typeof yt.params=="string"&&u(yt.params)?G:" ","{",Q([yt.nodes.length>0?q:"",Ie(nr,Or,Br)]),q,"}"]:tn?"":";"]}case"media-query-list":{let Vr=[];return nr.each(tn=>{let Cn=tn.getValue();Cn.type==="media-query"&&Cn.value===""||Vr.push(Br())},"nodes"),U(Q(O(G,Vr)))}case"media-query":return[O(" ",nr.map(Br,"nodes")),pe(nr,yt)?"":","];case"media-type":return hr(It(yt.value,Or));case"media-feature-expression":return yt.nodes?["(",...nr.map(Br,"nodes"),")"]:yt.value;case"media-feature":return W(It(yt.value.replace(/ +/g," "),Or));case"media-colon":return[yt.value," "];case"media-value":return hr(It(yt.value,Or));case"media-keyword":return It(yt.value,Or);case"media-url":return It(yt.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),Or);case"media-unknown":return yt.value;case"selector-root":return U([X(nr,"custom-selector")?[V(nr,"css-atrule").customSelector,G]:"",O([",",X(nr,["extend","custom-selector","nest"])?G:z],nr.map(Br,"nodes"))]);case"selector-selector":return U(Q(nr.map(Br,"nodes")));case"selector-comment":return yt.value;case"selector-string":return It(yt.value,Or);case"selector-tag":{let Vr=nr.getParentNode(),tn=Vr&&Vr.nodes.indexOf(yt),Cn=tn&&Vr.nodes[tn-1];return[yt.namespace?[yt.namespace===!0?"":yt.namespace.trim(),"|"]:"",Cn.type==="selector-nesting"?yt.value:hr(se(nr,yt.value)?yt.value.toLowerCase():yt.value)]}case"selector-id":return["#",yt.value];case"selector-class":return[".",hr(It(yt.value,Or))];case"selector-attribute":{var ci;return["[",yt.namespace?[yt.namespace===!0?"":yt.namespace.trim(),"|"]:"",yt.attribute.trim(),(ci=yt.operator)!==null&&ci!==void 0?ci:"",yt.value?Zt(It(yt.value.trim(),Or),Or):"",yt.insensitive?" i":"","]"]}case"selector-combinator":{if(yt.value==="+"||yt.value===">"||yt.value==="~"||yt.value===">>>"){let Cn=nr.getParentNode();return[Cn.type==="selector-selector"&&Cn.nodes[0]===yt?"":G,yt.value,pe(nr,yt)?"":" "]}let Vr=yt.value.trim().startsWith("(")?G:"",tn=hr(It(yt.value.trim(),Or))||G;return[Vr,tn]}case"selector-universal":return[yt.namespace?[yt.namespace===!0?"":yt.namespace.trim(),"|"]:"",yt.value];case"selector-pseudo":return[W(yt.value),k(yt.nodes)?U(["(",Q([q,O([",",G],nr.map(Br,"nodes"))]),q,")"]):""];case"selector-nesting":return yt.value;case"selector-unknown":{let Vr=V(nr,"css-rule");if(Vr&&Vr.isSCSSNesterProperty)return hr(It(W(yt.value),Or));let tn=nr.getParentNode();if(tn.raws&&tn.raws.selector){let Zn=P(tn),Ce=Zn+tn.raws.selector.length;return Or.originalText.slice(Zn,Ce).trim()}let Cn=nr.getParentNode(1);if(tn.type==="value-paren_group"&&Cn&&Cn.type==="value-func"&&Cn.value==="selector"){let Zn=R(tn.open)+1,Ce=P(tn.close),wt=Or.originalText.slice(Zn,Ce).trim();return u(wt)?[ne,wt]:wt}return yt.value}case"value-value":case"value-root":return Br("group");case"value-comment":return Or.originalText.slice(P(yt),R(yt));case"value-comma_group":{let Vr=nr.getParentNode(),tn=nr.getParentNode(1),Cn=le(nr),Zn=Cn&&Vr.type==="value-value"&&(Cn==="grid"||Cn.startsWith("grid-template")),Ce=V(nr,"css-atrule"),wt=Ce&&De(Ce),Pr=yt.groups.some(gs=>Xt(gs)),xn=nr.map(Br,"groups"),gn=[],ii=te(nr,"url"),zn=!1,$n=!1;for(let gs=0;gsGh:$h!==-1?zn=!0:Gh!==-1&&(zn=!1)}if(zn||Ir(qr)||Ir(un)||qr.type==="value-atword"&&(qr.value===""||qr.value.endsWith("["))||un.type==="value-word"&&un.value.startsWith("]")||qr.value==="~"||qr.value&&qr.value.includes("\\")&&un&&un.type!=="value-comment"||si&&si.value&&si.value.indexOf("\\")===si.value.length-1&&qr.type==="value-operator"&&qr.value==="/"||qr.value==="\\"||Tt(qr,un)||Wt(qr)||Mr(qr)||hn(un)||Mr(un)&&kt(un)||hn(qr)&&kt(un)||qr.value==="--"&&Wt(un))continue;let au=be(qr),tp=be(un);if((au&&Wt(un)||tp&&hn(qr))&&kt(un)||!si&&xe(qr)||te(nr,"calc")&&(nt(qr)||nt(un)||Fe(qr)||Fe(un))&&kt(un))continue;let iE=(nt(qr)||Fe(qr))&&gs===0&&(un.type==="value-number"||un.isHex)&&tn&&s(tn)&&!kt(un),Bd=ji&&ji.type==="value-func"||ji&&on(ji)||qr.type==="value-func"||on(qr),Rd=un.type==="value-func"||on(un)||si&&si.type==="value-func"||si&&on(si);if(!(!(Ge(un)||Ge(qr))&&!te(nr,"calc")&&!iE&&(xe(un)&&!Bd||xe(qr)&&!Rd||nt(un)&&!Bd||nt(qr)&&!Rd||Fe(un)||Fe(qr))&&(kt(un)||au&&(!si||si&&be(si))))&&!((Or.parser==="scss"||Or.parser==="less")&&au&&qr.value==="-"&&D(un)&&R(qr)===P(un.open)&&un.open.value==="(")){if(Xt(qr)){if(Vr.type==="value-paren_group"){gn.push(ce(z));continue}gn.push(z);continue}if(wt&&(_e(un)||Se(un)||Nt(un)||st(qr)||At(qr))){gn.push(" ");continue}if(Ce&&Ce.name.toLowerCase()==="namespace"){gn.push(" ");continue}if(Zn){qr.source&&un.source&&qr.source.start.line!==un.source.start.line?(gn.push(z),$n=!0):gn.push(" ");continue}if(tp){gn.push(" ");continue}if(!(un&&un.value==="...")&&!(p(qr)&&p(un)&&R(qr)===P(un))){if(p(qr)&&D(un)&&R(qr)===P(un.open)){gn.push(q);continue}if(qr.value==="with"&&D(un)){gn.push(" ");continue}(Qn=qr.value)!==null&&Qn!==void 0&&Qn.endsWith("#")&&un.value==="{"&&D(un.group)||gn.push(G)}}}return Pr&&gn.push(ne),$n&&gn.unshift(z),wt?U(Q(gn)):Z(nr)?U($(gn)):U(Q($(gn)))}case"value-paren_group":{let Vr=nr.getParentNode();if(Vr&<(Vr)&&(yt.groups.length===1||yt.groups.length>0&&yt.groups[0].type==="value-comma_group"&&yt.groups[0].groups.length>0&&yt.groups[0].groups[0].type==="value-word"&&yt.groups[0].groups[0].value.startsWith("data:")))return[yt.open?Br("open"):"",O(",",nr.map(Br,"groups")),yt.close?Br("close"):""];if(!yt.open){let ii=nr.map(Br,"groups"),zn=[];for(let $n=0;$n{let $n=ii.getValue(),gs=zn===yt.groups.length-1,si=[Br(),gs?"":","];if(Pt($n)&&$n.type==="value-comma_group"&&$n.groups&&$n.groups[0].type!=="value-paren_group"&&$n.groups[2]&&$n.groups[2].type==="value-paren_group"){let qr=ue(si[0].contents.contents);qr[1]=U(qr[1]),si=[U(ce(si))]}if(!gs&&$n.type==="value-comma_group"&&k($n.groups)){let qr=m($n.groups);!qr.source&&qr.close&&(qr=qr.close),qr.source&&S(Or.originalText,qr,R)&&si.push(z)}return si},"groups"))]),ge(!Zn&&_(Or.parser,Or.originalText)&&tn&&he(Or)?",":""),q,yt.close?Br("close"):""],{shouldBreak:Pr});return xn?ce(gn):gn}case"value-func":return[yt.value,X(nr,"supports")&&n(yt)?" ":"",Br("group")];case"value-paren":return yt.value;case"value-number":return[Sr(yt.value),Y(yt.unit)];case"value-operator":return yt.value;case"value-word":return yt.isColor&&yt.isHex||ae(yt.value)?yt.value.toLowerCase():yt.value;case"value-colon":{let Vr=nr.getParentNode(),tn=Vr&&Vr.groups.indexOf(yt),Cn=tn&&Vr.groups[tn-1];return[yt.value,Cn&&typeof Cn.value=="string"&&m(Cn.value)==="\\"||te(nr,"url")?"":G]}case"value-comma":return[yt.value," "];case"value-string":return C(yt.raws.quote+yt.value+yt.raws.quote,Or);case"value-atword":return["@",yt.value];case"value-unicode-range":return yt.value;case"value-unknown":return yt.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(yt.type)}`)}}function Ie(nr,Or,Br){let yt=[];return nr.each((ci,Qn,Vr)=>{let tn=Vr[Qn-1];if(tn&&tn.type==="css-comment"&&tn.text.trim()==="prettier-ignore"){let Cn=ci.getValue();yt.push(Or.originalText.slice(P(Cn),R(Cn)))}else yt.push(Br());Qn!==Vr.length-1&&(Vr[Qn+1].type==="css-comment"&&!x(Or.originalText,P(Vr[Qn+1]),{backwards:!0})&&!A(Vr[Qn])||Vr[Qn+1].type==="css-atrule"&&Vr[Qn+1].name==="else"&&Vr[Qn].type!=="css-comment"?yt.push(" "):(yt.push(Or.__isHTMLStyleAttribute?G:z),S(Or.originalText,ci.getValue(),R)&&!A(Vr[Qn])&&yt.push(z)))},"nodes"),yt}var ct=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,rt=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,sr=/[A-Za-z]+/g,Ot=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,fr=new RegExp(ct.source+`|(${Ot.source})?(${rt.source})(${sr.source})?`,"g");function It(nr,Or){return nr.replace(ct,Br=>C(Br,Or))}function Zt(nr,Or){let Br=Or.singleQuote?"'":'"';return nr.includes('"')||nr.includes("'")?nr:Br+nr+Br}function hr(nr){return nr.replace(fr,(Or,Br,yt,ci,Qn)=>!yt&&ci?Sr(ci)+W(Qn||""):Or)}function Sr(nr){return y(nr).replace(/\.0(?=$|e)/,"")}c.exports={print:Me,embed:ye,insertPragma:Oe,massageAstNode:Ee}}}),Ic=Ue({"src/language-css/options.js"(a,c){Je();var m=Ma();c.exports={singleQuote:m.singleQuote}}}),Iu=Ue({"src/language-css/parsers.js"(){Je()}}),Lc=Ue({"node_modules/linguist-languages/data/CSS.json"(a,c){c.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),Mp=Ue({"node_modules/linguist-languages/data/PostCSS.json"(a,c){c.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),vl=Ue({"node_modules/linguist-languages/data/Less.json"(a,c){c.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),Oc=Ue({"node_modules/linguist-languages/data/SCSS.json"(a,c){c.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),Bp=Ue({"src/language-css/index.js"(a,c){Je();var m=_s(),y=yl(),C=Ic(),x=Iu(),A=[m(Lc(),k=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...k.extensions,".wxss"]})),m(Mp(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),m(vl(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),m(Oc(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],S={postcss:y};c.exports={languages:A,options:C,printers:S,parsers:x}}}),Mc=Ue({"src/language-handlebars/loc.js"(a,c){Je();function m(C){return C.loc.start.offset}function y(C){return C.loc.end.offset}c.exports={locStart:m,locEnd:y}}}),Do=Ue({"src/language-handlebars/clean.js"(a,c){Je();function m(y,C){if(y.type==="TextNode"){let x=y.chars.trim();if(!x)return null;C.chars=x.replace(/[\t\n\f\r ]+/g," ")}y.type==="AttrNode"&&y.name.toLowerCase()==="class"&&delete C.value}m.ignoredProperties=new Set(["loc","selfClosing"]),c.exports=m}}),To=Ue({"src/language-handlebars/html-void-elements.evaluate.js"(a,c){c.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),eu=Ue({"src/language-handlebars/utils.js"(a,c){Je();var m=qn(),y=To();function C(ue){let Ee=ue.getValue(),ye=ue.getParentNode(0);return!!(q(ue,["ElementNode"])&&m(ye.children)===Ee||q(ue,["Block"])&&m(ye.body)===Ee)}function x(ue){return ue.toUpperCase()===ue}function A(ue){return z(ue,["ElementNode"])&&typeof ue.tag=="string"&&!ue.tag.startsWith(":")&&(x(ue.tag[0])||ue.tag.includes("."))}var S=new Set(y);function k(ue){return S.has(ue.toLowerCase())&&!x(ue[0])}function O(ue){return ue.selfClosing===!0||k(ue.tag)||A(ue)&&ue.children.every(Ee=>G(Ee))}function G(ue){return z(ue,["TextNode"])&&!/\S/.test(ue.chars)}function z(ue,Ee){return ue&&Ee.includes(ue.type)}function q(ue,Ee){let ye=ue.getParentNode(0);return z(ye,Ee)}function U(ue,Ee){let ye=ce(ue);return z(ye,Ee)}function $(ue,Ee){let ye=ge(ue);return z(ye,Ee)}function Q(ue,Ee){var ye,Oe,V,le;let W=ue.getValue(),te=(ye=ue.getParentNode(0))!==null&&ye!==void 0?ye:{},B=(Oe=(V=(le=te.children)!==null&&le!==void 0?le:te.body)!==null&&V!==void 0?V:te.parts)!==null&&Oe!==void 0?Oe:[],X=B.indexOf(W);return X!==-1&&B[X+Ee]}function ce(ue){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Q(ue,-Ee)}function ge(ue){return Q(ue,1)}function ne(ue){return z(ue,["MustacheCommentStatement"])&&typeof ue.value=="string"&&ue.value.trim()==="prettier-ignore"}function me(ue){let Ee=ue.getValue(),ye=ce(ue,2);return ne(Ee)||ne(ye)}c.exports={getNextNode:ge,getPreviousNode:ce,hasPrettierIgnore:me,isLastNodeOfSiblings:C,isNextNodeOfSomeType:$,isNodeOfSomeType:z,isParentOfSomeType:q,isPreviousNodeOfSomeType:U,isVoid:O,isWhitespaceNode:G}}}),Lu=Ue({"src/language-handlebars/printer-glimmer.js"(a,c){Je();var{builders:{dedent:m,fill:y,group:C,hardline:x,ifBreak:A,indent:S,join:k,line:O,softline:G},utils:{getDocParts:z,replaceTextEndOfLine:q}}=Gr(),{getPreferredQuote:U,isNonEmptyArray:$}=Tn(),{locStart:Q,locEnd:ce}=Mc(),ge=Do(),{getNextNode:ne,getPreviousNode:me,hasPrettierIgnore:ue,isLastNodeOfSiblings:Ee,isNextNodeOfSomeType:ye,isNodeOfSomeType:Oe,isParentOfSomeType:V,isPreviousNodeOfSomeType:le,isVoid:W,isWhitespaceNode:te}=eu(),B=2;function X(u,p,f){let D=u.getValue();if(!D)return"";if(ue(u))return p.originalText.slice(Q(D),ce(D));let P=p.singleQuote?"'":'"';switch(D.type){case"Block":case"Program":case"Template":return C(u.map(f,"body"));case"ElementNode":{let R=C(se(u,f)),j=p.htmlWhitespaceSensitivity==="ignore"&&ye(u,["ElementNode"])?G:"";if(W(D))return[R,j];let _=[""];return D.children.length===0?[R,S(_),j]:p.htmlWhitespaceSensitivity==="ignore"?[R,S(ae(u,p,f)),x,S(_),j]:[R,S(C(ae(u,p,f))),S(_),j]}case"BlockStatement":{let R=u.getParentNode(1);return R&&R.inverse&&R.inverse.body.length===1&&R.inverse.body[0]===D&&R.inverse.body[0].path.parts[0]===R.path.parts[0]?[At(u,f,R.inverse.body[0].path.parts[0]),kt(u,f,p),Pt(u,f,p)]:[be(u,f),C([kt(u,f,p),Pt(u,f,p),lt(u,f,p)])]}case"ElementModifierStatement":return C(["{{",on(u,f),"}}"]);case"MustacheStatement":return C([De(D),on(u,f),we(D)]);case"SubExpression":return C(["(",hn(u,f),G,")"]);case"AttrNode":{let R=D.value.type==="TextNode";if(R&&D.value.chars===""&&Q(D.value)===ce(D.value))return D.name;let j=R?U(D.value.chars,P).quote:D.value.type==="ConcatStatement"?U(D.value.parts.filter(Y=>Y.type==="TextNode").map(Y=>Y.chars).join(""),P).quote:"",_=f("value");return[D.name,"=",j,D.name==="class"&&j?C(S(_)):_,j]}case"ConcatStatement":return u.map(f,"parts");case"Hash":return k(O,u.map(f,"pairs"));case"HashPair":return[D.key,"=",f("value")];case"TextNode":{let R=D.chars.replace(/{{/g,"\\{{"),j=He(u);if(j){if(j==="class"){let Ot=R.trim().split(/\s+/).join(" "),fr=!1,It=!1;return V(u,["ConcatStatement"])&&(le(u,["MustacheStatement"])&&/^\s/.test(R)&&(fr=!0),ye(u,["MustacheStatement"])&&/\s$/.test(R)&&Ot!==""&&(It=!0)),[fr?O:"",Ot,It?O:""]}return q(R)}let _=/^[\t\n\f\r ]*$/.test(R),Y=!me(u),he=!ne(u);if(p.htmlWhitespaceSensitivity!=="ignore"){let Ot=/^[\t\n\f\r ]*/,fr=/[\t\n\f\r ]*$/,It=he&&V(u,["Template"]),Zt=Y&&V(u,["Template"]);if(_){if(Zt||It)return"";let Br=[O],yt=ot(R);return yt&&(Br=Xt(yt)),Ee(u)&&(Br=Br.map(ci=>m(ci))),Br}let[hr]=R.match(Ot),[Sr]=R.match(fr),nr=[];if(hr){nr=[O];let Br=ot(hr);Br&&(nr=Xt(Br)),R=R.replace(Ot,"")}let Or=[];if(Sr){if(!It){Or=[O];let Br=ot(Sr);Br&&(Or=Xt(Br)),Ee(u)&&(Or=Or.map(yt=>m(yt)))}R=R.replace(fr,"")}return[...nr,y(Jt(R)),...Or]}let Me=ot(R),Ie=Tt(R),ct=Bt(R);if((Y||he)&&_&&V(u,["Block","ElementNode","Template"]))return"";_&&Me?(Ie=Math.min(Me,B),ct=0):(ye(u,["BlockStatement","ElementNode"])&&(ct=Math.max(ct,1)),le(u,["BlockStatement","ElementNode"])&&(Ie=Math.max(Ie,1)));let rt="",sr="";return ct===0&&ye(u,["MustacheStatement"])&&(sr=" "),Ie===0&&le(u,["MustacheStatement"])&&(rt=" "),Y&&(Ie=0,rt=""),he&&(ct=0,sr=""),R=R.replace(/^[\t\n\f\r ]+/g,rt).replace(/[\t\n\f\r ]+$/,sr),[...Xt(Ie),y(Jt(R)),...Xt(ct)]}case"MustacheCommentStatement":{let R=Q(D),j=ce(D),_=p.originalText.charAt(R+2)==="~",Y=p.originalText.charAt(j-3)==="~",he=D.value.includes("}}")?"--":"";return["{{",_?"~":"","!",he,D.value,he,Y?"~":"","}}"]}case"PathExpression":return D.original;case"BooleanLiteral":return String(D.value);case"CommentStatement":return[""];case"StringLiteral":{if(Mr(u)){let R=p.singleQuote?'"':"'";return Wt(D.value,R)}return Wt(D.value,P)}case"NumberLiteral":return String(D.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(D.type))}}function Z(u,p){return Q(u)-Q(p)}function se(u,p){let f=u.getValue(),D=["attributes","modifiers","comments"].filter(R=>$(f[R])),P=D.flatMap(R=>f[R]).sort(Z);for(let R of D)u.each(j=>{let _=P.indexOf(j.getValue());P.splice(_,1,[O,p()])},R);return $(f.blockParams)&&P.push(O,s(f)),["<",f.tag,S(P),pe(f)]}function ae(u,p,f){let D=u.getValue().children.every(P=>te(P));return p.htmlWhitespaceSensitivity==="ignore"&&D?"":u.map((P,R)=>{let j=f();return R===0&&p.htmlWhitespaceSensitivity==="ignore"?[G,j]:j},"children")}function pe(u){return W(u)?A([G,"/>"],[" />",G]):A([G,">"],">")}function De(u){let p=u.escaped===!1?"{{{":"{{",f=u.strip&&u.strip.open?"~":"";return[p,f]}function we(u){let p=u.escaped===!1?"}}}":"}}";return[u.strip&&u.strip.close?"~":"",p]}function Se(u){let p=De(u),f=u.openStrip.open?"~":"";return[p,f,"#"]}function _e(u){let p=we(u);return[u.openStrip.close?"~":"",p]}function Ge(u){let p=De(u),f=u.closeStrip.open?"~":"";return[p,f,"/"]}function xe(u){let p=we(u);return[u.closeStrip.close?"~":"",p]}function nt(u){let p=De(u),f=u.inverseStrip.open?"~":"";return[p,f]}function Fe(u){let p=we(u);return[u.inverseStrip.close?"~":"",p]}function be(u,p){let f=u.getValue(),D=[],P=n(u,p);return P&&D.push(C(P)),$(f.program.blockParams)&&D.push(s(f.program)),C([Se(f),Ir(u,p),D.length>0?S([O,k(O,D)]):"",G,_e(f)])}function st(u,p){return[p.htmlWhitespaceSensitivity==="ignore"?x:"",nt(u),"else",Fe(u)]}function At(u,p,f){let D=u.getValue(),P=u.getParentNode(1);return C([nt(P),["else"," ",f],S([O,C(n(u,p)),...$(D.program.blockParams)?[O,s(D.program)]:[]]),G,Fe(P)])}function lt(u,p,f){let D=u.getValue();return f.htmlWhitespaceSensitivity==="ignore"?[Nt(D)?G:x,Ge(D),p("path"),xe(D)]:[Ge(D),p("path"),xe(D)]}function Nt(u){return Oe(u,["BlockStatement"])&&u.program.body.every(p=>te(p))}function Le(u){return Ze(u)&&u.inverse.body.length===1&&Oe(u.inverse.body[0],["BlockStatement"])&&u.inverse.body[0].path.parts[0]===u.path.parts[0]}function Ze(u){return Oe(u,["BlockStatement"])&&u.inverse}function kt(u,p,f){let D=u.getValue();if(Nt(D))return"";let P=p("program");return f.htmlWhitespaceSensitivity==="ignore"?S([x,P]):S(P)}function Pt(u,p,f){let D=u.getValue(),P=p("inverse"),R=f.htmlWhitespaceSensitivity==="ignore"?[x,P]:P;return Le(D)?R:Ze(D)?[st(D,f),S(R)]:""}function Jt(u){return z(k(O,tt(u)))}function tt(u){return u.split(/[\t\n\f\r ]+/)}function He(u){for(let p=0;p<2;p++){let f=u.getParentNode(p);if(f&&f.type==="AttrNode")return f.name.toLowerCase()}}function ot(u){return u=typeof u=="string"?u:"",u.split(` +`).length-1}function Tt(u){u=typeof u=="string"?u:"";let p=(u.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return ot(p)}function Bt(u){u=typeof u=="string"?u:"";let p=(u.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return ot(p)}function Xt(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(u,B)}).fill(x)}function Wt(u,p){let{quote:f,regex:D}=U(u,p);return[f,u.replace(D,`\\${f}`),f]}function Mr(u){let p=0,f=u.getParentNode(p);for(;f&&Oe(f,["SubExpression"]);)p++,f=u.getParentNode(p);return!!(f&&Oe(u.getParentNode(p+1),["ConcatStatement"])&&Oe(u.getParentNode(p+2),["AttrNode"]))}function hn(u,p){let f=Ir(u,p),D=n(u,p);return D?S([f,O,C(D)]):f}function on(u,p){let f=Ir(u,p),D=n(u,p);return D?[S([f,O,D]),G]:f}function Ir(u,p){return p("path")}function n(u,p){let f=u.getValue(),D=[];if(f.params.length>0){let P=u.map(p,"params");D.push(...P)}if(f.hash&&f.hash.pairs.length>0){let P=p("hash");D.push(P)}return D.length===0?"":k(O,D)}function s(u){return["as |",u.blockParams.join(" "),"|"]}c.exports={print:X,massageAstNode:ge}}}),Co=Ue({"src/language-handlebars/parsers.js"(){Je()}}),rc=Ue({"node_modules/linguist-languages/data/Handlebars.json"(a,c){c.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),Ou=Ue({"src/language-handlebars/index.js"(a,c){Je();var m=_s(),y=Lu(),C=Co(),x=[m(rc(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],A={glimmer:y};c.exports={languages:x,printers:A,parsers:C}}}),Rp=Ue({"src/language-graphql/pragma.js"(a,c){Je();function m(C){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(C)}function y(C){return`# @format + +`+C}c.exports={hasPragma:m,insertPragma:y}}}),Mu=Ue({"src/language-graphql/loc.js"(a,c){Je();function m(C){return typeof C.start=="number"?C.start:C.loc&&C.loc.start}function y(C){return typeof C.end=="number"?C.end:C.loc&&C.loc.end}c.exports={locStart:m,locEnd:y}}}),_i=Ue({"src/language-graphql/printer-graphql.js"(a,c){Je();var{builders:{join:m,hardline:y,line:C,softline:x,group:A,indent:S,ifBreak:k}}=Gr(),{isNextLineEmpty:O,isNonEmptyArray:G}=Tn(),{insertPragma:z}=Rp(),{locStart:q,locEnd:U}=Mu();function $(ye,Oe,V){let le=ye.getValue();if(!le)return"";if(typeof le=="string")return le;switch(le.kind){case"Document":{let W=[];return ye.each((te,B,X)=>{W.push(V()),B!==X.length-1&&(W.push(y),O(Oe.originalText,te.getValue(),U)&&W.push(y))},"definitions"),[...W,y]}case"OperationDefinition":{let W=Oe.originalText[q(le)]!=="{",te=!!le.name;return[W?le.operation:"",W&&te?[" ",V("name")]:"",W&&!te&&G(le.variableDefinitions)?" ":"",G(le.variableDefinitions)?A(["(",S([x,m([k("",", "),x],ye.map(V,"variableDefinitions"))]),x,")"]):"",Q(ye,V,le),le.selectionSet?!W&&!te?"":" ":"",V("selectionSet")]}case"FragmentDefinition":return["fragment ",V("name"),G(le.variableDefinitions)?A(["(",S([x,m([k("",", "),x],ye.map(V,"variableDefinitions"))]),x,")"]):""," on ",V("typeCondition"),Q(ye,V,le)," ",V("selectionSet")];case"SelectionSet":return["{",S([y,m(y,ce(ye,Oe,V,"selections"))]),y,"}"];case"Field":return A([le.alias?[V("alias"),": "]:"",V("name"),le.arguments.length>0?A(["(",S([x,m([k("",", "),x],ce(ye,Oe,V,"arguments"))]),x,")"]):"",Q(ye,V,le),le.selectionSet?" ":"",V("selectionSet")]);case"Name":return le.value;case"StringValue":{if(le.block){let W=le.value.replace(/"""/g,"\\$&").split(` +`);return W.length===1&&(W[0]=W[0].trim()),W.every(te=>te==="")&&(W.length=0),m(y,['"""',...W,'"""'])}return['"',le.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return le.value;case"BooleanValue":return le.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",V("name")];case"ListValue":return A(["[",S([x,m([k("",", "),x],ye.map(V,"values"))]),x,"]"]);case"ObjectValue":return A(["{",Oe.bracketSpacing&&le.fields.length>0?" ":"",S([x,m([k("",", "),x],ye.map(V,"fields"))]),x,k("",Oe.bracketSpacing&&le.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[V("name"),": ",V("value")];case"Directive":return["@",V("name"),le.arguments.length>0?A(["(",S([x,m([k("",", "),x],ce(ye,Oe,V,"arguments"))]),x,")"]):""];case"NamedType":return V("name");case"VariableDefinition":return[V("variable"),": ",V("type"),le.defaultValue?[" = ",V("defaultValue")]:"",Q(ye,V,le)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[V("description"),le.description?y:"",le.kind==="ObjectTypeExtension"?"extend ":"","type ",V("name"),le.interfaces.length>0?[" implements ",...me(ye,Oe,V)]:"",Q(ye,V,le),le.fields.length>0?[" {",S([y,m(y,ce(ye,Oe,V,"fields"))]),y,"}"]:""];case"FieldDefinition":return[V("description"),le.description?y:"",V("name"),le.arguments.length>0?A(["(",S([x,m([k("",", "),x],ce(ye,Oe,V,"arguments"))]),x,")"]):"",": ",V("type"),Q(ye,V,le)];case"DirectiveDefinition":return[V("description"),le.description?y:"","directive ","@",V("name"),le.arguments.length>0?A(["(",S([x,m([k("",", "),x],ce(ye,Oe,V,"arguments"))]),x,")"]):"",le.repeatable?" repeatable":""," on ",m(" | ",ye.map(V,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[V("description"),le.description?y:"",le.kind==="EnumTypeExtension"?"extend ":"","enum ",V("name"),Q(ye,V,le),le.values.length>0?[" {",S([y,m(y,ce(ye,Oe,V,"values"))]),y,"}"]:""];case"EnumValueDefinition":return[V("description"),le.description?y:"",V("name"),Q(ye,V,le)];case"InputValueDefinition":return[V("description"),le.description?le.description.block?y:C:"",V("name"),": ",V("type"),le.defaultValue?[" = ",V("defaultValue")]:"",Q(ye,V,le)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[V("description"),le.description?y:"",le.kind==="InputObjectTypeExtension"?"extend ":"","input ",V("name"),Q(ye,V,le),le.fields.length>0?[" {",S([y,m(y,ce(ye,Oe,V,"fields"))]),y,"}"]:""];case"SchemaExtension":return["extend schema",Q(ye,V,le),...le.operationTypes.length>0?[" {",S([y,m(y,ce(ye,Oe,V,"operationTypes"))]),y,"}"]:[]];case"SchemaDefinition":return[V("description"),le.description?y:"","schema",Q(ye,V,le)," {",le.operationTypes.length>0?S([y,m(y,ce(ye,Oe,V,"operationTypes"))]):"",y,"}"];case"OperationTypeDefinition":return[V("operation"),": ",V("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[V("description"),le.description?y:"",le.kind==="InterfaceTypeExtension"?"extend ":"","interface ",V("name"),le.interfaces.length>0?[" implements ",...me(ye,Oe,V)]:"",Q(ye,V,le),le.fields.length>0?[" {",S([y,m(y,ce(ye,Oe,V,"fields"))]),y,"}"]:""];case"FragmentSpread":return["...",V("name"),Q(ye,V,le)];case"InlineFragment":return["...",le.typeCondition?[" on ",V("typeCondition")]:"",Q(ye,V,le)," ",V("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return A([V("description"),le.description?y:"",A([le.kind==="UnionTypeExtension"?"extend ":"","union ",V("name"),Q(ye,V,le),le.types.length>0?[" =",k(""," "),S([k([C," "]),m([C,"| "],ye.map(V,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[V("description"),le.description?y:"",le.kind==="ScalarTypeExtension"?"extend ":"","scalar ",V("name"),Q(ye,V,le)];case"NonNullType":return[V("type"),"!"];case"ListType":return["[",V("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(le.kind))}}function Q(ye,Oe,V){if(V.directives.length===0)return"";let le=m(C,ye.map(Oe,"directives"));return V.kind==="FragmentDefinition"||V.kind==="OperationDefinition"?A([C,le]):[" ",A(S([x,le]))]}function ce(ye,Oe,V,le){return ye.map((W,te,B)=>{let X=V();return teV(X),"interfaces");for(let X=0;Xle.value.trim()==="prettier-ignore")}c.exports={print:$,massageAstNode:ue,hasPrettierIgnore:Ee,insertPragma:z,printComment:ne,canAttachComment:ge}}}),tu=Ue({"src/language-graphql/options.js"(a,c){Je();var m=Ma();c.exports={bracketSpacing:m.bracketSpacing}}}),Bc=Ue({"src/language-graphql/parsers.js"(){Je()}}),qs=Ue({"node_modules/linguist-languages/data/GraphQL.json"(a,c){c.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),Rc=Ue({"src/language-graphql/index.js"(a,c){Je();var m=_s(),y=_i(),C=tu(),x=Bc(),A=[m(qs(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],S={graphql:y};c.exports={languages:A,options:C,printers:S,parsers:x}}}),xo=Ue({"node_modules/collapse-white-space/index.js"(a,c){Je(),c.exports=m;function m(y){return String(y).replace(/\s+/g," ")}}}),Bu=Ue({"src/language-markdown/loc.js"(a,c){Je();function m(C){return C.position.start.offset}function y(C){return C.position.end.offset}c.exports={locStart:m,locEnd:y}}}),sn=Ue({"src/language-markdown/constants.evaluate.js"(a,c){c.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\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\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\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-\\u2e4f\\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\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),El=Ue({"src/language-markdown/utils.js"(a,c){Je();var{getLast:m}=Tn(),{locStart:y,locEnd:C}=Bu(),{cjkPattern:x,kPattern:A,punctuationPattern:S}=sn(),k=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],O=[...k,"tableCell","paragraph","heading"],G=new RegExp(A),z=new RegExp(S);function q(ne,me){let ue="non-cjk",Ee="cj-letter",ye="k-letter",Oe="cjk-punctuation",V=[],le=(me.proseWrap==="preserve"?ne:ne.replace(new RegExp(`(${x}) +(${x})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[te,B]of le.entries()){if(te%2===1){V.push({type:"whitespace",value:/\n/.test(B)?` +`:" "});continue}if((te===0||te===le.length-1)&&B==="")continue;let X=B.split(new RegExp(`(${x})`));for(let[Z,se]of X.entries())if(!((Z===0||Z===X.length-1)&&se==="")){if(Z%2===0){se!==""&&W({type:"word",value:se,kind:ue,hasLeadingPunctuation:z.test(se[0]),hasTrailingPunctuation:z.test(m(se))});continue}W(z.test(se)?{type:"word",value:se,kind:Oe,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:se,kind:G.test(se)?ye:Ee,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return V;function W(te){let B=m(V);B&&B.type==="word"&&(B.kind===ue&&te.kind===Ee&&!B.hasTrailingPunctuation||B.kind===Ee&&te.kind===ue&&!te.hasLeadingPunctuation?V.push({type:"whitespace",value:" "}):!X(ue,Oe)&&![B.value,te.value].some(Z=>/\u3000/.test(Z))&&V.push({type:"whitespace",value:""})),V.push(te);function X(Z,se){return B.kind===Z&&te.kind===se||B.kind===se&&te.kind===Z}}}function U(ne,me){let[,ue,Ee,ye]=me.slice(ne.position.start.offset,ne.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:ue,marker:Ee,leadingSpaces:ye}}function $(ne,me){if(!ne.ordered||ne.children.length<2)return!1;let ue=Number(U(ne.children[0],me.originalText).numberText),Ee=Number(U(ne.children[1],me.originalText).numberText);if(ue===0&&ne.children.length>2){let ye=Number(U(ne.children[2],me.originalText).numberText);return Ee===1&&ye===1}return Ee===1}function Q(ne,me){let{value:ue}=ne;return ne.position.end.offset===me.length&&ue.endsWith(` +`)&&me.endsWith(` +`)?ue.slice(0,-1):ue}function ce(ne,me){return function ue(Ee,ye,Oe){let V=Object.assign({},me(Ee,ye,Oe));return V.children&&(V.children=V.children.map((le,W)=>ue(le,W,[V,...Oe]))),V}(ne,null,[])}function ge(ne){if((ne==null?void 0:ne.type)!=="link"||ne.children.length!==1)return!1;let[me]=ne.children;return y(ne)===y(me)&&C(ne)===C(me)}c.exports={mapAst:ce,splitText:q,punctuationPattern:S,getFencedCodeBlockValue:Q,getOrderedListItemInfo:U,hasGitDiffFriendlyOrderedList:$,INLINE_NODE_TYPES:k,INLINE_NODE_WRAPPER_TYPES:O,isAutolink:ge}}}),Dl=Ue({"src/language-markdown/embed.js"(a,c){Je();var{inferParserByLanguage:m,getMaxContinuousCount:y}=Tn(),{builders:{hardline:C,markAsRoot:x},utils:{replaceEndOfLine:A}}=Gr(),S=dl(),{getFencedCodeBlockValue:k}=El();function O(G,z,q,U){let $=G.getValue();if($.type==="code"&&$.lang!==null){let Q=m($.lang,U);if(Q){let ce=U.__inJsTemplate?"~":"`",ge=ce.repeat(Math.max(3,y($.value,ce)+1)),ne={parser:Q};$.lang==="tsx"&&(ne.filepath="dummy.tsx");let me=q(k($,U.originalText),ne,{stripTrailingHardline:!0});return x([ge,$.lang,$.meta?" "+$.meta:"",C,A(me),C,ge])}}switch($.type){case"front-matter":return S($,q);case"importExport":return[q($.value,{parser:"babel"},{stripTrailingHardline:!0}),C];case"jsx":return q(`<$>${$.value}`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}c.exports=O}}),Ra=Ue({"src/language-markdown/pragma.js"(a,c){Je();var m=Qo(),y=["format","prettier"];function C(x){let A=`@(${y.join("|")})`,S=new RegExp([``,`{\\s*\\/\\*\\s*${A}\\s*\\*\\/\\s*}`,``].join("|"),"m"),k=x.match(S);return(k==null?void 0:k.index)===0}c.exports={startWithPragma:C,hasPragma:x=>C(m(x).content.trimStart()),insertPragma:x=>{let A=m(x),S=``;return A.frontMatter?`${A.frontMatter.raw} + +${S} + +${A.content}`:`${S} + +${A.content}`}}}}),jc=Ue({"src/language-markdown/print-preprocess.js"(a,c){Je();var m=qn(),{getOrderedListItemInfo:y,mapAst:C,splitText:x}=El(),A=/^.$/su;function S(ge,ne){return ge=G(ge,ne),ge=U(ge),ge=O(ge,ne),ge=Q(ge,ne),ge=ce(ge,ne),ge=$(ge,ne),ge=k(ge),ge=z(ge),ge}function k(ge){return C(ge,ne=>ne.type!=="import"&&ne.type!=="export"?ne:Object.assign(Object.assign({},ne),{},{type:"importExport"}))}function O(ge,ne){return C(ge,me=>me.type!=="inlineCode"||ne.proseWrap==="preserve"?me:Object.assign(Object.assign({},me),{},{value:me.value.replace(/\s+/g," ")}))}function G(ge,ne){return C(ge,me=>me.type!=="text"||me.value==="*"||me.value==="_"||!A.test(me.value)||me.position.end.offset-me.position.start.offset===me.value.length?me:Object.assign(Object.assign({},me),{},{value:ne.originalText.slice(me.position.start.offset,me.position.end.offset)}))}function z(ge){return q(ge,(ne,me)=>ne.type==="importExport"&&me.type==="importExport",(ne,me)=>({type:"importExport",value:ne.value+` + +`+me.value,position:{start:ne.position.start,end:me.position.end}}))}function q(ge,ne,me){return C(ge,ue=>{if(!ue.children)return ue;let Ee=ue.children.reduce((ye,Oe)=>{let V=m(ye);return V&&ne(V,Oe)?ye.splice(-1,1,me(V,Oe)):ye.push(Oe),ye},[]);return Object.assign(Object.assign({},ue),{},{children:Ee})})}function U(ge){return q(ge,(ne,me)=>ne.type==="text"&&me.type==="text",(ne,me)=>({type:"text",value:ne.value+me.value,position:{start:ne.position.start,end:me.position.end}}))}function $(ge,ne){return C(ge,(me,ue,Ee)=>{let[ye]=Ee;if(me.type!=="text")return me;let{value:Oe}=me;return ye.type==="paragraph"&&(ue===0&&(Oe=Oe.trimStart()),ue===ye.children.length-1&&(Oe=Oe.trimEnd())),{type:"sentence",position:me.position,children:x(Oe,ne)}})}function Q(ge,ne){return C(ge,(me,ue,Ee)=>{if(me.type==="code"){let ye=/^\n?(?: {4,}|\t)/.test(ne.originalText.slice(me.position.start.offset,me.position.end.offset));if(me.isIndented=ye,ye)for(let Oe=0;Oe{if(Ee.type==="list"&&Ee.children.length>0){for(let V=0;V1)return!0;let V=me(ye);if(V===-1)return!1;if(Ee.children.length===1)return V%ne.tabWidth===0;let le=me(Oe);return V!==le?!1:V%ne.tabWidth===0?!0:y(Oe,ne.originalText).leadingSpaces.length>1}}c.exports=S}}),Tl=Ue({"src/language-markdown/clean.js"(a,c){Je();var m=xo(),{isFrontMatterNode:y}=Tn(),{startWithPragma:C}=Ra(),x=new Set(["position","raw"]);function A(S,k,O){if((S.type==="front-matter"||S.type==="code"||S.type==="yaml"||S.type==="import"||S.type==="export"||S.type==="jsx")&&delete k.value,S.type==="list"&&delete k.isAligned,(S.type==="list"||S.type==="listItem")&&(delete k.spread,delete k.loose),S.type==="text"||(S.type==="inlineCode"&&(k.value=S.value.replace(/[\t\n ]+/g," ")),S.type==="wikiLink"&&(k.value=S.value.trim().replace(/[\t\n]+/g," ")),(S.type==="definition"||S.type==="linkReference"||S.type==="imageReference")&&(k.label=m(S.label)),(S.type==="definition"||S.type==="link"||S.type==="image")&&S.title&&(k.title=S.title.replace(/\\(["')])/g,"$1")),O&&O.type==="root"&&O.children.length>0&&(O.children[0]===S||y(O.children[0])&&O.children[1]===S)&&S.type==="html"&&C(S.value)))return null}A.ignoredProperties=x,c.exports=A}}),Hc=Ue({"src/language-markdown/printer-markdown.js"(a,c){Je();var m=xo(),{getLast:y,getMinNotPresentContinuousCount:C,getMaxContinuousCount:x,getStringWidth:A,isNonEmptyArray:S}=Tn(),{builders:{breakParent:k,join:O,line:G,literalline:z,markAsRoot:q,hardline:U,softline:$,ifBreak:Q,fill:ce,align:ge,indent:ne,group:me,hardlineWithoutBreakParent:ue},utils:{normalizeDoc:Ee,replaceTextEndOfLine:ye},printer:{printDocToString:Oe}}=Gr(),V=Dl(),{insertPragma:le}=Ra(),{locStart:W,locEnd:te}=Bu(),B=jc(),X=Tl(),{getFencedCodeBlockValue:Z,hasGitDiffFriendlyOrderedList:se,splitText:ae,punctuationPattern:pe,INLINE_NODE_TYPES:De,INLINE_NODE_WRAPPER_TYPES:we,isAutolink:Se}=El(),_e=new Set(["importExport"]),Ge=["heading","tableCell","link","wikiLink"],xe=new Set(["listItem","definition","footnoteDefinition"]);function nt(s,u,p){let f=s.getValue();if(Xt(s))return ae(u.originalText.slice(f.position.start.offset,f.position.end.offset),u).map(D=>D.type==="word"?D.value:D.value===""?"":Le(s,D.value,u));switch(f.type){case"front-matter":return u.originalText.slice(f.position.start.offset,f.position.end.offset);case"root":return f.children.length===0?"":[Ee(kt(s,u,p)),_e.has(tt(f).type)?"":U];case"paragraph":return Pt(s,u,p,{postprocessor:ce});case"sentence":return Pt(s,u,p);case"word":{let D=f.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${pe})(_+)`,`(_+)(${pe}|$)`].join("|"),"g"),(j,_,Y,he,Me)=>(Y?`${_}${Y}`:`${he}${Me}`).replace(/_/g,"\\_")),P=(j,_,Y)=>j.type==="sentence"&&Y===0,R=(j,_,Y)=>Se(j.children[Y-1]);return D!==f.value&&(s.match(void 0,P,R)||s.match(void 0,P,(j,_,Y)=>j.type==="emphasis"&&Y===0,R))&&(D=D.replace(/^(\\?[*_])+/,j=>j.replace(/\\/g,""))),D}case"whitespace":{let D=s.getParentNode(),P=D.children.indexOf(f),R=D.children[P+1],j=R&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(R.value)?"never":u.proseWrap;return Le(s,f.value,{proseWrap:j})}case"emphasis":{let D;if(Se(f.children[0]))D=u.originalText[f.position.start.offset];else{let P=s.getParentNode(),R=P.children.indexOf(f),j=P.children[R-1],_=P.children[R+1];D=j&&j.type==="sentence"&&j.children.length>0&&y(j.children).type==="word"&&!y(j.children).hasTrailingPunctuation||_&&_.type==="sentence"&&_.children.length>0&&_.children[0].type==="word"&&!_.children[0].hasLeadingPunctuation||Nt(s,"emphasis")?"*":"_"}return[D,Pt(s,u,p),D]}case"strong":return["**",Pt(s,u,p),"**"];case"delete":return["~~",Pt(s,u,p),"~~"];case"inlineCode":{let D=C(f.value,"`"),P="`".repeat(D||1),R=D&&!/^\s/.test(f.value)?" ":"";return[P,R,f.value,R,P]}case"wikiLink":{let D="";return u.proseWrap==="preserve"?D=f.value:D=f.value.replace(/[\t\n]+/g," "),["[[",D,"]]"]}case"link":switch(u.originalText[f.position.start.offset]){case"<":{let D="mailto:";return["<",f.url.startsWith(D)&&u.originalText.slice(f.position.start.offset+1,f.position.start.offset+1+D.length)!==D?f.url.slice(D.length):f.url,">"]}case"[":return["[",Pt(s,u,p),"](",Wt(f.url,")"),Mr(f.title,u),")"];default:return u.originalText.slice(f.position.start.offset,f.position.end.offset)}case"image":return["![",f.alt||"","](",Wt(f.url,")"),Mr(f.title,u),")"];case"blockquote":return["> ",ge("> ",Pt(s,u,p))];case"heading":return["#".repeat(f.depth)+" ",Pt(s,u,p)];case"code":{if(f.isIndented){let R=" ".repeat(4);return ge(R,[R,...ye(f.value,U)])}let D=u.__inJsTemplate?"~":"`",P=D.repeat(Math.max(3,x(f.value,D)+1));return[P,f.lang||"",f.meta?" "+f.meta:"",U,...ye(Z(f,u.originalText),U),U,P]}case"html":{let D=s.getParentNode(),P=D.type==="root"&&y(D.children)===f?f.value.trimEnd():f.value,R=/^$/s.test(P);return ye(P,R?U:q(z))}case"list":{let D=st(f,s.getParentNode()),P=se(f,u);return Pt(s,u,p,{processor:(R,j)=>{let _=he(),Y=R.getValue();if(Y.children.length===2&&Y.children[1].type==="html"&&Y.children[0].position.start.column!==Y.children[1].position.start.column)return[_,Fe(R,u,p,_)];return[_,ge(" ".repeat(_.length),Fe(R,u,p,_))];function he(){let Me=f.ordered?(j===0?f.start:P?1:f.start+j)+(D%2===0?". ":") "):D%2===0?"- ":"* ";return f.isAligned||f.hasIndentedCodeblock?be(Me,u):Me}}})}case"thematicBreak":{let D=lt(s,"list");return D===-1?"---":st(s.getParentNode(D),s.getParentNode(D+1))%2===0?"***":"---"}case"linkReference":return["[",Pt(s,u,p),"]",f.referenceType==="full"?Ir(f):f.referenceType==="collapsed"?"[]":""];case"imageReference":switch(f.referenceType){case"full":return["![",f.alt||"","]",Ir(f)];default:return["![",f.alt,"]",f.referenceType==="collapsed"?"[]":""]}case"definition":{let D=u.proseWrap==="always"?G:" ";return me([Ir(f),":",ne([D,Wt(f.url),f.title===null?"":[D,Mr(f.title,u,!1)]])])}case"footnote":return["[^",Pt(s,u,p),"]"];case"footnoteReference":return n(f);case"footnoteDefinition":{let D=s.getParentNode().children[s.getName()+1],P=f.children.length===1&&f.children[0].type==="paragraph"&&(u.proseWrap==="never"||u.proseWrap==="preserve"&&f.children[0].position.start.line===f.children[0].position.end.line);return[n(f),": ",P?Pt(s,u,p):me([ge(" ".repeat(4),Pt(s,u,p,{processor:(R,j)=>j===0?me([$,p()]):p()})),D&&D.type==="footnoteDefinition"?$:""])]}case"table":return Ze(s,u,p);case"tableCell":return Pt(s,u,p);case"break":return/\s/.test(u.originalText[f.position.start.offset])?[" ",q(z)]:["\\",U];case"liquidNode":return ye(f.value,U);case"importExport":return[f.value,U];case"esComment":return["{/* ",f.value," */}"];case"jsx":return f.value;case"math":return["$$",U,f.value?[...ye(f.value,U),U]:"","$$"];case"inlineMath":return u.originalText.slice(W(f),te(f));case"tableRow":case"listItem":default:throw new Error(`Unknown markdown type ${JSON.stringify(f.type)}`)}}function Fe(s,u,p,f){let D=s.getValue(),P=D.checked===null?"":D.checked?"[x] ":"[ ] ";return[P,Pt(s,u,p,{processor:(R,j)=>{if(j===0&&R.getValue().type!=="list")return ge(" ".repeat(P.length),p());let _=" ".repeat(hn(u.tabWidth-f.length,0,3));return[_,ge(_,p())]}})]}function be(s,u){let p=f();return s+" ".repeat(p>=4?0:p);function f(){let D=s.length%u.tabWidth;return D===0?0:u.tabWidth-D}}function st(s,u){return At(s,u,p=>p.ordered===s.ordered)}function At(s,u,p){let f=-1;for(let D of u.children)if(D.type===s.type&&p(D)?f++:f=-1,D===s)return f}function lt(s,u){let p=Array.isArray(u)?u:[u],f=-1,D;for(;D=s.getParentNode(++f);)if(p.includes(D.type))return f;return-1}function Nt(s,u){let p=lt(s,u);return p===-1?null:s.getParentNode(p)}function Le(s,u,p){if(p.proseWrap==="preserve"&&u===` +`)return U;let f=p.proseWrap==="always"&&!Nt(s,Ge);return u!==""?f?G:" ":f?$:""}function Ze(s,u,p){let f=s.getValue(),D=[],P=s.map(Me=>Me.map((Ie,ct)=>{let rt=Oe(p(),u).formatted,sr=A(rt);return D[ct]=Math.max(D[ct]||3,sr),{text:rt,width:sr}},"children"),"children"),R=_(!1);if(u.proseWrap!=="never")return[k,R];let j=_(!0);return[k,me(Q(j,R))];function _(Me){let Ie=[he(P[0],Me),Y(Me)];return P.length>1&&Ie.push(O(ue,P.slice(1).map(ct=>he(ct,Me)))),O(ue,Ie)}function Y(Me){return`| ${D.map((Ie,ct)=>{let rt=f.align[ct],sr=rt==="center"||rt==="left"?":":"-",Ot=rt==="center"||rt==="right"?":":"-",fr=Me?"-":"-".repeat(Ie-2);return`${sr}${fr}${Ot}`}).join(" | ")} |`}function he(Me,Ie){return`| ${Me.map((ct,rt)=>{let{text:sr,width:Ot}=ct;if(Ie)return sr;let fr=D[rt]-Ot,It=f.align[rt],Zt=0;It==="right"?Zt=fr:It==="center"&&(Zt=Math.floor(fr/2));let hr=fr-Zt;return`${" ".repeat(Zt)}${sr}${" ".repeat(hr)}`}).join(" | ")} |`}}function kt(s,u,p){let f=[],D=null,{children:P}=s.getValue();for(let[R,j]of P.entries())switch(He(j)){case"start":D===null&&(D={index:R,offset:j.position.end.offset});break;case"end":D!==null&&(f.push({start:D,end:{index:R,offset:j.position.start.offset}}),D=null);break}return Pt(s,u,p,{processor:(R,j)=>{if(f.length>0){let _=f[0];if(j===_.start.index)return[Jt(P[_.start.index]),u.originalText.slice(_.start.offset,_.end.offset),Jt(P[_.end.index])];if(_.start.index3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:D}=f,P=f.processor||(()=>p()),R=s.getValue(),j=[],_;return s.each((Y,he)=>{let Me=Y.getValue(),Ie=P(Y,he);if(Ie!==!1){let ct={parts:j,prevNode:_,parentNode:R,options:u};ot(Me,ct)&&(j.push(U),_&&_e.has(_.type)||(Tt(Me,ct)||Bt(Me,ct))&&j.push(U),Bt(Me,ct)&&j.push(U)),j.push(Ie),_=Me}},"children"),D?D(j):j}function Jt(s){if(s.type==="html")return s.value;if(s.type==="paragraph"&&Array.isArray(s.children)&&s.children.length===1&&s.children[0].type==="esComment")return["{/* ",s.children[0].value," */}"]}function tt(s){let u=s;for(;S(u.children);)u=y(u.children);return u}function He(s){let u;if(s.type==="html")u=s.value.match(/^$/);else{let p;s.type==="esComment"?p=s:s.type==="paragraph"&&s.children.length===1&&s.children[0].type==="esComment"&&(p=s.children[0]),p&&(u=p.value.match(/^prettier-ignore(?:-(start|end))?$/))}return u?u[1]||"next":!1}function ot(s,u){let p=u.parts.length===0,f=De.includes(s.type),D=s.type==="html"&&we.includes(u.parentNode.type);return!p&&!f&&!D}function Tt(s,u){var p,f,D;let P=(u.prevNode&&u.prevNode.type)===s.type&&xe.has(s.type),R=u.parentNode.type==="listItem"&&!u.parentNode.loose,j=((p=u.prevNode)===null||p===void 0?void 0:p.type)==="listItem"&&u.prevNode.loose,_=He(u.prevNode)==="next",Y=s.type==="html"&&((f=u.prevNode)===null||f===void 0?void 0:f.type)==="html"&&u.prevNode.position.end.line+1===s.position.start.line,he=s.type==="html"&&u.parentNode.type==="listItem"&&((D=u.prevNode)===null||D===void 0?void 0:D.type)==="paragraph"&&u.prevNode.position.end.line+1===s.position.start.line;return j||!(P||R||_||Y||he)}function Bt(s,u){let p=u.prevNode&&u.prevNode.type==="list",f=s.type==="code"&&s.isIndented;return p&&f}function Xt(s){let u=Nt(s,["linkReference","imageReference"]);return u&&(u.type!=="linkReference"||u.referenceType!=="full")}function Wt(s){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=[" ",...Array.isArray(u)?u:[u]];return new RegExp(p.map(f=>`\\${f}`).join("|")).test(s)?`<${s}>`:s}function Mr(s,u){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!s)return"";if(p)return" "+Mr(s,u,!1);if(s=s.replace(/\\(["')])/g,"$1"),s.includes('"')&&s.includes("'")&&!s.includes(")"))return`(${s})`;let f=s.split("'").length-1,D=s.split('"').length-1,P=f>D?'"':D>f||u.singleQuote?"'":'"';return s=s.replace(/\\/,"\\\\"),s=s.replace(new RegExp(`(${P})`,"g"),"\\$1"),`${P}${s}${P}`}function hn(s,u,p){return sp?p:s}function on(s){let u=Number(s.getName());if(u===0)return!1;let p=s.getParentNode().children[u-1];return He(p)==="next"}function Ir(s){return`[${m(s.label)}]`}function n(s){return`[^${s.label}]`}c.exports={preprocess:B,print:nt,embed:V,massageAstNode:X,hasPrettierIgnore:on,insertPragma:le}}}),Ru=Ue({"src/language-markdown/options.js"(a,c){Je();var m=Ma();c.exports={proseWrap:m.proseWrap,singleQuote:m.singleQuote}}}),jp=Ue({"src/language-markdown/parsers.js"(){Je()}}),ms=Ue({"node_modules/linguist-languages/data/Markdown.json"(a,c){c.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),pa=Ue({"src/language-markdown/index.js"(a,c){Je();var m=_s(),y=Hc(),C=Ru(),x=jp(),A=[m(ms(),k=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...k.filenames,"README"],extensions:k.extensions.filter(O=>O!==".mdx")})),m(ms(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],S={mdast:y};c.exports={languages:A,options:C,printers:S,parsers:x}}}),bo=Ue({"src/language-html/clean.js"(a,c){Je();var{isFrontMatterNode:m}=Tn(),y=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function C(x,A){if(x.type==="text"||x.type==="comment"||m(x)||x.type==="yaml"||x.type==="toml")return null;x.type==="attribute"&&delete A.value,x.type==="docType"&&delete A.value}C.ignoredProperties=y,c.exports=C}}),Uc=Ue({"src/language-html/constants.evaluate.js"(a,c){c.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),ju=Ue({"src/language-html/utils/is-unknown-namespace.js"(a,c){Je();function m(y){return y.type==="element"&&!y.hasExplicitNamespace&&!["html","svg"].includes(y.namespace)}c.exports=m}}),Ks=Ue({"src/language-html/utils/index.js"(a,c){Je();var{inferParserByLanguage:m,isFrontMatterNode:y}=Tn(),{builders:{line:C,hardline:x,join:A},utils:{getDocParts:S,replaceTextEndOfLine:k}}=Gr(),{CSS_DISPLAY_TAGS:O,CSS_DISPLAY_DEFAULT:G,CSS_WHITE_SPACE_TAGS:z,CSS_WHITE_SPACE_DEFAULT:q}=Uc(),U=ju(),$=new Set([" ",` +`,"\f","\r"," "]),Q=_=>_.replace(/^[\t\n\f\r ]+/,""),ce=_=>_.replace(/[\t\n\f\r ]+$/,""),ge=_=>Q(ce(_)),ne=_=>_.replace(/^[\t\f\r ]*\n/g,""),me=_=>ne(ce(_)),ue=_=>_.split(/[\t\n\f\r ]+/),Ee=_=>_.match(/^[\t\n\f\r ]*/)[0],ye=_=>{let[,Y,he,Me]=_.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:Y,trailingWhitespace:Me,text:he}},Oe=_=>/[\t\n\f\r ]/.test(_);function V(_,Y){return!!(_.type==="ieConditionalComment"&&_.lastChild&&!_.lastChild.isSelfClosing&&!_.lastChild.endSourceSpan||_.type==="ieConditionalComment"&&!_.complete||Tt(_)&&_.children.some(he=>he.type!=="text"&&he.type!=="interpolation")||f(_,Y)&&!B(_)&&_.type!=="interpolation")}function le(_){return _.type==="attribute"||!_.parent||!_.prev?!1:W(_.prev)}function W(_){return _.type==="comment"&&_.value.trim()==="prettier-ignore"}function te(_){return _.type==="text"||_.type==="comment"}function B(_){return _.type==="element"&&(_.fullName==="script"||_.fullName==="style"||_.fullName==="svg:style"||U(_)&&(_.name==="script"||_.name==="style"))}function X(_){return _.children&&!B(_)}function Z(_){return B(_)||_.type==="interpolation"||se(_)}function se(_){return Mr(_).startsWith("pre")}function ae(_,Y){let he=Me();if(he&&!_.prev&&_.parent&&_.parent.tagDefinition&&_.parent.tagDefinition.ignoreFirstLf)return _.type==="interpolation";return he;function Me(){return y(_)?!1:(_.type==="text"||_.type==="interpolation")&&_.prev&&(_.prev.type==="text"||_.prev.type==="interpolation")?!0:!_.parent||_.parent.cssDisplay==="none"?!1:Tt(_.parent)?!0:!(!_.prev&&(_.parent.type==="root"||Tt(_)&&_.parent||B(_.parent)||u(_.parent,Y)||!Pt(_.parent.cssDisplay))||_.prev&&!He(_.prev.cssDisplay))}}function pe(_,Y){return y(_)?!1:(_.type==="text"||_.type==="interpolation")&&_.next&&(_.next.type==="text"||_.next.type==="interpolation")?!0:!_.parent||_.parent.cssDisplay==="none"?!1:Tt(_.parent)?!0:!(!_.next&&(_.parent.type==="root"||Tt(_)&&_.parent||B(_.parent)||u(_.parent,Y)||!Jt(_.parent.cssDisplay))||_.next&&!tt(_.next.cssDisplay))}function De(_){return ot(_.cssDisplay)&&!B(_)}function we(_){return y(_)||_.next&&_.sourceSpan.end&&_.sourceSpan.end.line+1<_.next.sourceSpan.start.line}function Se(_){return _e(_)||_.type==="element"&&_.children.length>0&&(["body","script","style"].includes(_.name)||_.children.some(Y=>lt(Y)))||_.firstChild&&_.firstChild===_.lastChild&&_.firstChild.type!=="text"&&Fe(_.firstChild)&&(!_.lastChild.isTrailingSpaceSensitive||be(_.lastChild))}function _e(_){return _.type==="element"&&_.children.length>0&&(["html","head","ul","ol","select"].includes(_.name)||_.cssDisplay.startsWith("table")&&_.cssDisplay!=="table-cell")}function Ge(_){return st(_)||_.prev&&xe(_.prev)||nt(_)}function xe(_){return st(_)||_.type==="element"&&_.fullName==="br"||nt(_)}function nt(_){return Fe(_)&&be(_)}function Fe(_){return _.hasLeadingSpaces&&(_.prev?_.prev.sourceSpan.end.line<_.sourceSpan.start.line:_.parent.type==="root"||_.parent.startSourceSpan.end.line<_.sourceSpan.start.line)}function be(_){return _.hasTrailingSpaces&&(_.next?_.next.sourceSpan.start.line>_.sourceSpan.end.line:_.parent.type==="root"||_.parent.endSourceSpan&&_.parent.endSourceSpan.start.line>_.sourceSpan.end.line)}function st(_){switch(_.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(_.name)}return!1}function At(_){return _.lastChild?At(_.lastChild):_}function lt(_){return _.children&&_.children.some(Y=>Y.type!=="text")}function Nt(_){let{type:Y,lang:he}=_.attrMap;if(Y==="module"||Y==="text/javascript"||Y==="text/babel"||Y==="application/javascript"||he==="jsx")return"babel";if(Y==="application/x-typescript"||he==="ts"||he==="tsx")return"typescript";if(Y==="text/markdown")return"markdown";if(Y==="text/html")return"html";if(Y&&(Y.endsWith("json")||Y.endsWith("importmap"))||Y==="speculationrules")return"json";if(Y==="text/x-handlebars-template")return"glimmer"}function Le(_,Y){let{lang:he}=_.attrMap;if(!he||he==="postcss"||he==="css")return"css";if(he==="scss")return"scss";if(he==="less")return"less";if(he==="stylus")return m("stylus",Y)}function Ze(_,Y){if(_.name==="script"&&!_.attrMap.src)return!_.attrMap.lang&&!_.attrMap.type?"babel":Nt(_);if(_.name==="style")return Le(_,Y);if(Y&&f(_,Y))return Nt(_)||!("src"in _.attrMap)&&m(_.attrMap.lang,Y)}function kt(_){return _==="block"||_==="list-item"||_.startsWith("table")}function Pt(_){return!kt(_)&&_!=="inline-block"}function Jt(_){return!kt(_)&&_!=="inline-block"}function tt(_){return!kt(_)}function He(_){return!kt(_)}function ot(_){return!kt(_)&&_!=="inline-block"}function Tt(_){return Mr(_).startsWith("pre")}function Bt(_,Y){let he=0;for(let Me=_.stack.length-1;Me>=0;Me--){let Ie=_.stack[Me];Ie&&typeof Ie=="object"&&!Array.isArray(Ie)&&Y(Ie)&&he++}return he}function Xt(_,Y){let he=_;for(;he;){if(Y(he))return!0;he=he.parent}return!1}function Wt(_,Y){if(_.prev&&_.prev.type==="comment"){let Me=_.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(Me)return Me[1]}let he=!1;if(_.type==="element"&&_.namespace==="svg")if(Xt(_,Me=>Me.fullName==="svg:foreignObject"))he=!0;else return _.name==="svg"?"inline-block":"block";switch(Y.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return Y.parser==="vue"&&_.parent&&_.parent.type==="root"?"block":_.type==="element"&&(!_.namespace||he||U(_))&&O[_.name]||G}}function Mr(_){return _.type==="element"&&(!_.namespace||U(_))&&z[_.name]||q}function hn(_){let Y=Number.POSITIVE_INFINITY;for(let he of _.split(` +`)){if(he.length===0)continue;if(!$.has(he[0]))return 0;let Me=Ee(he).length;he.length!==Me&&Me1&&arguments[1]!==void 0?arguments[1]:hn(_);return Y===0?_:_.split(` +`).map(he=>he.slice(Y)).join(` +`)}function Ir(_,Y){let he=0;for(let Me=0;Me<_.length;Me++)_[Me]===Y&&he++;return he}function n(_){return _.replace(/'/g,"'").replace(/"/g,'"')}var s=new Set(["template","style","script"]);function u(_,Y){return p(_,Y)&&!s.has(_.fullName)}function p(_,Y){return Y.parser==="vue"&&_.type==="element"&&_.parent.type==="root"&&_.fullName.toLowerCase()!=="html"}function f(_,Y){return p(_,Y)&&(u(_,Y)||_.attrMap.lang&&_.attrMap.lang!=="html")}function D(_){let Y=_.fullName;return Y.charAt(0)==="#"||Y==="slot-scope"||Y==="v-slot"||Y.startsWith("v-slot:")}function P(_,Y){let he=_.parent;if(!p(he,Y))return!1;let Me=he.fullName,Ie=_.fullName;return Me==="script"&&Ie==="setup"||Me==="style"&&Ie==="vars"}function R(_){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_.value;return _.parent.isWhitespaceSensitive?_.parent.isIndentationSensitive?k(Y):k(on(me(Y)),x):S(A(C,ue(Y)))}function j(_,Y){return p(_,Y)&&_.name==="script"}c.exports={htmlTrim:ge,htmlTrimPreserveIndentation:me,hasHtmlWhitespace:Oe,getLeadingAndTrailingHtmlWhitespace:ye,canHaveInterpolation:X,countChars:Ir,countParents:Bt,dedentString:on,forceBreakChildren:_e,forceBreakContent:Se,forceNextEmptyLine:we,getLastDescendant:At,getNodeCssStyleDisplay:Wt,getNodeCssStyleWhiteSpace:Mr,hasPrettierIgnore:le,inferScriptParser:Ze,isVueCustomBlock:u,isVueNonHtmlBlock:f,isVueScriptTag:j,isVueSlotAttribute:D,isVueSfcBindingsAttribute:P,isVueSfcBlock:p,isDanglingSpaceSensitiveNode:De,isIndentationSensitiveNode:se,isLeadingSpaceSensitiveNode:ae,isPreLikeNode:Tt,isScriptLikeTag:B,isTextLikeNode:te,isTrailingSpaceSensitiveNode:pe,isWhitespaceSensitiveNode:Z,isUnknownNamespace:U,preferHardlineAsLeadingSpaces:Ge,preferHardlineAsTrailingSpaces:xe,shouldPreserveContent:V,unescapeQuoteEntities:n,getTextValueParts:R}}}),Hu=Ue({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0}),a.$EOF=0,a.$BSPACE=8,a.$TAB=9,a.$LF=10,a.$VTAB=11,a.$FF=12,a.$CR=13,a.$SPACE=32,a.$BANG=33,a.$DQ=34,a.$HASH=35,a.$$=36,a.$PERCENT=37,a.$AMPERSAND=38,a.$SQ=39,a.$LPAREN=40,a.$RPAREN=41,a.$STAR=42,a.$PLUS=43,a.$COMMA=44,a.$MINUS=45,a.$PERIOD=46,a.$SLASH=47,a.$COLON=58,a.$SEMICOLON=59,a.$LT=60,a.$EQ=61,a.$GT=62,a.$QUESTION=63,a.$0=48,a.$7=55,a.$9=57,a.$A=65,a.$E=69,a.$F=70,a.$X=88,a.$Z=90,a.$LBRACKET=91,a.$BACKSLASH=92,a.$RBRACKET=93,a.$CARET=94,a.$_=95,a.$a=97,a.$b=98,a.$e=101,a.$f=102,a.$n=110,a.$r=114,a.$t=116,a.$u=117,a.$v=118,a.$x=120,a.$z=122,a.$LBRACE=123,a.$BAR=124,a.$RBRACE=125,a.$NBSP=160,a.$PIPE=124,a.$TILDA=126,a.$AT=64,a.$BT=96;function c(S){return S>=a.$TAB&&S<=a.$SPACE||S==a.$NBSP}a.isWhitespace=c;function m(S){return a.$0<=S&&S<=a.$9}a.isDigit=m;function y(S){return S>=a.$a&&S<=a.$z||S>=a.$A&&S<=a.$Z}a.isAsciiLetter=y;function C(S){return S>=a.$a&&S<=a.$f||S>=a.$A&&S<=a.$F||m(S)}a.isAsciiHexDigit=C;function x(S){return S===a.$LF||S===a.$CR}a.isNewLine=x;function A(S){return a.$0<=S&&S<=a.$7}a.isOctalDigit=A}}),ru=Ue({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=class{constructor(y,C,x){this.filePath=y,this.name=C,this.members=x}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};a.StaticSymbol=c;var m=class{constructor(){this.cache=new Map}get(y,C,x){x=x||[];let A=x.length?`.${x.join(".")}`:"",S=`"${y}".${C}${A}`,k=this.cache.get(S);return k||(k=new c(y,C,x),this.cache.set(S,k)),k}};a.StaticSymbolCache=m}}),zc=Ue({"node_modules/angular-html-parser/lib/compiler/src/util.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=/-+([a-z0-9])/g;function m(B){return B.replace(c,function(){for(var X=arguments.length,Z=new Array(X),se=0;seA(Z,this,X))}visitStringMap(B,X){let Z={};return Object.keys(B).forEach(se=>{Z[se]=A(B[se],this,X)}),Z}visitPrimitive(B,X){return B}visitOther(B,X){return B}};a.ValueTransformer=O,a.SyncAsync={assertSync:B=>{if(ye(B))throw new Error("Illegal state: value cannot be a promise");return B},then:(B,X)=>ye(B)?B.then(X):X(B),all:B=>B.some(ye)?Promise.all(B):B};function G(B){throw new Error(`Internal Error: ${B}`)}a.error=G;function z(B,X){let Z=Error(B);return Z[q]=!0,X&&(Z[U]=X),Z}a.syntaxError=z;var q="ngSyntaxError",U="ngParseErrors";function $(B){return B[q]}a.isSyntaxError=$;function Q(B){return B[U]||[]}a.getParseErrors=Q;function ce(B){return B.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}a.escapeRegExp=ce;var ge=Object.getPrototypeOf({});function ne(B){return typeof B=="object"&&B!==null&&Object.getPrototypeOf(B)===ge}function me(B){let X="";for(let Z=0;Z=55296&&se<=56319&&B.length>Z+1){let ae=B.charCodeAt(Z+1);ae>=56320&&ae<=57343&&(Z++,se=(se-55296<<10)+ae-56320+65536)}se<=127?X+=String.fromCharCode(se):se<=2047?X+=String.fromCharCode(se>>6&31|192,se&63|128):se<=65535?X+=String.fromCharCode(se>>12|224,se>>6&63|128,se&63|128):se<=2097151&&(X+=String.fromCharCode(se>>18&7|240,se>>12&63|128,se>>6&63|128,se&63|128))}return X}a.utf8Encode=me;function ue(B){if(typeof B=="string")return B;if(B instanceof Array)return"["+B.map(ue).join(", ")+"]";if(B==null)return""+B;if(B.overriddenName)return`${B.overriddenName}`;if(B.name)return`${B.name}`;if(!B.toString)return"object";let X=B.toString();if(X==null)return""+X;let Z=X.indexOf(` +`);return Z===-1?X:X.substring(0,Z)}a.stringify=ue;function Ee(B){return typeof B=="function"&&B.hasOwnProperty("__forward_ref__")?B():B}a.resolveForwardRef=Ee;function ye(B){return!!B&&typeof B.then=="function"}a.isPromise=ye;var Oe=class{constructor(B){this.full=B;let X=B.split(".");this.major=X[0],this.minor=X[1],this.patch=X.slice(2).join(".")}};a.Version=Oe;var V=typeof window<"u"&&window,le=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,W=typeof globalThis<"u"&&globalThis,te=W||V||le;a.global=te}}),Hp=Ue({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=ru(),m=zc(),y=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function C(Z){return Z.replace(/\W/g,"_")}a.sanitizeIdentifier=C;var x=0;function A(Z){if(!Z||!Z.reference)return null;let se=Z.reference;if(se instanceof c.StaticSymbol)return se.name;if(se.__anonymousType)return se.__anonymousType;let ae=m.stringify(se);return ae.indexOf("(")>=0?(ae=`anonymous_${x++}`,se.__anonymousType=ae):ae=C(ae),ae}a.identifierName=A;function S(Z){let se=Z.reference;return se instanceof c.StaticSymbol?se.filePath:`./${m.stringify(se)}`}a.identifierModuleUrl=S;function k(Z,se){return`View_${A({reference:Z})}_${se}`}a.viewClassName=k;function O(Z){return`RenderType_${A({reference:Z})}`}a.rendererTypeName=O;function G(Z){return`HostView_${A({reference:Z})}`}a.hostViewClassName=G;function z(Z){return`${A({reference:Z})}NgFactory`}a.componentFactoryName=z;var q;(function(Z){Z[Z.Pipe=0]="Pipe",Z[Z.Directive=1]="Directive",Z[Z.NgModule=2]="NgModule",Z[Z.Injectable=3]="Injectable"})(q=a.CompileSummaryKind||(a.CompileSummaryKind={}));function U(Z){return Z.value!=null?C(Z.value):A(Z.identifier)}a.tokenName=U;function $(Z){return Z.identifier!=null?Z.identifier.reference:Z.value}a.tokenReference=$;var Q=class{constructor(){let{moduleUrl:Z,styles:se,styleUrls:ae}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=Z||null,this.styles=ye(se),this.styleUrls=ye(ae)}};a.CompileStylesheetMetadata=Q;var ce=class{constructor(Z){let{encapsulation:se,template:ae,templateUrl:pe,htmlAst:De,styles:we,styleUrls:Se,externalStylesheets:_e,animations:Ge,ngContentSelectors:xe,interpolation:nt,isInline:Fe,preserveWhitespaces:be}=Z;if(this.encapsulation=se,this.template=ae,this.templateUrl=pe,this.htmlAst=De,this.styles=ye(we),this.styleUrls=ye(Se),this.externalStylesheets=ye(_e),this.animations=Ge?V(Ge):[],this.ngContentSelectors=xe||[],nt&&nt.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=nt,this.isInline=Fe,this.preserveWhitespaces=be}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};a.CompileTemplateMetadata=ce;var ge=class{static create(Z){let{isHost:se,type:ae,isComponent:pe,selector:De,exportAs:we,changeDetection:Se,inputs:_e,outputs:Ge,host:xe,providers:nt,viewProviders:Fe,queries:be,guards:st,viewQueries:At,entryComponents:lt,template:Nt,componentViewType:Le,rendererType:Ze,componentFactory:kt}=Z,Pt={},Jt={},tt={};xe!=null&&Object.keys(xe).forEach(Tt=>{let Bt=xe[Tt],Xt=Tt.match(y);Xt===null?tt[Tt]=Bt:Xt[1]!=null?Jt[Xt[1]]=Bt:Xt[2]!=null&&(Pt[Xt[2]]=Bt)});let He={};_e!=null&&_e.forEach(Tt=>{let Bt=m.splitAtColon(Tt,[Tt,Tt]);He[Bt[0]]=Bt[1]});let ot={};return Ge!=null&&Ge.forEach(Tt=>{let Bt=m.splitAtColon(Tt,[Tt,Tt]);ot[Bt[0]]=Bt[1]}),new ge({isHost:se,type:ae,isComponent:!!pe,selector:De,exportAs:we,changeDetection:Se,inputs:He,outputs:ot,hostListeners:Pt,hostProperties:Jt,hostAttributes:tt,providers:nt,viewProviders:Fe,queries:be,guards:st,viewQueries:At,entryComponents:lt,template:Nt,componentViewType:Le,rendererType:Ze,componentFactory:kt})}constructor(Z){let{isHost:se,type:ae,isComponent:pe,selector:De,exportAs:we,changeDetection:Se,inputs:_e,outputs:Ge,hostListeners:xe,hostProperties:nt,hostAttributes:Fe,providers:be,viewProviders:st,queries:At,guards:lt,viewQueries:Nt,entryComponents:Le,template:Ze,componentViewType:kt,rendererType:Pt,componentFactory:Jt}=Z;this.isHost=!!se,this.type=ae,this.isComponent=pe,this.selector=De,this.exportAs=we,this.changeDetection=Se,this.inputs=_e,this.outputs=Ge,this.hostListeners=xe,this.hostProperties=nt,this.hostAttributes=Fe,this.providers=ye(be),this.viewProviders=ye(st),this.queries=ye(At),this.guards=lt,this.viewQueries=ye(Nt),this.entryComponents=ye(Le),this.template=Ze,this.componentViewType=kt,this.rendererType=Pt,this.componentFactory=Jt}toSummary(){return{summaryKind:q.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};a.CompileDirectiveMetadata=ge;var ne=class{constructor(Z){let{type:se,name:ae,pure:pe}=Z;this.type=se,this.name=ae,this.pure=!!pe}toSummary(){return{summaryKind:q.Pipe,type:this.type,name:this.name,pure:this.pure}}};a.CompilePipeMetadata=ne;var me=class{};a.CompileShallowModuleMetadata=me;var ue=class{constructor(Z){let{type:se,providers:ae,declaredDirectives:pe,exportedDirectives:De,declaredPipes:we,exportedPipes:Se,entryComponents:_e,bootstrapComponents:Ge,importedModules:xe,exportedModules:nt,schemas:Fe,transitiveModule:be,id:st}=Z;this.type=se||null,this.declaredDirectives=ye(pe),this.exportedDirectives=ye(De),this.declaredPipes=ye(we),this.exportedPipes=ye(Se),this.providers=ye(ae),this.entryComponents=ye(_e),this.bootstrapComponents=ye(Ge),this.importedModules=ye(xe),this.exportedModules=ye(nt),this.schemas=ye(Fe),this.id=st||null,this.transitiveModule=be||null}toSummary(){let Z=this.transitiveModule;return{summaryKind:q.NgModule,type:this.type,entryComponents:Z.entryComponents,providers:Z.providers,modules:Z.modules,exportedDirectives:Z.exportedDirectives,exportedPipes:Z.exportedPipes}}};a.CompileNgModuleMetadata=ue;var Ee=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(Z,se){this.providers.push({provider:Z,module:se})}addDirective(Z){this.directivesSet.has(Z.reference)||(this.directivesSet.add(Z.reference),this.directives.push(Z))}addExportedDirective(Z){this.exportedDirectivesSet.has(Z.reference)||(this.exportedDirectivesSet.add(Z.reference),this.exportedDirectives.push(Z))}addPipe(Z){this.pipesSet.has(Z.reference)||(this.pipesSet.add(Z.reference),this.pipes.push(Z))}addExportedPipe(Z){this.exportedPipesSet.has(Z.reference)||(this.exportedPipesSet.add(Z.reference),this.exportedPipes.push(Z))}addModule(Z){this.modulesSet.has(Z.reference)||(this.modulesSet.add(Z.reference),this.modules.push(Z))}addEntryComponent(Z){this.entryComponentsSet.has(Z.componentType)||(this.entryComponentsSet.add(Z.componentType),this.entryComponents.push(Z))}};a.TransitiveCompileNgModuleMetadata=Ee;function ye(Z){return Z||[]}var Oe=class{constructor(Z,se){let{useClass:ae,useValue:pe,useExisting:De,useFactory:we,deps:Se,multi:_e}=se;this.token=Z,this.useClass=ae||null,this.useValue=pe,this.useExisting=De,this.useFactory=we||null,this.dependencies=Se||null,this.multi=!!_e}};a.ProviderMeta=Oe;function V(Z){return Z.reduce((se,ae)=>{let pe=Array.isArray(ae)?V(ae):ae;return se.concat(pe)},[])}a.flatten=V;function le(Z){return Z.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function W(Z,se,ae){let pe;return ae.isInline?se.type.reference instanceof c.StaticSymbol?pe=`${se.type.reference.filePath}.${se.type.reference.name}.html`:pe=`${A(Z)}/${A(se.type)}.html`:pe=ae.templateUrl,se.type.reference instanceof c.StaticSymbol?pe:le(pe)}a.templateSourceUrl=W;function te(Z,se){let ae=Z.moduleUrl.split(/\/\\/g),pe=ae[ae.length-1];return le(`css/${se}${pe}.ngstyle.js`)}a.sharedStylesheetJitUrl=te;function B(Z){return le(`${A(Z.type)}/module.ngfactory.js`)}a.ngModuleJitUrl=B;function X(Z,se){return le(`${A(Z)}/${A(se.type)}.ngfactory.js`)}a.templateJitUrl=X}}),$c=Ue({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(a){Je(),Object.defineProperty(a,"__esModule",{value:!0});var c=Hu(),m=Hp(),y=class{constructor(G,z,q,U){this.file=G,this.offset=z,this.line=q,this.col=U}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(G){let z=this.file.content,q=z.length,U=this.offset,$=this.line,Q=this.col;for(;U>0&&G<0;)if(U--,G++,z.charCodeAt(U)==c.$LF){$--;let ce=z.substr(0,U-1).lastIndexOf(String.fromCharCode(c.$LF));Q=ce>0?U-ce:U}else Q--;for(;U0;){let ce=z.charCodeAt(U);U++,G--,ce==c.$LF?($++,Q=0):Q++}return new y(this.file,U,$,Q)}getContext(G,z){let q=this.file.content,U=this.offset;if(U!=null){U>q.length-1&&(U=q.length-1);let $=U,Q=0,ce=0;for(;Q0&&(U--,Q++,!(q[U]==` +`&&++ce==z)););for(Q=0,ce=0;Q2&&arguments[2]!==void 0?arguments[2]:null;this.start=G,this.end=z,this.details=q}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};a.ParseSourceSpan=x,a.EMPTY_PARSE_LOCATION=new y(new C("",""),0,0,0),a.EMPTY_SOURCE_SPAN=new x(a.EMPTY_PARSE_LOCATION,a.EMPTY_PARSE_LOCATION);var A;(function(G){G[G.WARNING=0]="WARNING",G[G.ERROR=1]="ERROR"})(A=a.ParseErrorLevel||(a.ParseErrorLevel={}));var S=class{constructor(G,z){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A.ERROR;this.span=G,this.msg=z,this.level=q}contextualMessage(){let G=this.span.start.getContext(100,3);return G?`${this.msg} ("${G.before}[${A[this.level]} ->]${G.after}")`:this.msg}toString(){let G=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${G}`}};a.ParseError=S;function k(G,z){let q=m.identifierModuleUrl(z),U=q!=null?`in ${G} ${m.identifierName(z)} in ${q}`:`in ${G} ${m.identifierName(z)}`,$=new C("",U);return new x(new y($,-1,-1,-1),new y($,-1,-1,-1))}a.typeSourceSpan=k;function O(G,z,q){let U=`in ${G} ${z} in ${q}`,$=new C("",U);return new x(new y($,-1,-1,-1),new y($,-1,-1,-1))}a.r3JitTypeSourceSpan=O}}),ha=Ue({"src/language-html/print-preprocess.js"(a,c){Je();var{ParseSourceSpan:m}=$c(),{htmlTrim:y,getLeadingAndTrailingHtmlWhitespace:C,hasHtmlWhitespace:x,canHaveInterpolation:A,getNodeCssStyleDisplay:S,isDanglingSpaceSensitiveNode:k,isIndentationSensitiveNode:O,isLeadingSpaceSensitiveNode:G,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:q,isVueScriptTag:U}=Ks(),$=[ce,ge,me,Ee,ye,le,Oe,V,W,ue,te];function Q(B,X){for(let Z of $)Z(B,X);return B}function ce(B){B.walk(X=>{if(X.type==="element"&&X.tagDefinition.ignoreFirstLf&&X.children.length>0&&X.children[0].type==="text"&&X.children[0].value[0]===` +`){let Z=X.children[0];Z.value.length===1?X.removeChild(Z):Z.value=Z.value.slice(1)}})}function ge(B){let X=Z=>Z.type==="element"&&Z.prev&&Z.prev.type==="ieConditionalStartComment"&&Z.prev.sourceSpan.end.offset===Z.startSourceSpan.start.offset&&Z.firstChild&&Z.firstChild.type==="ieConditionalEndComment"&&Z.firstChild.sourceSpan.start.offset===Z.startSourceSpan.end.offset;B.walk(Z=>{if(Z.children)for(let se=0;se{if(se.children)for(let ae=0;aeX.type==="cdata",X=>``)}function ue(B){let X=Z=>Z.type==="element"&&Z.attrs.length===0&&Z.children.length===1&&Z.firstChild.type==="text"&&!x(Z.children[0].value)&&!Z.firstChild.hasLeadingSpaces&&!Z.firstChild.hasTrailingSpaces&&Z.isLeadingSpaceSensitive&&!Z.hasLeadingSpaces&&Z.isTrailingSpaceSensitive&&!Z.hasTrailingSpaces&&Z.prev&&Z.prev.type==="text"&&Z.next&&Z.next.type==="text";B.walk(Z=>{if(Z.children)for(let se=0;se`+ae.firstChild.value+``+De.value,pe.sourceSpan=new m(pe.sourceSpan.start,De.sourceSpan.end),pe.isTrailingSpaceSensitive=De.isTrailingSpaceSensitive,pe.hasTrailingSpaces=De.hasTrailingSpaces,Z.removeChild(ae),se--,Z.removeChild(De)}})}function Ee(B,X){if(X.parser==="html")return;let Z=/{{(.+?)}}/s;B.walk(se=>{if(A(se))for(let ae of se.children){if(ae.type!=="text")continue;let pe=ae.sourceSpan.start,De=null,we=ae.value.split(Z);for(let Se=0;Se0&&se.insertChildBefore(ae,{type:"text",value:_e,sourceSpan:new m(pe,De)});continue}De=pe.moveBy(_e.length+4),se.insertChildBefore(ae,{type:"interpolation",sourceSpan:new m(pe,De),children:_e.length===0?[]:[{type:"text",value:_e,sourceSpan:new m(pe.moveBy(2),De.moveBy(-2))}]})}se.removeChild(ae)}})}function ye(B){B.walk(X=>{if(!X.children)return;if(X.children.length===0||X.children.length===1&&X.children[0].type==="text"&&y(X.children[0].value).length===0){X.hasDanglingSpaces=X.children.length>0,X.children=[];return}let Z=q(X),se=O(X);if(!Z)for(let ae=0;ae{X.isSelfClosing=!X.children||X.type==="element"&&(X.tagDefinition.isVoid||X.startSourceSpan===X.endSourceSpan)})}function V(B,X){B.walk(Z=>{Z.type==="element"&&(Z.hasHtmComponentClosingTag=Z.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(X.originalText.slice(Z.endSourceSpan.start.offset,Z.endSourceSpan.end.offset)))})}function le(B,X){B.walk(Z=>{Z.cssDisplay=S(Z,X)})}function W(B,X){B.walk(Z=>{let{children:se}=Z;if(se){if(se.length===0){Z.isDanglingSpaceSensitive=k(Z);return}for(let ae of se)ae.isLeadingSpaceSensitive=G(ae,X),ae.isTrailingSpaceSensitive=z(ae,X);for(let ae=0;aeU(ae,X));if(!Z)return;let{lang:se}=Z.attrMap;(se==="ts"||se==="typescript")&&(X.__should_parse_vue_template_with_ts=!0)}}c.exports=Q}}),$r=Ue({"src/language-html/pragma.js"(a,c){Je();function m(C){return/^\s*/.test(C)}function y(C){return` + +`+C.replace(/^\s*\n/,"")}c.exports={hasPragma:m,insertPragma:y}}}),Ao=Ue({"src/language-html/loc.js"(a,c){Je();function m(C){return C.sourceSpan.start.offset}function y(C){return C.sourceSpan.end.offset}c.exports={locStart:m,locEnd:y}}}),nu=Ue({"src/language-html/print/tag.js"(a,c){Je();var m=jo(),{isNonEmptyArray:y}=Tn(),{builders:{indent:C,join:x,line:A,softline:S,hardline:k},utils:{replaceTextEndOfLine:O}}=Gr(),{locStart:G,locEnd:z}=Ao(),{isTextLikeNode:q,getLastDescendant:U,isPreLikeNode:$,hasPrettierIgnore:Q,shouldPreserveContent:ce,isVueSfcBlock:ge}=Ks();function ne(xe,nt){return[xe.isSelfClosing?"":me(xe,nt),ue(xe,nt)]}function me(xe,nt){return xe.lastChild&&B(xe.lastChild)?"":[Ee(xe,nt),Oe(xe,nt)]}function ue(xe,nt){return(xe.next?W(xe.next):te(xe.parent))?"":[V(xe,nt),ye(xe,nt)]}function Ee(xe,nt){return te(xe)?V(xe.lastChild,nt):""}function ye(xe,nt){return B(xe)?Oe(xe.parent,nt):X(xe)?_e(xe.next):""}function Oe(xe,nt){if(m(!xe.isSelfClosing),le(xe,nt))return"";switch(xe.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(xe.isSelfClosing)return"/>";default:return">"}}function le(xe,nt){return!xe.isSelfClosing&&!xe.endSourceSpan&&(Q(xe)||ce(xe.parent,nt))}function W(xe){return xe.prev&&xe.prev.type!=="docType"&&!q(xe.prev)&&xe.isLeadingSpaceSensitive&&!xe.hasLeadingSpaces}function te(xe){return xe.lastChild&&xe.lastChild.isTrailingSpaceSensitive&&!xe.lastChild.hasTrailingSpaces&&!q(U(xe.lastChild))&&!$(xe)}function B(xe){return!xe.next&&!xe.hasTrailingSpaces&&xe.isTrailingSpaceSensitive&&q(U(xe))}function X(xe){return xe.next&&!q(xe.next)&&q(xe)&&xe.isTrailingSpaceSensitive&&!xe.hasTrailingSpaces}function Z(xe){let nt=xe.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return nt?nt[1]?nt[1].split(/\s+/):!0:!1}function se(xe){return!xe.prev&&xe.isLeadingSpaceSensitive&&!xe.hasLeadingSpaces}function ae(xe,nt,Fe){let be=xe.getValue();if(!y(be.attrs))return be.isSelfClosing?" ":"";let st=be.prev&&be.prev.type==="comment"&&Z(be.prev.value),At=typeof st=="boolean"?()=>st:Array.isArray(st)?kt=>st.includes(kt.rawName):()=>!1,lt=xe.map(kt=>{let Pt=kt.getValue();return At(Pt)?O(nt.originalText.slice(G(Pt),z(Pt))):Fe()},"attrs"),Nt=be.type==="element"&&be.fullName==="script"&&be.attrs.length===1&&be.attrs[0].fullName==="src"&&be.children.length===0,Le=nt.singleAttributePerLine&&be.attrs.length>1&&!ge(be,nt)?k:A,Ze=[C([Nt?" ":A,x(Le,lt)])];return be.firstChild&&se(be.firstChild)||be.isSelfClosing&&te(be.parent)||Nt?Ze.push(be.isSelfClosing?" ":""):Ze.push(nt.bracketSameLine?be.isSelfClosing?" ":"":be.isSelfClosing?A:S),Ze}function pe(xe){return xe.firstChild&&se(xe.firstChild)?"":Ge(xe)}function De(xe,nt,Fe){let be=xe.getValue();return[we(be,nt),ae(xe,nt,Fe),be.isSelfClosing?"":pe(be)]}function we(xe,nt){return xe.prev&&X(xe.prev)?"":[Se(xe,nt),_e(xe)]}function Se(xe,nt){return se(xe)?Ge(xe.parent):W(xe)?V(xe.prev,nt):""}function _e(xe){switch(xe.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${xe.rawName}`;default:return`<${xe.rawName}`}}function Ge(xe){switch(m(!xe.isSelfClosing),xe.type){case"ieConditionalComment":return"]>";case"element":if(xe.condition)return">";default:return">"}}c.exports={printClosingTag:ne,printClosingTagStart:me,printClosingTagStartMarker:Oe,printClosingTagEndMarker:V,printClosingTagSuffix:ye,printClosingTagEnd:ue,needsToBorrowLastChildClosingTagEndMarker:te,needsToBorrowParentClosingTagStartMarker:B,needsToBorrowPrevClosingTagEndMarker:W,printOpeningTag:De,printOpeningTagStart:we,printOpeningTagPrefix:Se,printOpeningTagStartMarker:_e,printOpeningTagEndMarker:Ge,needsToBorrowNextOpeningTagStartMarker:X,needsToBorrowParentOpeningTagEndMarker:se}}}),Gc=Ue({"node_modules/parse-srcset/src/parse-srcset.js"(a,c){Je(),function(m,y){typeof c=="object"&&c.exports?c.exports=y():m.parseSrcset=y()}(a,function(){return function(m,y){var C=y&&y.logger||console;function x(Oe){return Oe===" "||Oe===" "||Oe===` +`||Oe==="\f"||Oe==="\r"}function A(Oe){var V,le=Oe.exec(m.substring(me));if(le)return V=le[0],me+=V.length,V}for(var S=m.length,k=/^[ \t\n\r\u000c]+/,O=/^[, \t\n\r\u000c]+/,G=/^[^ \t\n\r\u000c]+/,z=/[,]+$/,q=/^\d+$/,U=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,$,Q,ce,ge,ne,me=0,ue=[];;){if(A(O),me>=S)return ue;$=A(G),Q=[],$.slice(-1)===","?($=$.replace(z,""),ye()):Ee()}function Ee(){for(A(k),ce="",ge="in descriptor";;){if(ne=m.charAt(me),ge==="in descriptor")if(x(ne))ce&&(Q.push(ce),ce="",ge="after descriptor");else if(ne===","){me+=1,ce&&Q.push(ce),ye();return}else if(ne==="(")ce=ce+ne,ge="in parens";else if(ne===""){ce&&Q.push(ce),ye();return}else ce=ce+ne;else if(ge==="in parens")if(ne===")")ce=ce+ne,ge="in descriptor";else if(ne===""){Q.push(ce),ye();return}else ce=ce+ne;else if(ge==="after descriptor"&&!x(ne))if(ne===""){ye();return}else ge="in descriptor",me-=1;me+=1}}function ye(){var Oe=!1,V,le,W,te,B={},X,Z,se,ae,pe;for(te=0;te{let{w:ye}=Ee;return ye}),z=O.some(Ee=>{let{h:ye}=Ee;return ye}),q=O.some(Ee=>{let{d:ye}=Ee;return ye});if(G+z+q>1)throw new Error("Mixed descriptor in srcset is not supported");let U=G?"w":z?"h":"d",$=G?"w":z?"h":"x",Q=Ee=>Math.max(...Ee),ce=O.map(Ee=>Ee.url),ge=Q(ce.map(Ee=>Ee.length)),ne=O.map(Ee=>Ee[U]).map(Ee=>Ee?Ee.toString():""),me=ne.map(Ee=>{let ye=Ee.indexOf(".");return ye===-1?Ee.length:ye}),ue=Q(me);return C([",",x],ce.map((Ee,ye)=>{let Oe=[Ee],V=ne[ye];if(V){let le=ge-Ee.length+1,W=ue-me[ye],te=" ".repeat(le+W);Oe.push(y(te," "),V+$)}return Oe}))}function S(k){return k.trim().split(/\s+/).join(" ")}c.exports={printImgSrcset:A,printClassNames:S}}}),zp=Ue({"src/language-html/syntax-vue.js"(a,c){Je();var{builders:{group:m}}=Gr();function y(S,k){let{left:O,operator:G,right:z}=C(S);return[m(k(`function _(${O}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",G," ",k(z,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function C(S){let k=/(.*?)\s+(in|of)\s+(.*)/s,O=/,([^,\]}]*)(?:,([^,\]}]*))?$/,G=/^\(|\)$/g,z=S.match(k);if(!z)return;let q={};if(q.for=z[3].trim(),!q.for)return;let U=z[1].trim().replace(G,""),$=U.match(O);$?(q.alias=U.replace(O,""),q.iterator1=$[1].trim(),$[2]&&(q.iterator2=$[2].trim())):q.alias=U;let Q=[q.alias,q.iterator1,q.iterator2];if(!Q.some((ce,ge)=>!ce&&(ge===0||Q.slice(ge+1).some(Boolean))))return{left:Q.filter(Boolean).join(","),operator:z[2],right:q.for}}function x(S,k){return k(`function _(${S}) {}`,{parser:"babel",__isVueBindings:!0})}function A(S){let k=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,O=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,G=S.trim();return k.test(G)||O.test(G)}c.exports={isVueEventBindingExpression:A,printVueFor:y,printVueBindings:x}}}),Wc=Ue({"src/language-html/get-node-content.js"(a,c){Je();var{needsToBorrowParentClosingTagStartMarker:m,printClosingTagStartMarker:y,needsToBorrowLastChildClosingTagEndMarker:C,printClosingTagEndMarker:x,needsToBorrowParentOpeningTagEndMarker:A,printOpeningTagEndMarker:S}=nu();function k(O,G){let z=O.startSourceSpan.end.offset;O.firstChild&&A(O.firstChild)&&(z-=S(O).length);let q=O.endSourceSpan.start.offset;return O.lastChild&&m(O.lastChild)?q+=y(O,G).length:C(O)&&(q-=x(O.lastChild,G).length),G.originalText.slice(z,q)}c.exports=k}}),Gi=Ue({"src/language-html/embed.js"(a,c){Je();var{builders:{breakParent:m,group:y,hardline:C,indent:x,line:A,fill:S,softline:k},utils:{mapDoc:O,replaceTextEndOfLine:G}}=Gr(),z=dl(),{printClosingTag:q,printClosingTagSuffix:U,needsToBorrowPrevClosingTagEndMarker:$,printOpeningTagPrefix:Q,printOpeningTag:ce}=nu(),{printImgSrcset:ge,printClassNames:ne}=Up(),{printVueFor:me,printVueBindings:ue,isVueEventBindingExpression:Ee}=zp(),{isScriptLikeTag:ye,isVueNonHtmlBlock:Oe,inferScriptParser:V,htmlTrimPreserveIndentation:le,dedentString:W,unescapeQuoteEntities:te,isVueSlotAttribute:B,isVueSfcBindingsAttribute:X,getTextValueParts:Z}=Ks(),se=Wc();function ae(De,we,Se){let _e=lt=>new RegExp(lt.join("|")).test(De.fullName),Ge=()=>te(De.value),xe=!1,nt=(lt,Nt)=>{let Le=lt.type==="NGRoot"?lt.node.type==="NGMicrosyntax"&<.node.body.length===1&<.node.body[0].type==="NGMicrosyntaxExpression"?lt.node.body[0].expression:lt.node:lt.type==="JsExpressionRoot"?lt.node:lt;Le&&(Le.type==="ObjectExpression"||Le.type==="ArrayExpression"||Nt.parser==="__vue_expression"&&(Le.type==="TemplateLiteral"||Le.type==="StringLiteral"))&&(xe=!0)},Fe=lt=>y(lt),be=function(lt){let Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return y([x([k,lt]),Nt?k:""])},st=lt=>xe?Fe(lt):be(lt),At=(lt,Nt)=>we(lt,Object.assign({__onHtmlBindingRoot:nt,__embeddedInHtml:!0},Nt));if(De.fullName==="srcset"&&(De.parent.fullName==="img"||De.parent.fullName==="source"))return be(ge(Ge()));if(De.fullName==="class"&&!Se.parentParser){let lt=Ge();if(!lt.includes("{{"))return ne(lt)}if(De.fullName==="style"&&!Se.parentParser){let lt=Ge();if(!lt.includes("{{"))return be(At(lt,{parser:"css",__isHTMLStyleAttribute:!0}))}if(Se.parser==="vue"){if(De.fullName==="v-for")return me(Ge(),At);if(B(De)||X(De,Se))return ue(Ge(),At);let lt=["^@","^v-on:"],Nt=["^:","^v-bind:"],Le=["^v-"];if(_e(lt)){let Ze=Ge(),kt=Ee(Ze)?"__js_expression":Se.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return st(At(Ze,{parser:kt}))}if(_e(Nt))return st(At(Ge(),{parser:"__vue_expression"}));if(_e(Le))return st(At(Ge(),{parser:"__js_expression"}))}if(Se.parser==="angular"){let lt=(tt,He)=>At(tt,Object.assign(Object.assign({},He),{},{trailingComma:"none"})),Nt=["^\\*"],Le=["^\\(.+\\)$","^on-"],Ze=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],kt=["^i18n(-.+)?$"];if(_e(Le))return st(lt(Ge(),{parser:"__ng_action"}));if(_e(Ze))return st(lt(Ge(),{parser:"__ng_binding"}));if(_e(kt)){let tt=Ge().trim();return be(S(Z(De,tt)),!tt.includes("@@"))}if(_e(Nt))return st(lt(Ge(),{parser:"__ng_directive"}));let Pt=/{{(.+?)}}/s,Jt=Ge();if(Pt.test(Jt)){let tt=[];for(let[He,ot]of Jt.split(Pt).entries())if(He%2===0)tt.push(G(ot));else try{tt.push(y(["{{",x([A,lt(ot,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),A,"}}"]))}catch{tt.push("{{",G(ot),"}}")}return y(tt)}}return null}function pe(De,we,Se,_e){let Ge=De.getValue();switch(Ge.type){case"element":{if(ye(Ge)||Ge.type==="interpolation")return;if(!Ge.isSelfClosing&&Oe(Ge,_e)){let xe=V(Ge,_e);if(!xe)return;let nt=se(Ge,_e),Fe=/^\s*$/.test(nt),be="";return Fe||(be=Se(le(nt),{parser:xe,__embeddedInHtml:!0},{stripTrailingHardline:!0}),Fe=be===""),[Q(Ge,_e),y(ce(De,_e,we)),Fe?"":C,be,Fe?"":C,q(Ge,_e),U(Ge,_e)]}break}case"text":{if(ye(Ge.parent)){let xe=V(Ge.parent,_e);if(xe){let nt=xe==="markdown"?W(Ge.value.replace(/^[^\S\n]*\n/,"")):Ge.value,Fe={parser:xe,__embeddedInHtml:!0};if(_e.parser==="html"&&xe==="babel"){let be="script",{attrMap:st}=Ge.parent;st&&(st.type==="module"||st.type==="text/babel"&&st["data-type"]==="module")&&(be="module"),Fe.__babelSourceType=be}return[m,Q(Ge,_e),Se(nt,Fe,{stripTrailingHardline:!0}),U(Ge,_e)]}}else if(Ge.parent.type==="interpolation"){let xe={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return _e.parser==="angular"?(xe.parser="__ng_interpolation",xe.trailingComma="none"):_e.parser==="vue"?xe.parser=_e.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":xe.parser="__js_expression",[x([A,Se(Ge.value,xe,{stripTrailingHardline:!0})]),Ge.parent.next&&$(Ge.parent.next)?" ":A]}break}case"attribute":{if(!Ge.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(_e.originalText.slice(Ge.valueSpan.start.offset,Ge.valueSpan.end.offset)))return[Ge.rawName,"=",Ge.value];if(_e.parser==="lwc"&&/^{.*}$/s.test(_e.originalText.slice(Ge.valueSpan.start.offset,Ge.valueSpan.end.offset)))return[Ge.rawName,"=",Ge.value];let xe=ae(Ge,(nt,Fe)=>Se(nt,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},Fe),{stripTrailingHardline:!0}),_e);if(xe)return[Ge.rawName,'="',y(O(xe,nt=>typeof nt=="string"?nt.replace(/"/g,"""):nt)),'"'];break}case"front-matter":return z(Ge,Se)}}c.exports=pe}}),nc=Ue({"src/language-html/print/children.js"(a,c){Je();var{builders:{breakParent:m,group:y,ifBreak:C,line:x,softline:A,hardline:S},utils:{replaceTextEndOfLine:k}}=Gr(),{locStart:O,locEnd:G}=Ao(),{forceBreakChildren:z,forceNextEmptyLine:q,isTextLikeNode:U,hasPrettierIgnore:$,preferHardlineAsLeadingSpaces:Q}=Ks(),{printOpeningTagPrefix:ce,needsToBorrowNextOpeningTagStartMarker:ge,printOpeningTagStartMarker:ne,needsToBorrowPrevClosingTagEndMarker:me,printClosingTagEndMarker:ue,printClosingTagSuffix:Ee,needsToBorrowParentClosingTagStartMarker:ye}=nu();function Oe(W,te,B){let X=W.getValue();return $(X)?[ce(X,te),...k(te.originalText.slice(O(X)+(X.prev&&ge(X.prev)?ne(X).length:0),G(X)-(X.next&&me(X.next)?ue(X,te).length:0))),Ee(X,te)]:B()}function V(W,te){return U(W)&&U(te)?W.isTrailingSpaceSensitive?W.hasTrailingSpaces?Q(te)?S:x:"":Q(te)?S:A:ge(W)&&($(te)||te.firstChild||te.isSelfClosing||te.type==="element"&&te.attrs.length>0)||W.type==="element"&&W.isSelfClosing&&me(te)?"":!te.isLeadingSpaceSensitive||Q(te)||me(te)&&W.lastChild&&ye(W.lastChild)&&W.lastChild.lastChild&&ye(W.lastChild.lastChild)?S:te.hasLeadingSpaces?x:A}function le(W,te,B){let X=W.getValue();if(z(X))return[m,...W.map(se=>{let ae=se.getValue(),pe=ae.prev?V(ae.prev,ae):"";return[pe?[pe,q(ae.prev)?S:""]:"",Oe(se,te,B)]},"children")];let Z=X.children.map(()=>Symbol(""));return W.map((se,ae)=>{let pe=se.getValue();if(U(pe)){if(pe.prev&&U(pe.prev)){let nt=V(pe.prev,pe);if(nt)return q(pe.prev)?[S,S,Oe(se,te,B)]:[nt,Oe(se,te,B)]}return Oe(se,te,B)}let De=[],we=[],Se=[],_e=[],Ge=pe.prev?V(pe.prev,pe):"",xe=pe.next?V(pe,pe.next):"";return Ge&&(q(pe.prev)?De.push(S,S):Ge===S?De.push(S):U(pe.prev)?we.push(Ge):we.push(C("",A,{groupId:Z[ae-1]}))),xe&&(q(pe)?U(pe.next)&&_e.push(S,S):xe===S?U(pe.next)&&_e.push(S):Se.push(xe)),[...De,y([...we,y([Oe(se,te,B),...Se],{id:Z[ae]})]),..._e]},"children")}c.exports={printChildren:le}}}),Vc=Ue({"src/language-html/print/element.js"(a,c){Je();var{builders:{breakParent:m,dedentToRoot:y,group:C,ifBreak:x,indentIfBreak:A,indent:S,line:k,softline:O},utils:{replaceTextEndOfLine:G}}=Gr(),z=Wc(),{shouldPreserveContent:q,isScriptLikeTag:U,isVueCustomBlock:$,countParents:Q,forceBreakContent:ce}=Ks(),{printOpeningTagPrefix:ge,printOpeningTag:ne,printClosingTagSuffix:me,printClosingTag:ue,needsToBorrowPrevClosingTagEndMarker:Ee,needsToBorrowLastChildClosingTagEndMarker:ye}=nu(),{printChildren:Oe}=nc();function V(le,W,te){let B=le.getValue();if(q(B,W))return[ge(B,W),C(ne(le,W,te)),...G(z(B,W)),...ue(B,W),me(B,W)];let X=B.children.length===1&&B.firstChild.type==="interpolation"&&B.firstChild.isLeadingSpaceSensitive&&!B.firstChild.hasLeadingSpaces&&B.lastChild.isTrailingSpaceSensitive&&!B.lastChild.hasTrailingSpaces,Z=Symbol("element-attr-group-id"),se=we=>C([C(ne(le,W,te),{id:Z}),we,ue(B,W)]),ae=we=>X?A(we,{groupId:Z}):(U(B)||$(B,W))&&B.parent.type==="root"&&W.parser==="vue"&&!W.vueIndentScriptAndStyle?we:S(we),pe=()=>X?x(O,"",{groupId:Z}):B.firstChild.hasLeadingSpaces&&B.firstChild.isLeadingSpaceSensitive?k:B.firstChild.type==="text"&&B.isWhitespaceSensitive&&B.isIndentationSensitive?y(O):O,De=()=>(B.next?Ee(B.next):ye(B.parent))?B.lastChild.hasTrailingSpaces&&B.lastChild.isTrailingSpaceSensitive?" ":"":X?x(O,"",{groupId:Z}):B.lastChild.hasTrailingSpaces&&B.lastChild.isTrailingSpaceSensitive?k:(B.lastChild.type==="comment"||B.lastChild.type==="text"&&B.isWhitespaceSensitive&&B.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${W.tabWidth*Q(le,we=>we.parent&&we.parent.type!=="root")}}$`).test(B.lastChild.value)?"":O;return B.children.length===0?se(B.hasDanglingSpaces&&B.isDanglingSpaceSensitive?k:""):se([ce(B)?m:"",ae([pe(),Oe(le,W,te)]),De()])}c.exports={printElement:V}}}),qc=Ue({"src/language-html/printer-html.js"(a,c){Je();var{builders:{fill:m,group:y,hardline:C,literalline:x},utils:{cleanDoc:A,getDocParts:S,isConcat:k,replaceTextEndOfLine:O}}=Gr(),G=bo(),{countChars:z,unescapeQuoteEntities:q,getTextValueParts:U}=Ks(),$=ha(),{insertPragma:Q}=$r(),{locStart:ce,locEnd:ge}=Ao(),ne=Gi(),{printClosingTagSuffix:me,printClosingTagEnd:ue,printOpeningTagPrefix:Ee,printOpeningTagStart:ye}=nu(),{printElement:Oe}=Vc(),{printChildren:V}=nc();function le(W,te,B){let X=W.getValue();switch(X.type){case"front-matter":return O(X.raw);case"root":return te.__onHtmlRoot&&te.__onHtmlRoot(X),[y(V(W,te,B)),C];case"element":case"ieConditionalComment":return Oe(W,te,B);case"ieConditionalStartComment":case"ieConditionalEndComment":return[ye(X),ue(X)];case"interpolation":return[ye(X,te),...W.map(B,"children"),ue(X,te)];case"text":{if(X.parent.type==="interpolation"){let se=/\n[^\S\n]*$/,ae=se.test(X.value),pe=ae?X.value.replace(se,""):X.value;return[...O(pe),ae?C:""]}let Z=A([Ee(X,te),...U(X),me(X,te)]);return k(Z)||Z.type==="fill"?m(S(Z)):Z}case"docType":return[y([ye(X,te)," ",X.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),ue(X,te)];case"comment":return[Ee(X,te),...O(te.originalText.slice(ce(X),ge(X)),x),me(X,te)];case"attribute":{if(X.value===null)return X.rawName;let Z=q(X.value),se=z(Z,"'"),ae=z(Z,'"'),pe=se({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),m(Ii(),k=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...k.extensions,".mjml"]})),m(Ii(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),m(ja(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],S={html:y};c.exports={languages:A,printers:S,options:C,parsers:x}}}),Xc=Ue({"src/language-yaml/pragma.js"(a,c){Je();function m(x){return/^\s*@(?:prettier|format)\s*$/.test(x)}function y(x){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(x)}function C(x){return`# @format + +${x}`}c.exports={isPragma:m,hasPragma:y,insertPragma:C}}}),Jc=Ue({"src/language-yaml/loc.js"(a,c){Je();function m(C){return C.position.start.offset}function y(C){return C.position.end.offset}c.exports={locStart:m,locEnd:y}}}),Ha=Ue({"src/language-yaml/embed.js"(a,c){Je();function m(y,C,x,A){if(y.getValue().type==="root"&&A.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(A.filepath))return x(A.originalText,Object.assign(Object.assign({},A),{},{parser:"json"}))}c.exports=m}}),Is=Ue({"src/language-yaml/utils.js"(a,c){Je();var{getLast:m,isNonEmptyArray:y}=Tn();function C(V,le){let W=0,te=V.stack.length-1;for(let B=0;BA(te,le,V))}):V,W)}function S(V,le,W){Object.defineProperty(V,le,{get:W,enumerable:!1})}function k(V,le){let W=0,te=le.length;for(let B=V.position.end.offset-1;BX===0&&X===Z.length-1?B:X!==0&&X!==Z.length-1?B.trim():X===0?B.trimEnd():B.trimStart());return W.proseWrap==="preserve"?te.map(B=>B.length===0?[]:[B]):te.map(B=>B.length===0?[]:ue(B)).reduce((B,X,Z)=>Z!==0&&te[Z-1].length>0&&X.length>0&&!(V==="quoteDouble"&&m(m(B)).endsWith("\\"))?[...B.slice(0,-1),[...m(B),...X]]:[...B,X],[]).map(B=>W.proseWrap==="never"?[B.join(" ")]:B)}function ye(V,le){let{parentIndent:W,isLastDescendant:te,options:B}=le,X=V.position.start.line===V.position.end.line?"":B.originalText.slice(V.position.start.offset,V.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],Z;if(V.indent===null){let pe=X.match(/^(? *)[^\n\r ]/m);Z=pe?pe.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else Z=V.indent-1+W;let se=X.split(` +`).map(pe=>pe.slice(Z));if(B.proseWrap==="preserve"||V.type==="blockLiteral")return ae(se.map(pe=>pe.length===0?[]:[pe]));return ae(se.map(pe=>pe.length===0?[]:ue(pe)).reduce((pe,De,we)=>we!==0&&se[we-1].length>0&&De.length>0&&!/^\s/.test(De[0])&&!/^\s|\s$/.test(m(pe))?[...pe.slice(0,-1),[...m(pe),...De]]:[...pe,De],[]).map(pe=>pe.reduce((De,we)=>De.length>0&&/\s$/.test(m(De))?[...De.slice(0,-1),m(De)+" "+we]:[...De,we],[])).map(pe=>B.proseWrap==="never"?[pe.join(" ")]:pe));function ae(pe){if(V.chomping==="keep")return m(pe).length===0?pe.slice(0,-1):pe;let De=0;for(let we=pe.length-1;we>=0&&pe[we].length===0;we--)De++;return De===0?pe:De>=2&&!te?pe.slice(0,-(De-1)):pe.slice(0,-De)}}function Oe(V){if(!V)return!0;switch(V.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}c.exports={getLast:m,getAncestorCount:C,isNode:x,isEmptyNode:U,isInlineNode:Oe,mapNode:A,defineShortcut:S,isNextLineEmpty:k,isLastDescendantNode:O,getBlockValueLineContents:ye,getFlowScalarLineContents:Ee,getLastDescendantNode:G,hasPrettierIgnore:q,hasLeadingComments:Q,hasMiddleComments:ce,hasIndicatorComment:ge,hasTrailingComment:ne,hasEndComments:me}}}),Cl=Ue({"src/language-yaml/print-preprocess.js"(a,c){Je();var{defineShortcut:m,mapNode:y}=Is();function C(A){return y(A,x)}function x(A){switch(A.type){case"document":m(A,"head",()=>A.children[0]),m(A,"body",()=>A.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":m(A,"content",()=>A.children[0]);break;case"mappingItem":case"flowMappingItem":m(A,"key",()=>A.children[0]),m(A,"value",()=>A.children[1]);break}return A}c.exports=C}}),Ua=Ue({"src/language-yaml/print/misc.js"(a,c){Je();var{builders:{softline:m,align:y}}=Gr(),{hasEndComments:C,isNextLineEmpty:x,isNode:A}=Is(),S=new WeakMap;function k(z,q){let U=z.getValue(),$=z.stack[0],Q;return S.has($)?Q=S.get($):(Q=new Set,S.set($,Q)),!Q.has(U.position.end.line)&&(Q.add(U.position.end.line),x(U,q)&&!O(z.getParentNode()))?m:""}function O(z){return C(z)&&!A(z,["documentHead","documentBody","flowMapping","flowSequence"])}function G(z,q){return y(" ".repeat(z),q)}c.exports={alignWithSpaces:G,shouldPrintEndComments:O,printNextEmptyLine:k}}}),Ls=Ue({"src/language-yaml/print/flow-mapping-sequence.js"(a,c){Je();var{builders:{ifBreak:m,line:y,softline:C,hardline:x,join:A}}=Gr(),{isEmptyNode:S,getLast:k,hasEndComments:O}=Is(),{printNextEmptyLine:G,alignWithSpaces:z}=Ua();function q($,Q,ce){let ge=$.getValue(),ne=ge.type==="flowMapping",me=ne?"{":"[",ue=ne?"}":"]",Ee=C;ne&&ge.children.length>0&&ce.bracketSpacing&&(Ee=y);let ye=k(ge.children),Oe=ye&&ye.type==="flowMappingItem"&&S(ye.key)&&S(ye.value);return[me,z(ce.tabWidth,[Ee,U($,Q,ce),ce.trailingComma==="none"?"":m(","),O(ge)?[x,A(x,$.map(Q,"endComments"))]:""]),Oe?"":Ee,ue]}function U($,Q,ce){let ge=$.getValue();return $.map((ne,me)=>[Q(),me===ge.children.length-1?"":[",",y,ge.children[me].position.start.line!==ge.children[me+1].position.start.line?G(ne,ce.originalText):""]],"children")}c.exports={printFlowMapping:q,printFlowSequence:q}}}),Gp=Ue({"src/language-yaml/print/mapping-item.js"(a,c){Je();var{builders:{conditionalGroup:m,group:y,hardline:C,ifBreak:x,join:A,line:S}}=Gr(),{hasLeadingComments:k,hasMiddleComments:O,hasTrailingComment:G,hasEndComments:z,isNode:q,isEmptyNode:U,isInlineNode:$}=Is(),{alignWithSpaces:Q}=Ua();function ce(ue,Ee,ye,Oe,V){let{key:le,value:W}=ue,te=U(le),B=U(W);if(te&&B)return": ";let X=Oe("key"),Z=ne(ue)?" ":"";if(B)return ue.type==="flowMappingItem"&&Ee.type==="flowMapping"?X:ue.type==="mappingItem"&&ge(le.content,V)&&!G(le.content)&&(!Ee.tag||Ee.tag.value!=="tag:yaml.org,2002:set")?[X,Z,":"]:["? ",Q(2,X)];let se=Oe("value");if(te)return[": ",Q(2,se)];if(k(W)||!$(le.content))return["? ",Q(2,X),C,A("",ye.map(Oe,"value","leadingComments").map(_e=>[_e,C])),": ",Q(2,se)];if(me(le.content)&&!k(le.content)&&!O(le.content)&&!G(le.content)&&!z(le)&&!k(W.content)&&!O(W.content)&&!z(W)&&ge(W.content,V))return[X,Z,": ",se];let ae=Symbol("mappingKey"),pe=y([x("? "),y(Q(2,X),{id:ae})]),De=[C,": ",Q(2,se)],we=[Z,":"];k(W.content)||z(W)&&W.content&&!q(W.content,["mapping","sequence"])||Ee.type==="mapping"&&G(le.content)&&$(W.content)||q(W.content,["mapping","sequence"])&&W.content.tag===null&&W.content.anchor===null?we.push(C):W.content&&we.push(S),we.push(se);let Se=Q(V.tabWidth,we);return ge(le.content,V)&&!k(le.content)&&!O(le.content)&&!z(le)?m([[X,Se]]):m([[pe,x(De,Se,{groupId:ae})]])}function ge(ue,Ee){if(!ue)return!0;switch(ue.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(Ee.proseWrap==="preserve")return ue.position.start.line===ue.position.end.line;if(/\\$/m.test(Ee.originalText.slice(ue.position.start.offset,ue.position.end.offset)))return!1;switch(Ee.proseWrap){case"never":return!ue.value.includes(` +`);case"always":return!/[\n ]/.test(ue.value);default:return!1}}function ne(ue){return ue.key.content&&ue.key.content.type==="alias"}function me(ue){if(!ue)return!0;switch(ue.type){case"plain":case"quoteDouble":case"quoteSingle":return ue.position.start.line===ue.position.end.line;case"alias":return!0;default:return!1}}c.exports=ce}}),Wp=Ue({"src/language-yaml/print/block.js"(a,c){Je();var{builders:{dedent:m,dedentToRoot:y,fill:C,hardline:x,join:A,line:S,literalline:k,markAsRoot:O},utils:{getDocParts:G}}=Gr(),{getAncestorCount:z,getBlockValueLineContents:q,hasIndicatorComment:U,isLastDescendantNode:$,isNode:Q}=Is(),{alignWithSpaces:ce}=Ua();function ge(ne,me,ue){let Ee=ne.getValue(),ye=z(ne,te=>Q(te,["sequence","mapping"])),Oe=$(ne),V=[Ee.type==="blockFolded"?">":"|"];Ee.indent!==null&&V.push(Ee.indent.toString()),Ee.chomping!=="clip"&&V.push(Ee.chomping==="keep"?"+":"-"),U(Ee)&&V.push(" ",me("indicatorComment"));let le=q(Ee,{parentIndent:ye,isLastDescendant:Oe,options:ue}),W=[];for(let[te,B]of le.entries())te===0&&W.push(x),W.push(C(G(A(S,B)))),te!==le.length-1?W.push(B.length===0?x:O(k)):Ee.chomping==="keep"&&Oe&&W.push(y(B.length===0?x:k));return Ee.indent===null?V.push(m(ce(ue.tabWidth,W))):V.push(y(ce(Ee.indent-1+ye,W))),V}c.exports=ge}}),za=Ue({"src/language-yaml/printer-yaml.js"(a,c){Je();var{builders:{breakParent:m,fill:y,group:C,hardline:x,join:A,line:S,lineSuffix:k,literalline:O},utils:{getDocParts:G,replaceTextEndOfLine:z}}=Gr(),{isPreviousLineEmpty:q}=Tn(),{insertPragma:U,isPragma:$}=Xc(),{locStart:Q}=Jc(),ce=Ha(),{getFlowScalarLineContents:ge,getLastDescendantNode:ne,hasLeadingComments:me,hasMiddleComments:ue,hasTrailingComment:Ee,hasEndComments:ye,hasPrettierIgnore:Oe,isLastDescendantNode:V,isNode:le,isInlineNode:W}=Is(),te=Cl(),{alignWithSpaces:B,printNextEmptyLine:X,shouldPrintEndComments:Z}=Ua(),{printFlowMapping:se,printFlowSequence:ae}=Ls(),pe=Gp(),De=Wp();function we(be,st,At){let lt=be.getValue(),Nt=[];lt.type!=="mappingValue"&&me(lt)&&Nt.push([A(x,be.map(At,"leadingComments")),x]);let{tag:Le,anchor:Ze}=lt;Le&&Nt.push(At("tag")),Le&&Ze&&Nt.push(" "),Ze&&Nt.push(At("anchor"));let kt="";le(lt,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!V(be)&&(kt=X(be,st.originalText)),(Le||Ze)&&(le(lt,["sequence","mapping"])&&!ue(lt)?Nt.push(x):Nt.push(" ")),ue(lt)&&Nt.push([lt.middleComments.length===1?"":x,A(x,be.map(At,"middleComments")),x]);let Pt=be.getParentNode();return Oe(be)?Nt.push(z(st.originalText.slice(lt.position.start.offset,lt.position.end.offset).trimEnd(),O)):Nt.push(C(Se(lt,Pt,be,st,At))),Ee(lt)&&!le(lt,["document","documentHead"])&&Nt.push(k([lt.type==="mappingValue"&&!lt.content?"":" ",Pt.type==="mappingKey"&&be.getParentNode(2).type==="mapping"&&W(lt)?"":m,At("trailingComment")])),Z(lt)&&Nt.push(B(lt.type==="sequenceItem"?2:0,[x,A(x,be.map(Jt=>[q(st.originalText,Jt.getValue(),Q)?x:"",At()],"endComments"))])),Nt.push(kt),Nt}function Se(be,st,At,lt,Nt){switch(be.type){case"root":{let{children:Le}=be,Ze=[];At.each((Pt,Jt)=>{let tt=Le[Jt],He=Le[Jt+1];Jt!==0&&Ze.push(x),Ze.push(Nt()),Ge(tt,He)?(Ze.push(x,"..."),Ee(tt)&&Ze.push(" ",Nt("trailingComment"))):He&&!Ee(He.head)&&Ze.push(x,"---")},"children");let kt=ne(be);return(!le(kt,["blockLiteral","blockFolded"])||kt.chomping!=="keep")&&Ze.push(x),Ze}case"document":{let Le=st.children[At.getName()+1],Ze=[];return xe(be,Le,st,lt)==="head"&&((be.head.children.length>0||be.head.endComments.length>0)&&Ze.push(Nt("head")),Ee(be.head)?Ze.push(["---"," ",Nt(["head","trailingComment"])]):Ze.push("---")),_e(be)&&Ze.push(Nt("body")),A(x,Ze)}case"documentHead":return A(x,[...At.map(Nt,"children"),...At.map(Nt,"endComments")]);case"documentBody":{let{children:Le,endComments:Ze}=be,kt="";if(Le.length>0&&Ze.length>0){let Pt=ne(be);le(Pt,["blockFolded","blockLiteral"])?Pt.chomping!=="keep"&&(kt=[x,x]):kt=x}return[A(x,At.map(Nt,"children")),kt,A(x,At.map(Nt,"endComments"))]}case"directive":return["%",A(" ",[be.name,...be.parameters])];case"comment":return["#",be.value];case"alias":return["*",be.value];case"tag":return lt.originalText.slice(be.position.start.offset,be.position.end.offset);case"anchor":return["&",be.value];case"plain":return nt(be.type,lt.originalText.slice(be.position.start.offset,be.position.end.offset),lt);case"quoteDouble":case"quoteSingle":{let Le="'",Ze='"',kt=lt.originalText.slice(be.position.start.offset+1,be.position.end.offset-1);if(be.type==="quoteSingle"&&kt.includes("\\")||be.type==="quoteDouble"&&/\\[^"]/.test(kt)){let Jt=be.type==="quoteDouble"?Ze:Le;return[Jt,nt(be.type,kt,lt),Jt]}if(kt.includes(Ze))return[Le,nt(be.type,be.type==="quoteDouble"?kt.replace(/\\"/g,Ze).replace(/'/g,Le.repeat(2)):kt,lt),Le];if(kt.includes(Le))return[Ze,nt(be.type,be.type==="quoteSingle"?kt.replace(/''/g,Le):kt,lt),Ze];let Pt=lt.singleQuote?Le:Ze;return[Pt,nt(be.type,kt,lt),Pt]}case"blockFolded":case"blockLiteral":return De(At,Nt,lt);case"mapping":case"sequence":return A(x,At.map(Nt,"children"));case"sequenceItem":return["- ",B(2,be.content?Nt("content"):"")];case"mappingKey":case"mappingValue":return be.content?Nt("content"):"";case"mappingItem":case"flowMappingItem":return pe(be,st,At,Nt,lt);case"flowMapping":return se(At,Nt,lt);case"flowSequence":return ae(At,Nt,lt);case"flowSequenceItem":return Nt("content");default:throw new Error(`Unexpected node type ${be.type}`)}}function _e(be){return be.body.children.length>0||ye(be.body)}function Ge(be,st){return Ee(be)||st&&(st.head.children.length>0||ye(st.head))}function xe(be,st,At,lt){return At.children[0]===be&&/---(?:\s|$)/.test(lt.originalText.slice(Q(be),Q(be)+4))||be.head.children.length>0||ye(be.head)||Ee(be.head)?"head":Ge(be,st)?!1:st?"root":!1}function nt(be,st,At){let lt=ge(be,st,At);return A(x,lt.map(Nt=>y(G(A(S,Nt)))))}function Fe(be,st){if(le(st))switch(delete st.position,st.type){case"comment":if($(st.value))return null;break;case"quoteDouble":case"quoteSingle":st.type="quote";break}}c.exports={preprocess:te,embed:ce,print:we,massageAstNode:Fe,insertPragma:U}}}),Qc=Ue({"src/language-yaml/options.js"(a,c){Je();var m=Ma();c.exports={bracketSpacing:m.bracketSpacing,singleQuote:m.singleQuote,proseWrap:m.proseWrap}}}),Zc=Ue({"src/language-yaml/parsers.js"(){Je()}}),ic=Ue({"node_modules/linguist-languages/data/YAML.json"(a,c){c.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),xl=Ue({"src/language-yaml/index.js"(a,c){Je();var m=_s(),y=za(),C=Qc(),x=Zc(),A=[m(ic(),S=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...S.filenames.filter(k=>k!=="yarn.lock"),".prettierrc",".stylelintrc",".lintstagedrc"]}))];c.exports={languages:A,printers:{yaml:y},options:C,parsers:x}}}),iu=Ue({"src/languages.js"(a,c){Je(),c.exports=[Nu(),Bp(),Ou(),Rc(),pa(),Yc(),xl()]}});Je();var{version:sc}=Ci(),$a=ws(),{getSupportInfo:ac}=Ca(),Uu=ho(),su=iu(),ep=Gr();function l(a){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var m=arguments.length,y=new Array(m),C=0;C()=>(Mt||Tr((Mt={exports:{}}).exports,Mt),Mt.exports),o=r((Tr,Mt)=>{var xt=function(Rt){return Rt&&Rt.Math==Math&&Rt};Mt.exports=xt(typeof globalThis=="object"&&globalThis)||xt(typeof window=="object"&&window)||xt(typeof self=="object"&&self)||xt(typeof y1=="object"&&y1)||function(){return this}()||Function("return this")()}),g=r((Tr,Mt)=>{Mt.exports=function(xt){try{return!!xt()}catch{return!0}}}),v=r((Tr,Mt)=>{var xt=g();Mt.exports=!xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),E=r((Tr,Mt)=>{var xt=g();Mt.exports=!xt(function(){var Rt=(function(){}).bind();return typeof Rt!="function"||Rt.hasOwnProperty("prototype")})}),b=r((Tr,Mt)=>{var xt=E(),Rt=Function.prototype.call;Mt.exports=xt?Rt.bind(Rt):function(){return Rt.apply(Rt,arguments)}}),N=r(Tr=>{var Mt={}.propertyIsEnumerable,xt=Object.getOwnPropertyDescriptor,Rt=xt&&!Mt.call({1:2},1);Tr.f=Rt?function(Ft){var qt=xt(this,Ft);return!!qt&&qt.enumerable}:Mt}),F=r((Tr,Mt)=>{Mt.exports=function(xt,Rt){return{enumerable:!(xt&1),configurable:!(xt&2),writable:!(xt&4),value:Rt}}}),L=r((Tr,Mt)=>{var xt=E(),Rt=Function.prototype,Ft=Rt.call,qt=xt&&Rt.bind.bind(Ft,Ft);Mt.exports=xt?qt:function(lr){return function(){return Ft.apply(lr,arguments)}}}),H=r((Tr,Mt)=>{var xt=L(),Rt=xt({}.toString),Ft=xt("".slice);Mt.exports=function(qt){return Ft(Rt(qt),8,-1)}}),ie=r((Tr,Mt)=>{var xt=L(),Rt=g(),Ft=H(),qt=Object,lr=xt("".split);Mt.exports=Rt(function(){return!qt("z").propertyIsEnumerable(0)})?function(ar){return Ft(ar)=="String"?lr(ar,""):qt(ar)}:qt}),re=r((Tr,Mt)=>{Mt.exports=function(xt){return xt==null}}),Ae=r((Tr,Mt)=>{var xt=re(),Rt=TypeError;Mt.exports=function(Ft){if(xt(Ft))throw Rt("Can't call method on "+Ft);return Ft}}),$e=r((Tr,Mt)=>{var xt=ie(),Rt=Ae();Mt.exports=function(Ft){return xt(Rt(Ft))}}),Be=r((Tr,Mt)=>{var xt=typeof document=="object"&&document.all,Rt=typeof xt>"u"&&xt!==void 0;Mt.exports={all:xt,IS_HTMLDDA:Rt}}),Ne=r((Tr,Mt)=>{var xt=Be(),Rt=xt.all;Mt.exports=xt.IS_HTMLDDA?function(Ft){return typeof Ft=="function"||Ft===Rt}:function(Ft){return typeof Ft=="function"}}),et=r((Tr,Mt)=>{var xt=Ne(),Rt=Be(),Ft=Rt.all;Mt.exports=Rt.IS_HTMLDDA?function(qt){return typeof qt=="object"?qt!==null:xt(qt)||qt===Ft}:function(qt){return typeof qt=="object"?qt!==null:xt(qt)}}),Ke=r((Tr,Mt)=>{var xt=o(),Rt=Ne(),Ft=function(qt){return Rt(qt)?qt:void 0};Mt.exports=function(qt,lr){return arguments.length<2?Ft(xt[qt]):xt[qt]&&xt[qt][lr]}}),Re=r((Tr,Mt)=>{var xt=L();Mt.exports=xt({}.isPrototypeOf)}),$t=r((Tr,Mt)=>{var xt=Ke();Mt.exports=xt("navigator","userAgent")||""}),ze=r((Tr,Mt)=>{var xt=o(),Rt=$t(),Ft=xt.process,qt=xt.Deno,lr=Ft&&Ft.versions||qt&&qt.version,ar=lr&&lr.v8,vr,Ct;ar&&(vr=ar.split("."),Ct=vr[0]>0&&vr[0]<4?1:+(vr[0]+vr[1])),!Ct&&Rt&&(vr=Rt.match(/Edge\/(\d+)/),(!vr||vr[1]>=74)&&(vr=Rt.match(/Chrome\/(\d+)/),vr&&(Ct=+vr[1]))),Mt.exports=Ct}),ht=r((Tr,Mt)=>{var xt=ze(),Rt=g();Mt.exports=!!Object.getOwnPropertySymbols&&!Rt(function(){var Ft=Symbol();return!String(Ft)||!(Object(Ft)instanceof Symbol)||!Symbol.sham&&xt&&xt<41})}),rr=r((Tr,Mt)=>{var xt=ht();Mt.exports=xt&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Kt=r((Tr,Mt)=>{var xt=Ke(),Rt=Ne(),Ft=Re(),qt=rr(),lr=Object;Mt.exports=qt?function(ar){return typeof ar=="symbol"}:function(ar){var vr=xt("Symbol");return Rt(vr)&&Ft(vr.prototype,lr(ar))}}),vt=r((Tr,Mt)=>{var xt=String;Mt.exports=function(Rt){try{return xt(Rt)}catch{return"Object"}}}),Yt=r((Tr,Mt)=>{var xt=Ne(),Rt=vt(),Ft=TypeError;Mt.exports=function(qt){if(xt(qt))return qt;throw Ft(Rt(qt)+" is not a function")}}),St=r((Tr,Mt)=>{var xt=Yt(),Rt=re();Mt.exports=function(Ft,qt){var lr=Ft[qt];return Rt(lr)?void 0:xt(lr)}}),ft=r((Tr,Mt)=>{var xt=b(),Rt=Ne(),Ft=et(),qt=TypeError;Mt.exports=function(lr,ar){var vr,Ct;if(ar==="string"&&Rt(vr=lr.toString)&&!Ft(Ct=xt(vr,lr))||Rt(vr=lr.valueOf)&&!Ft(Ct=xt(vr,lr))||ar!=="string"&&Rt(vr=lr.toString)&&!Ft(Ct=xt(vr,lr)))return Ct;throw qt("Can't convert object to primitive value")}}),er=r((Tr,Mt)=>{Mt.exports=!1}),jt=r((Tr,Mt)=>{var xt=o(),Rt=Object.defineProperty;Mt.exports=function(Ft,qt){try{Rt(xt,Ft,{value:qt,configurable:!0,writable:!0})}catch{xt[Ft]=qt}return qt}}),ur=r((Tr,Mt)=>{var xt=o(),Rt=jt(),Ft="__core-js_shared__",qt=xt[Ft]||Rt(Ft,{});Mt.exports=qt}),Ur=r((Tr,Mt)=>{var xt=er(),Rt=ur();(Mt.exports=function(Ft,qt){return Rt[Ft]||(Rt[Ft]=qt!==void 0?qt:{})})("versions",[]).push({version:"3.26.1",mode:xt?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Yr=r((Tr,Mt)=>{var xt=Ae(),Rt=Object;Mt.exports=function(Ft){return Rt(xt(Ft))}}),Zr=r((Tr,Mt)=>{var xt=L(),Rt=Yr(),Ft=xt({}.hasOwnProperty);Mt.exports=Object.hasOwn||function(qt,lr){return Ft(Rt(qt),lr)}}),fe=r((Tr,Mt)=>{var xt=L(),Rt=0,Ft=Math.random(),qt=xt(1 .toString);Mt.exports=function(lr){return"Symbol("+(lr===void 0?"":lr)+")_"+qt(++Rt+Ft,36)}}),Te=r((Tr,Mt)=>{var xt=o(),Rt=Ur(),Ft=Zr(),qt=fe(),lr=ht(),ar=rr(),vr=Rt("wks"),Ct=xt.Symbol,We=Ct&&Ct.for,je=ar?Ct:Ct&&Ct.withoutSetter||qt;Mt.exports=function(Ye){if(!Ft(vr,Ye)||!(lr||typeof vr[Ye]=="string")){var Xe="Symbol."+Ye;lr&&Ft(Ct,Ye)?vr[Ye]=Ct[Ye]:ar&&We?vr[Ye]=We(Xe):vr[Ye]=je(Xe)}return vr[Ye]}}),Qt=r((Tr,Mt)=>{var xt=b(),Rt=et(),Ft=Kt(),qt=St(),lr=ft(),ar=Te(),vr=TypeError,Ct=ar("toPrimitive");Mt.exports=function(We,je){if(!Rt(We)||Ft(We))return We;var Ye=qt(We,Ct),Xe;if(Ye){if(je===void 0&&(je="default"),Xe=xt(Ye,We,je),!Rt(Xe)||Ft(Xe))return Xe;throw vr("Can't convert object to primitive value")}return je===void 0&&(je="number"),lr(We,je)}}),Ve=r((Tr,Mt)=>{var xt=Qt(),Rt=Kt();Mt.exports=function(Ft){var qt=xt(Ft,"string");return Rt(qt)?qt:qt+""}}),br=r((Tr,Mt)=>{var xt=o(),Rt=et(),Ft=xt.document,qt=Rt(Ft)&&Rt(Ft.createElement);Mt.exports=function(lr){return qt?Ft.createElement(lr):{}}}),An=r((Tr,Mt)=>{var xt=v(),Rt=g(),Ft=br();Mt.exports=!xt&&!Rt(function(){return Object.defineProperty(Ft("div"),"a",{get:function(){return 7}}).a!=7})}),yn=r(Tr=>{var Mt=v(),xt=b(),Rt=N(),Ft=F(),qt=$e(),lr=Ve(),ar=Zr(),vr=An(),Ct=Object.getOwnPropertyDescriptor;Tr.f=Mt?Ct:function(We,je){if(We=qt(We),je=lr(je),vr)try{return Ct(We,je)}catch{}if(ar(We,je))return Ft(!xt(Rt.f,We,je),We[je])}}),Pn=r((Tr,Mt)=>{var xt=v(),Rt=g();Mt.exports=xt&&Rt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),En=r((Tr,Mt)=>{var xt=et(),Rt=String,Ft=TypeError;Mt.exports=function(qt){if(xt(qt))return qt;throw Ft(Rt(qt)+" is not an object")}}),Xr=r(Tr=>{var Mt=v(),xt=An(),Rt=Pn(),Ft=En(),qt=Ve(),lr=TypeError,ar=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,Ct="enumerable",We="configurable",je="writable";Tr.f=Mt?Rt?function(Ye,Xe,gt){if(Ft(Ye),Xe=qt(Xe),Ft(gt),typeof Ye=="function"&&Xe==="prototype"&&"value"in gt&&je in gt&&!gt[je]){var Lt=vr(Ye,Xe);Lt&&Lt[je]&&(Ye[Xe]=gt.value,gt={configurable:We in gt?gt[We]:Lt[We],enumerable:Ct in gt?gt[Ct]:Lt[Ct],writable:!1})}return ar(Ye,Xe,gt)}:ar:function(Ye,Xe,gt){if(Ft(Ye),Xe=qt(Xe),Ft(gt),xt)try{return ar(Ye,Xe,gt)}catch{}if("get"in gt||"set"in gt)throw lr("Accessors not supported");return"value"in gt&&(Ye[Xe]=gt.value),Ye}}),Dn=r((Tr,Mt)=>{var xt=v(),Rt=Xr(),Ft=F();Mt.exports=xt?function(qt,lr,ar){return Rt.f(qt,lr,Ft(1,ar))}:function(qt,lr,ar){return qt[lr]=ar,qt}}),Rn=r((Tr,Mt)=>{var xt=v(),Rt=Zr(),Ft=Function.prototype,qt=xt&&Object.getOwnPropertyDescriptor,lr=Rt(Ft,"name"),ar=lr&&(function(){}).name==="something",vr=lr&&(!xt||xt&&qt(Ft,"name").configurable);Mt.exports={EXISTS:lr,PROPER:ar,CONFIGURABLE:vr}}),mi=r((Tr,Mt)=>{var xt=L(),Rt=Ne(),Ft=ur(),qt=xt(Function.toString);Rt(Ft.inspectSource)||(Ft.inspectSource=function(lr){return qt(lr)}),Mt.exports=Ft.inspectSource}),bn=r((Tr,Mt)=>{var xt=o(),Rt=Ne(),Ft=xt.WeakMap;Mt.exports=Rt(Ft)&&/native code/.test(String(Ft))}),gi=r((Tr,Mt)=>{var xt=Ur(),Rt=fe(),Ft=xt("keys");Mt.exports=function(qt){return Ft[qt]||(Ft[qt]=Rt(qt))}}),Di=r((Tr,Mt)=>{Mt.exports={}}),fi=r((Tr,Mt)=>{var xt=bn(),Rt=o(),Ft=et(),qt=Dn(),lr=Zr(),ar=ur(),vr=gi(),Ct=Di(),We="Object already initialized",je=Rt.TypeError,Ye=Rt.WeakMap,Xe,gt,Lt,Gt=function(Er){return Lt(Er)?gt(Er):Xe(Er,{})},Ut=function(Er){return function(wr){var cr;if(!Ft(wr)||(cr=gt(wr)).type!==Er)throw je("Incompatible receiver, "+Er+" required");return cr}};xt||ar.state?(bt=ar.state||(ar.state=new Ye),bt.get=bt.get,bt.has=bt.has,bt.set=bt.set,Xe=function(Er,wr){if(bt.has(Er))throw je(We);return wr.facade=Er,bt.set(Er,wr),wr},gt=function(Er){return bt.get(Er)||{}},Lt=function(Er){return bt.has(Er)}):(yr=vr("state"),Ct[yr]=!0,Xe=function(Er,wr){if(lr(Er,yr))throw je(We);return wr.facade=Er,qt(Er,yr,wr),wr},gt=function(Er){return lr(Er,yr)?Er[yr]:{}},Lt=function(Er){return lr(Er,yr)});var bt,yr;Mt.exports={set:Xe,get:gt,has:Lt,enforce:Gt,getterFor:Ut}}),yi=r((Tr,Mt)=>{var xt=g(),Rt=Ne(),Ft=Zr(),qt=v(),lr=Rn().CONFIGURABLE,ar=mi(),vr=fi(),Ct=vr.enforce,We=vr.get,je=Object.defineProperty,Ye=qt&&!xt(function(){return je(function(){},"length",{value:8}).length!==8}),Xe=String(String).split("String"),gt=Mt.exports=function(Lt,Gt,Ut){String(Gt).slice(0,7)==="Symbol("&&(Gt="["+String(Gt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),Ut&&Ut.getter&&(Gt="get "+Gt),Ut&&Ut.setter&&(Gt="set "+Gt),(!Ft(Lt,"name")||lr&&Lt.name!==Gt)&&(qt?je(Lt,"name",{value:Gt,configurable:!0}):Lt.name=Gt),Ye&&Ut&&Ft(Ut,"arity")&&Lt.length!==Ut.arity&&je(Lt,"length",{value:Ut.arity});try{Ut&&Ft(Ut,"constructor")&&Ut.constructor?qt&&je(Lt,"prototype",{writable:!1}):Lt.prototype&&(Lt.prototype=void 0)}catch{}var bt=Ct(Lt);return Ft(bt,"source")||(bt.source=Xe.join(typeof Gt=="string"?Gt:"")),Lt};Function.prototype.toString=gt(function(){return Rt(this)&&We(this).source||ar(this)},"toString")}),Li=r((Tr,Mt)=>{var xt=Ne(),Rt=Xr(),Ft=yi(),qt=jt();Mt.exports=function(lr,ar,vr,Ct){Ct||(Ct={});var We=Ct.enumerable,je=Ct.name!==void 0?Ct.name:ar;if(xt(vr)&&Ft(vr,je,Ct),Ct.global)We?lr[ar]=vr:qt(ar,vr);else{try{Ct.unsafe?lr[ar]&&(We=!0):delete lr[ar]}catch{}We?lr[ar]=vr:Rt.f(lr,ar,{value:vr,enumerable:!1,configurable:!Ct.nonConfigurable,writable:!Ct.nonWritable})}return lr}}),Ti=r((Tr,Mt)=>{var xt=Math.ceil,Rt=Math.floor;Mt.exports=Math.trunc||function(Ft){var qt=+Ft;return(qt>0?Rt:xt)(qt)}}),gr=r((Tr,Mt)=>{var xt=Ti();Mt.exports=function(Rt){var Ft=+Rt;return Ft!==Ft||Ft===0?0:xt(Ft)}}),jn=r((Tr,Mt)=>{var xt=gr(),Rt=Math.max,Ft=Math.min;Mt.exports=function(qt,lr){var ar=xt(qt);return ar<0?Rt(ar+lr,0):Ft(ar,lr)}}),ns=r((Tr,Mt)=>{var xt=gr(),Rt=Math.min;Mt.exports=function(Ft){return Ft>0?Rt(xt(Ft),9007199254740991):0}}),ri=r((Tr,Mt)=>{var xt=ns();Mt.exports=function(Rt){return xt(Rt.length)}}),ni=r((Tr,Mt)=>{var xt=$e(),Rt=jn(),Ft=ri(),qt=function(lr){return function(ar,vr,Ct){var We=xt(ar),je=Ft(We),Ye=Rt(Ct,je),Xe;if(lr&&vr!=vr){for(;je>Ye;)if(Xe=We[Ye++],Xe!=Xe)return!0}else for(;je>Ye;Ye++)if((lr||Ye in We)&&We[Ye]===vr)return lr||Ye||0;return!lr&&-1}};Mt.exports={includes:qt(!0),indexOf:qt(!1)}}),In=r((Tr,Mt)=>{var xt=L(),Rt=Zr(),Ft=$e(),qt=ni().indexOf,lr=Di(),ar=xt([].push);Mt.exports=function(vr,Ct){var We=Ft(vr),je=0,Ye=[],Xe;for(Xe in We)!Rt(lr,Xe)&&Rt(We,Xe)&&ar(Ye,Xe);for(;Ct.length>je;)Rt(We,Xe=Ct[je++])&&(~qt(Ye,Xe)||ar(Ye,Xe));return Ye}}),Hn=r((Tr,Mt)=>{Mt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),zt=r(Tr=>{var Mt=In(),xt=Hn(),Rt=xt.concat("length","prototype");Tr.f=Object.getOwnPropertyNames||function(Ft){return Mt(Ft,Rt)}}),dr=r(Tr=>{Tr.f=Object.getOwnPropertySymbols}),rn=r((Tr,Mt)=>{var xt=Ke(),Rt=L(),Ft=zt(),qt=dr(),lr=En(),ar=Rt([].concat);Mt.exports=xt("Reflect","ownKeys")||function(vr){var Ct=Ft.f(lr(vr)),We=qt.f;return We?ar(Ct,We(vr)):Ct}}),fn=r((Tr,Mt)=>{var xt=Zr(),Rt=rn(),Ft=yn(),qt=Xr();Mt.exports=function(lr,ar,vr){for(var Ct=Rt(ar),We=qt.f,je=Ft.f,Ye=0;Ye{var xt=g(),Rt=Ne(),Ft=/#|\.prototype\./,qt=function(We,je){var Ye=ar[lr(We)];return Ye==Ct?!0:Ye==vr?!1:Rt(je)?xt(je):!!je},lr=qt.normalize=function(We){return String(We).replace(Ft,".").toLowerCase()},ar=qt.data={},vr=qt.NATIVE="N",Ct=qt.POLYFILL="P";Mt.exports=qt}),Nr=r((Tr,Mt)=>{var xt=o(),Rt=yn().f,Ft=Dn(),qt=Li(),lr=jt(),ar=fn(),vr=nn();Mt.exports=function(Ct,We){var je=Ct.target,Ye=Ct.global,Xe=Ct.stat,gt,Lt,Gt,Ut,bt,yr;if(Ye?Lt=xt:Xe?Lt=xt[je]||lr(je,{}):Lt=(xt[je]||{}).prototype,Lt)for(Gt in We){if(bt=We[Gt],Ct.dontCallGetSet?(yr=Rt(Lt,Gt),Ut=yr&&yr.value):Ut=Lt[Gt],gt=vr(Ye?Gt:je+(Xe?".":"#")+Gt,Ct.forced),!gt&&Ut!==void 0){if(typeof bt==typeof Ut)continue;ar(bt,Ut)}(Ct.sham||Ut&&Ut.sham)&&Ft(bt,"sham",!0),qt(Lt,Gt,bt,Ct)}}}),On=r(()=>{var Tr=Nr(),Mt=o();Tr({global:!0,forced:Mt.globalThis!==Mt},{globalThis:Mt})}),Ht=r(()=>{On()}),Ar=r((Tr,Mt)=>{var xt=yi(),Rt=Xr();Mt.exports=function(Ft,qt,lr){return lr.get&&xt(lr.get,qt,{getter:!0}),lr.set&&xt(lr.set,qt,{setter:!0}),Rt.f(Ft,qt,lr)}}),Rr=r((Tr,Mt)=>{var xt=En();Mt.exports=function(){var Rt=xt(this),Ft="";return Rt.hasIndices&&(Ft+="d"),Rt.global&&(Ft+="g"),Rt.ignoreCase&&(Ft+="i"),Rt.multiline&&(Ft+="m"),Rt.dotAll&&(Ft+="s"),Rt.unicode&&(Ft+="u"),Rt.unicodeSets&&(Ft+="v"),Rt.sticky&&(Ft+="y"),Ft}}),jr=r(()=>{var Tr=o(),Mt=v(),xt=Ar(),Rt=Rr(),Ft=g(),qt=Tr.RegExp,lr=qt.prototype,ar=Mt&&Ft(function(){var vr=!0;try{qt(".","d")}catch{vr=!1}var Ct={},We="",je=vr?"dgimsy":"gimsy",Ye=function(Gt,Ut){Object.defineProperty(Ct,Gt,{get:function(){return We+=Ut,!0}})},Xe={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};vr&&(Xe.hasIndices="d");for(var gt in Xe)Ye(gt,Xe[gt]);var Lt=Object.getOwnPropertyDescriptor(lr,"flags").get.call(Ct);return Lt!==je||We!==je});ar&&xt(lr,"flags",{configurable:!0,get:Rt})}),an=r((Tr,Mt)=>{var xt=H();Mt.exports=Array.isArray||function(Rt){return xt(Rt)=="Array"}}),Mn=r((Tr,Mt)=>{var xt=TypeError,Rt=9007199254740991;Mt.exports=function(Ft){if(Ft>Rt)throw xt("Maximum allowed index exceeded");return Ft}}),Xn=r((Tr,Mt)=>{var xt=H(),Rt=L();Mt.exports=function(Ft){if(xt(Ft)==="Function")return Rt(Ft)}}),Xi=r((Tr,Mt)=>{var xt=Xn(),Rt=Yt(),Ft=E(),qt=xt(xt.bind);Mt.exports=function(lr,ar){return Rt(lr),ar===void 0?lr:Ft?qt(lr,ar):function(){return lr.apply(ar,arguments)}}}),is=r((Tr,Mt)=>{var xt=an(),Rt=ri(),Ft=Mn(),qt=Xi(),lr=function(ar,vr,Ct,We,je,Ye,Xe,gt){for(var Lt=je,Gt=0,Ut=Xe?qt(Xe,gt):!1,bt,yr;Gt0&&xt(bt)?(yr=Rt(bt),Lt=lr(ar,vr,bt,yr,Lt,Ye-1)-1):(Ft(Lt+1),ar[Lt]=bt),Lt++),Gt++;return Lt};Mt.exports=lr}),Ln=r((Tr,Mt)=>{var xt=Te(),Rt=xt("toStringTag"),Ft={};Ft[Rt]="z",Mt.exports=String(Ft)==="[object z]"}),ss=r((Tr,Mt)=>{var xt=Ln(),Rt=Ne(),Ft=H(),qt=Te(),lr=qt("toStringTag"),ar=Object,vr=Ft(function(){return arguments}())=="Arguments",Ct=function(We,je){try{return We[je]}catch{}};Mt.exports=xt?Ft:function(We){var je,Ye,Xe;return We===void 0?"Undefined":We===null?"Null":typeof(Ye=Ct(je=ar(We),lr))=="string"?Ye:vr?Ft(je):(Xe=Ft(je))=="Object"&&Rt(je.callee)?"Arguments":Xe}}),as=r((Tr,Mt)=>{var xt=L(),Rt=g(),Ft=Ne(),qt=ss(),lr=Ke(),ar=mi(),vr=function(){},Ct=[],We=lr("Reflect","construct"),je=/^\s*(?:class|function)\b/,Ye=xt(je.exec),Xe=!je.exec(vr),gt=function(Gt){if(!Ft(Gt))return!1;try{return We(vr,Ct,Gt),!0}catch{return!1}},Lt=function(Gt){if(!Ft(Gt))return!1;switch(qt(Gt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xe||!!Ye(je,ar(Gt))}catch{return!0}};Lt.sham=!0,Mt.exports=!We||Rt(function(){var Gt;return gt(gt.call)||!gt(Object)||!gt(function(){Gt=!0})||Gt})?Lt:gt}),Ji=r((Tr,Mt)=>{var xt=an(),Rt=as(),Ft=et(),qt=Te(),lr=qt("species"),ar=Array;Mt.exports=function(vr){var Ct;return xt(vr)&&(Ct=vr.constructor,Rt(Ct)&&(Ct===ar||xt(Ct.prototype))?Ct=void 0:Ft(Ct)&&(Ct=Ct[lr],Ct===null&&(Ct=void 0))),Ct===void 0?ar:Ct}}),ln=r((Tr,Mt)=>{var xt=Ji();Mt.exports=function(Rt,Ft){return new(xt(Rt))(Ft===0?0:Ft)}}),eo=r(()=>{var Tr=Nr(),Mt=is(),xt=Yt(),Rt=Yr(),Ft=ri(),qt=ln();Tr({target:"Array",proto:!0},{flatMap:function(lr){var ar=Rt(this),vr=Ft(ar),Ct;return xt(lr),Ct=qt(ar,0),Ct.length=Mt(Ct,ar,ar,vr,0,1,lr,arguments.length>1?arguments[1]:void 0),Ct}})}),ki=r((Tr,Mt)=>{Ht(),jr(),eo();var xt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Ft=Object.getOwnPropertyNames,qt=Object.prototype.hasOwnProperty,lr=(zr,Dr)=>function(){return zr&&(Dr=(0,zr[Ft(zr)[0]])(zr=0)),Dr},ar=(zr,Dr)=>function(){return Dr||(0,zr[Ft(zr)[0]])((Dr={exports:{}}).exports,Dr),Dr.exports},vr=(zr,Dr)=>{for(var Cr in Dr)xt(zr,Cr,{get:Dr[Cr],enumerable:!0})},Ct=(zr,Dr,Cr,or)=>{if(Dr&&typeof Dr=="object"||typeof Dr=="function")for(let tr of Ft(Dr))!qt.call(zr,tr)&&tr!==Cr&&xt(zr,tr,{get:()=>Dr[tr],enumerable:!(or=Rt(Dr,tr))||or.enumerable});return zr},We=zr=>Ct(xt({},"__esModule",{value:!0}),zr),je=lr({""(){}}),Ye=ar({"src/utils/try-combinations.js"(zr,Dr){je();function Cr(){let or;for(var tr=arguments.length,mr=new Array(tr),h=0;h{let K=M&&M.backwards;if(w===!1)return!1;let{length:I}=T,oe=w;for(;oe>=0&&oeOi,arch:()=>ls,cpus:()=>Vt,default:()=>Bn,endianness:()=>Er,freemem:()=>Wr,getNetworkInterfaces:()=>Ci,hostname:()=>wr,loadavg:()=>cr,networkInterfaces:()=>Je,platform:()=>Ms,release:()=>Jn,tmpDir:()=>Jr,tmpdir:()=>qn,totalmem:()=>en,type:()=>Dt,uptime:()=>Ue});function Er(){if(typeof ai>"u"){var zr=new ArrayBuffer(2),Dr=new Uint8Array(zr),Cr=new Uint16Array(zr);if(Dr[0]=1,Dr[1]=2,Cr[0]===258)ai="BE";else if(Cr[0]===513)ai="LE";else throw new Error("unable to figure out endianess")}return ai}function wr(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function cr(){return[]}function Ue(){return 0}function Wr(){return Number.MAX_VALUE}function en(){return Number.MAX_VALUE}function Vt(){return[]}function Dt(){return"Browser"}function Jn(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Je(){}function Ci(){}function ls(){return"javascript"}function Ms(){return"browser"}function Jr(){return"/tmp"}var ai,qn,Oi,Bn,ta=lr({"node-modules-polyfills:os"(){je(),qn=Jr,Oi=` +`,Bn={EOL:Oi,tmpdir:qn,tmpDir:Jr,networkInterfaces:Je,getNetworkInterfaces:Ci,release:Jn,type:Dt,cpus:Vt,totalmem:en,freemem:Wr,uptime:Ue,loadavg:cr,hostname:wr,endianness:Er}}}),wi=ar({"node-modules-polyfills-commonjs:os"(zr,Dr){je();var Cr=(ta(),We(yr));if(Cr&&Cr.default){Dr.exports=Cr.default;for(let or in Cr)Dr.exports[or]=Cr[or]}else Cr&&(Dr.exports=Cr)}}),Bs=ar({"node_modules/detect-newline/index.js"(zr,Dr){je();var Cr=or=>{if(typeof or!="string")throw new TypeError("Expected a string");let tr=or.match(/(?:\r?\n)/g)||[];if(tr.length===0)return;let mr=tr.filter(d=>d===`\r +`).length,h=tr.length-mr;return mr>h?`\r +`:` +`};Dr.exports=Cr,Dr.exports.graceful=or=>typeof or=="string"&&Cr(or)||` +`}}),Ea=ar({"node_modules/jest-docblock/build/index.js"(zr){je(),Object.defineProperty(zr,"__esModule",{value:!0}),zr.extract=oe,zr.parse=it,zr.parseWithComments=at,zr.print=Qe,zr.strip=de;function Dr(){let ve=wi();return Dr=function(){return ve},ve}function Cr(){let ve=or(Bs());return Cr=function(){return ve},ve}function or(ve){return ve&&ve.__esModule?ve:{default:ve}}var tr=/\*\/$/,mr=/^\/\*\*?/,h=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,d=/(^|\s+)\/\/([^\r\n]*)/g,T=/^(\r?\n)+/,w=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,M=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,K=/(\r?\n|^) *\* ?/g,I=[];function oe(ve){let ke=ve.match(h);return ke?ke[0].trimLeft():""}function de(ve){let ke=ve.match(h);return ke&&ke[0]?ve.substring(ke[0].length):ve}function it(ve){return at(ve).pragmas}function at(ve){let ke=(0,Cr().default)(ve)||Dr().EOL;ve=ve.replace(mr,"").replace(tr,"").replace(K,"$1");let qe="";for(;qe!==ve;)qe=ve,ve=ve.replace(w,`${ke}$1 $2${ke}`);ve=ve.replace(T,"").trimRight();let Pe=Object.create(null),pt=ve.replace(M,"").replace(T,"").trimRight(),_t;for(;_t=M.exec(ve);){let Et=_t[2].replace(d,"");typeof Pe[_t[1]]=="string"||Array.isArray(Pe[_t[1]])?Pe[_t[1]]=I.concat(Pe[_t[1]],Et):Pe[_t[1]]=Et}return{comments:pt,pragmas:Pe}}function Qe(ve){let{comments:ke="",pragmas:qe={}}=ve,Pe=(0,Cr().default)(ke)||Dr().EOL,pt="/**",_t=" *",Et=" */",ir=Object.keys(qe),xr=ir.map(Fr=>ee(Fr,qe[Fr])).reduce((Fr,Kr)=>Fr.concat(Kr),[]).map(Fr=>`${_t} ${Fr}${Pe}`).join("");if(!ke){if(ir.length===0)return"";if(ir.length===1&&!Array.isArray(qe[ir[0]])){let Fr=qe[ir[0]];return`${pt} ${ee(ir[0],Fr)[0]}${Et}`}}let Hr=ke.split(Pe).map(Fr=>`${_t} ${Fr}`).join(Pe)+Pe;return pt+Pe+(ke?Hr:"")+(ke&&ir.length?_t+Pe:"")+xr+Et}function ee(ve,ke){return I.concat(ke).map(qe=>`@${ve} ${qe}`.trim())}}}),Fi=ar({"src/common/end-of-line.js"(zr,Dr){je();function Cr(h){let d=h.indexOf("\r");return d>=0?h.charAt(d+1)===` +`?"crlf":"cr":"lf"}function or(h){switch(h){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}function tr(h,d){let T;switch(d){case` +`:T=/\n/g;break;case"\r":T=/\r/g;break;case`\r +`:T=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(d)}.`)}let w=h.match(T);return w?w.length:0}function mr(h){return h.replace(/\r\n?/g,` +`)}Dr.exports={guessEndOfLine:Cr,convertEndOfLineToChars:or,countEndOfLineChars:tr,normalizeEndOfLine:mr}}}),As=ar({"src/language-js/pragma.js"(zr,Dr){je();var{parseWithComments:Cr,strip:or,extract:tr,print:mr}=Ea(),{normalizeEndOfLine:h}=Fi(),d=Xe();function T(K){let I=d(K);I&&(K=K.slice(I.length+1));let oe=tr(K),{pragmas:de,comments:it}=Cr(oe);return{shebang:I,text:K,pragmas:de,comments:it}}function w(K){let I=Object.keys(T(K).pragmas);return I.includes("prettier")||I.includes("format")}function M(K){let{shebang:I,text:oe,pragmas:de,comments:it}=T(K),at=or(oe),Qe=mr({pragmas:Object.assign({format:""},de),comments:it.trimStart()});return(I?`${I} +`:"")+h(Qe)+(at.startsWith(` +`)?` +`:` + +`)+at}Dr.exports={hasPragma:w,insertPragma:M}}}),to=ar({"src/utils/is-non-empty-array.js"(zr,Dr){je();function Cr(or){return Array.isArray(or)&&or.length>0}Dr.exports=Cr}}),Io=ar({"src/language-js/loc.js"(zr,Dr){je();var Cr=to();function or(T){var w,M;let K=T.range?T.range[0]:T.start,I=(w=(M=T.declaration)===null||M===void 0?void 0:M.decorators)!==null&&w!==void 0?w:T.decorators;return Cr(I)?Math.min(or(I[0]),K):K}function tr(T){return T.range?T.range[1]:T.end}function mr(T,w){let M=or(T);return Number.isInteger(M)&&M===or(w)}function h(T,w){let M=tr(T);return Number.isInteger(M)&&M===tr(w)}function d(T,w){return mr(T,w)&&h(T,w)}Dr.exports={locStart:or,locEnd:tr,hasSameLocStart:mr,hasSameLoc:d}}}),Lo=ar({"src/language-js/parse/utils/create-parser.js"(zr,Dr){je();var{hasPragma:Cr}=As(),{locStart:or,locEnd:tr}=Io();function mr(h){return h=typeof h=="function"?{parse:h}:h,Object.assign({astFormat:"estree",hasPragma:Cr,locStart:or,locEnd:tr},h)}Dr.exports=mr}}),ro=ar({"src/common/parser-create-error.js"(zr,Dr){je();function Cr(or,tr){let mr=new SyntaxError(or+" ("+tr.start.line+":"+tr.start.column+")");return mr.loc=tr,mr}Dr.exports=Cr}}),Rs=ar({"src/language-js/parse/utils/create-babel-parse-error.js"(zr,Dr){je();var Cr=ro();function or(tr){let{message:mr,loc:h}=tr;return Cr(mr.replace(/ \(.*\)/,""),{start:{line:h?h.line:0,column:h?h.column+1:0}})}Dr.exports=or}}),Da=ar({"src/language-js/utils/is-ts-keyword-type.js"(zr,Dr){je();function Cr(or){let{type:tr}=or;return tr.startsWith("TS")&&tr.endsWith("Keyword")}Dr.exports=Cr}}),no=ar({"src/language-js/utils/is-block-comment.js"(zr,Dr){je();var Cr=new Set(["Block","CommentBlock","MultiLine"]),or=tr=>Cr.has(tr==null?void 0:tr.type);Dr.exports=or}}),Gr=ar({"src/language-js/utils/is-type-cast-comment.js"(zr,Dr){je();var Cr=no();function or(tr){return Cr(tr)&&tr.value[0]==="*"&&/@(?:type|satisfies)\b/.test(tr.value)}Dr.exports=or}}),Zu=ar({"src/utils/get-last.js"(zr,Dr){je();var Cr=or=>or[or.length-1];Dr.exports=Cr}}),Bl=ar({"src/language-js/parse/postprocess/visit-node.js"(zr,Dr){je();function Cr(or,tr){if(Array.isArray(or)){for(let mr=0;mr{Qe.leadingComments&&Qe.leadingComments.some(mr)&&at.add(Cr(Qe))}),oe=d(oe,Qe=>{if(Qe.type==="ParenthesizedExpression"){let{expression:ee}=Qe;if(ee.type==="TypeCastExpression")return ee.range=Qe.range,ee;let ve=Cr(Qe);if(!at.has(ve))return ee.extra=Object.assign(Object.assign({},ee.extra),{},{parenthesized:!0}),ee}})}return oe=d(oe,at=>{switch(at.type){case"ChainExpression":return M(at.expression);case"LogicalExpression":{if(K(at))return I(at);break}case"VariableDeclaration":{let Qe=h(at.declarations);Qe&&Qe.init&&it(at,Qe);break}case"TSParenthesizedType":return tr(at.typeAnnotation)||at.typeAnnotation.type==="TSThisType"||(at.typeAnnotation.range=[Cr(at),or(at)]),at.typeAnnotation;case"TSTypeParameter":if(typeof at.name=="string"){let Qe=Cr(at);at.name={type:"Identifier",name:at.name,range:[Qe,Qe+at.name.length]}}break;case"ObjectExpression":if(de.parser==="typescript"){let Qe=at.properties.find(ee=>ee.type==="Property"&&ee.value.type==="TSEmptyBodyFunctionExpression");Qe&&T(Qe.value,"Unexpected token.")}break;case"SequenceExpression":{let Qe=h(at.expressions);at.range=[Cr(at),Math.min(or(Qe),or(at))];break}case"TopicReference":de.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:Qe}=at;if(de.parser==="meriyah"&&Qe&&Qe.type==="Identifier"){let ee=de.originalText.slice(Cr(Qe),or(Qe));(ee.startsWith('"')||ee.startsWith("'"))&&(at.exported=Object.assign(Object.assign({},at.exported),{},{type:"Literal",value:at.exported.name,raw:ee}))}break}case"PropertyDefinition":if(de.parser==="meriyah"&&at.static&&!at.computed&&!at.key){let Qe="static",ee=Cr(at);Object.assign(at,{static:!1,key:{type:"Identifier",name:Qe,range:[ee,ee+Qe.length]}})}break}}),oe;function it(at,Qe){de.originalText[or(Qe)]!==";"&&(at.range=[Cr(at),or(Qe)])}}function M(oe){switch(oe.type){case"CallExpression":oe.type="OptionalCallExpression",oe.callee=M(oe.callee);break;case"MemberExpression":oe.type="OptionalMemberExpression",oe.object=M(oe.object);break;case"TSNonNullExpression":oe.expression=M(oe.expression);break}return oe}function K(oe){return oe.type==="LogicalExpression"&&oe.right.type==="LogicalExpression"&&oe.operator===oe.right.operator}function I(oe){return K(oe)?I({type:"LogicalExpression",operator:oe.operator,left:I({type:"LogicalExpression",operator:oe.operator,left:oe.left,right:oe.right.left,range:[Cr(oe.left),or(oe.right.left)]}),right:oe.right.right,range:[Cr(oe),or(oe)]}):oe}Dr.exports=w}}),Ta=ar({"node_modules/@babel/parser/lib/index.js"(zr){je(),Object.defineProperty(zr,"__esModule",{value:!0});var Dr={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function Cr(l){if(l&&l.annexB!=null&&l.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let i={};for(let a of Object.keys(Dr))i[a]=l&&l[a]!=null?l[a]:Dr[a];return i}var or=class{constructor(l,i){this.token=void 0,this.preserveSpace=void 0,this.token=l,this.preserveSpace=!!i}},tr={brace:new or("{"),j_oTag:new or("...",!0)};tr.template=new or("`",!0);var mr=!0,h=!0,d=!0,T=!0,w=!0,M=!0,K=class{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=l,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}},I=new Map;function oe(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i.keyword=l;let a=Pe(l,i);return I.set(l,a),a}function de(l,i){return Pe(l,{beforeExpr:mr,binop:i})}var it=-1,at=[],Qe=[],ee=[],ve=[],ke=[],qe=[];function Pe(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var a,c,m,y;return++it,Qe.push(l),ee.push((a=i.binop)!=null?a:-1),ve.push((c=i.beforeExpr)!=null?c:!1),ke.push((m=i.startsExpr)!=null?m:!1),qe.push((y=i.prefix)!=null?y:!1),at.push(new K(l,i)),it}function pt(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var a,c,m,y;return++it,I.set(l,it),Qe.push(l),ee.push((a=i.binop)!=null?a:-1),ve.push((c=i.beforeExpr)!=null?c:!1),ke.push((m=i.startsExpr)!=null?m:!1),qe.push((y=i.prefix)!=null?y:!1),at.push(new K("name",i)),it}var _t={bracketL:Pe("[",{beforeExpr:mr,startsExpr:h}),bracketHashL:Pe("#[",{beforeExpr:mr,startsExpr:h}),bracketBarL:Pe("[|",{beforeExpr:mr,startsExpr:h}),bracketR:Pe("]"),bracketBarR:Pe("|]"),braceL:Pe("{",{beforeExpr:mr,startsExpr:h}),braceBarL:Pe("{|",{beforeExpr:mr,startsExpr:h}),braceHashL:Pe("#{",{beforeExpr:mr,startsExpr:h}),braceR:Pe("}"),braceBarR:Pe("|}"),parenL:Pe("(",{beforeExpr:mr,startsExpr:h}),parenR:Pe(")"),comma:Pe(",",{beforeExpr:mr}),semi:Pe(";",{beforeExpr:mr}),colon:Pe(":",{beforeExpr:mr}),doubleColon:Pe("::",{beforeExpr:mr}),dot:Pe("."),question:Pe("?",{beforeExpr:mr}),questionDot:Pe("?."),arrow:Pe("=>",{beforeExpr:mr}),template:Pe("template"),ellipsis:Pe("...",{beforeExpr:mr}),backQuote:Pe("`",{startsExpr:h}),dollarBraceL:Pe("${",{beforeExpr:mr,startsExpr:h}),templateTail:Pe("...`",{startsExpr:h}),templateNonTail:Pe("...${",{beforeExpr:mr,startsExpr:h}),at:Pe("@"),hash:Pe("#",{startsExpr:h}),interpreterDirective:Pe("#!..."),eq:Pe("=",{beforeExpr:mr,isAssign:T}),assign:Pe("_=",{beforeExpr:mr,isAssign:T}),slashAssign:Pe("_=",{beforeExpr:mr,isAssign:T}),xorAssign:Pe("_=",{beforeExpr:mr,isAssign:T}),moduloAssign:Pe("_=",{beforeExpr:mr,isAssign:T}),incDec:Pe("++/--",{prefix:w,postfix:M,startsExpr:h}),bang:Pe("!",{beforeExpr:mr,prefix:w,startsExpr:h}),tilde:Pe("~",{beforeExpr:mr,prefix:w,startsExpr:h}),doubleCaret:Pe("^^",{startsExpr:h}),doubleAt:Pe("@@",{startsExpr:h}),pipeline:de("|>",0),nullishCoalescing:de("??",1),logicalOR:de("||",1),logicalAND:de("&&",2),bitwiseOR:de("|",3),bitwiseXOR:de("^",4),bitwiseAND:de("&",5),equality:de("==/!=/===/!==",6),lt:de("/<=/>=",7),gt:de("/<=/>=",7),relational:de("/<=/>=",7),bitShift:de("<>/>>>",8),bitShiftL:de("<>/>>>",8),bitShiftR:de("<>/>>>",8),plusMin:Pe("+/-",{beforeExpr:mr,binop:9,prefix:w,startsExpr:h}),modulo:Pe("%",{binop:10,startsExpr:h}),star:Pe("*",{binop:10}),slash:de("/",10),exponent:Pe("**",{beforeExpr:mr,binop:11,rightAssociative:!0}),_in:oe("in",{beforeExpr:mr,binop:7}),_instanceof:oe("instanceof",{beforeExpr:mr,binop:7}),_break:oe("break"),_case:oe("case",{beforeExpr:mr}),_catch:oe("catch"),_continue:oe("continue"),_debugger:oe("debugger"),_default:oe("default",{beforeExpr:mr}),_else:oe("else",{beforeExpr:mr}),_finally:oe("finally"),_function:oe("function",{startsExpr:h}),_if:oe("if"),_return:oe("return",{beforeExpr:mr}),_switch:oe("switch"),_throw:oe("throw",{beforeExpr:mr,prefix:w,startsExpr:h}),_try:oe("try"),_var:oe("var"),_const:oe("const"),_with:oe("with"),_new:oe("new",{beforeExpr:mr,startsExpr:h}),_this:oe("this",{startsExpr:h}),_super:oe("super",{startsExpr:h}),_class:oe("class",{startsExpr:h}),_extends:oe("extends",{beforeExpr:mr}),_export:oe("export"),_import:oe("import",{startsExpr:h}),_null:oe("null",{startsExpr:h}),_true:oe("true",{startsExpr:h}),_false:oe("false",{startsExpr:h}),_typeof:oe("typeof",{beforeExpr:mr,prefix:w,startsExpr:h}),_void:oe("void",{beforeExpr:mr,prefix:w,startsExpr:h}),_delete:oe("delete",{beforeExpr:mr,prefix:w,startsExpr:h}),_do:oe("do",{isLoop:d,beforeExpr:mr}),_for:oe("for",{isLoop:d}),_while:oe("while",{isLoop:d}),_as:pt("as",{startsExpr:h}),_assert:pt("assert",{startsExpr:h}),_async:pt("async",{startsExpr:h}),_await:pt("await",{startsExpr:h}),_from:pt("from",{startsExpr:h}),_get:pt("get",{startsExpr:h}),_let:pt("let",{startsExpr:h}),_meta:pt("meta",{startsExpr:h}),_of:pt("of",{startsExpr:h}),_sent:pt("sent",{startsExpr:h}),_set:pt("set",{startsExpr:h}),_static:pt("static",{startsExpr:h}),_using:pt("using",{startsExpr:h}),_yield:pt("yield",{startsExpr:h}),_asserts:pt("asserts",{startsExpr:h}),_checks:pt("checks",{startsExpr:h}),_exports:pt("exports",{startsExpr:h}),_global:pt("global",{startsExpr:h}),_implements:pt("implements",{startsExpr:h}),_intrinsic:pt("intrinsic",{startsExpr:h}),_infer:pt("infer",{startsExpr:h}),_is:pt("is",{startsExpr:h}),_mixins:pt("mixins",{startsExpr:h}),_proto:pt("proto",{startsExpr:h}),_require:pt("require",{startsExpr:h}),_satisfies:pt("satisfies",{startsExpr:h}),_keyof:pt("keyof",{startsExpr:h}),_readonly:pt("readonly",{startsExpr:h}),_unique:pt("unique",{startsExpr:h}),_abstract:pt("abstract",{startsExpr:h}),_declare:pt("declare",{startsExpr:h}),_enum:pt("enum",{startsExpr:h}),_module:pt("module",{startsExpr:h}),_namespace:pt("namespace",{startsExpr:h}),_interface:pt("interface",{startsExpr:h}),_type:pt("type",{startsExpr:h}),_opaque:pt("opaque",{startsExpr:h}),name:Pe("name",{startsExpr:h}),string:Pe("string",{startsExpr:h}),num:Pe("num",{startsExpr:h}),bigint:Pe("bigint",{startsExpr:h}),decimal:Pe("decimal",{startsExpr:h}),regexp:Pe("regexp",{startsExpr:h}),privateName:Pe("#name",{startsExpr:h}),eof:Pe("eof"),jsxName:Pe("jsxName"),jsxText:Pe("jsxText",{beforeExpr:!0}),jsxTagStart:Pe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Pe("jsxTagEnd"),placeholder:Pe("%%",{startsExpr:!0})};function Et(l){return l>=93&&l<=130}function ir(l){return l<=92}function xr(l){return l>=58&&l<=130}function Hr(l){return l>=58&&l<=134}function Fr(l){return ve[l]}function Kr(l){return ke[l]}function _n(l){return l>=29&&l<=33}function cn(l){return l>=127&&l<=129}function pn(l){return l>=90&&l<=92}function dn(l){return l>=58&&l<=92}function Fn(l){return l>=39&&l<=59}function Pi(l){return l===34}function li(l){return qe[l]}function zi(l){return l>=119&&l<=121}function Hs(l){return l>=122&&l<=128}function Us(l){return Qe[l]}function Aa(l){return ee[l]}function Ro(l){return l===57}function Du(l){return l>=24&&l<=25}function Ts(l){return at[l]}at[8].updateContext=l=>{l.pop()},at[5].updateContext=at[7].updateContext=at[23].updateContext=l=>{l.push(tr.brace)},at[22].updateContext=l=>{l[l.length-1]===tr.template?l.pop():l.push(tr.template)},at[140].updateContext=l=>{l.push(tr.j_expr,tr.j_oTag)};function ra(l,i){if(l==null)return{};var a={},c=Object.keys(l),m,y;for(y=0;y=0)&&(a[m]=l[m]);return a}var Ri=class{constructor(l,i,a){this.line=void 0,this.column=void 0,this.index=void 0,this.line=l,this.column=i,this.index=a}},Cs=class{constructor(l,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=l,this.end=i}};function $i(l,i){let{line:a,column:c,index:m}=l;return new Ri(a,c+i,m+i)}var Hl={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},Fp=function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.length-1;return{get(){return l.reduce((a,c)=>a[c],this)},set(a){l.reduce((c,m,y)=>y===i?c[m]=a:c[m],this)}}},Pp=(l,i,a)=>Object.keys(a).map(c=>[c,a[c]]).filter(c=>{let[,m]=c;return!!m}).map(c=>{let[m,y]=c;return[m,typeof y=="function"?{value:y,enumerable:!1}:typeof y.reflect=="string"?Object.assign({},y,Fp(y.reflect.split("."))):y]}).reduce((c,m)=>{let[y,C]=m;return Object.defineProperty(c,y,Object.assign({configurable:!0},C))},Object.assign(new l,i)),sl={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Hl.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Hl.SourceTypeModuleError}},Ul={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Sa=l=>{let{type:i,prefix:a}=l;return i==="UpdateExpression"?Ul.UpdateExpression[String(a)]:Ul[i]},Ac={AccessorIsGenerator:l=>{let{kind:i}=l;return`A ${i}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitInUsingBinding:"'await' is not allowed to be used as a name in 'using' declarations.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:l=>{let{kind:i}=l;return`Missing initializer in ${i} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:l=>{let{exportName:i}=l;return`\`${i}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:l=>{let{localName:i,exportName:a}=l;return`A string literal cannot be used as an exported binding without \`from\`. +- Did you mean \`export { '${i}' as '${a}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:l=>{let{type:i}=l;return`'${i==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:l=>{let{type:i}=l;return`Unsyntactic ${i==="BreakStatement"?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:l=>{let{importName:i}=l;return`A string literal cannot be used as an imported binding. +- Did you mean \`import { "${i}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:l=>{let{maxArgumentCount:i}=l;return`\`import()\` requires exactly ${i===1?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:l=>{let{radix:i}=l;return`Expected number in radix ${i}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:l=>{let{reservedWord:i}=l;return`Escape sequence in keyword ${i}.`},InvalidIdentifier:l=>{let{identifierName:i}=l;return`Invalid identifier ${i}.`},InvalidLhs:l=>{let{ancestor:i}=l;return`Invalid left-hand side in ${Sa(i)}.`},InvalidLhsBinding:l=>{let{ancestor:i}=l;return`Binding invalid left-hand side in ${Sa(i)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:l=>{let{unexpected:i}=l;return`Unexpected character '${i}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:l=>{let{identifierName:i}=l;return`Private name #${i} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:l=>{let{labelName:i}=l;return`Label '${i}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:l=>{let{missingPlugin:i}=l;return`This experimental syntax requires enabling the parser plugin: ${i.map(a=>JSON.stringify(a)).join(", ")}.`},MissingOneOfPlugins:l=>{let{missingPlugin:i}=l;return`This experimental syntax requires enabling one of the following parser plugin(s): ${i.map(a=>JSON.stringify(a)).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:l=>{let{key:i}=l;return`Duplicate key "${i}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:l=>{let{surrogateCharCode:i}=l;return`An export name cannot include a lone surrogate, found '\\u${i.toString(16)}'.`},ModuleExportUndefined:l=>{let{localName:i}=l;return`Export '${i}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:l=>{let{identifierName:i}=l;return`Private names are only allowed in property accesses (\`obj.#${i}\`) or in \`in\` expressions (\`#${i} in obj\`).`},PrivateNameRedeclaration:l=>{let{identifierName:i}=l;return`Duplicate private name #${i}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:l=>{let{keyword:i}=l;return`Unexpected keyword '${i}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:l=>{let{reservedWord:i}=l;return`Unexpected reserved word '${i}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:l=>{let{expected:i,unexpected:a}=l;return`Unexpected token${a?` '${a}'.`:""}${i?`, expected "${i}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:l=>{let{target:i,onlyValidPropertyName:a}=l;return`The only valid meta property for ${i} is ${i}.${a}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:l=>{let{identifierName:i}=l;return`Identifier '${i}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Sc={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:l=>{let{referenceName:i}=l;return`Assigning to '${i}' in strict mode.`},StrictEvalArgumentsBinding:l=>{let{bindingName:i}=l;return`Binding '${i}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},zl=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),al={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:l=>{let{token:i}=l;return`Invalid topic token ${i}. In order to use ${i} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${i}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:l=>{let{type:i}=l;return`Hack-style pipe body cannot be an unparenthesized ${Sa({type:i})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},wc=["toMessage"],ol=["message"];function Ss(l){let{toMessage:i}=l,a=ra(l,wc);return function c(m){let{loc:y,details:C}=m;return Pp(SyntaxError,Object.assign({},a,{loc:y}),{clone(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=x.loc||{};return c({loc:new Ri("line"in A?A.line:this.loc.line,"column"in A?A.column:this.loc.column,"index"in A?A.index:this.loc.index),details:Object.assign({},this.details,x.details)})},details:{value:C,enumerable:!1},message:{get(){return`${i(this.details)} (${this.loc.line}:${this.loc.column})`},set(x){Object.defineProperty(this,"message",{value:x})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in C&&{reflect:"details.missingPlugin",enumerable:!0}})}}function oi(l,i){if(Array.isArray(l))return c=>oi(c,l[0]);let a={};for(let c of Object.keys(l)){let m=l[c],y=typeof m=="string"?{message:()=>m}:typeof m=="function"?{message:m}:m,{message:C}=y,x=ra(y,ol),A=typeof C=="string"?()=>C:C;a[c]=Ss(Object.assign({code:Hl.SyntaxError,reasonCode:c,toMessage:A},i?{syntaxPlugin:i}:{},x))}return a}var mt=Object.assign({},oi(sl),oi(Ac),oi(Sc),oi`pipelineOperator`(al)),{defineProperty:$l}=Object,Gl=(l,i)=>$l(l,i,{enumerable:!1,value:l[i]});function wa(l){return l.loc.start&&Gl(l.loc.start,"index"),l.loc.end&&Gl(l.loc.end,"index"),l}var ul=l=>class extends l{parse(){let i=wa(super.parse());return this.options.tokens&&(i.tokens=i.tokens.map(wa)),i}parseRegExpLiteral(i){let{pattern:a,flags:c}=i,m=null;try{m=new RegExp(a,c)}catch{}let y=this.estreeParseLiteral(m);return y.regex={pattern:a,flags:c},y}parseBigIntLiteral(i){let a;try{a=BigInt(i)}catch{a=null}let c=this.estreeParseLiteral(a);return c.bigint=String(c.value||i),c}parseDecimalLiteral(i){let a=this.estreeParseLiteral(null);return a.decimal=String(a.value||i),a}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}directiveToStmt(i){let a=i.value;delete i.value,a.type="Literal",a.raw=a.extra.raw,a.value=a.extra.expressionValue;let c=i;return c.type="ExpressionStatement",c.expression=a,c.directive=a.extra.rawValue,delete a.extra,c}initFunction(i,a){super.initFunction(i,a),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var a;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((a=i.expression.extra)!=null&&a.parenthesized)}parseBlockBody(i,a,c,m,y){super.parseBlockBody(i,a,c,m,y);let C=i.directives.map(x=>this.directiveToStmt(x));i.body=C.concat(i.body),delete i.directives}pushClassMethod(i,a,c,m,y,C){this.parseMethod(a,c,m,y,C,"ClassMethod",!0),a.typeParameters&&(a.value.typeParameters=a.typeParameters,delete a.typeParameters),i.body.push(a)}parsePrivateName(){let i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){let a=super.getPrivateNameSV(i);return i=i,delete i.id,i.name=a,i.type="PrivateIdentifier",i}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,a){let c=super.parseLiteral(i,a);return c.raw=c.extra.raw,delete c.extra,c}parseFunctionBody(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;super.parseFunctionBody(i,a,c),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,a,c,m,y,C){let x=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,A=this.startNode();return A.kind=i.kind,A=super.parseMethod(A,a,c,m,y,C,x),A.type="FunctionExpression",delete A.kind,i.value=A,C==="ClassPrivateMethod"&&(i.computed=!1),this.finishNode(i,"MethodDefinition")}parseClassProperty(){let i=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(){let i=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseObjectMethod(i,a,c,m,y){let C=super.parseObjectMethod(i,a,c,m,y);return C&&(C.type="Property",C.kind==="method"&&(C.kind="init"),C.shorthand=!1),C}parseObjectProperty(i,a,c,m){let y=super.parseObjectProperty(i,a,c,m);return y&&(y.kind="init",y.type="Property"),y}isValidLVal(i,a,c){return i==="Property"?"value":super.isValidLVal(i,a,c)}isAssignable(i,a){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,a):super.isAssignable(i,a)}toAssignable(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i!=null&&this.isObjectProperty(i)){let{key:c,value:m}=i;this.isPrivateName(c)&&this.classScope.usePrivateName(this.getPrivateNameSV(c),c.loc.start),this.toAssignable(m,a)}else super.toAssignable(i,a)}toAssignableObjectExpressionProp(i,a,c){i.kind==="get"||i.kind==="set"?this.raise(mt.PatternHasAccessor,{at:i.key}):i.method?this.raise(mt.PatternHasMethod,{at:i.key}):super.toAssignableObjectExpressionProp(i,a,c)}finishCallExpression(i,a){let c=super.finishCallExpression(i,a);if(c.callee.type==="Import"){if(c.type="ImportExpression",c.source=c.arguments[0],this.hasPlugin("importAssertions")){var m;c.attributes=(m=c.arguments[1])!=null?m:null}delete c.arguments,delete c.callee}return c}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,a){let c=this.state.lastTokStartLoc,m=super.parseExport(i,a);switch(m.type){case"ExportAllDeclaration":m.exported=null;break;case"ExportNamedDeclaration":m.specifiers.length===1&&m.specifiers[0].type==="ExportNamespaceSpecifier"&&(m.type="ExportAllDeclaration",m.exported=m.specifiers[0].exported,delete m.specifiers);case"ExportDefaultDeclaration":{var y;let{declaration:C}=m;(C==null?void 0:C.type)==="ClassDeclaration"&&((y=C.decorators)==null?void 0:y.length)>0&&C.start===m.start&&this.resetStartLocation(m,c)}break}return m}parseSubscript(i,a,c,m){let y=super.parseSubscript(i,a,c,m);if(m.optionalChainMember){if((y.type==="OptionalMemberExpression"||y.type==="OptionalCallExpression")&&(y.type=y.type.substring(8)),m.stop){let C=this.startNodeAtNode(y);return C.expression=y,this.finishNode(C,"ChainExpression")}}else(y.type==="MemberExpression"||y.type==="CallExpression")&&(y.optional=!1);return y}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.method||i.kind==="get"||i.kind==="set"}finishNodeAt(i,a,c){return wa(super.finishNodeAt(i,a,c))}resetStartLocation(i,a){super.resetStartLocation(i,a),wa(i)}resetEndLocation(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(i,a),wa(i)}},Wl="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",jo="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",xi=new RegExp("["+Wl+"]"),co=new RegExp("["+Wl+jo+"]");Wl=jo=null;var po=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Ho=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Tu(l,i){let a=65536;for(let c=0,m=i.length;cl)return!1;if(a+=i[c+1],a>=l)return!0}return!1}function ws(l){return l<65?l===36:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&xi.test(String.fromCharCode(l)):Tu(l,po)}function ho(l){return l<48?l===36:l<58?!0:l<65?!1:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&co.test(String.fromCharCode(l)):Tu(l,po)||Tu(l,Ho)}var _s={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},fo=new Set(_s.keyword),_a=new Set(_s.strict),Qi=new Set(_s.strictBind);function na(l,i){return i&&l==="await"||l==="enum"}function Zi(l,i){return na(l,i)||_a.has(l)}function Cu(l){return Qi.has(l)}function Kn(l,i){return Zi(l,i)||Cu(l)}function mo(l){return fo.has(l)}function xu(l,i,a){return l===64&&i===64&&ws(a)}var _c=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Vl(l){return _c.has(l)}var ia=0,Uo=1,ks=2,bu=4,Au=8,go=16,ka=32,Fs=64,zo=128,zs=256,Su=Uo|ks|zo|zs,Ps=1,Fa=2,wu=4,$s=8,sa=16,$o=64,Go=128,aa=256,Wo=512,oa=1024,_u=2048,Ns=4096,Pa=8192,Na=Ps|Fa|$s|Go|Pa,Gs=Ps|0|$s|Pa,Vo=Ps|0|$s|0,qo=Ps|0|wu|0,ql=Ps|0|sa|0,Kl=0|Fa|0|Go,Ko=0|Fa|0|0,ua=Ps|Fa|$s|aa|Pa,Ia=0|oa,Ws=0|$o,Np=Ps|0|0|$o,Ip=ua|Wo,ds=0|oa,Yo=0|Fa|0|Ns,kc=_u,Mi=4,bi=2,Ni=1,ui=bi|Ni,La=bi|Mi,ll=Ni|Mi,yo=bi,ku=Ni,Xo=0,Fu=class{constructor(l){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=l}},la=class{constructor(l,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=l,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&Uo)>0}get inFunction(){return(this.currentVarScopeFlags()&ks)>0}get allowSuper(){return(this.currentThisScopeFlags()&go)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&ka)>0}get inClass(){return(this.currentThisScopeFlags()&Fs)>0}get inClassAndNotInNonArrowFunction(){let l=this.currentThisScopeFlags();return(l&Fs)>0&&(l&ks)===0}get inStaticBlock(){for(let l=this.scopeStack.length-1;;l--){let{flags:i}=this.scopeStack[l];if(i&zo)return!0;if(i&(Su|Fs))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&ks)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(l){return new Fu(l)}enter(l){this.scopeStack.push(this.createScope(l))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(l){return!!(l.flags&(ks|zo)||!this.parser.inModule&&l.flags&Uo)}declareName(l,i,a){let c=this.currentScope();if(i&$s||i&sa)this.checkRedeclarationInScope(c,l,i,a),i&sa?c.functions.add(l):c.lexical.add(l),i&$s&&this.maybeExportDefined(c,l);else if(i&wu)for(let m=this.scopeStack.length-1;m>=0&&(c=this.scopeStack[m],this.checkRedeclarationInScope(c,l,i,a),c.var.add(l),this.maybeExportDefined(c,l),!(c.flags&Su));--m);this.parser.inModule&&c.flags&Uo&&this.undefinedExports.delete(l)}maybeExportDefined(l,i){this.parser.inModule&&l.flags&Uo&&this.undefinedExports.delete(i)}checkRedeclarationInScope(l,i,a,c){this.isRedeclaredInScope(l,i,a)&&this.parser.raise(mt.VarRedeclaration,{at:c,identifierName:i})}isRedeclaredInScope(l,i,a){return a&Ps?a&$s?l.lexical.has(i)||l.functions.has(i)||l.var.has(i):a&sa?l.lexical.has(i)||!this.treatFunctionsAsVarInScope(l)&&l.var.has(i):l.lexical.has(i)&&!(l.flags&Au&&l.lexical.values().next().value===i)||!this.treatFunctionsAsVarInScope(l)&&l.functions.has(i):!1}checkLocalExport(l){let{name:i}=l,a=this.scopeStack[0];!a.lexical.has(i)&&!a.var.has(i)&&!a.functions.has(i)&&this.undefinedExports.set(i,l.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let l=this.scopeStack.length-1;;l--){let{flags:i}=this.scopeStack[l];if(i&Su)return i}}currentThisScopeFlags(){for(let l=this.scopeStack.length-1;;l--){let{flags:i}=this.scopeStack[l];if(i&(Su|Fs)&&!(i&bu))return i}}},Yl=class extends Fu{constructor(){super(...arguments),this.declareFunctions=new Set}},cl=class extends la{createScope(l){return new Yl(l)}declareName(l,i,a){let c=this.currentScope();if(i&_u){this.checkRedeclarationInScope(c,l,i,a),this.maybeExportDefined(c,l),c.declareFunctions.add(l);return}super.declareName(l,i,a)}isRedeclaredInScope(l,i,a){return super.isRedeclaredInScope(l,i,a)?!0:a&_u?!l.declareFunctions.has(i)&&(l.lexical.has(i)||l.functions.has(i)):!1}checkLocalExport(l){this.scopeStack[0].declareFunctions.has(l.name)||super.checkLocalExport(l)}},Xl=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(l){if(typeof l=="string")return this.plugins.has(l);{let[i,a]=l;if(!this.hasPlugin(i))return!1;let c=this.plugins.get(i);for(let m of Object.keys(a))if((c==null?void 0:c[m])!==a[m])return!1;return!0}}getPluginOption(l,i){var a;return(a=this.plugins.get(l))==null?void 0:a[i]}};function pl(l,i){l.trailingComments===void 0?l.trailingComments=i:l.trailingComments.unshift(...i)}function Jl(l,i){l.leadingComments===void 0?l.leadingComments=i:l.leadingComments.unshift(...i)}function vo(l,i){l.innerComments===void 0?l.innerComments=i:l.innerComments.unshift(...i)}function Eo(l,i,a){let c=null,m=i.length;for(;c===null&&m>0;)c=i[--m];c===null||c.start>a.start?vo(l,a.comments):pl(c,a.comments)}var hl=class extends Xl{addComment(l){this.filename&&(l.loc.filename=this.filename),this.state.comments.push(l)}processComment(l){let{commentStack:i}=this.state,a=i.length;if(a===0)return;let c=a-1,m=i[c];m.start===l.end&&(m.leadingNode=l,c--);let{start:y}=l;for(;c>=0;c--){let C=i[c],x=C.end;if(x>y)C.containingNode=l,this.finalizeComment(C),i.splice(c,1);else{x===y&&(C.trailingNode=l);break}}}finalizeComment(l){let{comments:i}=l;if(l.leadingNode!==null||l.trailingNode!==null)l.leadingNode!==null&&pl(l.leadingNode,i),l.trailingNode!==null&&Jl(l.trailingNode,i);else{let{containingNode:a,start:c}=l;if(this.input.charCodeAt(c-1)===44)switch(a.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Eo(a,a.properties,l);break;case"CallExpression":case"OptionalCallExpression":Eo(a,a.arguments,l);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Eo(a,a.params,l);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Eo(a,a.elements,l);break;case"ExportNamedDeclaration":case"ImportDeclaration":Eo(a,a.specifiers,l);break;default:vo(a,i)}else vo(a,i)}}finalizeRemainingComments(){let{commentStack:l}=this.state;for(let i=l.length-1;i>=0;i--)this.finalizeComment(l[i]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(l){let{commentStack:i}=this.state,{length:a}=i;if(a===0)return;let c=i[a-1];c.leadingNode===l&&(c.leadingNode=null)}takeSurroundingComments(l,i,a){let{commentStack:c}=this.state,m=c.length;if(m===0)return;let y=m-1;for(;y>=0;y--){let C=c[y],x=C.end;if(C.start===a)C.leadingNode=l;else if(x===i)C.trailingNode=l;else if(x=48&&l<=57},Un={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},os={bin:l=>l===48||l===49,oct:l=>l>=48&&l<=55,dec:l=>l>=48&&l<=57,hex:l=>l>=48&&l<=57||l>=65&&l<=70||l>=97&&l<=102};function Vs(l,i,a,c,m,y){let C=a,x=c,A=m,S="",k=null,O=a,{length:G}=i;for(;;){if(a>=G){y.unterminated(C,x,A),S+=i.slice(O,a);break}let z=i.charCodeAt(a);if(Ba(l,z,i,a)){S+=i.slice(O,a);break}if(z===92){S+=i.slice(O,a);let q=Fc(i,a,c,m,l==="template",y);q.ch===null&&!k?k={pos:a,lineStart:c,curLine:m}:S+=q.ch,{pos:a,lineStart:c,curLine:m}=q,O=a}else z===8232||z===8233?(++a,++m,c=a):z===10||z===13?l==="template"?(S+=i.slice(O,a)+` +`,++a,z===13&&i.charCodeAt(a)===10&&++a,++m,O=c=a):y.unterminated(C,x,A):++a}return{pos:a,str:S,firstInvalidLoc:k,lineStart:c,curLine:m,containsInvalid:!!k}}function Ba(l,i,a,c){return l==="template"?i===96||i===36&&a.charCodeAt(c+1)===123:i===(l==="double"?34:39)}function Fc(l,i,a,c,m,y){let C=!m;i++;let x=S=>({pos:i,ch:S,lineStart:a,curLine:c}),A=l.charCodeAt(i++);switch(A){case 110:return x(` +`);case 114:return x("\r");case 120:{let S;return{code:S,pos:i}=Nu(l,i,a,c,2,!1,C,y),x(S===null?null:String.fromCharCode(S))}case 117:{let S;return{code:S,pos:i}=dl(l,i,a,c,C,y),x(S===null?null:String.fromCodePoint(S))}case 116:return x(" ");case 98:return x("\b");case 118:return x("\v");case 102:return x("\f");case 13:l.charCodeAt(i)===10&&++i;case 10:a=i,++c;case 8232:case 8233:return x("");case 56:case 57:if(m)return x(null);y.strictNumericEscape(i-1,a,c);default:if(A>=48&&A<=55){let S=i-1,k=l.slice(S,i+2).match(/^[0-7]+/)[0],O=parseInt(k,8);O>255&&(k=k.slice(0,-1),O=parseInt(k,8)),i+=k.length-1;let G=l.charCodeAt(i);if(k!=="0"||G===56||G===57){if(m)return x(null);y.strictNumericEscape(S,a,c)}return x(String.fromCharCode(O))}return x(String.fromCharCode(A))}}function Nu(l,i,a,c,m,y,C,x){let A=i,S;return{n:S,pos:i}=Zl(l,i,a,c,16,m,y,!1,x,!C),S===null&&(C?x.invalidEscapeSequence(A,a,c):i=A-1),{code:S,pos:i}}function Zl(l,i,a,c,m,y,C,x,A,S){let k=i,O=m===16?Un.hex:Un.decBinOct,G=m===16?os.hex:m===10?os.dec:m===8?os.oct:os.bin,z=!1,q=0;for(let U=0,$=y??1/0;U<$;++U){let Q=l.charCodeAt(i),ce;if(Q===95&&x!=="bail"){let ge=l.charCodeAt(i-1),ne=l.charCodeAt(i+1);if(x){if(Number.isNaN(ne)||!G(ne)||O.has(ge)||O.has(ne)){if(S)return{n:null,pos:i};A.unexpectedNumericSeparator(i,a,c)}}else{if(S)return{n:null,pos:i};A.numericSeparatorInEscapeSequence(i,a,c)}++i;continue}if(Q>=97?ce=Q-97+10:Q>=65?ce=Q-65+10:es(Q)?ce=Q-48:ce=1/0,ce>=m){if(ce<=9&&S)return{n:null,pos:i};if(ce<=9&&A.invalidDigit(i,a,c,m))ce=0;else if(C)ce=0,z=!0;else break}++i,q=q*m+ce}return i===k||y!=null&&i-k!==y||z?{n:null,pos:i}:{n:q,pos:i}}function dl(l,i,a,c,m,y){let C=l.charCodeAt(i),x;if(C===123){if(++i,{code:x,pos:i}=Nu(l,i,a,c,l.indexOf("}",i)-i,!0,m,y),++i,x!==null&&x>1114111)if(m)y.invalidCodePoint(i,a,c);else return{code:null,pos:i}}else({code:x,pos:i}=Nu(l,i,a,c,4,!1,m,y));return{code:x,pos:i}}var ec=["at"],Qo=["at"];function Zo(l,i,a){return new Ri(a,l-i,l)}var tc=new Set([103,109,115,105,121,117,100,118]),ts=class{constructor(l){this.type=l.type,this.value=l.value,this.start=l.start,this.end=l.end,this.loc=new Cs(l.startLoc,l.endLoc)}},Pc=class extends hl{constructor(l,i){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(a,c,m,y)=>this.options.errorRecovery?(this.raise(mt.InvalidDigit,{at:Zo(a,c,m),radix:y}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(mt.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(mt.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(mt.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(mt.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(a,c,m)=>{this.recordStrictModeErrors(mt.StrictNumericEscape,{at:Zo(a,c,m)})},unterminated:(a,c,m)=>{throw this.raise(mt.UnterminatedString,{at:Zo(a-1,c,m)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(mt.StrictNumericEscape),unterminated:(a,c,m)=>{throw this.raise(mt.UnterminatedTemplate,{at:Zo(a,c,m)})}}),this.state=new Ql,this.state.init(l),this.input=i,this.length=i.length,this.isLookahead=!1}pushToken(l){this.tokens.length=this.state.tokensLength,this.tokens.push(l),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new ts(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(l){return this.match(l)?(this.next(),!0):!1}match(l){return this.state.type===l}createLookaheadState(l){return{pos:l.pos,value:null,type:l.type,start:l.start,end:l.end,context:[this.curContext()],inType:l.inType,startLoc:l.startLoc,lastTokEndLoc:l.lastTokEndLoc,curLine:l.curLine,lineStart:l.lineStart,curPosition:l.curPosition}}lookahead(){let l=this.state;this.state=this.createLookaheadState(l),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let i=this.state;return this.state=l,i}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(l){return Jo.lastIndex=l,Jo.test(this.input)?Jo.lastIndex:l}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(l){let i=this.input.charCodeAt(l);if((i&64512)===55296&&++l{let[a,c]=i;return this.raise(a,{at:c})}),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(137);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(l){let i;this.isLookahead||(i=this.state.curPosition());let a=this.state.pos,c=this.input.indexOf(l,a+2);if(c===-1)throw this.raise(mt.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=c+l.length,Oa.lastIndex=a+2;Oa.test(this.input)&&Oa.lastIndex<=c;)++this.state.curLine,this.state.lineStart=Oa.lastIndex;if(this.isLookahead)return;let m={type:"CommentBlock",value:this.input.slice(a+2,c),start:a,end:c+l.length,loc:new Cs(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(m),m}skipLineComment(l){let i=this.state.pos,a;this.isLookahead||(a=this.state.curPosition());let c=this.input.charCodeAt(this.state.pos+=l);if(this.state.posl)){let m=this.skipLineComment(3);m!==void 0&&(this.addComment(m),this.options.attachComment&&i.push(m))}else break e}else if(a===60&&!this.inModule&&this.options.annexB){let c=this.state.pos;if(this.input.charCodeAt(c+1)===33&&this.input.charCodeAt(c+2)===45&&this.input.charCodeAt(c+3)===45){let m=this.skipLineComment(4);m!==void 0&&(this.addComment(m),this.options.attachComment&&i.push(m))}else break e}else break e}}if(i.length>0){let a=this.state.pos,c={start:l,end:a,comments:i,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}finishToken(l,i){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let a=this.state.type;this.state.type=l,this.state.value=i,this.isLookahead||this.updateContext(a)}replaceToken(l){this.state.type=l,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let l=this.state.pos+1,i=this.codePointAtPos(l);if(i>=48&&i<=57)throw this.raise(mt.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(i===123||i===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(i===123?mt.RecordExpressionHashIncorrectStartSyntaxType:mt.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,i===123?this.finishToken(7):this.finishToken(1)}else ws(i)?(++this.state.pos,this.finishToken(136,this.readWord1(i))):i===92?(++this.state.pos,this.finishToken(136,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let l=this.input.charCodeAt(this.state.pos+1);if(l>=48&&l<=57){this.readNumber(!0);return}l===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let l=this.input.charCodeAt(this.state.pos+1);if(l!==33)return!1;let i=this.state.pos;for(this.state.pos+=1;!Pu(l)&&++this.state.pos=48&&i<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(l){switch(l){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(mt.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(mt.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let i=this.input.charCodeAt(this.state.pos+1);if(i===120||i===88){this.readRadixNumber(16);return}if(i===111||i===79){this.readRadixNumber(8);return}if(i===98||i===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(l);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(l);return;case 124:case 38:this.readToken_pipe_amp(l);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(l);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(l);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ws(l)){this.readWord(l);return}}throw this.raise(mt.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(l)})}finishOp(l,i){let a=this.input.slice(this.state.pos,this.state.pos+i);this.state.pos+=i,this.finishToken(l,a)}readRegexp(){let l=this.state.startLoc,i=this.state.start+1,a,c,{pos:m}=this.state;for(;;++m){if(m>=this.length)throw this.raise(mt.UnterminatedRegExp,{at:$i(l,1)});let A=this.input.charCodeAt(m);if(Pu(A))throw this.raise(mt.UnterminatedRegExp,{at:$i(l,1)});if(a)a=!1;else{if(A===91)c=!0;else if(A===93&&c)c=!1;else if(A===47&&!c)break;a=A===92}}let y=this.input.slice(i,m);++m;let C="",x=()=>$i(l,m+2-i);for(;m2&&arguments[2]!==void 0?arguments[2]:!1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,{n:m,pos:y}=Zl(this.input,this.state.pos,this.state.lineStart,this.state.curLine,l,i,a,c,this.errorHandlers_readInt,!1);return this.state.pos=y,m}readRadixNumber(l){let i=this.state.curPosition(),a=!1;this.state.pos+=2;let c=this.readInt(l);c==null&&this.raise(mt.InvalidDigit,{at:$i(i,2),radix:l});let m=this.input.charCodeAt(this.state.pos);if(m===110)++this.state.pos,a=!0;else if(m===109)throw this.raise(mt.InvalidDecimal,{at:i});if(ws(this.codePointAtPos(this.state.pos)))throw this.raise(mt.NumberIdentifier,{at:this.state.curPosition()});if(a){let y=this.input.slice(i.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(133,y);return}this.finishToken(132,c)}readNumber(l){let i=this.state.pos,a=this.state.curPosition(),c=!1,m=!1,y=!1,C=!1,x=!1;!l&&this.readInt(10)===null&&this.raise(mt.InvalidNumber,{at:this.state.curPosition()});let A=this.state.pos-i>=2&&this.input.charCodeAt(i)===48;if(A){let G=this.input.slice(i,this.state.pos);if(this.recordStrictModeErrors(mt.StrictOctalLiteral,{at:a}),!this.state.strict){let z=G.indexOf("_");z>0&&this.raise(mt.ZeroDigitNumericSeparator,{at:$i(a,z)})}x=A&&!/[89]/.test(G)}let S=this.input.charCodeAt(this.state.pos);if(S===46&&!x&&(++this.state.pos,this.readInt(10),c=!0,S=this.input.charCodeAt(this.state.pos)),(S===69||S===101)&&!x&&(S=this.input.charCodeAt(++this.state.pos),(S===43||S===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(mt.InvalidOrMissingExponent,{at:a}),c=!0,C=!0,S=this.input.charCodeAt(this.state.pos)),S===110&&((c||A)&&this.raise(mt.InvalidBigIntLiteral,{at:a}),++this.state.pos,m=!0),S===109&&(this.expectPlugin("decimal",this.state.curPosition()),(C||A)&&this.raise(mt.InvalidDecimal,{at:a}),++this.state.pos,y=!0),ws(this.codePointAtPos(this.state.pos)))throw this.raise(mt.NumberIdentifier,{at:this.state.curPosition()});let k=this.input.slice(i,this.state.pos).replace(/[_mn]/g,"");if(m){this.finishToken(133,k);return}if(y){this.finishToken(134,k);return}let O=x?parseInt(k,8):parseFloat(k);this.finishToken(132,O)}readCodePoint(l){let{code:i,pos:a}=dl(this.input,this.state.pos,this.state.lineStart,this.state.curLine,l,this.errorHandlers_readCodePoint);return this.state.pos=a,i}readString(l){let{str:i,pos:a,curLine:c,lineStart:m}=Vs(l===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=a+1,this.state.lineStart=m,this.state.curLine=c,this.finishToken(131,i)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let l=this.input[this.state.pos],{str:i,firstInvalidLoc:a,pos:c,curLine:m,lineStart:y}=Vs("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=c+1,this.state.lineStart=y,this.state.curLine=m,a&&(this.state.firstInvalidTemplateEscapePos=new Ri(a.curLine,a.pos-a.lineStart,a.pos)),this.input.codePointAt(c)===96?this.finishToken(24,a?null:l+i+"`"):(this.state.pos++,this.finishToken(25,a?null:l+i+"${"))}recordStrictModeErrors(l,i){let{at:a}=i,c=a.index;this.state.strict&&!this.state.strictErrors.has(c)?this.raise(l,{at:a}):this.state.strictErrors.set(c,[l,a])}readWord1(l){this.state.containsEsc=!1;let i="",a=this.state.pos,c=this.state.pos;for(l!==void 0&&(this.state.pos+=l<=65535?1:2);this.state.pos=0;x--){let A=C[x];if(A.loc.index===y)return C[x]=l({loc:m,details:c});if(A.loc.indexthis.hasPlugin(i)))throw this.raise(mt.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:l})}errorBuilder(l){return(i,a,c)=>{this.raise(l,{at:Zo(i,a,c)})}}},Nc=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Op=class{constructor(l){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=l}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Nc)}exit(){let l=this.stack.pop(),i=this.current();for(let[a,c]of Array.from(l.undefinedPrivateNames))i?i.undefinedPrivateNames.has(a)||i.undefinedPrivateNames.set(a,c):this.parser.raise(mt.InvalidPrivateFieldResolution,{at:c,identifierName:a})}declarePrivateName(l,i,a){let{privateNames:c,loneAccessors:m,undefinedPrivateNames:y}=this.current(),C=c.has(l);if(i&ui){let x=C&&m.get(l);if(x){let A=x&Mi,S=i&Mi,k=x&ui,O=i&ui;C=k===O||A!==S,C||m.delete(l)}else C||m.set(l,i)}C&&this.parser.raise(mt.PrivateNameRedeclaration,{at:a,identifierName:l}),c.add(l),y.delete(l)}usePrivateName(l,i){let a;for(a of this.stack)if(a.privateNames.has(l))return;a?a.undefinedPrivateNames.set(l,i):this.parser.raise(mt.InvalidPrivateFieldResolution,{at:i,identifierName:l})}},ml=0,gl=1,yl=2,Ic=3,Iu=class{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ml;this.type=void 0,this.type=l}canBeArrowParameterDeclaration(){return this.type===yl||this.type===gl}isCertainlyParameterDeclaration(){return this.type===Ic}},Lc=class extends Iu{constructor(l){super(l),this.declarationErrors=new Map}recordDeclarationError(l,i){let{at:a}=i,c=a.index;this.declarationErrors.set(c,[l,a])}clearDeclarationError(l){this.declarationErrors.delete(l)}iterateErrors(l){this.declarationErrors.forEach(l)}},Mp=class{constructor(l){this.parser=void 0,this.stack=[new Iu],this.parser=l}enter(l){this.stack.push(l)}exit(){this.stack.pop()}recordParameterInitializerError(l,i){let{at:a}=i,c={at:a.loc.start},{stack:m}=this,y=m.length-1,C=m[y];for(;!C.isCertainlyParameterDeclaration();){if(C.canBeArrowParameterDeclaration())C.recordDeclarationError(l,c);else return;C=m[--y]}this.parser.raise(l,c)}recordArrowParameterBindingError(l,i){let{at:a}=i,{stack:c}=this,m=c[c.length-1],y={at:a.loc.start};if(m.isCertainlyParameterDeclaration())this.parser.raise(l,y);else if(m.canBeArrowParameterDeclaration())m.recordDeclarationError(l,y);else return}recordAsyncArrowParametersError(l){let{at:i}=l,{stack:a}=this,c=a.length-1,m=a[c];for(;m.canBeArrowParameterDeclaration();)m.type===yl&&m.recordDeclarationError(mt.AwaitBindingIdentifier,{at:i}),m=a[--c]}validateAsPattern(){let{stack:l}=this,i=l[l.length-1];i.canBeArrowParameterDeclaration()&&i.iterateErrors(a=>{let[c,m]=a;this.parser.raise(c,{at:m});let y=l.length-2,C=l[y];for(;C.canBeArrowParameterDeclaration();)C.clearDeclarationError(m.index),C=l[--y]})}};function vl(){return new Iu(Ic)}function Oc(){return new Lc(gl)}function Bp(){return new Lc(yl)}function Mc(){return new Iu}var Do=0,To=1,eu=2,Lu=4,Co=8,rc=class{constructor(){this.stacks=[]}enter(l){this.stacks.push(l)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&eu)>0}get hasYield(){return(this.currentFlags()&To)>0}get hasReturn(){return(this.currentFlags()&Lu)>0}get hasIn(){return(this.currentFlags()&Co)>0}};function Ou(l,i){return(l?eu:0)|(i?To:0)}var Rp=class extends Pc{addExtra(l,i,a){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(!l)return;let m=l.extra=l.extra||{};c?m[i]=a:Object.defineProperty(m,i,{enumerable:c,value:a})}isContextual(l){return this.state.type===l&&!this.state.containsEsc}isUnparsedContextual(l,i){let a=l+i.length;if(this.input.slice(l,a)===i){let c=this.input.charCodeAt(a);return!(ho(c)||(c&64512)===55296)}return!1}isLookaheadContextual(l){let i=this.nextTokenStart();return this.isUnparsedContextual(i,l)}eatContextual(l){return this.isContextual(l)?(this.next(),!0):!1}expectContextual(l,i){if(!this.eatContextual(l)){if(i!=null)throw this.raise(i,{at:this.state.startLoc});this.unexpected(null,l)}}canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return fl.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ma.lastIndex=this.state.end,Ma.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isLineTerminator():this.eat(13))||this.raise(mt.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(l,i){this.eat(l)||this.unexpected(i,l)}tryParse(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state.clone(),a={node:null};try{let c=l(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;throw a.node=m,a});if(this.state.errors.length>i.errors.length){let m=this.state;return this.state=i,this.state.tokensLength=m.tokensLength,{node:c,error:m.errors[i.errors.length],thrown:!1,aborted:!1,failState:m}}return{node:c,error:null,thrown:!1,aborted:!1,failState:null}}catch(c){let m=this.state;if(this.state=i,c instanceof SyntaxError)return{node:null,error:c,thrown:!0,aborted:!1,failState:m};if(c===a)return{node:a.node,error:null,thrown:!1,aborted:!0,failState:m};throw c}}checkExpressionErrors(l,i){if(!l)return!1;let{shorthandAssignLoc:a,doubleProtoLoc:c,privateKeyLoc:m,optionalParametersLoc:y}=l,C=!!a||!!c||!!y||!!m;if(!i)return C;a!=null&&this.raise(mt.InvalidCoverInitializedName,{at:a}),c!=null&&this.raise(mt.DuplicateProto,{at:c}),m!=null&&this.raise(mt.UnexpectedPrivateField,{at:m}),y!=null&&this.unexpected(y)}isLiteralPropertyName(){return Hr(this.state.type)}isPrivateName(l){return l.type==="PrivateName"}getPrivateNameSV(l){return l.id.name}hasPropertyAsPrivateName(l){return(l.type==="MemberExpression"||l.type==="OptionalMemberExpression")&&this.isPrivateName(l.property)}isObjectProperty(l){return l.type==="ObjectProperty"}isObjectMethod(l){return l.type==="ObjectMethod"}initializeScopes(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.sourceType==="module",i=this.state.labels;this.state.labels=[];let a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let c=this.inModule;this.inModule=l;let m=this.scope,y=this.getScopeHandler();this.scope=new y(this,l);let C=this.prodParam;this.prodParam=new rc;let x=this.classScope;this.classScope=new Op(this);let A=this.expressionScope;return this.expressionScope=new Mp(this),()=>{this.state.labels=i,this.exportedIdentifiers=a,this.inModule=c,this.scope=m,this.prodParam=C,this.classScope=x,this.expressionScope=A}}enterInitialScopes(){let l=Do;this.inModule&&(l|=eu),this.scope.enter(Uo),this.prodParam.enter(l)}checkDestructuringPrivate(l){let{privateKeyLoc:i}=l;i!==null&&this.expectPlugin("destructuringPrivate",i)}},Mu=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},_i=class{constructor(l,i,a){this.type="",this.start=i,this.end=0,this.loc=new Cs(a),l!=null&&l.options.ranges&&(this.range=[i,0]),l!=null&&l.filename&&(this.loc.filename=l.filename)}},tu=_i.prototype;tu.__clone=function(){let l=new _i(void 0,this.start,this.loc.start),i=Object.keys(this);for(let a=0,c=i.length;a1&&arguments[1]!==void 0?arguments[1]:this.state.lastTokEndLoc;l.end=i.index,l.loc.end=i,this.options.ranges&&(l.range[1]=i.index)}resetStartLocationFromNode(l,i){this.resetStartLocation(l,i.loc.start)}},Bu=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),sn=oi`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:l=>{let{reservedType:i}=l;return`Cannot overwrite reserved type ${i}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:l=>{let{memberName:i,enumName:a}=l;return`Boolean enum members need to be initialized. Use either \`${i} = true,\` or \`${i} = false,\` in enum \`${a}\`.`},EnumDuplicateMemberName:l=>{let{memberName:i,enumName:a}=l;return`Enum member names need to be unique, but the name \`${i}\` has already been used before in enum \`${a}\`.`},EnumInconsistentMemberValues:l=>{let{enumName:i}=l;return`Enum \`${i}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:l=>{let{invalidEnumType:i,enumName:a}=l;return`Enum type \`${i}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`},EnumInvalidExplicitTypeUnknownSupplied:l=>{let{enumName:i}=l;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${i}\`.`},EnumInvalidMemberInitializerPrimaryType:l=>{let{enumName:i,memberName:a,explicitType:c}=l;return`Enum \`${i}\` has type \`${c}\`, so the initializer of \`${a}\` needs to be a ${c} literal.`},EnumInvalidMemberInitializerSymbolType:l=>{let{enumName:i,memberName:a}=l;return`Symbol enum members cannot be initialized. Use \`${a},\` in enum \`${i}\`.`},EnumInvalidMemberInitializerUnknownType:l=>{let{enumName:i,memberName:a}=l;return`The enum member initializer for \`${a}\` needs to be a literal (either a boolean, number, or string) in enum \`${i}\`.`},EnumInvalidMemberName:l=>{let{enumName:i,memberName:a,suggestion:c}=l;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${a}\`, consider using \`${c}\`, in enum \`${i}\`.`},EnumNumberMemberNotInitialized:l=>{let{enumName:i,memberName:a}=l;return`Number enum members need to be initialized, e.g. \`${a} = 1\` in enum \`${i}\`.`},EnumStringMemberInconsistentlyInitailized:l=>{let{enumName:i}=l;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${i}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:l=>{let{reservedType:i}=l;return`Unexpected reserved type ${i}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:l=>{let{unsupportedExportKind:i,suggestion:a}=l;return`\`declare export ${i}\` is not supported. Use \`${a}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function El(l){return l.type==="DeclareExportAllDeclaration"||l.type==="DeclareExportDeclaration"&&(!l.declaration||l.declaration.type!=="TypeAlias"&&l.declaration.type!=="InterfaceDeclaration")}function Dl(l){return l.importKind==="type"||l.importKind==="typeof"}function Ra(l){return xr(l)&&l!==97}var jc={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Tl(l,i){let a=[],c=[];for(let m=0;mclass extends l{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return cl}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(i,a){i!==131&&i!==13&&i!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,a)}addComment(i){if(this.flowPragma===void 0){let a=Hc.exec(i.value);if(a)if(a[1]==="flow")this.flowPragma="flow";else if(a[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(i)}flowParseTypeInitialiser(i){let a=this.state.inType;this.state.inType=!0,this.expect(i||14);let c=this.flowParseType();return this.state.inType=a,c}flowParsePredicate(){let i=this.startNode(),a=this.state.startLoc;return this.next(),this.expectContextual(108),this.state.lastTokStart>a.index+1&&this.raise(sn.UnexpectedSpaceBetweenModuloChecks,{at:a}),this.eat(10)?(i.value=super.parseExpression(),this.expect(11),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let i=this.state.inType;this.state.inType=!0,this.expect(14);let a=null,c=null;return this.match(54)?(this.state.inType=i,c=this.flowParsePredicate()):(a=this.flowParseType(),this.state.inType=i,this.match(54)&&(c=this.flowParsePredicate())),[a,c]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();let a=i.id=this.parseIdentifier(),c=this.startNode(),m=this.startNode();this.match(47)?c.typeParameters=this.flowParseTypeParameterDeclaration():c.typeParameters=null,this.expect(10);let y=this.flowParseFunctionTypeParams();return c.params=y.params,c.rest=y.rest,c.this=y._this,this.expect(11),[c.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),m.typeAnnotation=this.finishNode(c,"FunctionTypeAnnotation"),a.typeAnnotation=this.finishNode(m,"TypeAnnotation"),this.resetEndLocation(a),this.semicolon(),this.scope.declareName(i.id.name,kc,i.id.loc.start),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,a){if(this.match(80))return this.flowParseDeclareClass(i);if(this.match(68))return this.flowParseDeclareFunction(i);if(this.match(74))return this.flowParseDeclareVariable(i);if(this.eatContextual(125))return this.match(16)?this.flowParseDeclareModuleExports(i):(a&&this.raise(sn.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(i));if(this.isContextual(128))return this.flowParseDeclareTypeAlias(i);if(this.isContextual(129))return this.flowParseDeclareOpaqueType(i);if(this.isContextual(127))return this.flowParseDeclareInterface(i);if(this.match(82))return this.flowParseDeclareExportDeclaration(i,a);this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(i.id.name,qo,i.id.loc.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(ia),this.match(131)?i.id=super.parseExprAtom():i.id=this.parseIdentifier();let a=i.body=this.startNode(),c=a.body=[];for(this.expect(5);!this.match(8);){let C=this.startNode();this.match(83)?(this.next(),!this.isContextual(128)&&!this.match(87)&&this.raise(sn.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(C)):(this.expectContextual(123,sn.UnsupportedStatementInDeclareModule),C=this.flowParseDeclare(C,!0)),c.push(C)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");let m=null,y=!1;return c.forEach(C=>{El(C)?(m==="CommonJS"&&this.raise(sn.AmbiguousDeclareModuleKind,{at:C}),m="ES"):C.type==="DeclareModuleExports"&&(y&&this.raise(sn.DuplicateDeclareModuleExports,{at:C}),m==="ES"&&this.raise(sn.AmbiguousDeclareModuleKind,{at:C}),m="CommonJS",y=!0)}),i.kind=m||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,a){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(128)||this.isContextual(127))&&!a){let c=this.state.value;throw this.raise(sn.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:c,suggestion:jc[c]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(129))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(127)||this.isContextual(128)||this.isContextual(129))return i=this.parseExport(i,null),i.type==="ExportNamedDeclaration"&&(i.type="ExportDeclaration",i.default=!1,delete i.exportKind),i.type="Declare"+i.type,i;this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual(109),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){this.next();let a=this.flowParseTypeAlias(i);return a.type="DeclareTypeAlias",a}flowParseDeclareOpaqueType(i){this.next();let a=this.flowParseOpaqueType(i,!0);return a.type="DeclareOpaqueType",a}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i,!1),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,a){if(i.id=this.flowParseRestrictedIdentifier(!a,!0),this.scope.declareName(i.id.name,a?ql:Gs,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],i.implements=[],i.mixins=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(!a&&this.eat(12));if(a){if(this.eatContextual(115))do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(111))do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}i.body=this.flowParseObjectType({allowStatic:a,allowExact:!1,allowSpread:!1,allowProto:a,allowInexact:!1})}flowParseInterfaceExtends(){let i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i,!1),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(sn.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(i,a,c){Bu.has(i)&&this.raise(c?sn.AssignReservedType:sn.UnexpectedReservedType,{at:a,reservedType:i})}flowParseRestrictedIdentifier(i,a){return this.checkReservedType(this.state.value,this.state.startLoc,a),this.parseIdentifier(i)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,Gs,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,a){return this.expectContextual(128),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,Gs,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(14)&&(i.supertype=this.flowParseTypeInitialiser(14)),i.impltype=null,a||(i.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameter(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=this.state.startLoc,c=this.startNode(),m=this.flowParseVariance(),y=this.flowParseTypeAnnotatableIdentifier();return c.name=y.name,c.variance=m,c.bound=y.typeAnnotation,this.match(29)?(this.eat(29),c.default=this.flowParseType()):i&&this.raise(sn.MissingTypeParamDefault,{at:a}),this.finishNode(c,"TypeParameter")}flowParseTypeParameterDeclaration(){let i=this.state.inType,a=this.startNode();a.params=[],this.state.inType=!0,this.match(47)||this.match(140)?this.next():this.unexpected();let c=!1;do{let m=this.flowParseTypeParameter(c);a.params.push(m),m.default&&(c=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=i,this.finishNode(a,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let i=this.startNode(),a=this.state.inType;i.params=[],this.state.inType=!0,this.expect(47);let c=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)i.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=c,this.expect(48),this.state.inType=a,this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let i=this.startNode(),a=this.state.inType;for(i.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=a,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){let i=this.startNode();if(this.expectContextual(127),i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,a,c){return i.static=a,this.lookahead().type===14?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(3),i.value=this.flowParseTypeInitialiser(),i.variance=c,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,a){return i.static=a,i.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start))):(i.method=!1,this.eat(17)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,i.this=null,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(i.this=this.flowParseFunctionTypeParam(!0),i.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,a){let c=this.startNode();return i.static=a,i.value=this.flowParseObjectTypeMethodish(c),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType(i){let{allowStatic:a,allowExact:c,allowSpread:m,allowProto:y,allowInexact:C}=i,x=this.state.inType;this.state.inType=!0;let A=this.startNode();A.callProperties=[],A.properties=[],A.indexers=[],A.internalSlots=[];let S,k,O=!1;for(c&&this.match(6)?(this.expect(6),S=9,k=!0):(this.expect(5),S=8,k=!1),A.exact=k;!this.match(S);){let z=!1,q=null,U=null,$=this.startNode();if(y&&this.isContextual(116)){let ce=this.lookahead();ce.type!==14&&ce.type!==17&&(this.next(),q=this.state.startLoc,a=!1)}if(a&&this.isContextual(104)){let ce=this.lookahead();ce.type!==14&&ce.type!==17&&(this.next(),z=!0)}let Q=this.flowParseVariance();if(this.eat(0))q!=null&&this.unexpected(q),this.eat(0)?(Q&&this.unexpected(Q.loc.start),A.internalSlots.push(this.flowParseObjectTypeInternalSlot($,z))):A.indexers.push(this.flowParseObjectTypeIndexer($,z,Q));else if(this.match(10)||this.match(47))q!=null&&this.unexpected(q),Q&&this.unexpected(Q.loc.start),A.callProperties.push(this.flowParseObjectTypeCallProperty($,z));else{let ce="init";if(this.isContextual(98)||this.isContextual(103)){let ne=this.lookahead();Hr(ne.type)&&(ce=this.state.value,this.next())}let ge=this.flowParseObjectTypeProperty($,z,q,Q,ce,m,C??!k);ge===null?(O=!0,U=this.state.lastTokStartLoc):A.properties.push(ge)}this.flowObjectTypeSemicolon(),U&&!this.match(8)&&!this.match(9)&&this.raise(sn.UnexpectedExplicitInexactInObject,{at:U})}this.expect(S),m&&(A.inexact=O);let G=this.finishNode(A,"ObjectTypeAnnotation");return this.state.inType=x,G}flowParseObjectTypeProperty(i,a,c,m,y,C,x){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(C?x||this.raise(sn.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(sn.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),m&&this.raise(sn.InexactVariance,{at:m}),null):(C||this.raise(sn.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),c!=null&&this.unexpected(c),m&&this.raise(sn.SpreadVariance,{at:m}),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=a,i.proto=c!=null,i.kind=y;let A=!1;return this.match(47)||this.match(10)?(i.method=!0,c!=null&&this.unexpected(c),m&&this.unexpected(m.loc.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start)),(y==="get"||y==="set")&&this.flowCheckGetterSetterParams(i),!C&&i.key.name==="constructor"&&i.value.this&&this.raise(sn.ThisParamBannedInConstructor,{at:i.value.this})):(y!=="init"&&this.unexpected(),i.method=!1,this.eat(17)&&(A=!0),i.value=this.flowParseTypeInitialiser(),i.variance=m),i.optional=A,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){let a=i.kind==="get"?0:1,c=i.value.params.length+(i.value.rest?1:0);i.value.this&&this.raise(i.kind==="get"?sn.GetterMayNotHaveThisParam:sn.SetterMayNotHaveThisParam,{at:i.value.this}),c!==a&&this.raise(i.kind==="get"?mt.BadGetterArity:mt.BadSetterArity,{at:i}),i.kind==="set"&&i.value.rest&&this.raise(mt.BadSetterRestParameter,{at:i})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,a){i!=null||(i=this.state.startLoc);let c=a||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let m=this.startNodeAt(i);m.qualification=c,m.id=this.flowParseRestrictedIdentifier(!0),c=this.finishNode(m,"QualifiedTypeIdentifier")}return c}flowParseGenericType(i,a){let c=this.startNodeAt(i);return c.typeParameters=null,c.id=this.flowParseQualifiedTypeIdentifier(i,a),this.match(47)&&(c.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(c,"GenericTypeAnnotation")}flowParseTypeofType(){let i=this.startNode();return this.expect(87),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){let i=this.startNode();for(i.types=[],this.expect(0);this.state.pos0&&arguments[0]!==void 0?arguments[0]:[],a=null,c=null;for(this.match(78)&&(c=this.flowParseFunctionTypeParam(!0),c.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(a=this.flowParseFunctionTypeParam(!1)),{params:i,rest:a,_this:c}}flowIdentToTypeAnnotation(i,a,c){switch(c.name){case"any":return this.finishNode(a,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(a,"BooleanTypeAnnotation");case"mixed":return this.finishNode(a,"MixedTypeAnnotation");case"empty":return this.finishNode(a,"EmptyTypeAnnotation");case"number":return this.finishNode(a,"NumberTypeAnnotation");case"string":return this.finishNode(a,"StringTypeAnnotation");case"symbol":return this.finishNode(a,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(c.name),this.flowParseGenericType(i,c)}}flowParsePrimaryType(){let i=this.state.startLoc,a=this.startNode(),c,m,y=!1,C=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,m=this.flowParseTupleType(),this.state.noAnonFunctionType=C,m;case 47:return a.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),c=this.flowParseFunctionTypeParams(),a.params=c.params,a.rest=c.rest,a.this=c._this,this.expect(11),this.expect(19),a.returnType=this.flowParseType(),this.finishNode(a,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(Et(this.state.type)||this.match(78)){let x=this.lookahead().type;y=x!==17&&x!==14}else y=!0;if(y){if(this.state.noAnonFunctionType=!1,m=this.flowParseType(),this.state.noAnonFunctionType=C,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),m;this.eat(12)}return m?c=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(m)]):c=this.flowParseFunctionTypeParams(),a.params=c.params,a.rest=c.rest,a.this=c._this,this.expect(11),this.expect(19),a.returnType=this.flowParseType(),a.typeParameters=null,this.finishNode(a,"FunctionTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return a.value=this.match(85),this.next(),this.finishNode(a,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(132))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",a);if(this.match(133))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",a);throw this.raise(sn.UnexpectedSubtractionOperand,{at:this.state.startLoc})}this.unexpected();return;case 132:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(a,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(a,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(a,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(a,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(dn(this.state.type)){let x=Us(this.state.type);return this.next(),super.createIdentifier(a,x)}else if(Et(this.state.type))return this.isContextual(127)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,a,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let i=this.state.startLoc,a=this.flowParsePrimaryType(),c=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let m=this.startNodeAt(i),y=this.eat(18);c=c||y,this.expect(0),!y&&this.match(3)?(m.elementType=a,this.next(),a=this.finishNode(m,"ArrayTypeAnnotation")):(m.objectType=a,m.indexType=this.flowParseType(),this.expect(3),c?(m.optional=y,a=this.finishNode(m,"OptionalIndexedAccessType")):a=this.finishNode(m,"IndexedAccessType"))}return a}flowParsePrefixType(){let i=this.startNode();return this.eat(17)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let a=this.startNodeAt(i.loc.start);return a.params=[this.reinterpretTypeAsFunctionTypeParam(i)],a.rest=null,a.this=null,a.returnType=this.flowParseType(),a.typeParameters=null,this.finishNode(a,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){let i=this.startNode();this.eat(45);let a=this.flowParseAnonFunctionWithoutParens();for(i.types=[a];this.eat(45);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?a:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){let i=this.startNode();this.eat(43);let a=this.flowParseIntersectionType();for(i.types=[a];this.eat(43);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?a:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){let i=this.state.inType;this.state.inType=!0;let a=this.flowParseUnionType();return this.state.inType=i,a}flowParseTypeOrImplicitInstantiation(){if(this.state.type===130&&this.state.value==="_"){let i=this.state.startLoc,a=this.parseIdentifier();return this.flowParseGenericType(i,a)}else return this.flowParseType()}flowParseTypeAnnotation(){let i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(i){let a=i?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(a.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(a)),a}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(53)?(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")):i}parseFunctionBody(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(a){this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,c));return}super.parseFunctionBody(i,!1,c)}parseFunctionBodyAndFinish(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.match(14)){let m=this.startNode();[m.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=m.typeAnnotation?this.finishNode(m,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(i,a,c)}parseStatementLike(i){if(this.state.strict&&this.isContextual(127)){let c=this.lookahead();if(xr(c.type)){let m=this.startNode();return this.next(),this.flowParseInterface(m)}}else if(this.shouldParseEnums()&&this.isContextual(124)){let c=this.startNode();return this.next(),this.flowParseEnumDeclaration(c)}let a=super.parseStatementLike(i);return this.flowPragma===void 0&&!this.isValidDirective(a)&&(this.flowPragma=null),a}parseExpressionStatement(i,a,c){if(a.type==="Identifier"){if(a.name==="declare"){if(this.match(80)||Et(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(i)}else if(Et(this.state.type)){if(a.name==="interface")return this.flowParseInterface(i);if(a.name==="type")return this.flowParseTypeAlias(i);if(a.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,a,c)}shouldParseExportDeclaration(){let{type:i}=this.state;return cn(i)||this.shouldParseEnums()&&i===124?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:i}=this.state;return cn(i)||this.shouldParseEnums()&&i===124?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(124)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,a,c){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){let O=this.lookaheadCharCode();if(O===44||O===61||O===58||O===41)return this.setOptionalParametersError(c),i}this.expect(17);let m=this.state.clone(),y=this.state.noArrowAt,C=this.startNodeAt(a),{consequent:x,failed:A}=this.tryParseConditionalConsequent(),[S,k]=this.getArrowLikeExpressions(x);if(A||k.length>0){let O=[...y];if(k.length>0){this.state=m,this.state.noArrowAt=O;for(let G=0;G1&&this.raise(sn.AmbiguousConditionalArrow,{at:m.startLoc}),A&&S.length===1&&(this.state=m,O.push(S[0].start),this.state.noArrowAt=O,{consequent:x,failed:A}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(x,!0),this.state.noArrowAt=y,this.expect(14),C.test=i,C.consequent=x,C.alternate=this.forwardNoArrowParamsConversionAt(C,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(C,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let i=this.parseMaybeAssignAllowIn(),a=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:a}}getArrowLikeExpressions(i,a){let c=[i],m=[];for(;c.length!==0;){let y=c.pop();y.type==="ArrowFunctionExpression"?(y.typeParameters||!y.returnType?this.finishArrowValidation(y):m.push(y),c.push(y.body)):y.type==="ConditionalExpression"&&(c.push(y.consequent),c.push(y.alternate))}return a?(m.forEach(y=>this.finishArrowValidation(y)),[m,[]]):Tl(m,y=>y.params.every(C=>this.isAssignable(C,!0)))}finishArrowValidation(i){var a;this.toAssignableList(i.params,(a=i.extra)==null?void 0:a.trailingCommaLoc,!1),this.scope.enter(ks|bu),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,a){let c;return this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),c=a(),this.state.noArrowParamsConversionAt.pop()):c=a(),c}parseParenItem(i,a){if(i=super.parseParenItem(i,a),this.eat(17)&&(i.optional=!0,this.resetEndLocation(i)),this.match(14)){let c=this.startNodeAt(a);return c.expression=i,c.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(c,"TypeCastExpression")}return i}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExport(i,a){let c=super.parseExport(i,a);return(c.type==="ExportNamedDeclaration"||c.type==="ExportAllDeclaration")&&(c.exportKind=c.exportKind||"value"),c}parseExportDeclaration(i){if(this.isContextual(128)){i.exportKind="type";let a=this.startNode();return this.next(),this.match(5)?(i.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(i),null):this.flowParseTypeAlias(a)}else if(this.isContextual(129)){i.exportKind="type";let a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}else if(this.isContextual(127)){i.exportKind="type";let a=this.startNode();return this.next(),this.flowParseInterface(a)}else if(this.shouldParseEnums()&&this.isContextual(124)){i.exportKind="value";let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(i)?!0:this.isContextual(128)&&this.lookahead().type===55?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){let{startLoc:a}=this.state,c=super.maybeParseExportNamespaceSpecifier(i);return c&&i.exportKind==="type"&&this.unexpected(a),c}parseClassId(i,a,c){super.parseClassId(i,a,c),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,a,c){let{startLoc:m}=this.state;if(this.isContextual(123)){if(super.parseClassMemberFromModifier(i,a))return;a.declare=!0}super.parseClassMember(i,a,c),a.declare&&(a.type!=="ClassProperty"&&a.type!=="ClassPrivateProperty"&&a.type!=="PropertyDefinition"?this.raise(sn.DeclareClassElement,{at:m}):a.value&&this.raise(sn.DeclareClassFieldInitializer,{at:a.value}))}isIterator(i){return i==="iterator"||i==="asyncIterator"}readIterator(){let i=super.readWord1(),a="@@"+i;(!this.isIterator(i)||!this.state.inType)&&this.raise(mt.InvalidIdentifier,{at:this.state.curPosition(),identifierName:a}),this.finishToken(130,a)}getTokenFromCode(i){let a=this.input.charCodeAt(this.state.pos+1);i===123&&a===124?this.finishOp(6,2):this.state.inType&&(i===62||i===60)?this.finishOp(i===62?48:47,1):this.state.inType&&i===63?a===46?this.finishOp(18,2):this.finishOp(17,1):xu(i,a,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(i)}isAssignable(i,a){return i.type==="TypeCastExpression"?this.isAssignable(i.expression,a):super.isAssignable(i,a)}toAssignable(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!a&&i.type==="AssignmentExpression"&&i.left.type==="TypeCastExpression"&&(i.left=this.typeCastToParameter(i.left)),super.toAssignable(i,a)}toAssignableList(i,a,c){for(let m=0;m1||!a)&&this.raise(sn.TypeCastInPattern,{at:y.typeAnnotation})}return i}parseArrayLike(i,a,c,m){let y=super.parseArrayLike(i,a,c,m);return a&&!this.state.maybeInArrowParameters&&this.toReferencedList(y.elements),y}isValidLVal(i,a,c){return i==="TypeCastExpression"||super.isValidLVal(i,a,c)}parseClassProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(14)&&super.isNonstaticConstructor(i)}pushClassMethod(i,a,c,m,y,C){if(a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,a,c,m,y,C),a.params&&y){let x=a.params;x.length>0&&this.isThisParam(x[0])&&this.raise(sn.ThisParamBannedInConstructor,{at:a})}else if(a.type==="MethodDefinition"&&y&&a.value.params){let x=a.value.params;x.length>0&&this.isThisParam(x[0])&&this.raise(sn.ThisParamBannedInConstructor,{at:a})}}pushClassPrivateMethod(i,a,c,m){a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,a,c,m)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&this.match(47)&&(i.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(111)){this.next();let a=i.implements=[];do{let c=this.startNode();c.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?c.typeParameters=this.flowParseTypeParameterInstantiation():c.typeParameters=null,a.push(this.finishNode(c,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(i){super.checkGetterSetterParams(i);let a=this.getObjectOrClassMethodParams(i);if(a.length>0){let c=a[0];this.isThisParam(c)&&i.kind==="get"?this.raise(sn.GetterMayNotHaveThisParam,{at:c}):this.isThisParam(c)&&this.raise(sn.SetterMayNotHaveThisParam,{at:c})}}parsePropertyNamePrefixOperator(i){i.variance=this.flowParseVariance()}parseObjPropValue(i,a,c,m,y,C,x){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance;let A;this.match(47)&&!C&&(A=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let S=super.parseObjPropValue(i,a,c,m,y,C,x);return A&&((S.value||S).typeParameters=A),S}parseAssignableListItemTypes(i){return this.eat(17)&&(i.type!=="Identifier"&&this.raise(sn.PatternIsOptional,{at:i}),this.isThisParam(i)&&this.raise(sn.ThisParamMayNotBeOptional,{at:i}),i.optional=!0),this.match(14)?i.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(i)&&this.raise(sn.ThisParamAnnotationRequired,{at:i}),this.match(29)&&this.isThisParam(i)&&this.raise(sn.ThisParamNoDefault,{at:i}),this.resetEndLocation(i),i}parseMaybeDefault(i,a){let c=super.parseMaybeDefault(i,a);return c.type==="AssignmentPattern"&&c.typeAnnotation&&c.right.startsuper.parseMaybeAssign(i,a),m),!y.error)return y.node;let{context:A}=this.state,S=A[A.length-1];(S===tr.j_oTag||S===tr.j_expr)&&A.pop()}if((c=y)!=null&&c.error||this.match(47)){var C,x;m=m||this.state.clone();let A,S=this.tryParse(O=>{var G;A=this.flowParseTypeParameterDeclaration();let z=this.forwardNoArrowParamsConversionAt(A,()=>{let U=super.parseMaybeAssign(i,a);return this.resetStartLocationFromNode(U,A),U});(G=z.extra)!=null&&G.parenthesized&&O();let q=this.maybeUnwrapTypeCastExpression(z);return q.type!=="ArrowFunctionExpression"&&O(),q.typeParameters=A,this.resetStartLocationFromNode(q,A),z},m),k=null;if(S.node&&this.maybeUnwrapTypeCastExpression(S.node).type==="ArrowFunctionExpression"){if(!S.error&&!S.aborted)return S.node.async&&this.raise(sn.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:A}),S.node;k=S.node}if((C=y)!=null&&C.node)return this.state=y.failState,y.node;if(k)return this.state=S.failState,k;throw(x=y)!=null&&x.thrown?y.error:S.thrown?S.error:this.raise(sn.UnexpectedTokenAfterTypeParameter,{at:A})}return super.parseMaybeAssign(i,a)}parseArrow(i){if(this.match(14)){let a=this.tryParse(()=>{let c=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let m=this.startNode();return[m.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=c,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),m});if(a.thrown)return null;a.error&&(this.state=a.failState),i.returnType=a.node.typeAnnotation?this.finishNode(a.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(i){return this.match(14)||super.shouldParseArrow(i)}setArrowFunctionParameters(i,a){this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1?i.params=a:super.setArrowFunctionParameters(i,a)}checkParams(i,a,c){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(!(c&&this.state.noArrowParamsConversionAt.indexOf(i.start)!==-1)){for(let y=0;y0&&this.raise(sn.ThisParamMustBeFirst,{at:i.params[y]});super.checkParams(i,a,c,m)}}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(i,a,c){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.indexOf(a.index)!==-1){this.next();let m=this.startNodeAt(a);m.callee=i,m.arguments=super.parseCallExpressionArguments(11,!1),i=this.finishNode(m,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.match(47)){let m=this.state.clone(),y=this.tryParse(x=>this.parseAsyncArrowWithTypeParameters(a)||x(),m);if(!y.error&&!y.aborted)return y.node;let C=this.tryParse(()=>super.parseSubscripts(i,a,c),m);if(C.node&&!C.error)return C.node;if(y.node)return this.state=y.failState,y.node;if(C.node)return this.state=C.failState,C.node;throw y.error||C.error}return super.parseSubscripts(i,a,c)}parseSubscript(i,a,c,m){if(this.match(18)&&this.isLookaheadToken_lt()){if(m.optionalChainMember=!0,c)return m.stop=!0,i;this.next();let y=this.startNodeAt(a);return y.callee=i,y.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),y.arguments=this.parseCallExpressionArguments(11,!1),y.optional=!0,this.finishCallExpression(y,!0)}else if(!c&&this.shouldParseTypes()&&this.match(47)){let y=this.startNodeAt(a);y.callee=i;let C=this.tryParse(()=>(y.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),y.arguments=super.parseCallExpressionArguments(11,!1),m.optionalChainMember&&(y.optional=!1),this.finishCallExpression(y,m.optionalChainMember)));if(C.node)return C.error&&(this.state=C.failState),C.node}return super.parseSubscript(i,a,c,m)}parseNewCallee(i){super.parseNewCallee(i);let a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=a}parseAsyncArrowWithTypeParameters(i){let a=this.startNodeAt(i);if(this.parseFunctionParams(a,!1),!!this.parseArrow(a))return super.parseArrowExpression(a,void 0,!0)}readToken_mult_modulo(i){let a=this.input.charCodeAt(this.state.pos+1);if(i===42&&a===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){let a=this.input.charCodeAt(this.state.pos+1);if(i===124&&a===125){this.finishOp(9,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,a){let c=super.parseTopLevel(i,a);return this.state.hasFlowComment&&this.raise(sn.UnterminatedFlowComment,{at:this.state.curPosition()}),c}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(sn.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let i=this.skipFlowComment();i&&(this.state.pos+=i,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:i}=this.state,a=2;for(;[32,9].includes(this.input.charCodeAt(i+a));)a++;let c=this.input.charCodeAt(a+i),m=this.input.charCodeAt(a+i+1);return c===58&&m===58?a+2:this.input.slice(a+i,a+i+12)==="flow-include"?a+12:c===58&&m!==58?a:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(mt.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(i,a){let{enumName:c,memberName:m}=a;this.raise(sn.EnumBooleanMemberNotInitialized,{at:i,memberName:m,enumName:c})}flowEnumErrorInvalidMemberInitializer(i,a){return this.raise(a.explicitType?a.explicitType==="symbol"?sn.EnumInvalidMemberInitializerSymbolType:sn.EnumInvalidMemberInitializerPrimaryType:sn.EnumInvalidMemberInitializerUnknownType,Object.assign({at:i},a))}flowEnumErrorNumberMemberNotInitialized(i,a){let{enumName:c,memberName:m}=a;this.raise(sn.EnumNumberMemberNotInitialized,{at:i,enumName:c,memberName:m})}flowEnumErrorStringMemberInconsistentlyInitailized(i,a){let{enumName:c}=a;this.raise(sn.EnumStringMemberInconsistentlyInitailized,{at:i,enumName:c})}flowEnumMemberInit(){let i=this.state.startLoc,a=()=>this.match(12)||this.match(8);switch(this.state.type){case 132:{let c=this.parseNumericLiteral(this.state.value);return a()?{type:"number",loc:c.loc.start,value:c}:{type:"invalid",loc:i}}case 131:{let c=this.parseStringLiteral(this.state.value);return a()?{type:"string",loc:c.loc.start,value:c}:{type:"invalid",loc:i}}case 85:case 86:{let c=this.parseBooleanLiteral(this.match(85));return a()?{type:"boolean",loc:c.loc.start,value:c}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}}flowEnumMemberRaw(){let i=this.state.startLoc,a=this.parseIdentifier(!0),c=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:i};return{id:a,init:c}}flowEnumCheckExplicitTypeMismatch(i,a,c){let{explicitType:m}=a;m!==null&&m!==c&&this.flowEnumErrorInvalidMemberInitializer(i,a)}flowEnumMembers(i){let{enumName:a,explicitType:c}=i,m=new Set,y={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},C=!1;for(;!this.match(8);){if(this.eat(21)){C=!0;break}let x=this.startNode(),{id:A,init:S}=this.flowEnumMemberRaw(),k=A.name;if(k==="")continue;/^[a-z]/.test(k)&&this.raise(sn.EnumInvalidMemberName,{at:A,memberName:k,suggestion:k[0].toUpperCase()+k.slice(1),enumName:a}),m.has(k)&&this.raise(sn.EnumDuplicateMemberName,{at:A,memberName:k,enumName:a}),m.add(k);let O={enumName:a,explicitType:c,memberName:k};switch(x.id=A,S.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(S.loc,O,"boolean"),x.init=S.value,y.booleanMembers.push(this.finishNode(x,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(S.loc,O,"number"),x.init=S.value,y.numberMembers.push(this.finishNode(x,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(S.loc,O,"string"),x.init=S.value,y.stringMembers.push(this.finishNode(x,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(S.loc,O);case"none":switch(c){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(S.loc,O);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(S.loc,O);break;default:y.defaultedMembers.push(this.finishNode(x,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:y,hasUnknownMembers:C}}flowEnumStringMembers(i,a,c){let{enumName:m}=c;if(i.length===0)return a;if(a.length===0)return i;if(a.length>i.length){for(let y of i)this.flowEnumErrorStringMemberInconsistentlyInitailized(y,{enumName:m});return a}else{for(let y of a)this.flowEnumErrorStringMemberInconsistentlyInitailized(y,{enumName:m});return i}}flowEnumParseExplicitType(i){let{enumName:a}=i;if(!this.eatContextual(101))return null;if(!Et(this.state.type))throw this.raise(sn.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:a});let{value:c}=this.state;return this.next(),c!=="boolean"&&c!=="number"&&c!=="string"&&c!=="symbol"&&this.raise(sn.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:a,invalidEnumType:c}),c}flowEnumBody(i,a){let c=a.name,m=a.loc.start,y=this.flowEnumParseExplicitType({enumName:c});this.expect(5);let{members:C,hasUnknownMembers:x}=this.flowEnumMembers({enumName:c,explicitType:y});switch(i.hasUnknownMembers=x,y){case"boolean":return i.explicitType=!0,i.members=C.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=C.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(C.stringMembers,C.defaultedMembers,{enumName:c}),this.expect(8),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=C.defaultedMembers,this.expect(8),this.finishNode(i,"EnumSymbolBody");default:{let A=()=>(i.members=[],this.expect(8),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;let S=C.booleanMembers.length,k=C.numberMembers.length,O=C.stringMembers.length,G=C.defaultedMembers.length;if(!S&&!k&&!O&&!G)return A();if(!S&&!k)return i.members=this.flowEnumStringMembers(C.stringMembers,C.defaultedMembers,{enumName:c}),this.expect(8),this.finishNode(i,"EnumStringBody");if(!k&&!O&&S>=G){for(let z of C.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(z.loc.start,{enumName:c,memberName:z.id.name});return i.members=C.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody")}else if(!S&&!O&&k>=G){for(let z of C.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(z.loc.start,{enumName:c,memberName:z.id.name});return i.members=C.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody")}else return this.raise(sn.EnumInconsistentMemberValues,{at:m,enumName:c}),A()}}}flowParseEnumDeclaration(i){let a=this.parseIdentifier();return i.id=a,i.body=this.flowEnumBody(this.startNode(),a),this.finishNode(i,"EnumDeclaration")}isLookaheadToken_lt(){let i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){let a=this.input.charCodeAt(i+1);return a!==60&&a!==61}return!1}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}},jp={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},ms=oi`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:l=>{let{openingTagName:i}=l;return`Expected corresponding JSX closing tag for <${i}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:l=>{let{unexpected:i,HTMLEntity:a}=l;return`Unexpected token \`${i}\`. Did you mean \`${a}\` or \`{'${i}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function pa(l){return l?l.type==="JSXOpeningFragment"||l.type==="JSXClosingFragment":!1}function bo(l){if(l.type==="JSXIdentifier")return l.name;if(l.type==="JSXNamespacedName")return l.namespace.name+":"+l.name.name;if(l.type==="JSXMemberExpression")return bo(l.object)+"."+bo(l.property);throw new Error("Node had unexpected type: "+l.type)}var Uc=l=>class extends l{jsxReadToken(){let i="",a=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ms.UnterminatedJsxContent,{at:this.state.startLoc});let c=this.input.charCodeAt(this.state.pos);switch(c){case 60:case 123:if(this.state.pos===this.state.start){c===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(140)):super.getTokenFromCode(c);return}i+=this.input.slice(a,this.state.pos),this.finishToken(139,i);return;case 38:i+=this.input.slice(a,this.state.pos),i+=this.jsxReadEntity(),a=this.state.pos;break;case 62:case 125:default:Pu(c)?(i+=this.input.slice(a,this.state.pos),i+=this.jsxReadNewLine(!0),a=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){let a=this.input.charCodeAt(this.state.pos),c;return++this.state.pos,a===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,c=i?` +`:`\r +`):c=String.fromCharCode(a),++this.state.curLine,this.state.lineStart=this.state.pos,c}jsxReadString(i){let a="",c=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(mt.UnterminatedString,{at:this.state.startLoc});let m=this.input.charCodeAt(this.state.pos);if(m===i)break;m===38?(a+=this.input.slice(c,this.state.pos),a+=this.jsxReadEntity(),c=this.state.pos):Pu(m)?(a+=this.input.slice(c,this.state.pos),a+=this.jsxReadNewLine(!1),c=this.state.pos):++this.state.pos}a+=this.input.slice(c,this.state.pos++),this.finishToken(131,a)}jsxReadEntity(){let i=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let a=10;this.codePointAtPos(this.state.pos)===120&&(a=16,++this.state.pos);let c=this.readInt(a,void 0,!1,"bail");if(c!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(c)}else{let a=0,c=!1;for(;a++<10&&this.state.pos1){for(let c=0;c=0;c--){let m=this.scopeStack[c];if(m.types.has(i)||m.exportOnlyBindings.has(i))return}super.checkLocalExport(l)}},Hu=(l,i)=>Object.hasOwnProperty.call(l,i)&&l[i],ru=l=>l.type==="ParenthesizedExpression"?ru(l.expression):l,zc=class extends xo{toAssignable(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var a,c;let m;switch((l.type==="ParenthesizedExpression"||(a=l.extra)!=null&&a.parenthesized)&&(m=ru(l),i?m.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(mt.InvalidParenthesizedAssignment,{at:l}):m.type!=="MemberExpression"&&this.raise(mt.InvalidParenthesizedAssignment,{at:l}):this.raise(mt.InvalidParenthesizedAssignment,{at:l})),l.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":l.type="ObjectPattern";for(let C=0,x=l.properties.length,A=x-1;Cc.type!=="ObjectMethod"&&(m===a||c.type!=="SpreadElement")&&this.isAssignable(c))}case"ObjectProperty":return this.isAssignable(l.value);case"SpreadElement":return this.isAssignable(l.argument);case"ArrayExpression":return l.elements.every(a=>a===null||this.isAssignable(a));case"AssignmentExpression":return l.operator==="=";case"ParenthesizedExpression":return this.isAssignable(l.expression);case"MemberExpression":case"OptionalMemberExpression":return!i;default:return!1}}toReferencedList(l,i){return l}toReferencedListDeep(l,i){this.toReferencedList(l,i);for(let a of l)(a==null?void 0:a.type)==="ArrayExpression"&&this.toReferencedListDeep(a.elements)}parseSpread(l){let i=this.startNode();return this.next(),i.argument=this.parseMaybeAssignAllowIn(l,void 0),this.finishNode(i,"SpreadElement")}parseRestBinding(){let l=this.startNode();return this.next(),l.argument=this.parseBindingAtom(),this.finishNode(l,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let l=this.startNode();return this.next(),l.elements=this.parseBindingList(3,93,1),this.finishNode(l,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(l,i,a){let c=a&1,m=[],y=!0;for(;!this.eat(l);)if(y?y=!1:this.expect(12),c&&this.match(12))m.push(null);else{if(this.eat(l))break;if(this.match(21)){if(m.push(this.parseAssignableListItemTypes(this.parseRestBinding(),a)),!this.checkCommaAfterRest(i)){this.expect(l);break}}else{let C=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(mt.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)C.push(this.parseDecorator());m.push(this.parseAssignableListItem(a,C))}}return m}parseBindingRestProperty(l){return this.next(),l.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(l,"RestElement")}parseBindingProperty(){let l=this.startNode(),{type:i,startLoc:a}=this.state;return i===21?this.parseBindingRestProperty(l):(i===136?(this.expectPlugin("destructuringPrivate",a),this.classScope.usePrivateName(this.state.value,a),l.key=this.parsePrivateName()):this.parsePropertyName(l),l.method=!1,this.parseObjPropValue(l,a,!1,!1,!0,!1))}parseAssignableListItem(l,i){let a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,l);let c=this.parseMaybeDefault(a.loc.start,a);return i.length&&(a.decorators=i),c}parseAssignableListItemTypes(l,i){return l}parseMaybeDefault(l,i){var a;if(l!=null||(l=this.state.startLoc),i=(a=i)!=null?a:this.parseBindingAtom(),!this.eat(29))return i;let c=this.startNodeAt(l);return c.left=i,c.right=this.parseMaybeAssignAllowIn(),this.finishNode(c,"AssignmentPattern")}isValidLVal(l,i,a){return Hu({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},l)}checkLVal(l,i){let{in:a,binding:c=Ws,checkClashes:m=!1,strictModeChanged:y=!1,hasParenthesizedAncestor:C=!1}=i;var x;let A=l.type;if(this.isObjectMethod(l))return;if(A==="MemberExpression"){c!==Ws&&this.raise(mt.InvalidPropertyBindingPattern,{at:l});return}if(A==="Identifier"){this.checkIdentifier(l,c,y);let{name:z}=l;m&&(m.has(z)?this.raise(mt.ParamDupe,{at:l}):m.add(z));return}let S=this.isValidLVal(A,!(C||(x=l.extra)!=null&&x.parenthesized)&&a.type==="AssignmentExpression",c);if(S===!0)return;if(S===!1){let z=c===Ws?mt.InvalidLhs:mt.InvalidLhsBinding;this.raise(z,{at:l,ancestor:a});return}let[k,O]=Array.isArray(S)?S:[S,A==="ParenthesizedExpression"],G=A==="ArrayPattern"||A==="ObjectPattern"||A==="ParenthesizedExpression"?{type:A}:a;for(let z of[].concat(l[k]))z&&this.checkLVal(z,{in:G,binding:c,checkClashes:m,strictModeChanged:y,hasParenthesizedAncestor:O})}checkIdentifier(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.state.strict&&(a?Kn(l.name,this.inModule):Cu(l.name))&&(i===Ws?this.raise(mt.StrictEvalArguments,{at:l,referenceName:l.name}):this.raise(mt.StrictEvalArgumentsBinding,{at:l,bindingName:l.name})),i&Pa&&l.name==="let"&&this.raise(mt.LetInLexicalBinding,{at:l}),i&Ws||this.declareNameFromIdentifier(l,i)}declareNameFromIdentifier(l,i){this.scope.declareName(l.name,i,l.loc.start)}checkToRestConversion(l,i){switch(l.type){case"ParenthesizedExpression":this.checkToRestConversion(l.expression,i);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(i)break;default:this.raise(mt.InvalidRestAssignmentPattern,{at:l})}}checkCommaAfterRest(l){return this.match(12)?(this.raise(this.lookaheadCharCode()===l?mt.RestTrailingComma:mt.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},Hp=(l,i)=>Object.hasOwnProperty.call(l,i)&&l[i];function $c(l){if(l==null)throw new Error(`Unexpected ${l} value.`);return l}function ha(l){if(!l)throw new Error("Assert fail")}var $r=oi`typescript`({AbstractMethodHasImplementation:l=>{let{methodName:i}=l;return`Method '${i}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:l=>{let{propertyName:i}=l;return`Property '${i}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:l=>{let{kind:i}=l;return`'declare' is not allowed in ${i}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:l=>"Accessibility modifier already seen.",DuplicateModifier:l=>{let{modifier:i}=l;return`Duplicate modifier: '${i}'.`},EmptyHeritageClauseType:l=>{let{token:i}=l;return`'${i}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:l=>{let{modifiers:i}=l;return`'${i[0]}' modifier cannot be used with '${i[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:l=>{let{modifier:i}=l;return`Index signatures cannot have an accessibility modifier ('${i}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:l=>{let{modifier:i}=l;return`'${i}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:l=>{let{modifier:i}=l;return`'${i}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:l=>{let{modifier:i}=l;return`'${i}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:l=>{let{orderedModifiers:i}=l;return`'${i[0]}' modifier must precede '${i[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:l=>{let{modifier:i}=l;return`Private elements cannot have an accessibility modifier ('${i}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:l=>{let{typeParameterName:i}=l;return`Single type parameter ${i} should have a trailing comma. Example usage: <${i},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:l=>{let{type:i}=l;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${i}.`}});function Ao(l){switch(l){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function nu(l){return l==="private"||l==="public"||l==="protected"}function Gc(l){return l==="in"||l==="out"}var Up=l=>class extends l{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:$r.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:$r.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:$r.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ks}tsIsIdentifier(){return Et(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(136)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(i,a){if(!Et(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let c=this.state.value;if(i.indexOf(c)!==-1){if(a&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return c}}tsParseModifiers(i,a){let{allowedModifiers:c,disallowedModifiers:m,stopOnStartOfClassStaticBlock:y,errorTemplate:C=$r.InvalidModifierOnTypeMember}=i,x=(S,k,O,G)=>{k===O&&a[G]&&this.raise($r.InvalidModifiersOrder,{at:S,orderedModifiers:[O,G]})},A=(S,k,O,G)=>{(a[O]&&k===G||a[G]&&k===O)&&this.raise($r.IncompatibleModifiers,{at:S,modifiers:[O,G]})};for(;;){let{startLoc:S}=this.state,k=this.tsParseModifier(c.concat(m??[]),y);if(!k)break;nu(k)?a.accessibility?this.raise($r.DuplicateAccessibilityModifier,{at:S,modifier:k}):(x(S,k,k,"override"),x(S,k,k,"static"),x(S,k,k,"readonly"),a.accessibility=k):Gc(k)?(a[k]&&this.raise($r.DuplicateModifier,{at:S,modifier:k}),a[k]=!0,x(S,k,"in","out")):(Object.hasOwnProperty.call(a,k)?this.raise($r.DuplicateModifier,{at:S,modifier:k}):(x(S,k,"static","readonly"),x(S,k,"static","override"),x(S,k,"override","readonly"),x(S,k,"abstract","override"),A(S,k,"declare","override"),A(S,k,"static","abstract")),a[k]=!0),m!=null&&m.includes(k)&&this.raise(C,{at:S,modifier:k})}}tsIsListTerminator(i){switch(i){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(i,a){let c=[];for(;!this.tsIsListTerminator(i);)c.push(a());return c}tsParseDelimitedList(i,a,c){return $c(this.tsParseDelimitedListWorker(i,a,!0,c))}tsParseDelimitedListWorker(i,a,c,m){let y=[],C=-1;for(;!this.tsIsListTerminator(i);){C=-1;let x=a();if(x==null)return;if(y.push(x),this.eat(12)){C=this.state.lastTokStart;continue}if(this.tsIsListTerminator(i))break;c&&this.expect(12);return}return m&&(m.value=C),y}tsParseBracketedList(i,a,c,m,y){m||(c?this.expect(0):this.expect(47));let C=this.tsParseDelimitedList(i,a,y);return c?this.expect(3):this.expect(48),C}tsParseImportType(){let i=this.startNode();return this.expect(83),this.expect(10),this.match(131)||this.raise($r.UnsupportedImportTypeArgument,{at:this.state.startLoc}),i.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(i.qualifier=this.tsParseEntityName()),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSImportType")}tsParseEntityName(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=this.parseIdentifier(i);for(;this.eat(16);){let c=this.startNodeAtNode(a);c.left=a,c.right=this.parseIdentifier(i),a=this.finishNode(c,"TSQualifiedName")}return a}tsParseTypeReference(){let i=this.startNode();return i.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeReference")}tsParseThisTypePredicate(i){this.next();let a=this.startNodeAtNode(i);return a.parameterName=i,a.typeAnnotation=this.tsParseTypeAnnotation(!1),a.asserts=!1,this.finishNode(a,"TSTypePredicate")}tsParseThisTypeNode(){let i=this.startNode();return this.next(),this.finishNode(i,"TSThisType")}tsParseTypeQuery(){let i=this.startNode();return this.expect(87),this.match(83)?i.exprName=this.tsParseImportType():i.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeQuery")}tsParseTypeParameter(i){let a=this.startNode();return i(a),a.name=this.tsParseTypeParameterName(),a.constraint=this.tsEatThenParseType(81),a.default=this.tsEatThenParseType(29),this.finishNode(a,"TSTypeParameter")}tsTryParseTypeParameters(i){if(this.match(47))return this.tsParseTypeParameters(i)}tsParseTypeParameters(i){let a=this.startNode();this.match(47)||this.match(140)?this.next():this.unexpected();let c={value:-1};return a.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,i),!1,!0,c),a.params.length===0&&this.raise($r.EmptyTypeParameters,{at:a}),c.value!==-1&&this.addExtra(a,"trailingComma",c.value),this.finishNode(a,"TSTypeParameterDeclaration")}tsFillSignature(i,a){let c=i===19,m="parameters",y="typeAnnotation";a.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),a[m]=this.tsParseBindingListForSignature(),c?a[y]=this.tsParseTypeOrTypePredicateAnnotation(i):this.match(i)&&(a[y]=this.tsParseTypeOrTypePredicateAnnotation(i))}tsParseBindingListForSignature(){return super.parseBindingList(11,41,2).map(i=>(i.type!=="Identifier"&&i.type!=="RestElement"&&i.type!=="ObjectPattern"&&i.type!=="ArrayPattern"&&this.raise($r.UnsupportedSignatureParameterKind,{at:i,type:i.type}),i))}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(i,a){return this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,i)}tsIsUnambiguouslyIndexSignature(){return this.next(),Et(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(i){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let a=this.parseIdentifier();a.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(a),this.expect(3),i.parameters=[a];let c=this.tsTryParseTypeAnnotation();return c&&(i.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSIndexSignature")}tsParsePropertyOrMethodSignature(i,a){this.eat(17)&&(i.optional=!0);let c=i;if(this.match(10)||this.match(47)){a&&this.raise($r.ReadonlyForMethodSignature,{at:i});let m=c;m.kind&&this.match(47)&&this.raise($r.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,m),this.tsParseTypeMemberSemicolon();let y="parameters",C="typeAnnotation";if(m.kind==="get")m[y].length>0&&(this.raise(mt.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(m[y][0])&&this.raise($r.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(m.kind==="set"){if(m[y].length!==1)this.raise(mt.BadSetterArity,{at:this.state.curPosition()});else{let x=m[y][0];this.isThisParam(x)&&this.raise($r.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),x.type==="Identifier"&&x.optional&&this.raise($r.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),x.type==="RestElement"&&this.raise($r.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}m[C]&&this.raise($r.SetAccesorCannotHaveReturnType,{at:m[C]})}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}else{let m=c;a&&(m.readonly=!0);let y=this.tsTryParseTypeAnnotation();return y&&(m.typeAnnotation=y),this.tsParseTypeMemberSemicolon(),this.finishNode(m,"TSPropertySignature")}}tsParseTypeMember(){let i=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",i);if(this.match(77)){let c=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",i):(i.key=this.createIdentifier(c,"new"),this.tsParsePropertyOrMethodSignature(i,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},i),this.tsTryParseIndexSignature(i)||(super.parsePropertyName(i),!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.tsTokenCanFollowModifier()&&(i.kind=i.key.name,super.parsePropertyName(i)),this.tsParsePropertyOrMethodSignature(i,!!i.readonly))}tsParseTypeLiteral(){let i=this.startNode();return i.members=this.tsParseObjectTypeMembers(),this.finishNode(i,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let i=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),i}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(120):(this.isContextual(120)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),this.finishNode(i,"TSTypeParameter")}tsParseMappedType(){let i=this.startNode();return this.expect(5),this.match(53)?(i.readonly=this.state.value,this.next(),this.expectContextual(120)):this.eatContextual(120)&&(i.readonly=!0),this.expect(0),i.typeParameter=this.tsParseMappedTypeParameter(),i.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(i.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(i.optional=!0),i.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(i,"TSMappedType")}tsParseTupleType(){let i=this.startNode();i.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let a=!1,c=null;return i.elementTypes.forEach(m=>{let{type:y}=m;a&&y!=="TSRestType"&&y!=="TSOptionalType"&&!(y==="TSNamedTupleMember"&&m.optional)&&this.raise($r.OptionalTypeBeforeRequired,{at:m}),a||(a=y==="TSNamedTupleMember"&&m.optional||y==="TSOptionalType");let C=y;y==="TSRestType"&&(m=m.typeAnnotation,C=m.type);let x=C==="TSNamedTupleMember";c!=null||(c=x),c!==x&&this.raise($r.MixedLabeledAndUnlabeledElements,{at:m})}),this.finishNode(i,"TSTupleType")}tsParseTupleElementType(){let{startLoc:i}=this.state,a=this.eat(21),c,m,y,C,x=xr(this.state.type)?this.lookaheadCharCode():null;if(x===58)c=!0,y=!1,m=this.parseIdentifier(!0),this.expect(14),C=this.tsParseType();else if(x===63){y=!0;let A=this.state.startLoc,S=this.state.value,k=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(c=!0,m=this.createIdentifier(this.startNodeAt(A),S),this.expect(17),this.expect(14),C=this.tsParseType()):(c=!1,C=k,this.expect(17))}else C=this.tsParseType(),y=this.eat(17),c=this.eat(14);if(c){let A;m?(A=this.startNodeAtNode(m),A.optional=y,A.label=m,A.elementType=C,this.eat(17)&&(A.optional=!0,this.raise($r.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(A=this.startNodeAtNode(C),A.optional=y,this.raise($r.InvalidTupleMemberLabel,{at:C}),A.label=C,A.elementType=this.tsParseType()),C=this.finishNode(A,"TSNamedTupleMember")}else if(y){let A=this.startNodeAtNode(C);A.typeAnnotation=C,C=this.finishNode(A,"TSOptionalType")}if(a){let A=this.startNodeAt(i);A.typeAnnotation=C,C=this.finishNode(A,"TSRestType")}return C}tsParseParenthesizedType(){let i=this.startNode();return this.expect(10),i.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(i,"TSParenthesizedType")}tsParseFunctionOrConstructorType(i,a){let c=this.startNode();return i==="TSConstructorType"&&(c.abstract=!!a,a&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,c)),this.finishNode(c,i)}tsParseLiteralTypeNode(){let i=this.startNode();return i.literal=(()=>{switch(this.state.type){case 132:case 133:case 131:case 85:case 86:return super.parseExprAtom();default:this.unexpected()}})(),this.finishNode(i,"TSLiteralType")}tsParseTemplateLiteralType(){let i=this.startNode();return i.literal=super.parseTemplate(!1),this.finishNode(i,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let i=this.tsParseThisTypeNode();return this.isContextual(114)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i}tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let i=this.startNode(),a=this.lookahead();return a.type!==132&&a.type!==133&&this.unexpected(),i.literal=this.parseMaybeUnary(),this.finishNode(i,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:i}=this.state;if(Et(i)||i===88||i===84){let a=i===88?"TSVoidKeyword":i===84?"TSNullKeyword":Ao(this.state.value);if(a!==void 0&&this.lookaheadCharCode()!==46){let c=this.startNode();return this.next(),this.finishNode(c,a)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let a=this.startNodeAtNode(i);a.elementType=i,this.expect(3),i=this.finishNode(a,"TSArrayType")}else{let a=this.startNodeAtNode(i);a.objectType=i,a.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(a,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let i=this.startNode(),a=this.state.value;return this.next(),i.operator=a,i.typeAnnotation=this.tsParseTypeOperatorOrHigher(),a==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(i),this.finishNode(i,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(i){switch(i.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise($r.UnexpectedReadonly,{at:i})}}tsParseInferType(){let i=this.startNode();this.expectContextual(113);let a=this.startNode();return a.name=this.tsParseTypeParameterName(),a.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),i.typeParameter=this.finishNode(a,"TSTypeParameter"),this.finishNode(i,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let i=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return i}}tsParseTypeOperatorOrHigher(){return zi(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(113)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(i,a,c){let m=this.startNode(),y=this.eat(c),C=[];do C.push(a());while(this.eat(c));return C.length===1&&!y?C[0]:(m.types=C,this.finishNode(m,i))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Et(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:i}=this.state,a=i.length;try{return this.parseObjectLike(8,!0),i.length===a}catch{return!1}}if(this.match(0)){this.next();let{errors:i}=this.state,a=i.length;try{return super.parseBindingList(3,93,1),i.length===a}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(i){return this.tsInType(()=>{let a=this.startNode();this.expect(i);let c=this.startNode(),m=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(m&&this.match(78)){let x=this.tsParseThisTypeOrThisTypePredicate();return x.type==="TSThisType"?(c.parameterName=x,c.asserts=!0,c.typeAnnotation=null,x=this.finishNode(c,"TSTypePredicate")):(this.resetStartLocationFromNode(x,c),x.asserts=!0),a.typeAnnotation=x,this.finishNode(a,"TSTypeAnnotation")}let y=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!y)return m?(c.parameterName=this.parseIdentifier(),c.asserts=m,c.typeAnnotation=null,a.typeAnnotation=this.finishNode(c,"TSTypePredicate"),this.finishNode(a,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,a);let C=this.tsParseTypeAnnotation(!1);return c.parameterName=y,c.typeAnnotation=C,c.asserts=m,a.typeAnnotation=this.finishNode(c,"TSTypePredicate"),this.finishNode(a,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let i=this.parseIdentifier();if(this.isContextual(114)&&!this.hasPrecedingLineBreak())return this.next(),i}tsParseTypePredicateAsserts(){if(this.state.type!==107)return!1;let i=this.state.containsEsc;return this.next(),!Et(this.state.type)&&!this.match(78)?!1:(i&&this.raise(mt.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.startNode();return this.tsInType(()=>{i&&this.expect(14),a.typeAnnotation=this.tsParseType()}),this.finishNode(a,"TSTypeAnnotation")}tsParseType(){ha(this.state.inType);let i=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return i;let a=this.startNodeAtNode(i);return a.checkType=i,a.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),a.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),a.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(a,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(122)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise($r.ReservedTypeAssertion,{at:this.state.startLoc});let i=this.startNode();return i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),i.expression=this.parseMaybeUnary(),this.finishNode(i,"TSTypeAssertion")}tsParseHeritageClause(i){let a=this.state.startLoc,c=this.tsParseDelimitedList("HeritageClauseElement",()=>{let m=this.startNode();return m.expression=this.tsParseEntityName(),this.match(47)&&(m.typeParameters=this.tsParseTypeArguments()),this.finishNode(m,"TSExpressionWithTypeArguments")});return c.length||this.raise($r.EmptyHeritageClauseType,{at:a,token:i}),c}tsParseInterfaceDeclaration(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(127),a.declare&&(i.declare=!0),Et(this.state.type)?(i.id=this.parseIdentifier(),this.checkIdentifier(i.id,Kl)):(i.id=null,this.raise($r.MissingInterfaceName,{at:this.state.startLoc})),i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(i.extends=this.tsParseHeritageClause("extends"));let c=this.startNode();return c.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),i.body=this.finishNode(c,"TSInterfaceBody"),this.finishNode(i,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(i){return i.id=this.parseIdentifier(),this.checkIdentifier(i.id,Ko),i.typeAnnotation=this.tsInType(()=>{if(i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(112)&&this.lookahead().type!==16){let a=this.startNode();return this.next(),this.finishNode(a,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(i,"TSTypeAliasDeclaration")}tsInNoContext(i){let a=this.state.context;this.state.context=[a[0]];try{return i()}finally{this.state.context=a}}tsInType(i){let a=this.state.inType;this.state.inType=!0;try{return i()}finally{this.state.inType=a}}tsInDisallowConditionalTypesContext(i){let a=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return i()}finally{this.state.inDisallowConditionalTypesContext=a}}tsInAllowConditionalTypesContext(i){let a=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return i()}finally{this.state.inDisallowConditionalTypesContext=a}}tsEatThenParseType(i){return this.match(i)?this.tsNextThenParseType():void 0}tsExpectThenParseType(i){return this.tsDoThenParseType(()=>this.expect(i))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(i){return this.tsInType(()=>(i(),this.tsParseType()))}tsParseEnumMember(){let i=this.startNode();return i.id=this.match(131)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(i.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(i,"TSEnumMember")}tsParseEnumDeclaration(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.const&&(i.const=!0),a.declare&&(i.declare=!0),this.expectContextual(124),i.id=this.parseIdentifier(),this.checkIdentifier(i.id,i.const?Ip:ua),this.expect(5),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(i,"TSEnumDeclaration")}tsParseModuleBlock(){let i=this.startNode();return this.scope.enter(ia),this.expect(5),super.parseBlockOrModuleBlockBody(i.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(i,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i.id=this.parseIdentifier(),a||this.checkIdentifier(i.id,ds),this.eat(16)){let c=this.startNode();this.tsParseModuleOrNamespaceDeclaration(c,!0),i.body=c}else this.scope.enter(zs),this.prodParam.enter(Do),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(i,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(i){return this.isContextual(110)?(i.global=!0,i.id=this.parseIdentifier()):this.match(131)?i.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(zs),this.prodParam.enter(Do),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(i,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(i,a){i.isExport=a||!1,i.id=this.parseIdentifier(),this.checkIdentifier(i.id,Ns),this.expect(29);let c=this.tsParseModuleReference();return i.importKind==="type"&&c.type!=="TSExternalModuleReference"&&this.raise($r.ImportAliasHasImportType,{at:c}),i.moduleReference=c,this.semicolon(),this.finishNode(i,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(117)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let i=this.startNode();return this.expectContextual(117),this.expect(10),this.match(131)||this.unexpected(),i.expression=super.parseExprAtom(),this.expect(11),this.finishNode(i,"TSExternalModuleReference")}tsLookAhead(i){let a=this.state.clone(),c=i();return this.state=a,c}tsTryParseAndCatch(i){let a=this.tryParse(c=>i()||c());if(!(a.aborted||!a.node))return a.error&&(this.state=a.failState),a.node}tsTryParse(i){let a=this.state.clone(),c=i();if(c!==void 0&&c!==!1)return c;this.state=a}tsTryParseDeclare(i){if(this.isLineTerminator())return;let a=this.state.type,c;return this.isContextual(99)&&(a=74,c="let"),this.tsInAmbientContext(()=>{if(a===68)return i.declare=!0,super.parseFunctionStatement(i,!1,!1);if(a===80)return i.declare=!0,this.parseClass(i,!0,!1);if(a===124)return this.tsParseEnumDeclaration(i,{declare:!0});if(a===110)return this.tsParseAmbientExternalModuleDeclaration(i);if(a===75||a===74)return!this.match(75)||!this.isLookaheadContextual("enum")?(i.declare=!0,this.parseVarStatement(i,c||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(i,{const:!0,declare:!0}));if(a===127){let m=this.tsParseInterfaceDeclaration(i,{declare:!0});if(m)return m}if(Et(a))return this.tsParseDeclaration(i,this.state.value,!0,null)})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(i,a,c){switch(a.name){case"declare":{let m=this.tsTryParseDeclare(i);if(m)return m.declare=!0,m;break}case"global":if(this.match(5)){this.scope.enter(zs),this.prodParam.enter(Do);let m=i;return m.global=!0,m.id=a,m.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(m,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(i,a.name,!1,c)}}tsParseDeclaration(i,a,c,m){switch(a){case"abstract":if(this.tsCheckLineTerminator(c)&&(this.match(80)||Et(this.state.type)))return this.tsParseAbstractDeclaration(i,m);break;case"module":if(this.tsCheckLineTerminator(c)){if(this.match(131))return this.tsParseAmbientExternalModuleDeclaration(i);if(Et(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(i)}break;case"namespace":if(this.tsCheckLineTerminator(c)&&Et(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(i);break;case"type":if(this.tsCheckLineTerminator(c)&&Et(this.state.type))return this.tsParseTypeAliasDeclaration(i);break}}tsCheckLineTerminator(i){return i?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(i){if(!this.match(47))return;let a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let c=this.tsTryParseAndCatch(()=>{let m=this.startNodeAt(i);return m.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(m),m.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),m});if(this.state.maybeInArrowParameters=a,!!c)return super.parseArrowExpression(c,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let i=this.startNode();return i.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),i.params.length===0&&this.raise($r.EmptyTypeArguments,{at:i}),this.expect(48),this.finishNode(i,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Hs(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(i,a){let c=this.state.startLoc,m={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},m);let y=m.accessibility,C=m.override,x=m.readonly;!(i&4)&&(y||x||C)&&this.raise($r.UnexpectedParameterModifier,{at:c});let A=this.parseMaybeDefault();this.parseAssignableListItemTypes(A,i);let S=this.parseMaybeDefault(A.loc.start,A);if(y||x||C){let k=this.startNodeAt(c);return a.length&&(k.decorators=a),y&&(k.accessibility=y),x&&(k.readonly=x),C&&(k.override=C),S.type!=="Identifier"&&S.type!=="AssignmentPattern"&&this.raise($r.UnsupportedParameterPropertyKind,{at:k}),k.parameter=S,this.finishNode(k,"TSParameterProperty")}return a.length&&(A.decorators=a),S}isSimpleParameter(i){return i.type==="TSParameterProperty"&&super.isSimpleParameter(i.parameter)||super.isSimpleParameter(i)}tsDisallowOptionalPattern(i){for(let a of i.params)a.type!=="Identifier"&&a.optional&&!this.state.isAmbientContext&&this.raise($r.PatternIsOptional,{at:a})}setArrowFunctionParameters(i,a,c){super.setArrowFunctionParameters(i,a,c),this.tsDisallowOptionalPattern(i)}parseFunctionBodyAndFinish(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.match(14)&&(i.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let m=a==="FunctionDeclaration"?"TSDeclareFunction":a==="ClassMethod"||a==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return m&&!this.match(5)&&this.isLineTerminator()?this.finishNode(i,m):m==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise($r.DeclareFunctionHasImplementation,{at:i}),i.declare)?super.parseFunctionBodyAndFinish(i,m,c):(this.tsDisallowOptionalPattern(i),super.parseFunctionBodyAndFinish(i,a,c))}registerFunctionStatementId(i){!i.body&&i.id?this.checkIdentifier(i.id,Ia):super.registerFunctionStatementId(i)}tsCheckForInvalidTypeCasts(i){i.forEach(a=>{(a==null?void 0:a.type)==="TSTypeCastExpression"&&this.raise($r.UnexpectedTypeAnnotation,{at:a.typeAnnotation})})}toReferencedList(i,a){return this.tsCheckForInvalidTypeCasts(i),i}parseArrayLike(i,a,c,m){let y=super.parseArrayLike(i,a,c,m);return y.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(y.elements),y}parseSubscript(i,a,c,m){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let C=this.startNodeAt(a);return C.expression=i,this.finishNode(C,"TSNonNullExpression")}let y=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(c)return m.stop=!0,i;m.optionalChainMember=y=!0,this.next()}if(this.match(47)||this.match(51)){let C,x=this.tsTryParseAndCatch(()=>{if(!c&&this.atPossibleAsyncArrow(i)){let O=this.tsTryParseGenericAsyncArrowFunction(a);if(O)return O}let A=this.tsParseTypeArgumentsInExpression();if(!A)return;if(y&&!this.match(10)){C=this.state.curPosition();return}if(Du(this.state.type)){let O=super.parseTaggedTemplateExpression(i,a,m);return O.typeParameters=A,O}if(!c&&this.eat(10)){let O=this.startNodeAt(a);return O.callee=i,O.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(O.arguments),O.typeParameters=A,m.optionalChainMember&&(O.optional=y),this.finishCallExpression(O,m.optionalChainMember)}let S=this.state.type;if(S===48||S===52||S!==10&&Kr(S)&&!this.hasPrecedingLineBreak())return;let k=this.startNodeAt(a);return k.expression=i,k.typeParameters=A,this.finishNode(k,"TSInstantiationExpression")});if(C&&this.unexpected(C,10),x)return x.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise($r.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),x}return super.parseSubscript(i,a,c,m)}parseNewCallee(i){var a;super.parseNewCallee(i);let{callee:c}=i;c.type==="TSInstantiationExpression"&&!((a=c.extra)!=null&&a.parenthesized)&&(i.typeParameters=c.typeParameters,i.callee=c.expression)}parseExprOp(i,a,c){let m;if(Aa(58)>c&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(m=this.isContextual(118)))){let y=this.startNodeAt(a);return y.expression=i,y.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(m&&this.raise(mt.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(y,m?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(y,a,c)}return super.parseExprOp(i,a,c)}checkReservedWord(i,a,c,m){this.state.isAmbientContext||super.checkReservedWord(i,a,c,m)}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise($r.ImportReflectionHasImportType,{at:i.specifiers[0].loc.start})}checkDuplicateExports(){}parseImport(i){if(i.importKind="value",Et(this.state.type)||this.match(55)||this.match(5)){let c=this.lookahead();if(this.isContextual(128)&&c.type!==12&&c.type!==97&&c.type!==29&&(i.importKind="type",this.next(),c=this.lookahead()),Et(this.state.type)&&c.type===29)return this.tsParseImportEqualsDeclaration(i)}let a=super.parseImport(i);return a.importKind==="type"&&a.specifiers.length>1&&a.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise($r.TypeImportCannotSpecifyDefaultAndNamed,{at:a}),a}parseExport(i,a){if(this.match(83))return this.next(),this.isContextual(128)&&this.lookaheadCharCode()!==61?(i.importKind="type",this.next()):i.importKind="value",this.tsParseImportEqualsDeclaration(i,!0);if(this.eat(29)){let c=i;return c.expression=super.parseExpression(),this.semicolon(),this.finishNode(c,"TSExportAssignment")}else if(this.eatContextual(93)){let c=i;return this.expectContextual(126),c.id=this.parseIdentifier(),this.semicolon(),this.finishNode(c,"TSNamespaceExportDeclaration")}else{if(i.exportKind="value",this.isContextual(128)){let c=this.lookaheadCharCode();(c===123||c===42)&&(this.next(),i.exportKind="type")}return super.parseExport(i,a)}}isAbstractClass(){return this.isContextual(122)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let i=this.startNode();return this.next(),i.abstract=!0,this.parseClass(i,!0,!0)}if(this.match(127)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseExportDefaultExpression()}parseVarStatement(i,a){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{isAmbientContext:m}=this.state,y=super.parseVarStatement(i,a,c||m);if(!m)return y;for(let{id:C,init:x}of y.declarations)x&&(a!=="const"||C.typeAnnotation?this.raise($r.InitializerNotAllowedInAmbientContext,{at:x}):Wc(x,this.hasPlugin("estree"))||this.raise($r.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:x}));return y}parseStatementContent(i,a){if(this.match(75)&&this.isLookaheadContextual("enum")){let c=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(c,{const:!0})}if(this.isContextual(124))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(127)){let c=this.tsParseInterfaceDeclaration(this.startNode());if(c)return c}return super.parseStatementContent(i,a)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(i,a){return a.some(c=>nu(c)?i.accessibility===c:!!i[c])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(i,a,c){let m=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:m,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:$r.InvalidModifierOnTypeParameterPositions},a);let y=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(a,m)&&this.raise($r.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(i,a)):this.parseClassMemberWithIsStatic(i,a,c,!!a.static)};a.declare?this.tsInAmbientContext(y):y()}parseClassMemberWithIsStatic(i,a,c,m){let y=this.tsTryParseIndexSignature(a);if(y){i.body.push(y),a.abstract&&this.raise($r.IndexSignatureHasAbstract,{at:a}),a.accessibility&&this.raise($r.IndexSignatureHasAccessibility,{at:a,modifier:a.accessibility}),a.declare&&this.raise($r.IndexSignatureHasDeclare,{at:a}),a.override&&this.raise($r.IndexSignatureHasOverride,{at:a});return}!this.state.inAbstractClass&&a.abstract&&this.raise($r.NonAbstractClassHasAbstractMethod,{at:a}),a.override&&(c.hadSuperClass||this.raise($r.OverrideNotInSubClass,{at:a})),super.parseClassMemberWithIsStatic(i,a,c,m)}parsePostMemberNameModifiers(i){this.eat(17)&&(i.optional=!0),i.readonly&&this.match(10)&&this.raise($r.ClassMethodHasReadonly,{at:i}),i.declare&&this.match(10)&&this.raise($r.ClassMethodHasDeclare,{at:i})}parseExpressionStatement(i,a,c){return(a.type==="Identifier"?this.tsParseExpressionStatement(i,a,c):void 0)||super.parseExpressionStatement(i,a,c)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(i,a,c){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(i,a,c);let m=this.tryParse(()=>super.parseConditional(i,a));return m.node?(m.error&&(this.state=m.failState),m.node):(m.error&&super.setOptionalParametersError(c,m.error),i)}parseParenItem(i,a){if(i=super.parseParenItem(i,a),this.eat(17)&&(i.optional=!0,this.resetEndLocation(i)),this.match(14)){let c=this.startNodeAt(a);return c.expression=i,c.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(c,"TSTypeCastExpression")}return i}parseExportDeclaration(i){if(!this.state.isAmbientContext&&this.isContextual(123))return this.tsInAmbientContext(()=>this.parseExportDeclaration(i));let a=this.state.startLoc,c=this.eatContextual(123);if(c&&(this.isContextual(123)||!this.shouldParseExportDeclaration()))throw this.raise($r.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let m=Et(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(i);return m?((m.type==="TSInterfaceDeclaration"||m.type==="TSTypeAliasDeclaration"||c)&&(i.exportKind="type"),c&&(this.resetStartLocation(m,a),m.declare=!0),m):null}parseClassId(i,a,c,m){if((!a||c)&&this.isContextual(111))return;super.parseClassId(i,a,c,i.declare?Ia:Na);let y=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);y&&(i.typeParameters=y)}parseClassPropertyAnnotation(i){i.optional||(this.eat(35)?i.definite=!0:this.eat(17)&&(i.optional=!0));let a=this.tsTryParseTypeAnnotation();a&&(i.typeAnnotation=a)}parseClassProperty(i){if(this.parseClassPropertyAnnotation(i),this.state.isAmbientContext&&!(i.readonly&&!i.typeAnnotation)&&this.match(29)&&this.raise($r.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),i.abstract&&this.match(29)){let{key:a}=i;this.raise($r.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:a.type==="Identifier"&&!i.computed?a.name:`[${this.input.slice(a.start,a.end)}]`})}return super.parseClassProperty(i)}parseClassPrivateProperty(i){return i.abstract&&this.raise($r.PrivateElementHasAbstract,{at:i}),i.accessibility&&this.raise($r.PrivateElementHasAccessibility,{at:i,modifier:i.accessibility}),this.parseClassPropertyAnnotation(i),super.parseClassPrivateProperty(i)}parseClassAccessorProperty(i){return this.parseClassPropertyAnnotation(i),i.optional&&this.raise($r.AccessorCannotBeOptional,{at:i}),super.parseClassAccessorProperty(i)}pushClassMethod(i,a,c,m,y,C){let x=this.tsTryParseTypeParameters(this.tsParseConstModifier);x&&y&&this.raise($r.ConstructorHasTypeParameters,{at:x});let{declare:A=!1,kind:S}=a;A&&(S==="get"||S==="set")&&this.raise($r.DeclareAccessor,{at:a,kind:S}),x&&(a.typeParameters=x),super.pushClassMethod(i,a,c,m,y,C)}pushClassPrivateMethod(i,a,c,m){let y=this.tsTryParseTypeParameters(this.tsParseConstModifier);y&&(a.typeParameters=y),super.pushClassPrivateMethod(i,a,c,m)}declareClassPrivateMethodInScope(i,a){i.type!=="TSDeclareMethod"&&(i.type==="MethodDefinition"&&!i.value.body||super.declareClassPrivateMethodInScope(i,a))}parseClassSuper(i){super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(111)&&(i.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(i,a,c,m,y,C,x){let A=this.tsTryParseTypeParameters(this.tsParseConstModifier);return A&&(i.typeParameters=A),super.parseObjPropValue(i,a,c,m,y,C,x)}parseFunctionParams(i,a){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&(i.typeParameters=c),super.parseFunctionParams(i,a)}parseVarId(i,a){super.parseVarId(i,a),i.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(i.definite=!0);let c=this.tsTryParseTypeAnnotation();c&&(i.id.typeAnnotation=c,this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,a){return this.match(14)&&(i.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(i,a)}parseMaybeAssign(i,a){var c,m,y,C,x,A,S;let k,O,G;if(this.hasPlugin("jsx")&&(this.match(140)||this.match(47))){if(k=this.state.clone(),O=this.tryParse(()=>super.parseMaybeAssign(i,a),k),!O.error)return O.node;let{context:U}=this.state,$=U[U.length-1];($===tr.j_oTag||$===tr.j_expr)&&U.pop()}if(!((c=O)!=null&&c.error)&&!this.match(47))return super.parseMaybeAssign(i,a);(!k||k===this.state)&&(k=this.state.clone());let z,q=this.tryParse(U=>{var $,Q;z=this.tsParseTypeParameters(this.tsParseConstModifier);let ce=super.parseMaybeAssign(i,a);return(ce.type!=="ArrowFunctionExpression"||($=ce.extra)!=null&&$.parenthesized)&&U(),((Q=z)==null?void 0:Q.params.length)!==0&&this.resetStartLocationFromNode(ce,z),ce.typeParameters=z,ce},k);if(!q.error&&!q.aborted)return z&&this.reportReservedArrowTypeParam(z),q.node;if(!O&&(ha(!this.hasPlugin("jsx")),G=this.tryParse(()=>super.parseMaybeAssign(i,a),k),!G.error))return G.node;if((m=O)!=null&&m.node)return this.state=O.failState,O.node;if(q.node)return this.state=q.failState,z&&this.reportReservedArrowTypeParam(z),q.node;if((y=G)!=null&&y.node)return this.state=G.failState,G.node;throw(C=O)!=null&&C.thrown?O.error:q.thrown?q.error:(x=G)!=null&&x.thrown?G.error:((A=O)==null?void 0:A.error)||q.error||((S=G)==null?void 0:S.error)}reportReservedArrowTypeParam(i){var a;i.params.length===1&&!i.params[0].constraint&&!((a=i.extra)!=null&&a.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise($r.ReservedArrowTypeParam,{at:i})}parseMaybeUnary(i,a){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(i,a)}parseArrow(i){if(this.match(14)){let a=this.tryParse(c=>{let m=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&c(),m});if(a.aborted)return;a.thrown||(a.error&&(this.state=a.failState),i.returnType=a.node)}return super.parseArrow(i)}parseAssignableListItemTypes(i,a){if(!(a&2))return i;this.eat(17)&&(i.optional=!0);let c=this.tsTryParseTypeAnnotation();return c&&(i.typeAnnotation=c),this.resetEndLocation(i),i}isAssignable(i,a){switch(i.type){case"TSTypeCastExpression":return this.isAssignable(i.expression,a);case"TSParameterProperty":return!0;default:return super.isAssignable(i,a)}}toAssignable(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;switch(i.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(i,a);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":a?this.expressionScope.recordArrowParameterBindingError($r.UnexpectedTypeCastInParameter,{at:i}):this.raise($r.UnexpectedTypeCastInParameter,{at:i}),this.toAssignable(i.expression,a);break;case"AssignmentExpression":!a&&i.left.type==="TSTypeCastExpression"&&(i.left=this.typeCastToParameter(i.left));default:super.toAssignable(i,a)}}toAssignableParenthesizedExpression(i,a){switch(i.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(i.expression,a);break;default:super.toAssignable(i,a)}}checkToRestConversion(i,a){switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(i.expression,!1);break;default:super.checkToRestConversion(i,a)}}isValidLVal(i,a,c){return Hp({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(c!==Ws||!a)&&["expression",!0],TSSatisfiesExpression:(c!==Ws||!a)&&["expression",!0],TSTypeAssertion:(c!==Ws||!a)&&["expression",!0]},i)||super.isValidLVal(i,a,c)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(i){if(this.match(47)||this.match(51)){let a=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let c=super.parseMaybeDecoratorArguments(i);return c.typeParameters=a,c}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(i)}checkCommaAfterRest(i){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===i?(this.next(),!1):super.checkCommaAfterRest(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(i,a){let c=super.parseMaybeDefault(i,a);return c.type==="AssignmentPattern"&&c.typeAnnotation&&c.right.startthis.isAssignable(a,!0)):super.shouldParseArrow(i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(i){if(this.match(47)||this.match(51)){let a=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());a&&(i.typeParameters=a)}return super.jsxParseOpeningElementAfterName(i)}getGetterSetterExpectedParamCount(i){let a=super.getGetterSetterExpectedParamCount(i),c=this.getObjectOrClassMethodParams(i)[0];return c&&this.isThisParam(c)?a+1:a}parseCatchClauseParam(){let i=super.parseCatchClauseParam(),a=this.tsTryParseTypeAnnotation();return a&&(i.typeAnnotation=a,this.resetEndLocation(i)),i}tsInAmbientContext(i){let a=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return i()}finally{this.state.isAmbientContext=a}}parseClass(i,a,c){let m=this.state.inAbstractClass;this.state.inAbstractClass=!!i.abstract;try{return super.parseClass(i,a,c)}finally{this.state.inAbstractClass=m}}tsParseAbstractDeclaration(i,a){if(this.match(80))return i.abstract=!0,this.maybeTakeDecorators(a,this.parseClass(i,!0,!1));if(this.isContextual(127)){if(!this.hasFollowingLineBreak())return i.abstract=!0,this.raise($r.NonClassMethodPropertyHasAbstractModifer,{at:i}),this.tsParseInterfaceDeclaration(i)}else this.unexpected(null,80)}parseMethod(i,a,c,m,y,C,x){let A=super.parseMethod(i,a,c,m,y,C,x);if(A.abstract&&(this.hasPlugin("estree")?A.value.body:A.body)){let{key:S}=A;this.raise($r.AbstractMethodHasImplementation,{at:A,methodName:S.type==="Identifier"&&!A.computed?S.name:`[${this.input.slice(S.start,S.end)}]`})}return A}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(i,a,c,m){return!a&&m?(this.parseTypeOnlyImportExportSpecifier(i,!1,c),this.finishNode(i,"ExportSpecifier")):(i.exportKind="value",super.parseExportSpecifier(i,a,c,m))}parseImportSpecifier(i,a,c,m,y){return!a&&m?(this.parseTypeOnlyImportExportSpecifier(i,!0,c),this.finishNode(i,"ImportSpecifier")):(i.importKind="value",super.parseImportSpecifier(i,a,c,m,c?Yo:Ns))}parseTypeOnlyImportExportSpecifier(i,a,c){let m=a?"imported":"local",y=a?"local":"exported",C=i[m],x,A=!1,S=!0,k=C.loc.start;if(this.isContextual(93)){let G=this.parseIdentifier();if(this.isContextual(93)){let z=this.parseIdentifier();xr(this.state.type)?(A=!0,C=G,x=a?this.parseIdentifier():this.parseModuleExportName(),S=!1):(x=z,S=!1)}else xr(this.state.type)?(S=!1,x=a?this.parseIdentifier():this.parseModuleExportName()):(A=!0,C=G)}else xr(this.state.type)&&(A=!0,a?(C=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(C.name,C.loc.start,!0,!0)):C=this.parseModuleExportName());A&&c&&this.raise(a?$r.TypeModifierIsUsedInTypeImports:$r.TypeModifierIsUsedInTypeExports,{at:k}),i[m]=C,i[y]=x;let O=a?"importKind":"exportKind";i[O]=A?"type":"value",S&&this.eatContextual(93)&&(i[y]=a?this.parseIdentifier():this.parseModuleExportName()),i[y]||(i[y]=qs(i[m])),a&&this.checkIdentifier(i[y],A?Yo:Ns)}};function zp(l){if(l.type!=="MemberExpression")return!1;let{computed:i,property:a}=l;return i&&a.type!=="StringLiteral"&&(a.type!=="TemplateLiteral"||a.expressions.length>0)?!1:Vc(l.object)}function Wc(l,i){var a;let{type:c}=l;if((a=l.extra)!=null&&a.parenthesized)return!1;if(i){if(c==="Literal"){let{value:m}=l;if(typeof m=="string"||typeof m=="boolean")return!0}}else if(c==="StringLiteral"||c==="BooleanLiteral")return!0;return!!(Gi(l,i)||nc(l,i)||c==="TemplateLiteral"&&l.expressions.length===0||zp(l))}function Gi(l,i){return i?l.type==="Literal"&&(typeof l.value=="number"||"bigint"in l):l.type==="NumericLiteral"||l.type==="BigIntLiteral"}function nc(l,i){if(l.type==="UnaryExpression"){let{operator:a,argument:c}=l;if(a==="-"&&Gi(c,i))return!0}return!1}function Vc(l){return l.type==="Identifier"?!0:l.type!=="MemberExpression"||l.computed?!1:Vc(l.object)}var qc=oi`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),$p=l=>class extends l{parsePlaceholder(i){if(this.match(142)){let a=this.startNode();return this.next(),this.assertNoSpace(),a.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(142),this.finishPlaceholder(a,i)}}finishPlaceholder(i,a){let c=!!(i.expectedNode&&i.type==="Placeholder");return i.expectedNode=a,c?i:this.finishNode(i,"Placeholder")}getTokenFromCode(i){i===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(142,2):super.getTokenFromCode(i)}parseExprAtom(i){return this.parsePlaceholder("Expression")||super.parseExprAtom(i)}parseIdentifier(i){return this.parsePlaceholder("Identifier")||super.parseIdentifier(i)}checkReservedWord(i,a,c,m){i!==void 0&&super.checkReservedWord(i,a,c,m)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(i,a,c){return i==="Placeholder"||super.isValidLVal(i,a,c)}toAssignable(i,a){i&&i.type==="Placeholder"&&i.expectedNode==="Expression"?i.expectedNode="Pattern":super.toAssignable(i,a)}chStartsBindingIdentifier(i,a){return!!(super.chStartsBindingIdentifier(i,a)||this.lookahead().type===142)}verifyBreakContinue(i,a){i.label&&i.label.type==="Placeholder"||super.verifyBreakContinue(i,a)}parseExpressionStatement(i,a){if(a.type!=="Placeholder"||a.extra&&a.extra.parenthesized)return super.parseExpressionStatement(i,a);if(this.match(14)){let c=i;return c.label=this.finishPlaceholder(a,"Identifier"),this.next(),c.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(c,"LabeledStatement")}return this.semicolon(),i.name=a.name,this.finishPlaceholder(i,"Statement")}parseBlock(i,a,c){return this.parsePlaceholder("BlockStatement")||super.parseBlock(i,a,c)}parseFunctionId(i){return this.parsePlaceholder("Identifier")||super.parseFunctionId(i)}parseClass(i,a,c){let m=a?"ClassDeclaration":"ClassExpression";this.next();let y=this.state.strict,C=this.parsePlaceholder("Identifier");if(C)if(this.match(81)||this.match(142)||this.match(5))i.id=C;else{if(c||!a)return i.id=null,i.body=this.finishPlaceholder(C,"ClassBody"),this.finishNode(i,m);throw this.raise(qc.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(i,a,c);return super.parseClassSuper(i),i.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!i.superClass,y),this.finishNode(i,m)}parseExport(i,a){let c=this.parsePlaceholder("Identifier");if(!c)return super.parseExport(i,a);if(!this.isContextual(97)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(c,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let m=this.startNode();return m.exported=c,i.specifiers=[this.finishNode(m,"ExportDefaultSpecifier")],super.parseExport(i,a)}isExportDefaultSpecifier(){if(this.match(65)){let i=this.nextTokenStart();if(this.isUnparsedContextual(i,"from")&&this.input.startsWith(Us(142),this.nextTokenStartSince(i+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(i){return i.specifiers&&i.specifiers.length>0?!0:super.maybeParseExportDefaultSpecifier(i)}checkExport(i){let{specifiers:a}=i;a!=null&&a.length&&(i.specifiers=a.filter(c=>c.exported.type==="Placeholder")),super.checkExport(i),i.specifiers=a}parseImport(i){let a=this.parsePlaceholder("Identifier");if(!a)return super.parseImport(i);if(i.specifiers=[],!this.isContextual(97)&&!this.match(12))return i.source=this.finishPlaceholder(a,"StringLiteral"),this.semicolon(),this.finishNode(i,"ImportDeclaration");let c=this.startNodeAtNode(a);return c.local=a,i.specifiers.push(this.finishNode(c,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(i)||this.parseNamedImportSpecifiers(i)),this.expectContextual(97),i.source=this.parseImportSource(),this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(qc.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},Kc=l=>class extends l{parseV8Intrinsic(){if(this.match(54)){let i=this.state.startLoc,a=this.startNode();if(this.next(),Et(this.state.type)){let c=this.parseIdentifierName(),m=this.createIdentifier(a,c);if(m.type="V8IntrinsicIdentifier",this.match(10))return m}this.unexpected(i)}}parseExprAtom(i){return this.parseV8Intrinsic()||super.parseExprAtom(i)}};function Ii(l,i){let[a,c]=typeof i=="string"?[i,{}]:i,m=Object.keys(c),y=m.length===0;return l.some(C=>{if(typeof C=="string")return y&&C===a;{let[x,A]=C;if(x!==a)return!1;for(let S of m)if(A[S]!==c[S])return!1;return!0}})}function ja(l,i,a){let c=l.find(m=>Array.isArray(m)?m[0]===i:m===i);return c&&Array.isArray(c)&&c.length>1?c[1][a]:null}var Yc=["minimal","fsharp","hack","smart"],Xc=["^^","@@","^","%","#"],Jc=["hash","bar"];function Ha(l){if(Ii(l,"decorators")){if(Ii(l,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=ja(l,"decorators","decoratorsBeforeExport");if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let a=ja(l,"decorators","allowCallParenthesized");if(a!=null&&typeof a!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ii(l,"flow")&&Ii(l,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ii(l,"placeholders")&&Ii(l,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ii(l,"pipelineOperator")){let i=ja(l,"pipelineOperator","proposal");if(!Yc.includes(i)){let c=Yc.map(m=>`"${m}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${c}.`)}let a=Ii(l,["recordAndTuple",{syntaxType:"hash"}]);if(i==="hack"){if(Ii(l,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ii(l,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let c=ja(l,"pipelineOperator","topicToken");if(!Xc.includes(c)){let m=Xc.map(y=>`"${y}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${m}.`)}if(c==="#"&&a)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(i==="smart"&&a)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ii(l,"moduleAttributes")){if(Ii(l,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(ja(l,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ii(l,"recordAndTuple")&&ja(l,"recordAndTuple","syntaxType")!=null&&!Jc.includes(ja(l,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Jc.map(i=>`'${i}'`).join(", "));if(Ii(l,"asyncDoExpressions")&&!Ii(l,"doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}}var Is={estree:ul,jsx:Uc,flow:Ru,typescript:Up,v8intrinsic:Kc,placeholders:$p},Cl=Object.keys(Is),Ua=class extends zc{checkProto(l,i,a,c){if(l.type==="SpreadElement"||this.isObjectMethod(l)||l.computed||l.shorthand)return;let m=l.key;if((m.type==="Identifier"?m.name:m.value)==="__proto__"){if(i){this.raise(mt.RecordNoProto,{at:m});return}a.used&&(c?c.doubleProtoLoc===null&&(c.doubleProtoLoc=m.loc.start):this.raise(mt.DuplicateProto,{at:m})),a.used=!0}}shouldExitDescending(l,i){return l.type==="ArrowFunctionExpression"&&l.start===i}getExpression(){this.enterInitialScopes(),this.nextToken();let l=this.parseExpression();return this.match(137)||this.unexpected(),this.finalizeRemainingComments(),l.comments=this.state.comments,l.errors=this.state.errors,this.options.tokens&&(l.tokens=this.tokens),l}parseExpression(l,i){return l?this.disallowInAnd(()=>this.parseExpressionBase(i)):this.allowInAnd(()=>this.parseExpressionBase(i))}parseExpressionBase(l){let i=this.state.startLoc,a=this.parseMaybeAssign(l);if(this.match(12)){let c=this.startNodeAt(i);for(c.expressions=[a];this.eat(12);)c.expressions.push(this.parseMaybeAssign(l));return this.toReferencedList(c.expressions),this.finishNode(c,"SequenceExpression")}return a}parseMaybeAssignDisallowIn(l,i){return this.disallowInAnd(()=>this.parseMaybeAssign(l,i))}parseMaybeAssignAllowIn(l,i){return this.allowInAnd(()=>this.parseMaybeAssign(l,i))}setOptionalParametersError(l,i){var a;l.optionalParametersLoc=(a=i==null?void 0:i.loc)!=null?a:this.state.startLoc}parseMaybeAssign(l,i){let a=this.state.startLoc;if(this.isContextual(106)&&this.prodParam.hasYield){let C=this.parseYield();return i&&(C=i.call(this,C,a)),C}let c;l?c=!1:(l=new Mu,c=!0);let{type:m}=this.state;(m===10||Et(m))&&(this.state.potentialArrowAt=this.state.start);let y=this.parseMaybeConditional(l);if(i&&(y=i.call(this,y,a)),_n(this.state.type)){let C=this.startNodeAt(a),x=this.state.value;if(C.operator=x,this.match(29)){this.toAssignable(y,!0),C.left=y;let A=a.index;l.doubleProtoLoc!=null&&l.doubleProtoLoc.index>=A&&(l.doubleProtoLoc=null),l.shorthandAssignLoc!=null&&l.shorthandAssignLoc.index>=A&&(l.shorthandAssignLoc=null),l.privateKeyLoc!=null&&l.privateKeyLoc.index>=A&&(this.checkDestructuringPrivate(l),l.privateKeyLoc=null)}else C.left=y;return this.next(),C.right=this.parseMaybeAssign(),this.checkLVal(y,{in:this.finishNode(C,"AssignmentExpression")}),C}else c&&this.checkExpressionErrors(l,!0);return y}parseMaybeConditional(l){let i=this.state.startLoc,a=this.state.potentialArrowAt,c=this.parseExprOps(l);return this.shouldExitDescending(c,a)?c:this.parseConditional(c,i,l)}parseConditional(l,i,a){if(this.eat(17)){let c=this.startNodeAt(i);return c.test=l,c.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),c.alternate=this.parseMaybeAssign(),this.finishNode(c,"ConditionalExpression")}return l}parseMaybeUnaryOrPrivate(l){return this.match(136)?this.parsePrivateName():this.parseMaybeUnary(l)}parseExprOps(l){let i=this.state.startLoc,a=this.state.potentialArrowAt,c=this.parseMaybeUnaryOrPrivate(l);return this.shouldExitDescending(c,a)?c:this.parseExprOp(c,i,-1)}parseExprOp(l,i,a){if(this.isPrivateName(l)){let m=this.getPrivateNameSV(l);(a>=Aa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(mt.PrivateInExpectedIn,{at:l,identifierName:m}),this.classScope.usePrivateName(m,l.loc.start)}let c=this.state.type;if(Fn(c)&&(this.prodParam.hasIn||!this.match(58))){let m=Aa(c);if(m>a){if(c===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return l;this.checkPipelineAtInfixOperator(l,i)}let y=this.startNodeAt(i);y.left=l,y.operator=this.state.value;let C=c===41||c===42,x=c===40;if(x&&(m=Aa(42)),this.next(),c===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(mt.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});y.right=this.parseExprOpRightExpr(c,m);let A=this.finishNode(y,C||x?"LogicalExpression":"BinaryExpression"),S=this.state.type;if(x&&(S===41||S===42)||C&&S===40)throw this.raise(mt.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(A,i,a)}}return l}parseExprOpRightExpr(l,i){let a=this.state.startLoc;switch(l){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(106))throw this.raise(mt.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(l,i),a)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(i))}default:return this.parseExprOpBaseRightExpr(l,i)}}parseExprOpBaseRightExpr(l,i){let a=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),a,Ro(l)?i-1:i)}parseHackPipeBody(){var l;let{startLoc:i}=this.state,a=this.parseMaybeAssign();return zl.has(a.type)&&!((l=a.extra)!=null&&l.parenthesized)&&this.raise(mt.PipeUnparenthesizedBody,{at:i,type:a.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(mt.PipeTopicUnused,{at:i}),a}checkExponentialAfterUnary(l){this.match(57)&&this.raise(mt.UnexpectedTokenUnaryExponentiation,{at:l.argument})}parseMaybeUnary(l,i){let a=this.state.startLoc,c=this.isContextual(96);if(c&&this.isAwaitAllowed()){this.next();let x=this.parseAwait(a);return i||this.checkExponentialAfterUnary(x),x}let m=this.match(34),y=this.startNode();if(li(this.state.type)){y.operator=this.state.value,y.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let x=this.match(89);if(this.next(),y.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(l,!0),this.state.strict&&x){let A=y.argument;A.type==="Identifier"?this.raise(mt.StrictDelete,{at:y}):this.hasPropertyAsPrivateName(A)&&this.raise(mt.DeletePrivateField,{at:y})}if(!m)return i||this.checkExponentialAfterUnary(y),this.finishNode(y,"UnaryExpression")}let C=this.parseUpdate(y,m,l);if(c){let{type:x}=this.state;if((this.hasPlugin("v8intrinsic")?Kr(x):Kr(x)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(mt.AwaitNotInAsyncContext,{at:a}),this.parseAwait(a)}return C}parseUpdate(l,i,a){if(i){let y=l;return this.checkLVal(y.argument,{in:this.finishNode(y,"UpdateExpression")}),l}let c=this.state.startLoc,m=this.parseExprSubscripts(a);if(this.checkExpressionErrors(a,!1))return m;for(;Pi(this.state.type)&&!this.canInsertSemicolon();){let y=this.startNodeAt(c);y.operator=this.state.value,y.prefix=!1,y.argument=m,this.next(),this.checkLVal(m,{in:m=this.finishNode(y,"UpdateExpression")})}return m}parseExprSubscripts(l){let i=this.state.startLoc,a=this.state.potentialArrowAt,c=this.parseExprAtom(l);return this.shouldExitDescending(c,a)?c:this.parseSubscripts(c,i)}parseSubscripts(l,i,a){let c={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(l),stop:!1};do l=this.parseSubscript(l,i,a,c),c.maybeAsyncArrow=!1;while(!c.stop);return l}parseSubscript(l,i,a,c){let{type:m}=this.state;if(!a&&m===15)return this.parseBind(l,i,a,c);if(Du(m))return this.parseTaggedTemplateExpression(l,i,c);let y=!1;if(m===18){if(a&&(this.raise(mt.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return c.stop=!0,l;c.optionalChainMember=y=!0,this.next()}if(!a&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(l,i,c,y);{let C=this.eat(0);return C||y||this.eat(16)?this.parseMember(l,i,c,C,y):(c.stop=!0,l)}}parseMember(l,i,a,c,m){let y=this.startNodeAt(i);return y.object=l,y.computed=c,c?(y.property=this.parseExpression(),this.expect(3)):this.match(136)?(l.type==="Super"&&this.raise(mt.SuperPrivateField,{at:i}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),y.property=this.parsePrivateName()):y.property=this.parseIdentifier(!0),a.optionalChainMember?(y.optional=m,this.finishNode(y,"OptionalMemberExpression")):this.finishNode(y,"MemberExpression")}parseBind(l,i,a,c){let m=this.startNodeAt(i);return m.object=l,this.next(),m.callee=this.parseNoCallExpr(),c.stop=!0,this.parseSubscripts(this.finishNode(m,"BindExpression"),i,a)}parseCoverCallAndAsyncArrowHead(l,i,a,c){let m=this.state.maybeInArrowParameters,y=null;this.state.maybeInArrowParameters=!0,this.next();let C=this.startNodeAt(i);C.callee=l;let{maybeAsyncArrow:x,optionalChainMember:A}=a;x&&(this.expressionScope.enter(Bp()),y=new Mu),A&&(C.optional=c),c?C.arguments=this.parseCallExpressionArguments(11):C.arguments=this.parseCallExpressionArguments(11,l.type==="Import",l.type!=="Super",C,y);let S=this.finishCallExpression(C,A);return x&&this.shouldParseAsyncArrow()&&!c?(a.stop=!0,this.checkDestructuringPrivate(y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),S=this.parseAsyncArrowFromCallExpression(this.startNodeAt(i),S)):(x&&(this.checkExpressionErrors(y,!0),this.expressionScope.exit()),this.toReferencedArguments(S)),this.state.maybeInArrowParameters=m,S}toReferencedArguments(l,i){this.toReferencedListDeep(l.arguments,i)}parseTaggedTemplateExpression(l,i,a){let c=this.startNodeAt(i);return c.tag=l,c.quasi=this.parseTemplate(!0),a.optionalChainMember&&this.raise(mt.OptionalChainingNoTemplate,{at:i}),this.finishNode(c,"TaggedTemplateExpression")}atPossibleAsyncArrow(l){return l.type==="Identifier"&&l.name==="async"&&this.state.lastTokEndLoc.index===l.end&&!this.canInsertSemicolon()&&l.end-l.start===5&&l.start===this.state.potentialArrowAt}finishCallExpression(l,i){if(l.callee.type==="Import")if(l.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),l.arguments.length===0||l.arguments.length>2)this.raise(mt.ImportCallArity,{at:l,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let a of l.arguments)a.type==="SpreadElement"&&this.raise(mt.ImportCallSpreadArgument,{at:a});return this.finishNode(l,i?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(l,i,a,c,m){let y=[],C=!0,x=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(l);){if(C)C=!1;else if(this.expect(12),this.match(l)){i&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(mt.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),c&&this.addTrailingCommaExtraToNode(c),this.next();break}y.push(this.parseExprListItem(!1,m,a))}return this.state.inFSharpPipelineDirectBody=x,y}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(l,i){var a;return this.resetPreviousNodeTrailingComments(i),this.expect(19),this.parseArrowExpression(l,i.arguments,!0,(a=i.extra)==null?void 0:a.trailingCommaLoc),i.innerComments&&vo(l,i.innerComments),i.callee.trailingComments&&vo(l,i.callee.trailingComments),l}parseNoCallExpr(){let l=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),l,!0)}parseExprAtom(l){let i,a=null,{type:c}=this.state;switch(c){case 79:return this.parseSuper();case 83:return i=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(i):(this.match(10)||this.raise(mt.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(i,"Import"));case 78:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 132:return this.parseNumericLiteral(this.state.value);case 133:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseDecimalLiteral(this.state.value);case 131:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let m=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(m)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,l);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,l);case 68:return this.parseFunctionOrFunctionSent();case 26:a=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(a,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{i=this.startNode(),this.next(),i.object=null;let m=i.callee=this.parseNoCallExpr();if(m.type==="MemberExpression")return this.finishNode(i,"BindExpression");throw this.raise(mt.UnsupportedBind,{at:m})}case 136:return this.raise(mt.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let m=this.getPluginOption("pipelineOperator","proposal");if(m)return this.parseTopicReference(m);this.unexpected();break}case 47:{let m=this.input.codePointAt(this.nextTokenStart());ws(m)||m===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Et(c)){if(this.isContextual(125)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let m=this.state.potentialArrowAt===this.state.start,y=this.state.containsEsc,C=this.parseIdentifier();if(!y&&C.name==="async"&&!this.canInsertSemicolon()){let{type:x}=this.state;if(x===68)return this.resetPreviousNodeTrailingComments(C),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(C));if(Et(x))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(C)):C;if(x===90)return this.resetPreviousNodeTrailingComments(C),this.parseDo(this.startNodeAtNode(C),!0)}return m&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(C),[C],!1)):C}else this.unexpected()}}parseTopicReferenceThenEqualsSign(l,i){let a=this.getPluginOption("pipelineOperator","proposal");if(a)return this.state.type=l,this.state.value=i,this.state.pos--,this.state.end--,this.state.endLoc=$i(this.state.endLoc,-1),this.parseTopicReference(a);this.unexpected()}parseTopicReference(l){let i=this.startNode(),a=this.state.startLoc,c=this.state.type;return this.next(),this.finishTopicReference(i,a,l,c)}finishTopicReference(l,i,a,c){if(this.testTopicReferenceConfiguration(a,i,c)){let m=a==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(a==="smart"?mt.PrimaryTopicNotAllowed:mt.PipeTopicUnbound,{at:i}),this.registerTopicReference(),this.finishNode(l,m)}else throw this.raise(mt.PipeTopicUnconfiguredToken,{at:i,token:Us(c)})}testTopicReferenceConfiguration(l,i,a){switch(l){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Us(a)}]);case"smart":return a===27;default:throw this.raise(mt.PipeTopicRequiresHackPipes,{at:i})}}parseAsyncArrowUnaryFunction(l){this.prodParam.enter(Ou(!0,this.prodParam.hasYield));let i=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(mt.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(l,i,!0)}parseDo(l,i){this.expectPlugin("doExpressions"),i&&this.expectPlugin("asyncDoExpressions"),l.async=i,this.next();let a=this.state.labels;return this.state.labels=[],i?(this.prodParam.enter(eu),l.body=this.parseBlock(),this.prodParam.exit()):l.body=this.parseBlock(),this.state.labels=a,this.finishNode(l,"DoExpression")}parseSuper(){let l=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(mt.SuperNotAllowed,{at:l}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(mt.UnexpectedSuper,{at:l}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(mt.UnsupportedSuper,{at:l}),this.finishNode(l,"Super")}parsePrivateName(){let l=this.startNode(),i=this.startNodeAt($i(this.state.startLoc,1)),a=this.state.value;return this.next(),l.id=this.createIdentifier(i,a),this.finishNode(l,"PrivateName")}parseFunctionOrFunctionSent(){let l=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(l),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(l,i,"sent")}return this.parseFunction(l)}parseMetaProperty(l,i,a){l.meta=i;let c=this.state.containsEsc;return l.property=this.parseIdentifier(!0),(l.property.name!==a||c)&&this.raise(mt.UnsupportedMetaProperty,{at:l.property,target:i.name,onlyValidPropertyName:a}),this.finishNode(l,"MetaProperty")}parseImportMetaProperty(l){let i=this.createIdentifier(this.startNodeAtNode(l),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(mt.ImportMetaOutsideModule,{at:i}),this.sawUnambiguousESM=!0),this.parseMetaProperty(l,i,"meta")}parseLiteralAtNode(l,i,a){return this.addExtra(a,"rawValue",l),this.addExtra(a,"raw",this.input.slice(a.start,this.state.end)),a.value=l,this.next(),this.finishNode(a,i)}parseLiteral(l,i){let a=this.startNode();return this.parseLiteralAtNode(l,i,a)}parseStringLiteral(l){return this.parseLiteral(l,"StringLiteral")}parseNumericLiteral(l){return this.parseLiteral(l,"NumericLiteral")}parseBigIntLiteral(l){return this.parseLiteral(l,"BigIntLiteral")}parseDecimalLiteral(l){return this.parseLiteral(l,"DecimalLiteral")}parseRegExpLiteral(l){let i=this.parseLiteral(l.value,"RegExpLiteral");return i.pattern=l.pattern,i.flags=l.flags,i}parseBooleanLiteral(l){let i=this.startNode();return i.value=l,this.next(),this.finishNode(i,"BooleanLiteral")}parseNullLiteral(){let l=this.startNode();return this.next(),this.finishNode(l,"NullLiteral")}parseParenAndDistinguishExpression(l){let i=this.state.startLoc,a;this.next(),this.expressionScope.enter(Oc());let c=this.state.maybeInArrowParameters,m=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let y=this.state.startLoc,C=[],x=new Mu,A=!0,S,k;for(;!this.match(11);){if(A)A=!1;else if(this.expect(12,x.optionalParametersLoc===null?null:x.optionalParametersLoc),this.match(11)){k=this.state.startLoc;break}if(this.match(21)){let z=this.state.startLoc;if(S=this.state.startLoc,C.push(this.parseParenItem(this.parseRestBinding(),z)),!this.checkCommaAfterRest(41))break}else C.push(this.parseMaybeAssignAllowIn(x,this.parseParenItem))}let O=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=c,this.state.inFSharpPipelineDirectBody=m;let G=this.startNodeAt(i);return l&&this.shouldParseArrow(C)&&(G=this.parseArrow(G))?(this.checkDestructuringPrivate(x),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(G,C,!1),G):(this.expressionScope.exit(),C.length||this.unexpected(this.state.lastTokStartLoc),k&&this.unexpected(k),S&&this.unexpected(S),this.checkExpressionErrors(x,!0),this.toReferencedListDeep(C,!0),C.length>1?(a=this.startNodeAt(y),a.expressions=C,this.finishNode(a,"SequenceExpression"),this.resetEndLocation(a,O)):a=C[0],this.wrapParenthesis(i,a))}wrapParenthesis(l,i){if(!this.options.createParenthesizedExpressions)return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",l.index),this.takeSurroundingComments(i,l.index,this.state.lastTokEndLoc.index),i;let a=this.startNodeAt(l);return a.expression=i,this.finishNode(a,"ParenthesizedExpression")}shouldParseArrow(l){return!this.canInsertSemicolon()}parseArrow(l){if(this.eat(19))return l}parseParenItem(l,i){return l}parseNewOrNewTarget(){let l=this.startNode();if(this.next(),this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(l),"new");this.next();let a=this.parseMetaProperty(l,i,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(mt.UnexpectedNewTarget,{at:a}),a}return this.parseNew(l)}parseNew(l){if(this.parseNewCallee(l),this.eat(10)){let i=this.parseExprList(11);this.toReferencedList(i),l.arguments=i}else l.arguments=[];return this.finishNode(l,"NewExpression")}parseNewCallee(l){l.callee=this.parseNoCallExpr(),l.callee.type==="Import"&&this.raise(mt.ImportCallNotNewExpression,{at:l.callee})}parseTemplateElement(l){let{start:i,startLoc:a,end:c,value:m}=this.state,y=i+1,C=this.startNodeAt($i(a,1));m===null&&(l||this.raise(mt.InvalidEscapeSequenceTemplate,{at:$i(this.state.firstInvalidTemplateEscapePos,1)}));let x=this.match(24),A=x?-1:-2,S=c+A;C.value={raw:this.input.slice(y,S).replace(/\r\n?/g,` +`),cooked:m===null?null:m.slice(1,A)},C.tail=x,this.next();let k=this.finishNode(C,"TemplateElement");return this.resetEndLocation(k,$i(this.state.lastTokEndLoc,A)),k}parseTemplate(l){let i=this.startNode();i.expressions=[];let a=this.parseTemplateElement(l);for(i.quasis=[a];!a.tail;)i.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.quasis.push(a=this.parseTemplateElement(l));return this.finishNode(i,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(l,i,a,c){a&&this.expectPlugin("recordAndTuple");let m=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let y=Object.create(null),C=!0,x=this.startNode();for(x.properties=[],this.next();!this.match(l);){if(C)C=!1;else if(this.expect(12),this.match(l)){this.addTrailingCommaExtraToNode(x);break}let S;i?S=this.parseBindingProperty():(S=this.parsePropertyDefinition(c),this.checkProto(S,a,y,c)),a&&!this.isObjectProperty(S)&&S.type!=="SpreadElement"&&this.raise(mt.InvalidRecordProperty,{at:S}),S.shorthand&&this.addExtra(S,"shorthand",!0),x.properties.push(S)}this.next(),this.state.inFSharpPipelineDirectBody=m;let A="ObjectExpression";return i?A="ObjectPattern":a&&(A="RecordExpression"),this.finishNode(x,A)}addTrailingCommaExtraToNode(l){this.addExtra(l,"trailingComma",this.state.lastTokStart),this.addExtra(l,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(l){return!l.computed&&l.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(l){let i=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(mt.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)i.push(this.parseDecorator());let a=this.startNode(),c=!1,m=!1,y;if(this.match(21))return i.length&&this.unexpected(),this.parseSpread();i.length&&(a.decorators=i,i=[]),a.method=!1,l&&(y=this.state.startLoc);let C=this.eat(55);this.parsePropertyNamePrefixOperator(a);let x=this.state.containsEsc,A=this.parsePropertyName(a,l);if(!C&&!x&&this.maybeAsyncOrAccessorProp(a)){let S=A.name;S==="async"&&!this.hasPrecedingLineBreak()&&(c=!0,this.resetPreviousNodeTrailingComments(A),C=this.eat(55),this.parsePropertyName(a)),(S==="get"||S==="set")&&(m=!0,this.resetPreviousNodeTrailingComments(A),a.kind=S,this.match(55)&&(C=!0,this.raise(mt.AccessorIsGenerator,{at:this.state.curPosition(),kind:S}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,y,C,c,!1,m,l)}getGetterSetterExpectedParamCount(l){return l.kind==="get"?0:1}getObjectOrClassMethodParams(l){return l.params}checkGetterSetterParams(l){var i;let a=this.getGetterSetterExpectedParamCount(l),c=this.getObjectOrClassMethodParams(l);c.length!==a&&this.raise(l.kind==="get"?mt.BadGetterArity:mt.BadSetterArity,{at:l}),l.kind==="set"&&((i=c[c.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(mt.BadSetterRestParameter,{at:l})}parseObjectMethod(l,i,a,c,m){if(m){let y=this.parseMethod(l,i,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(y),y}if(a||i||this.match(10))return c&&this.unexpected(),l.kind="method",l.method=!0,this.parseMethod(l,i,a,!1,!1,"ObjectMethod")}parseObjectProperty(l,i,a,c){if(l.shorthand=!1,this.eat(14))return l.value=a?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(c),this.finishNode(l,"ObjectProperty");if(!l.computed&&l.key.type==="Identifier"){if(this.checkReservedWord(l.key.name,l.key.loc.start,!0,!1),a)l.value=this.parseMaybeDefault(i,qs(l.key));else if(this.match(29)){let m=this.state.startLoc;c!=null?c.shorthandAssignLoc===null&&(c.shorthandAssignLoc=m):this.raise(mt.InvalidCoverInitializedName,{at:m}),l.value=this.parseMaybeDefault(i,qs(l.key))}else l.value=qs(l.key);return l.shorthand=!0,this.finishNode(l,"ObjectProperty")}}parseObjPropValue(l,i,a,c,m,y,C){let x=this.parseObjectMethod(l,a,c,m,y)||this.parseObjectProperty(l,i,m,C);return x||this.unexpected(),x}parsePropertyName(l,i){if(this.eat(0))l.computed=!0,l.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:a,value:c}=this.state,m;if(xr(a))m=this.parseIdentifier(!0);else switch(a){case 132:m=this.parseNumericLiteral(c);break;case 131:m=this.parseStringLiteral(c);break;case 133:m=this.parseBigIntLiteral(c);break;case 134:m=this.parseDecimalLiteral(c);break;case 136:{let y=this.state.startLoc;i!=null?i.privateKeyLoc===null&&(i.privateKeyLoc=y):this.raise(mt.UnexpectedPrivateField,{at:y}),m=this.parsePrivateName();break}default:this.unexpected()}l.key=m,a!==136&&(l.computed=!1)}return l.key}initFunction(l,i){l.id=null,l.generator=!1,l.async=i}parseMethod(l,i,a,c,m,y){let C=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(l,a),l.generator=i,this.scope.enter(ks|go|(C?Fs:0)|(m?ka:0)),this.prodParam.enter(Ou(a,l.generator)),this.parseFunctionParams(l,c);let x=this.parseFunctionBodyAndFinish(l,y,!0);return this.prodParam.exit(),this.scope.exit(),x}parseArrayLike(l,i,a,c){a&&this.expectPlugin("recordAndTuple");let m=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let y=this.startNode();return this.next(),y.elements=this.parseExprList(l,!a,c,y),this.state.inFSharpPipelineDirectBody=m,this.finishNode(y,a?"TupleExpression":"ArrayExpression")}parseArrowExpression(l,i,a,c){this.scope.enter(ks|bu);let m=Ou(a,!1);!this.match(5)&&this.prodParam.hasIn&&(m|=Co),this.prodParam.enter(m),this.initFunction(l,a);let y=this.state.maybeInArrowParameters;return i&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(l,i,c)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(l,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=y,this.finishNode(l,"ArrowFunctionExpression")}setArrowFunctionParameters(l,i,a){this.toAssignableList(i,a,!1),l.params=i}parseFunctionBodyAndFinish(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.parseFunctionBody(l,!1,a),this.finishNode(l,i)}parseFunctionBody(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,c=i&&!this.match(5);if(this.expressionScope.enter(Mc()),c)l.body=this.parseMaybeAssign(),this.checkParams(l,!1,i,!1);else{let m=this.state.strict,y=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Lu),l.body=this.parseBlock(!0,!1,C=>{let x=!this.isSimpleParamList(l.params);C&&x&&this.raise(mt.IllegalLanguageModeDirective,{at:(l.kind==="method"||l.kind==="constructor")&&l.key?l.key.loc.end:l});let A=!m&&this.state.strict;this.checkParams(l,!this.state.strict&&!i&&!a&&!x,i,A),this.state.strict&&l.id&&this.checkIdentifier(l.id,Np,A)}),this.prodParam.exit(),this.state.labels=y}this.expressionScope.exit()}isSimpleParameter(l){return l.type==="Identifier"}isSimpleParamList(l){for(let i=0,a=l.length;i3&&arguments[3]!==void 0?arguments[3]:!0,m=!i&&new Set,y={type:"FormalParameters"};for(let C of l.params)this.checkLVal(C,{in:y,binding:qo,checkClashes:m,strictModeChanged:c})}parseExprList(l,i,a,c){let m=[],y=!0;for(;!this.eat(l);){if(y)y=!1;else if(this.expect(12),this.match(l)){c&&this.addTrailingCommaExtraToNode(c),this.next();break}m.push(this.parseExprListItem(i,a))}return m}parseExprListItem(l,i,a){let c;if(this.match(12))l||this.raise(mt.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),c=null;else if(this.match(21)){let m=this.state.startLoc;c=this.parseParenItem(this.parseSpread(i),m)}else if(this.match(17)){this.expectPlugin("partialApplication"),a||this.raise(mt.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let m=this.startNode();this.next(),c=this.finishNode(m,"ArgumentPlaceholder")}else c=this.parseMaybeAssignAllowIn(i,this.parseParenItem);return c}parseIdentifier(l){let i=this.startNode(),a=this.parseIdentifierName(l);return this.createIdentifier(i,a)}createIdentifier(l,i){return l.name=i,l.loc.identifierName=i,this.finishNode(l,"Identifier")}parseIdentifierName(l){let i,{startLoc:a,type:c}=this.state;xr(c)?i=this.state.value:this.unexpected();let m=ir(c);return l?m&&this.replaceToken(130):this.checkReservedWord(i,a,m,!1),this.next(),i}checkReservedWord(l,i,a,c){if(!(l.length>10||!Vl(l))){if(a&&mo(l)){this.raise(mt.UnexpectedKeyword,{at:i,keyword:l});return}if((this.state.strict?c?Kn:Zi:na)(l,this.inModule)){this.raise(mt.UnexpectedReservedWord,{at:i,reservedWord:l});return}else if(l==="yield"){if(this.prodParam.hasYield){this.raise(mt.YieldBindingIdentifier,{at:i});return}}else if(l==="await"){if(this.prodParam.hasAwait){this.raise(mt.AwaitBindingIdentifier,{at:i});return}if(this.scope.inStaticBlock){this.raise(mt.AwaitBindingIdentifierInStaticBlock,{at:i});return}this.expressionScope.recordAsyncArrowParametersError({at:i})}else if(l==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(mt.ArgumentsInClass,{at:i});return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(l){let i=this.startNodeAt(l);return this.expressionScope.recordParameterInitializerError(mt.AwaitExpressionFormalParameter,{at:i}),this.eat(55)&&this.raise(mt.ObsoleteAwaitStar,{at:i}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(i.argument=this.parseMaybeUnary(null,!0)),this.finishNode(i,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:l}=this.state;return l===53||l===10||l===0||Du(l)||l===101&&!this.state.containsEsc||l===135||l===56||this.hasPlugin("v8intrinsic")&&l===54}parseYield(){let l=this.startNode();this.expressionScope.recordParameterInitializerError(mt.YieldInParameter,{at:l}),this.next();let i=!1,a=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:a=this.parseMaybeAssign()}return l.delegate=i,l.argument=a,this.finishNode(l,"YieldExpression")}checkPipelineAtInfixOperator(l,i){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&l.type==="SequenceExpression"&&this.raise(mt.PipelineHeadSequenceExpression,{at:i})}parseSmartPipelineBodyInStyle(l,i){if(this.isSimpleReference(l)){let a=this.startNodeAt(i);return a.callee=l,this.finishNode(a,"PipelineBareFunction")}else{let a=this.startNodeAt(i);return this.checkSmartPipeTopicBodyEarlyErrors(i),a.expression=l,this.finishNode(a,"PipelineTopicExpression")}}isSimpleReference(l){switch(l.type){case"MemberExpression":return!l.computed&&this.isSimpleReference(l.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(l){if(this.match(19))throw this.raise(mt.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(mt.PipelineTopicUnused,{at:l})}withTopicBindingContext(l){let i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return l()}finally{this.state.topicContext=i}}withSmartMixTopicForbiddingContext(l){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return l()}finally{this.state.topicContext=i}}else return l()}withSoloAwaitPermittingContext(l){let i=this.state.soloAwait;this.state.soloAwait=!0;try{return l()}finally{this.state.soloAwait=i}}allowInAnd(l){let i=this.prodParam.currentFlags();if(Co&~i){this.prodParam.enter(i|Co);try{return l()}finally{this.prodParam.exit()}}return l()}disallowInAnd(l){let i=this.prodParam.currentFlags();if(Co&i){this.prodParam.enter(i&~Co);try{return l()}finally{this.prodParam.exit()}}return l()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(l){let i=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let c=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,l);return this.state.inFSharpPipelineDirectBody=a,c}parseModuleExpression(){this.expectPlugin("moduleBlocks");let l=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let i=this.startNodeAt(this.state.endLoc);this.next();let a=this.initializeScopes(!0);this.enterInitialScopes();try{l.body=this.parseProgram(i,8,"module")}finally{a()}return this.finishNode(l,"ModuleExpression")}parsePropertyNamePrefixOperator(l){}},Ls={kind:"loop"},Gp={kind:"switch"},Wp=/[\uD800-\uDFFF]/u,za=/in(?:stanceof)?/y;function Qc(l,i){for(let a=0;a1&&arguments[1]!==void 0?arguments[1]:137,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(l.sourceType=a,l.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(l,!0,!0,i),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[m,y]of Array.from(this.scope.undefinedExports))this.raise(mt.ModuleExportUndefined,{at:y,localName:m});let c;return i===137?c=this.finishNode(l,"Program"):c=this.finishNodeAt(l,"Program",$i(this.state.startLoc,-1)),c}stmtToDirective(l){let i=l;i.type="Directive",i.value=i.expression,delete i.expression;let a=i.value,c=a.value,m=this.input.slice(a.start,a.end),y=a.value=m.slice(1,-1);return this.addExtra(a,"raw",m),this.addExtra(a,"rawValue",y),this.addExtra(a,"expressionValue",c),a.type="DirectiveLiteral",i}parseInterpreterDirective(){if(!this.match(28))return null;let l=this.startNode();return l.value=this.state.value,this.next(),this.finishNode(l,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(l,i){if(ws(l)){if(za.lastIndex=i,za.test(this.input)){let a=this.codePointAtPos(za.lastIndex);if(!ho(a)&&a!==92)return!1}return!0}else return l===92}chStartsBindingPattern(l){return l===91||l===123}hasFollowingBindingAtom(){let l=this.nextTokenStart(),i=this.codePointAtPos(l);return this.chStartsBindingPattern(i)||this.chStartsBindingIdentifier(i,l)}hasFollowingBindingIdentifier(){let l=this.nextTokenStart(),i=this.codePointAtPos(l);return this.chStartsBindingIdentifier(i,l)}startsUsingForOf(){let l=this.lookahead();return l.type===101&&!l.containsEsc?!1:(this.expectPlugin("explicitResourceManagement"),!0)}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=0;return this.options.annexB&&!this.state.strict&&(i|=4,l&&(i|=8)),this.parseStatementLike(i)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(l){let i=null;return this.match(26)&&(i=this.parseDecorators(!0)),this.parseStatementContent(l,i)}parseStatementContent(l,i){let a=this.state.type,c=this.startNode(),m=!!(l&2),y=!!(l&4),C=l&1;switch(a){case 60:return this.parseBreakContinueStatement(c,!0);case 63:return this.parseBreakContinueStatement(c,!1);case 64:return this.parseDebuggerStatement(c);case 90:return this.parseDoWhileStatement(c);case 91:return this.parseForStatement(c);case 68:if(this.lookaheadCharCode()===46)break;return y||this.raise(this.state.strict?mt.StrictFunction:this.options.annexB?mt.SloppyFunctionAnnexB:mt.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(c,!1,!m&&y);case 80:return m||this.unexpected(),this.parseClass(this.maybeTakeDecorators(i,c),!0);case 69:return this.parseIfStatement(c);case 70:return this.parseReturnStatement(c);case 71:return this.parseSwitchStatement(c);case 72:return this.parseThrowStatement(c);case 73:return this.parseTryStatement(c);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(mt.UnexpectedUsingDeclaration,{at:this.state.startLoc}):m||this.raise(mt.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(c,"using");case 99:{if(this.state.containsEsc)break;let S=this.nextTokenStart(),k=this.codePointAtPos(S);if(k!==91&&(!m&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(k,S)&&k!==123))break}case 75:m||this.raise(mt.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let S=this.state.value;return this.parseVarStatement(c,S)}case 92:return this.parseWhileStatement(c);case 76:return this.parseWithStatement(c);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(c);case 83:{let S=this.lookaheadCharCode();if(S===40||S===46)break}case 82:{!this.options.allowImportExportEverywhere&&!C&&this.raise(mt.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let S;return a===83?(S=this.parseImport(c),S.type==="ImportDeclaration"&&(!S.importKind||S.importKind==="value")&&(this.sawUnambiguousESM=!0)):(S=this.parseExport(c,i),(S.type==="ExportNamedDeclaration"&&(!S.exportKind||S.exportKind==="value")||S.type==="ExportAllDeclaration"&&(!S.exportKind||S.exportKind==="value")||S.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(S),S}default:if(this.isAsyncFunction())return m||this.raise(mt.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(c,!0,!m&&y)}let x=this.state.value,A=this.parseExpression();return Et(a)&&A.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(c,x,A,l):this.parseExpressionStatement(c,A,i)}assertModuleNodeAllowed(l){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(mt.ImportOutsideModule,{at:l})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(l,i,a){return l&&(i.decorators&&i.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(mt.DecoratorsBeforeAfterExport,{at:i.decorators[0]}),i.decorators.unshift(...l)):i.decorators=l,this.resetStartLocationFromNode(i,l[0]),a&&this.resetStartLocationFromNode(a,i)),i}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(l){let i=[];do i.push(this.parseDecorator());while(this.match(26));if(this.match(82))l||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(mt.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(mt.UnexpectedLeadingDecorator,{at:this.state.startLoc});return i}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let l=this.startNode();if(this.next(),this.hasPlugin("decorators")){let i=this.state.startLoc,a;if(this.match(10)){let c=this.state.startLoc;this.next(),a=this.parseExpression(),this.expect(11),a=this.wrapParenthesis(c,a);let m=this.state.startLoc;l.expression=this.parseMaybeDecoratorArguments(a),this.getPluginOption("decorators","allowCallParenthesized")===!1&&l.expression!==a&&this.raise(mt.DecoratorArgumentsOutsideParentheses,{at:m})}else{for(a=this.parseIdentifier(!1);this.eat(16);){let c=this.startNodeAt(i);c.object=a,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),c.property=this.parsePrivateName()):c.property=this.parseIdentifier(!0),c.computed=!1,a=this.finishNode(c,"MemberExpression")}l.expression=this.parseMaybeDecoratorArguments(a)}}else l.expression=this.parseExprSubscripts();return this.finishNode(l,"Decorator")}parseMaybeDecoratorArguments(l){if(this.eat(10)){let i=this.startNodeAtNode(l);return i.callee=l,i.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return l}parseBreakContinueStatement(l,i){return this.next(),this.isLineTerminator()?l.label=null:(l.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(l,i),this.finishNode(l,i?"BreakStatement":"ContinueStatement")}verifyBreakContinue(l,i){let a;for(a=0;athis.parseStatement()),this.state.labels.pop(),this.expect(92),l.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(l,"DoWhileStatement")}parseForStatement(l){this.next(),this.state.labels.push(Ls);let i=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(i=this.state.lastTokStartLoc),this.scope.enter(ia),this.expect(10),this.match(13))return i!==null&&this.unexpected(i),this.parseFor(l,null);let a=this.isContextual(99),c=this.isContextual(105)&&!this.hasFollowingLineBreak(),m=a&&this.hasFollowingBindingAtom()||c&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||m){let S=this.startNode(),k=this.state.value;this.next(),this.parseVar(S,!0,k);let O=this.finishNode(S,"VariableDeclaration"),G=this.match(58);return G&&c&&this.raise(mt.ForInUsing,{at:O}),(G||this.isContextual(101))&&O.declarations.length===1?this.parseForIn(l,O,i):(i!==null&&this.unexpected(i),this.parseFor(l,O))}let y=this.isContextual(95),C=new Mu,x=this.parseExpression(!0,C),A=this.isContextual(101);if(A&&(a&&this.raise(mt.ForOfLet,{at:x}),i===null&&y&&x.type==="Identifier"&&this.raise(mt.ForOfAsync,{at:x})),A||this.match(58)){this.checkDestructuringPrivate(C),this.toAssignable(x,!0);let S=A?"ForOfStatement":"ForInStatement";return this.checkLVal(x,{in:{type:S}}),this.parseForIn(l,x,i)}else this.checkExpressionErrors(C,!0);return i!==null&&this.unexpected(i),this.parseFor(l,x)}parseFunctionStatement(l,i,a){return this.next(),this.parseFunction(l,1|(a?2:0)|(i?8:0))}parseIfStatement(l){return this.next(),l.test=this.parseHeaderExpression(),l.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),l.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(l,"IfStatement")}parseReturnStatement(l){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(mt.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?l.argument=null:(l.argument=this.parseExpression(),this.semicolon()),this.finishNode(l,"ReturnStatement")}parseSwitchStatement(l){this.next(),l.discriminant=this.parseHeaderExpression();let i=l.cases=[];this.expect(5),this.state.labels.push(Gp),this.scope.enter(ia);let a;for(let c;!this.match(8);)if(this.match(61)||this.match(65)){let m=this.match(61);a&&this.finishNode(a,"SwitchCase"),i.push(a=this.startNode()),a.consequent=[],this.next(),m?a.test=this.parseExpression():(c&&this.raise(mt.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),c=!0,a.test=null),this.expect(14)}else a?a.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(l,"SwitchStatement")}parseThrowStatement(l){return this.next(),this.hasPrecedingLineBreak()&&this.raise(mt.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),l.argument=this.parseExpression(),this.semicolon(),this.finishNode(l,"ThrowStatement")}parseCatchClauseParam(){let l=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&l.type==="Identifier"?Au:0),this.checkLVal(l,{in:{type:"CatchClause"},binding:Vo}),l}parseTryStatement(l){if(this.next(),l.block=this.parseBlock(),l.handler=null,this.match(62)){let i=this.startNode();this.next(),this.match(10)?(this.expect(10),i.param=this.parseCatchClauseParam(),this.expect(11)):(i.param=null,this.scope.enter(ia)),i.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),l.handler=this.finishNode(i,"CatchClause")}return l.finalizer=this.eat(67)?this.parseBlock():null,!l.handler&&!l.finalizer&&this.raise(mt.NoCatchOrFinally,{at:l}),this.finishNode(l,"TryStatement")}parseVarStatement(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(l,!1,i,a),this.semicolon(),this.finishNode(l,"VariableDeclaration")}parseWhileStatement(l){return this.next(),l.test=this.parseHeaderExpression(),this.state.labels.push(Ls),l.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(l,"WhileStatement")}parseWithStatement(l){return this.state.strict&&this.raise(mt.StrictWith,{at:this.state.startLoc}),this.next(),l.object=this.parseHeaderExpression(),l.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(l,"WithStatement")}parseEmptyStatement(l){return this.next(),this.finishNode(l,"EmptyStatement")}parseLabeledStatement(l,i,a,c){for(let y of this.state.labels)y.name===i&&this.raise(mt.LabelRedeclaration,{at:a,labelName:i});let m=pn(this.state.type)?"loop":this.match(71)?"switch":null;for(let y=this.state.labels.length-1;y>=0;y--){let C=this.state.labels[y];if(C.statementStart===l.start)C.statementStart=this.state.start,C.kind=m;else break}return this.state.labels.push({name:i,kind:m,statementStart:this.state.start}),l.body=c&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),l.label=a,this.finishNode(l,"LabeledStatement")}parseExpressionStatement(l,i,a){return l.expression=i,this.semicolon(),this.finishNode(l,"ExpressionStatement")}parseBlock(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=arguments.length>2?arguments[2]:void 0,c=this.startNode();return l&&this.state.strictErrors.clear(),this.expect(5),i&&this.scope.enter(ia),this.parseBlockBody(c,l,!1,8,a),i&&this.scope.exit(),this.finishNode(c,"BlockStatement")}isValidDirective(l){return l.type==="ExpressionStatement"&&l.expression.type==="StringLiteral"&&!l.expression.extra.parenthesized}parseBlockBody(l,i,a,c,m){let y=l.body=[],C=l.directives=[];this.parseBlockOrModuleBlockBody(y,i?C:void 0,a,c,m)}parseBlockOrModuleBlockBody(l,i,a,c,m){let y=this.state.strict,C=!1,x=!1;for(;!this.match(c);){let A=a?this.parseModuleItem():this.parseStatementListItem();if(i&&!x){if(this.isValidDirective(A)){let S=this.stmtToDirective(A);i.push(S),!C&&S.value.value==="use strict"&&(C=!0,this.setStrict(!0));continue}x=!0,this.state.strictErrors.clear()}l.push(A)}m&&m.call(this,C),y||this.setStrict(!1),this.next()}parseFor(l,i){return l.init=i,this.semicolon(!1),l.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),l.update=this.match(11)?null:this.parseExpression(),this.expect(11),l.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(l,"ForStatement")}parseForIn(l,i,a){let c=this.match(58);return this.next(),c?a!==null&&this.unexpected(a):l.await=a!==null,i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!c||!this.options.annexB||this.state.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")&&this.raise(mt.ForInOfLoopInitializer,{at:i,type:c?"ForInStatement":"ForOfStatement"}),i.type==="AssignmentPattern"&&this.raise(mt.InvalidLhs,{at:i,ancestor:{type:"ForStatement"}}),l.left=i,l.right=c?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),l.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(l,c?"ForInStatement":"ForOfStatement")}parseVar(l,i,a){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,m=l.declarations=[];for(l.kind=a;;){let y=this.startNode();if(this.parseVarId(y,a),y.init=this.eat(29)?i?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,y.init===null&&!c&&(y.id.type!=="Identifier"&&!(i&&(this.match(58)||this.isContextual(101)))?this.raise(mt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):a==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(mt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),m.push(this.finishNode(y,"VariableDeclarator")),!this.eat(12))break}return l}parseVarId(l,i){i==="using"&&!this.inModule&&this.match(96)&&this.raise(mt.AwaitInUsingBinding,{at:this.state.startLoc});let a=this.parseBindingAtom();this.checkLVal(a,{in:{type:"VariableDeclarator"},binding:i==="var"?qo:Gs}),l.id=a}parseAsyncFunctionExpression(l){return this.parseFunction(l,8)}parseFunction(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=i&2,c=!!(i&1),m=c&&!(i&4),y=!!(i&8);this.initFunction(l,y),this.match(55)&&(a&&this.raise(mt.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),l.generator=!0),c&&(l.id=this.parseFunctionId(m));let C=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(ks),this.prodParam.enter(Ou(y,l.generator)),c||(l.id=this.parseFunctionId()),this.parseFunctionParams(l,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(l,c?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),c&&!a&&this.registerFunctionStatementId(l),this.state.maybeInArrowParameters=C,l}parseFunctionId(l){return l||Et(this.state.type)?this.parseIdentifier():null}parseFunctionParams(l,i){this.expect(10),this.expressionScope.enter(vl()),l.params=this.parseBindingList(11,41,2|(i?4:0)),this.expressionScope.exit()}registerFunctionStatementId(l){l.id&&this.scope.declareName(l.id.name,!this.options.annexB||this.state.strict||l.generator||l.async?this.scope.treatFunctionsAsVar?qo:Gs:ql,l.id.loc.start)}parseClass(l,i,a){this.next();let c=this.state.strict;return this.state.strict=!0,this.parseClassId(l,i,a),this.parseClassSuper(l),l.body=this.parseClassBody(!!l.superClass,c),this.finishNode(l,i?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(l){return!l.computed&&!l.static&&(l.key.name==="constructor"||l.key.value==="constructor")}parseClassBody(l,i){this.classScope.enter();let a={hadConstructor:!1,hadSuperClass:l},c=[],m=this.startNode();if(m.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(c.length>0)throw this.raise(mt.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){c.push(this.parseDecorator());continue}let y=this.startNode();c.length&&(y.decorators=c,this.resetStartLocationFromNode(y,c[0]),c=[]),this.parseClassMember(m,y,a),y.kind==="constructor"&&y.decorators&&y.decorators.length>0&&this.raise(mt.DecoratorConstructor,{at:y})}}),this.state.strict=i,this.next(),c.length)throw this.raise(mt.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(m,"ClassBody")}parseClassMemberFromModifier(l,i){let a=this.parseIdentifier(!0);if(this.isClassMethod()){let c=i;return c.kind="method",c.computed=!1,c.key=a,c.static=!1,this.pushClassMethod(l,c,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let c=i;return c.computed=!1,c.key=a,c.static=!1,l.body.push(this.parseClassProperty(c)),!0}return this.resetPreviousNodeTrailingComments(a),!1}parseClassMember(l,i,a){let c=this.isContextual(104);if(c){if(this.parseClassMemberFromModifier(l,i))return;if(this.eat(5)){this.parseClassStaticBlock(l,i);return}}this.parseClassMemberWithIsStatic(l,i,a,c)}parseClassMemberWithIsStatic(l,i,a,c){let m=i,y=i,C=i,x=i,A=i,S=m,k=m;if(i.static=c,this.parsePropertyNamePrefixOperator(i),this.eat(55)){S.kind="method";let U=this.match(136);if(this.parseClassElementName(S),U){this.pushClassPrivateMethod(l,y,!0,!1);return}this.isNonstaticConstructor(m)&&this.raise(mt.ConstructorIsGenerator,{at:m.key}),this.pushClassMethod(l,m,!0,!1,!1,!1);return}let O=Et(this.state.type)&&!this.state.containsEsc,G=this.match(136),z=this.parseClassElementName(i),q=this.state.startLoc;if(this.parsePostMemberNameModifiers(k),this.isClassMethod()){if(S.kind="method",G){this.pushClassPrivateMethod(l,y,!1,!1);return}let U=this.isNonstaticConstructor(m),$=!1;U&&(m.kind="constructor",a.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(mt.DuplicateConstructor,{at:z}),U&&this.hasPlugin("typescript")&&i.override&&this.raise(mt.OverrideOnConstructor,{at:z}),a.hadConstructor=!0,$=a.hadSuperClass),this.pushClassMethod(l,m,!1,!1,U,$)}else if(this.isClassProperty())G?this.pushClassPrivateProperty(l,x):this.pushClassProperty(l,C);else if(O&&z.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(z);let U=this.eat(55);k.optional&&this.unexpected(q),S.kind="method";let $=this.match(136);this.parseClassElementName(S),this.parsePostMemberNameModifiers(k),$?this.pushClassPrivateMethod(l,y,U,!0):(this.isNonstaticConstructor(m)&&this.raise(mt.ConstructorIsAsync,{at:m.key}),this.pushClassMethod(l,m,U,!0,!1,!1))}else if(O&&(z.name==="get"||z.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(z),S.kind=z.name;let U=this.match(136);this.parseClassElementName(m),U?this.pushClassPrivateMethod(l,y,!1,!1):(this.isNonstaticConstructor(m)&&this.raise(mt.ConstructorIsAccessor,{at:m.key}),this.pushClassMethod(l,m,!1,!1,!1,!1)),this.checkGetterSetterParams(m)}else if(O&&z.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(z);let U=this.match(136);this.parseClassElementName(C),this.pushClassAccessorProperty(l,A,U)}else this.isLineTerminator()?G?this.pushClassPrivateProperty(l,x):this.pushClassProperty(l,C):this.unexpected()}parseClassElementName(l){let{type:i,value:a}=this.state;if((i===130||i===131)&&l.static&&a==="prototype"&&this.raise(mt.StaticPrototype,{at:this.state.startLoc}),i===136){a==="constructor"&&this.raise(mt.ConstructorClassPrivateField,{at:this.state.startLoc});let c=this.parsePrivateName();return l.key=c,c}return this.parsePropertyName(l)}parseClassStaticBlock(l,i){var a;this.scope.enter(Fs|zo|go);let c=this.state.labels;this.state.labels=[],this.prodParam.enter(Do);let m=i.body=[];this.parseBlockOrModuleBlockBody(m,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=c,l.body.push(this.finishNode(i,"StaticBlock")),(a=i.decorators)!=null&&a.length&&this.raise(mt.DecoratorStaticBlock,{at:i})}pushClassProperty(l,i){!i.computed&&(i.key.name==="constructor"||i.key.value==="constructor")&&this.raise(mt.ConstructorClassField,{at:i.key}),l.body.push(this.parseClassProperty(i))}pushClassPrivateProperty(l,i){let a=this.parseClassPrivateProperty(i);l.body.push(a),this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),Xo,a.key.loc.start)}pushClassAccessorProperty(l,i,a){if(!a&&!i.computed){let m=i.key;(m.name==="constructor"||m.value==="constructor")&&this.raise(mt.ConstructorClassField,{at:m})}let c=this.parseClassAccessorProperty(i);l.body.push(c),a&&this.classScope.declarePrivateName(this.getPrivateNameSV(c.key),Xo,c.key.loc.start)}pushClassMethod(l,i,a,c,m,y){l.body.push(this.parseMethod(i,a,c,m,y,"ClassMethod",!0))}pushClassPrivateMethod(l,i,a,c){let m=this.parseMethod(i,a,c,!1,!1,"ClassPrivateMethod",!0);l.body.push(m);let y=m.kind==="get"?m.static?La:yo:m.kind==="set"?m.static?ll:ku:Xo;this.declareClassPrivateMethodInScope(m,y)}declareClassPrivateMethodInScope(l,i){this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),i,l.key.loc.start)}parsePostMemberNameModifiers(l){}parseClassPrivateProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassPrivateProperty")}parseClassProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassProperty")}parseClassAccessorProperty(l){return this.parseInitializer(l),this.semicolon(),this.finishNode(l,"ClassAccessorProperty")}parseInitializer(l){this.scope.enter(Fs|go),this.expressionScope.enter(Mc()),this.prodParam.enter(Do),l.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(l,i,a){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Na;if(Et(this.state.type))l.id=this.parseIdentifier(),i&&this.declareNameFromIdentifier(l.id,c);else if(a||!i)l.id=null;else throw this.raise(mt.MissingClassName,{at:this.state.startLoc})}parseClassSuper(l){l.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(l,i){let a=this.maybeParseExportDefaultSpecifier(l),c=!a||this.eat(12),m=c&&this.eatExportStar(l),y=m&&this.maybeParseExportNamespaceSpecifier(l),C=c&&(!y||this.eat(12)),x=a||m;if(m&&!y){if(a&&this.unexpected(),i)throw this.raise(mt.UnsupportedDecoratorExport,{at:l});return this.parseExportFrom(l,!0),this.finishNode(l,"ExportAllDeclaration")}let A=this.maybeParseExportNamedSpecifiers(l);a&&c&&!m&&!A&&this.unexpected(null,5),y&&C&&this.unexpected(null,97);let S;if(x||A){if(S=!1,i)throw this.raise(mt.UnsupportedDecoratorExport,{at:l});this.parseExportFrom(l,x)}else S=this.maybeParseExportDeclaration(l);if(x||A||S){var k;let O=l;if(this.checkExport(O,!0,!1,!!O.source),((k=O.declaration)==null?void 0:k.type)==="ClassDeclaration")this.maybeTakeDecorators(i,O.declaration,O);else if(i)throw this.raise(mt.UnsupportedDecoratorExport,{at:l});return this.finishNode(O,"ExportNamedDeclaration")}if(this.eat(65)){let O=l,G=this.parseExportDefaultExpression();if(O.declaration=G,G.type==="ClassDeclaration")this.maybeTakeDecorators(i,G,O);else if(i)throw this.raise(mt.UnsupportedDecoratorExport,{at:l});return this.checkExport(O,!0,!0),this.finishNode(O,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(l){return this.eat(55)}maybeParseExportDefaultSpecifier(l){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=this.parseIdentifier(!0),l.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(l){if(this.isContextual(93)){l.specifiers||(l.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),l.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(l){if(this.match(5)){l.specifiers||(l.specifiers=[]);let i=l.exportKind==="type";return l.specifiers.push(...this.parseExportSpecifiers(i)),l.source=null,l.declaration=null,this.hasPlugin("importAssertions")&&(l.assertions=[]),!0}return!1}maybeParseExportDeclaration(l){return this.shouldParseExportDeclaration()?(l.specifiers=[],l.source=null,this.hasPlugin("importAssertions")&&(l.assertions=[]),l.declaration=this.parseExportDeclaration(l),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let l=this.nextTokenStart();return!fl.test(this.input.slice(this.state.pos,l))&&this.isUnparsedContextual(l,"function")}parseExportDefaultExpression(){let l=this.startNode();if(this.match(68))return this.next(),this.parseFunction(l,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(l,13);if(this.match(80))return this.parseClass(l,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(mt.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(mt.UnsupportedDefaultExport,{at:this.state.startLoc});let i=this.parseMaybeAssignAllowIn();return this.semicolon(),i}parseExportDeclaration(l){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:l}=this.state;if(Et(l)){if(l===95&&!this.state.containsEsc||l===99)return!1;if((l===128||l===127)&&!this.state.containsEsc){let{type:c}=this.lookahead();if(Et(c)&&c!==97||c===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let i=this.nextTokenStart(),a=this.isUnparsedContextual(i,"from");if(this.input.charCodeAt(i)===44||Et(this.state.type)&&a)return!0;if(this.match(65)&&a){let c=this.input.charCodeAt(this.nextTokenStartSince(i+4));return c===34||c===39}return!1}parseExportFrom(l,i){if(this.eatContextual(97)){l.source=this.parseImportSource(),this.checkExport(l);let a=this.maybeParseImportAssertions();a&&(l.assertions=a,this.checkJSONModuleImport(l))}else i&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:l}=this.state;return l===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(mt.DecoratorBeforeExport,{at:this.state.startLoc}),!0):l===74||l===75||l===68||l===80||this.isLet()||this.isAsyncFunction()}checkExport(l,i,a,c){if(i){if(a){if(this.checkDuplicateExports(l,"default"),this.hasPlugin("exportDefaultFrom")){var m;let y=l.declaration;y.type==="Identifier"&&y.name==="from"&&y.end-y.start===4&&!((m=y.extra)!=null&&m.parenthesized)&&this.raise(mt.ExportDefaultFromAsIdentifier,{at:y})}}else if(l.specifiers&&l.specifiers.length)for(let y of l.specifiers){let{exported:C}=y,x=C.type==="Identifier"?C.name:C.value;if(this.checkDuplicateExports(y,x),!c&&y.local){let{local:A}=y;A.type!=="Identifier"?this.raise(mt.ExportBindingIsString,{at:y,localName:A.value,exportName:x}):(this.checkReservedWord(A.name,A.loc.start,!0,!1),this.scope.checkLocalExport(A))}}else if(l.declaration){if(l.declaration.type==="FunctionDeclaration"||l.declaration.type==="ClassDeclaration"){let y=l.declaration.id;if(!y)throw new Error("Assertion failure");this.checkDuplicateExports(l,y.name)}else if(l.declaration.type==="VariableDeclaration")for(let y of l.declaration.declarations)this.checkDeclaration(y.id)}}}checkDeclaration(l){if(l.type==="Identifier")this.checkDuplicateExports(l,l.name);else if(l.type==="ObjectPattern")for(let i of l.properties)this.checkDeclaration(i);else if(l.type==="ArrayPattern")for(let i of l.elements)i&&this.checkDeclaration(i);else l.type==="ObjectProperty"?this.checkDeclaration(l.value):l.type==="RestElement"?this.checkDeclaration(l.argument):l.type==="AssignmentPattern"&&this.checkDeclaration(l.left)}checkDuplicateExports(l,i){this.exportedIdentifiers.has(i)&&(i==="default"?this.raise(mt.DuplicateDefaultExport,{at:l}):this.raise(mt.DuplicateExport,{at:l,exportName:i})),this.exportedIdentifiers.add(i)}parseExportSpecifiers(l){let i=[],a=!0;for(this.expect(5);!this.eat(8);){if(a)a=!1;else if(this.expect(12),this.eat(8))break;let c=this.isContextual(128),m=this.match(131),y=this.startNode();y.local=this.parseModuleExportName(),i.push(this.parseExportSpecifier(y,m,l,c))}return i}parseExportSpecifier(l,i,a,c){return this.eatContextual(93)?l.exported=this.parseModuleExportName():i?l.exported=Rc(l.local):l.exported||(l.exported=qs(l.local)),this.finishNode(l,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let l=this.parseStringLiteral(this.state.value),i=l.value.match(Wp);return i&&this.raise(mt.ModuleExportNameHasLoneSurrogate,{at:l,surrogateCharCode:i[0].charCodeAt(0)}),l}return this.parseIdentifier(!0)}isJSONModuleImport(l){return l.assertions!=null?l.assertions.some(i=>{let{key:a,value:c}=i;return c.value==="json"&&(a.type==="Identifier"?a.name==="type":a.value==="type")}):!1}checkImportReflection(l){if(l.module){var i;(l.specifiers.length!==1||l.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(mt.ImportReflectionNotBinding,{at:l.specifiers[0].loc.start}),((i=l.assertions)==null?void 0:i.length)>0&&this.raise(mt.ImportReflectionHasAssertion,{at:l.specifiers[0].loc.start})}}checkJSONModuleImport(l){if(this.isJSONModuleImport(l)&&l.type!=="ExportAllDeclaration"){let{specifiers:i}=l;if(i!=null){let a=i.find(c=>{let m;if(c.type==="ExportSpecifier"?m=c.local:c.type==="ImportSpecifier"&&(m=c.imported),m!==void 0)return m.type==="Identifier"?m.name!=="default":m.value!=="default"});a!==void 0&&this.raise(mt.ImportJSONBindingNotDefault,{at:a.loc.start})}}}parseMaybeImportReflection(l){let i=!1;if(this.isContextual(125)){let a=this.lookahead(),c=a.type;Et(c)?(c!==97||this.input.charCodeAt(this.nextTokenStartSince(a.end))===102)&&(i=!0):c!==12&&(i=!0)}i?(this.expectPlugin("importReflection"),this.next(),l.module=!0):this.hasPlugin("importReflection")&&(l.module=!1)}parseImport(l){if(l.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(l);let a=!this.maybeParseDefaultImportSpecifier(l)||this.eat(12),c=a&&this.maybeParseStarImportSpecifier(l);a&&!c&&this.parseNamedImportSpecifiers(l),this.expectContextual(97)}l.source=this.parseImportSource();let i=this.maybeParseImportAssertions();if(i)l.assertions=i;else{let a=this.maybeParseModuleAttributes();a&&(l.attributes=a)}return this.checkImportReflection(l),this.checkJSONModuleImport(l),this.semicolon(),this.finishNode(l,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(l){return Et(this.state.type)}parseImportSpecifierLocal(l,i,a){i.local=this.parseIdentifier(),l.specifiers.push(this.finishImportSpecifier(i,a))}finishImportSpecifier(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gs;return this.checkLVal(l.local,{in:{type:i},binding:a}),this.finishNode(l,i)}parseAssertEntries(){let l=[],i=new Set;do{if(this.match(8))break;let a=this.startNode(),c=this.state.value;if(i.has(c)&&this.raise(mt.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:c}),i.add(c),this.match(131)?a.key=this.parseStringLiteral(c):a.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(mt.ModuleAttributeInvalidValue,{at:this.state.startLoc});a.value=this.parseStringLiteral(this.state.value),l.push(this.finishNode(a,"ImportAttribute"))}while(this.eat(12));return l}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let l=[],i=new Set;do{let a=this.startNode();if(a.key=this.parseIdentifier(!0),a.key.name!=="type"&&this.raise(mt.ModuleAttributeDifferentFromType,{at:a.key}),i.has(a.key.name)&&this.raise(mt.ModuleAttributesWithDuplicateKeys,{at:a.key,key:a.key.name}),i.add(a.key.name),this.expect(14),!this.match(131))throw this.raise(mt.ModuleAttributeInvalidValue,{at:this.state.startLoc});a.value=this.parseStringLiteral(this.state.value),this.finishNode(a,"ImportAttribute"),l.push(a)}while(this.eat(12));return l}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let l=this.parseAssertEntries();return this.eat(8),l}maybeParseDefaultImportSpecifier(l){return this.shouldParseDefaultImport(l)?(this.parseImportSpecifierLocal(l,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(l){if(this.match(55)){let i=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(l,i,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(l){let i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else{if(this.eat(14))throw this.raise(mt.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let a=this.startNode(),c=this.match(131),m=this.isContextual(128);a.imported=this.parseModuleExportName();let y=this.parseImportSpecifier(a,c,l.importKind==="type"||l.importKind==="typeof",m,void 0);l.specifiers.push(y)}}parseImportSpecifier(l,i,a,c,m){if(this.eatContextual(93))l.local=this.parseIdentifier();else{let{imported:y}=l;if(i)throw this.raise(mt.ImportBindingIsString,{at:l,importName:y.value});this.checkReservedWord(y.name,l.loc.start,!0,!0),l.local||(l.local=qs(y))}return this.finishImportSpecifier(l,"ImportSpecifier",m)}isThisParam(l){return l.type==="Identifier"&&l.name==="this"}},ic=class extends Zc{constructor(l,i){l=Cr(l),super(l,i),this.options=l,this.initializeScopes(),this.plugins=xl(this.options.plugins),this.filename=l.sourceFilename}getScopeHandler(){return la}parse(){this.enterInitialScopes();let l=this.startNode(),i=this.startNode();return this.nextToken(),l.errors=null,this.parseTopLevel(l,i),l.errors=this.state.errors,l}};function xl(l){let i=new Map;for(let a of l){let[c,m]=Array.isArray(a)?a:[a,{}];i.has(c)||i.set(c,m||{})}return i}function iu(l,i){var a;if(((a=i)==null?void 0:a.sourceType)==="unambiguous"){i=Object.assign({},i);try{i.sourceType="module";let c=Uu(i,l),m=c.parse();if(c.sawUnambiguousESM)return m;if(c.ambiguousScriptDifferentAst)try{return i.sourceType="script",Uu(i,l).parse()}catch{}else m.program.sourceType="script";return m}catch(c){try{return i.sourceType="script",Uu(i,l).parse()}catch{}throw c}}else return Uu(i,l).parse()}function sc(l,i){let a=Uu(i,l);return a.options.strictMode&&(a.state.strict=!0),a.getExpression()}function $a(l){let i={};for(let a of Object.keys(l))i[a]=Ts(l[a]);return i}var ac=$a(_t);function Uu(l,i){let a=ic;return l!=null&&l.plugins&&(Ha(l.plugins),a=ep(l.plugins)),new a(l,i)}var su={};function ep(l){let i=Cl.filter(m=>Ii(l,m)),a=i.join("/"),c=su[a];if(!c){c=ic;for(let m of i)c=Is[m](c);su[a]=c}return c}zr.parse=iu,zr.parseExpression=sc,zr.tokTypes=ac}}),Rl=ar({"src/language-js/parse/json.js"(zr,Dr){je();var Cr=to(),or=ro(),tr=Lo(),mr=Rs();function h(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:I=!0}=K;return function(oe){let{parseExpression:de}=Ta(),it;try{it=de(oe,{tokens:!0,ranges:!0})}catch(at){throw mr(at)}if(!I&&Cr(it.comments))throw d(it.comments[0],"Comment");return T(it),it}}function d(K,I){let[oe,de]=[K.loc.start,K.loc.end].map(it=>{let{line:at,column:Qe}=it;return{line:at,column:Qe+1}});return or(`${I} is not allowed in JSON.`,{start:oe,end:de})}function T(K){switch(K.type){case"ArrayExpression":for(let I of K.elements)I!==null&&T(I);return;case"ObjectExpression":for(let I of K.properties)T(I);return;case"ObjectProperty":if(K.computed)throw d(K.key,"Computed key");if(K.shorthand)throw d(K.key,"Shorthand property");K.key.type!=="Identifier"&&T(K.key),T(K.value);return;case"UnaryExpression":{let{operator:I,argument:oe}=K;if(I!=="+"&&I!=="-")throw d(K,`Operator '${K.operator}'`);if(oe.type==="NumericLiteral"||oe.type==="Identifier"&&(oe.name==="Infinity"||oe.name==="NaN"))return;throw d(oe,`Operator '${I}' before '${oe.type}'`)}case"Identifier":if(K.name!=="Infinity"&&K.name!=="NaN"&&K.name!=="undefined")throw d(K,`Identifier '${K.name}'`);return;case"TemplateLiteral":if(Cr(K.expressions))throw d(K.expressions[0],"'TemplateLiteral' with expression");for(let I of K.quasis)T(I);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw d(K,`'${K.type}'`)}}var w=h(),M={json:tr({parse:w,hasPragma(){return!0}}),json5:tr(w),"json-stringify":tr({parse:h({allowComments:!1}),astFormat:"estree-json"})};Dr.exports=M}});je();var jl=Ye(),el=Xe(),vu=bt(),ps=Lo(),tl=Rs(),rl=cs(),nl=Rl(),Mo={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},Bo=["recordAndTuple",{syntaxType:"hash"}],Ca="v8intrinsic",io=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],Ui=function(zr){let Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mo;return Object.assign(Object.assign({},Dr),{},{plugins:[...Dr.plugins,...zr]})},so=/@(?:no)?flow\b/;function il(zr,Dr){if(Dr.filepath&&Dr.filepath.endsWith(".js.flow"))return!0;let Cr=el(zr);Cr&&(zr=zr.slice(Cr.length));let or=vu(zr,0);return or!==!1&&(zr=zr.slice(0,or)),so.test(zr)}function Eu(zr,Dr,Cr){let or=Ta()[zr],tr=or(Dr,Cr),mr=tr.errors.find(h=>!Ds.has(h.reasonCode));if(mr)throw mr;return tr}function vi(zr){for(var Dr=arguments.length,Cr=new Array(Dr>1?Dr-1:0),or=1;or2&&arguments[2]!==void 0?arguments[2]:{};if((h.parser==="babel"||h.parser==="__babel_estree")&&il(tr,h))return h.parser="babel-flow",xa(tr,mr,h);let d=Cr;h.__babelSourceType==="script"&&(d=d.map(K=>Object.assign(Object.assign({},K),{},{sourceType:"script"}))),/#[[{]/.test(tr)&&(d=d.map(K=>Ui([Bo],K)));let T=/%[A-Z]/.test(tr);tr.includes("|>")?d=(T?[...io,Ca]:io).flatMap(K=>d.map(I=>Ui([K],I))):T&&(d=d.map(K=>Ui([Ca],K)));let{result:w,error:M}=jl(...d.map(K=>()=>Eu(zr,tr,K)));if(!w)throw tl(M);return h.originalText=tr,rl(w,h)}}var Tn=vi("parse",Ui(["jsx","flow"])),xa=vi("parse",Ui(["jsx",["flow",{all:!0,enums:!0}]])),ao=vi("parse",Ui(["jsx","typescript"]),Ui(["typescript"])),oo=vi("parse",Ui(["jsx","flow","estree"])),hs=vi("parseExpression",Ui(["jsx"])),uo=vi("parseExpression",Ui(["typescript"])),Ds=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),ba=ps(Tn),lo=ps(ao),js=ps(hs),fs=ps(uo);Mt.exports={parsers:Object.assign(Object.assign({babel:ba,"babel-flow":ps(xa),"babel-ts":lo},nl),{},{__js_expression:js,__vue_expression:js,__vue_ts_expression:fs,__vue_event_binding:ba,__vue_ts_event_binding:lo,__babel_estree:ps(oo)})}});return ki()})})(zg);var LE=zg.exports;const OE=Dc(LE),ME=window.React.createContext,BE=window.React.Component,Ud=window.React.createElement,RE=window.React.isValidElement;window.React.useContext;window.React.useState;window.React.useMemo;window.React.forwardRef;const jE=ME(null),Vh={didCatch:!1,error:null};class HE extends BE{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Vh}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,o,g=arguments.length,v=new Array(g),E=0;E0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}const zE=window.React.useEffect,$E=window.React.useState,GE=window.antd.Button;function id({config:e,refreshTag:t}){const[r,o]=$E(null),g=async()=>{const F=localStorage.getItem("react-compile")||"";if(!F)return;const L=new Blob([F],{type:"application/javascript"}),H=URL.createObjectURL(L);try{const ie=await import(H);o(()=>ie.default)}catch(ie){console.error("模块加载失败:",ie)}URL.revokeObjectURL(H)};zE(()=>{g()},[e,t]);const v=F=>{if(!F)return{};const L=Object.keys(F.props||{}).reduce((H,ie)=>{const re=F.props[ie];return(re==null?void 0:re.type)==="static"?H[ie]=re.value:H[ie]=re,H},{});return F.props=L,F},E=aE("CPreview"),b=localStorage.getItem("config-compile"),N=v(e||JSON.parse(b||"{}").config);return wn.jsx("div",{className:"preview",children:wn.jsx(HE,{fallbackRender:({error:F,resetErrorBoundary:L})=>wn.jsxs("div",{children:[wn.jsx("h2",{children:"渲染失败,请检查:"}),wn.jsx("p",{style:{lineHeight:"30px",color:"red"},children:F.message}),wn.jsx(GE,{type:"primary",onClick:L,children:"Try again"})]}),children:r&&wn.jsx(r,{id:E,config:N})})})}const WE=window.React,VE=window.React.forwardRef,zd=window.React.useEffect,qE=window.React.useImperativeHandle,KE=window.React.useRef,Vp=window.React.useState,YE=window.ahooks.useDebounceFn,XE=window.antd,JE=window.antd.Spin,QE=window.dayjs,ZE=window.ahooks.useKeyPress,e9=VE((e,t)=>{const[r,o]=Vp(""),[g,v]=Vp(""),[E,b]=Vp(0),[N,F]=Vp(""),[L,H]=Vp(!0),ie=KE(null);function re(){window.React=window.React||WE,window.dayjs=window.dayjs||QE,window.antd=window.antd||XE}async function Ae(){try{H(!0);const et=localStorage.getItem("react-code");o(et||"")}catch(et){console.error(et)}}zd(()=>{re(),Ae()},[]),qE(t,()=>({getCode(){return r},getCompileCode(){return g},refresh(){b(E+1)}})),ZE(["meta.s"],et=>{try{et.stopPropagation(),et.preventDefault();const Ke=IE.format(r,{parser:"babel",plugins:[OE],useTabs:!1,tabWidth:2,printWidth:80,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,arrowParens:"always",endOfLine:"auto"});o(Ke),F("")}catch(Ke){F(Ke.message),console.error(Ke)}});const $e=(et="")=>{o(et)},Be=async()=>{var et;if(r)try{localStorage.setItem("react-code",r);const Ke=await window.esbuild.build({bundle:!0,format:"esm",platform:"browser",minify:!0,outfile:"out.js",stdin:{contents:r,loader:"tsx"}});H(!1);const Re=((et=Ke.outputFiles)==null?void 0:et[0])||{};v(Re.text),F(""),localStorage.setItem("react-compile",Re.text),b(E+1)}catch(Ke){F(Ke.message),H(!1),console.error(Ke)}};zd(()=>{Be()},[r]);const{run:Ne}=YE($e,{wait:200});return wn.jsx("div",{className:"code-editor",children:wn.jsxs(hu,{children:[wn.jsx(hu.Pane,{preferredSize:"50%",children:wn.jsx(nd,{language:"javascript",value:r,onChange:et=>{H(!0),Ne(et)},options:{lineNumbers:"on",minimap:{enabled:!1}},onMount:et=>ie.current=et})}),wn.jsx(hu.Pane,{preferredSize:"50%",children:wn.jsxs(JE,{spinning:L,tip:"正在编译中...",children:[wn.jsx(id,{refreshTag:E}),N&&wn.jsx("p",{style:{color:"red",lineHeight:"30px",padding:30},children:N})]})})]})})});var $g={exports:{}};/** + * Less - Leaner CSS v4.2.0 + * http://lesscss.org + * + * Copyright (c) 2009-2023, Alexis Sellier + * Licensed under the Apache-2.0 License. + * + * @license Apache-2.0 + */(function(e,t){(function(r,o){e.exports=o()})(y1,function(){function r(){return{javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""}}function o(h){return h.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function g(h,d){if(d){for(var T in d.dataset)if(Object.prototype.hasOwnProperty.call(d.dataset,T))if(T==="env"||T==="dumpLineNumbers"||T==="rootpath"||T==="errorReporting")h[T]=d.dataset[T];else try{h[T]=JSON.parse(d.dataset[T])}catch{}}}var v={createCSS:function(h,d,T){var w=T.href||"",M="less:"+(T.title||o(w)),K=h.getElementById(M),I=!1,oe=h.createElement("style");oe.setAttribute("type","text/css"),T.media&&oe.setAttribute("media",T.media),oe.id=M,oe.styleSheet||(oe.appendChild(h.createTextNode(d)),I=K!==null&&K.childNodes.length>0&&oe.childNodes.length>0&&K.firstChild.nodeValue===oe.firstChild.nodeValue);var de=h.getElementsByTagName("head")[0];if(K===null||I===!1){var it=T&&T.nextSibling||null;it?it.parentNode.insertBefore(oe,it):de.appendChild(oe)}if(K&&I===!1&&K.parentNode.removeChild(K),oe.styleSheet)try{oe.styleSheet.cssText=d}catch{throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(h){var d=h.document;return d.currentScript||function(){var T=d.getElementsByTagName("script");return T[T.length-1]}()}},E=function(h,d){g(d,v.currentScript(h)),d.isFileProtocol===void 0&&(d.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(h.location.protocol)),d.async=d.async||!1,d.fileAsync=d.fileAsync||!1,d.poll=d.poll||(d.isFileProtocol?1e3:1500),d.env=d.env||(h.location.hostname=="127.0.0.1"||h.location.hostname=="0.0.0.0"||h.location.hostname=="localhost"||h.location.port&&h.location.port.length>0||d.isFileProtocol?"development":"production");var T=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(h.location.hash);T&&(d.dumpLineNumbers=T[1]),d.useFileCache===void 0&&(d.useFileCache=!0),d.onReady===void 0&&(d.onReady=!0),d.relativeUrls&&(d.rewriteUrls="all")},b={error:function(h){this._fireEvent("error",h)},warn:function(h){this._fireEvent("warn",h)},info:function(h){this._fireEvent("info",h)},debug:function(h){this._fireEvent("debug",h)},addListener:function(h){this._listeners.push(h)},removeListener:function(h){for(var d=0;d=0;oe--){var de=I[oe];if(de[K?"supportsSync":"supports"](d,T,w,M))return de}return null},h.prototype.addFileManager=function(d){this.fileManagers.push(d)},h.prototype.clearFileManagers=function(){this.fileManagers=[]},h}(),F={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},L={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},H={colors:F,unitConversions:L},ie=function(){function h(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null}return Object.defineProperty(h.prototype,"currentFileInfo",{get:function(){return this.fileInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"index",{get:function(){return this.getIndex()},enumerable:!1,configurable:!0}),h.prototype.setParent=function(d,T){function w(M){M&&M instanceof h&&(M.parent=T)}Array.isArray(d)?d.forEach(w):w(d)},h.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},h.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},h.prototype.isRulesetLike=function(){return!1},h.prototype.toCSS=function(d){var T=[];return this.genCSS(d,{add:function(w,M,K){T.push(w)},isEmpty:function(){return T.length===0}}),T.join("")},h.prototype.genCSS=function(d,T){T.add(this.value)},h.prototype.accept=function(d){this.value=d.visit(this.value)},h.prototype.eval=function(){return this},h.prototype._operate=function(d,T,w,M){switch(T){case"+":return w+M;case"-":return w-M;case"*":return w*M;case"/":return w/M}},h.prototype.fround=function(d,T){var w=d&&d.numPrecision;return w?Number((T+2e-16).toFixed(w)):T},h.compare=function(d,T){if(d.compare&&!(T.type==="Quoted"||T.type==="Anonymous"))return d.compare(T);if(T.compare)return-T.compare(d);if(d.type!==T.type)return;if(d=d.value,T=T.value,!Array.isArray(d))return d===T?0:void 0;if(d.length===T.length){for(var w=0;wT?1:void 0},h.prototype.blocksVisibility=function(){return this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks!==0},h.prototype.addVisibilityBlock=function(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},h.prototype.removeVisibilityBlock=function(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},h.prototype.ensureVisibility=function(){this.nodeVisible=!0},h.prototype.ensureInvisibility=function(){this.nodeVisible=!1},h.prototype.isVisible=function(){return this.nodeVisible},h.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},h.prototype.copyVisibilityInfo=function(d){d&&(this.visibilityBlocks=d.visibilityBlocks,this.nodeVisible=d.nodeVisible)},h}(),re=function(h,d,T){var w=this;Array.isArray(h)?this.rgb=h:h.length>=6?(this.rgb=[],h.match(/.{2}/g).map(function(M,K){K<3?w.rgb.push(parseInt(M,16)):w.alpha=parseInt(M,16)/255})):(this.rgb=[],h.split("").map(function(M,K){K<3?w.rgb.push(parseInt(M+M,16)):w.alpha=parseInt(M+M,16)/255})),this.alpha=this.alpha||(typeof d=="number"?d:1),typeof T<"u"&&(this.value=T)};re.prototype=Object.assign(new ie,{type:"Color",luma:function(){var h=this.rgb[0]/255,d=this.rgb[1]/255,T=this.rgb[2]/255;return h=h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4),d=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4),T=T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4),.2126*h+.7152*d+.0722*T},genCSS:function(h,d){d.add(this.toCSS(h))},toCSS:function(h,d){var T=h&&h.compress&&!d,w,M,K,I=[];if(M=this.fround(h,this.alpha),this.value)if(this.value.indexOf("rgb")===0)M<1&&(K="rgba");else if(this.value.indexOf("hsl")===0)M<1?K="hsla":K="hsl";else return this.value;else M<1&&(K="rgba");switch(K){case"rgba":I=this.rgb.map(function(de){return Ae(Math.round(de),255)}).concat(Ae(M,1));break;case"hsla":I.push(Ae(M,1));case"hsl":w=this.toHSL(),I=[this.fround(h,w.h),this.fround(h,w.s*100)+"%",this.fround(h,w.l*100)+"%"].concat(I)}if(K)return K+"("+I.join(","+(T?"":" "))+")";if(w=this.toRGB(),T){var oe=w.split("");oe[1]===oe[2]&&oe[3]===oe[4]&&oe[5]===oe[6]&&(w="#"+oe[1]+oe[3]+oe[5])}return w},operate:function(h,d,T){for(var w=new Array(3),M=this.alpha*(1-T.alpha)+T.alpha,K=0;K<3;K++)w[K]=this._operate(h,d,this.rgb[K],T.rgb[K]);return new re(w,M)},toRGB:function(){return $e(this.rgb)},toHSL:function(){var h=this.rgb[0]/255,d=this.rgb[1]/255,T=this.rgb[2]/255,w=this.alpha,M=Math.max(h,d,T),K=Math.min(h,d,T),I,oe,de=(M+K)/2,it=M-K;if(M===K)I=oe=0;else{switch(oe=de>.5?it/(2-M-K):it/(M+K),M){case h:I=(d-T)/it+(d=0&&d.charAt(T)!==` +`;)M++;return typeof h=="number"&&(w=(d.slice(0,h).match(/\n/g)||"").length),{line:w,column:M}}function ft(h){var d,T=h.length,w=new Array(T);for(d=0;d|Function):(\d+):(\d+)/,Qt=function(h,d,T){Error.call(this);var w=h.filename||T;if(this.message=h.message,this.stack=h.stack,d&&w){var M=d.contents[w],K=St(h.index,M),I=K.line,oe=K.column,de=h.call&&St(h.call,M).line,it=M?M.split(` +`):"";if(this.type=h.type||"Syntax",this.filename=w,this.index=h.index,this.line=typeof I=="number"?I+1:null,this.column=oe,!this.line&&this.stack){var at=this.stack.match(Te),Qe=new Function("a","throw new Error()"),ee=0;try{Qe()}catch(ke){var ve=ke.stack.match(Te);ee=1-parseInt(ve[2])}at&&(at[2]&&(this.line=parseInt(at[2])+ee),at[3]&&(this.column=parseInt(at[3])))}this.callLine=de+1,this.callExtract=it[de],this.extract=[it[this.line-2],it[this.line-1],it[this.line]]}};if(typeof Object.create>"u"){var Ve=function(){};Ve.prototype=Error.prototype,Qt.prototype=new Ve}else Qt.prototype=Object.create(Error.prototype);Qt.prototype.constructor=Qt,Qt.prototype.toString=function(h){h=h||{};var d="",T=this.extract||[],w=[],M=function(oe){return oe};if(h.stylize){var K=typeof h.stylize;if(K!=="function")throw Error("options.stylize should be a function, got a "+K+"!");M=h.stylize}if(this.line!==null){if(typeof T[0]=="string"&&w.push(M(this.line-1+" "+T[0],"grey")),typeof T[1]=="string"){var I=this.line+" ";T[1]&&(I+=T[1].slice(0,this.column)+M(M(M(T[1].substr(this.column,1),"bold")+T[1].slice(this.column+1),"red"),"inverse")),w.push(I)}typeof T[2]=="string"&&w.push(M(this.line+1+" "+T[2],"grey")),w=w.join(` +`)+M("","reset")+` +`}return d+=M(this.type+"Error: "+this.message,"red"),this.filename&&(d+=M(" in ","red")+this.filename),this.line&&(d+=M(" on line "+this.line+", column "+(this.column+1)+":","grey")),d+=` +`+w,this.callLine&&(d+=M("from ","red")+(this.filename||"")+"/n",d+=M(this.callLine,"grey")+" "+this.callExtract+"/n"),d};var br={visitDeeper:!0},An=!1;function yn(h){return h}function Pn(h,d){var T,w;for(T in h)switch(w=h[T],typeof w){case"function":w.prototype&&w.prototype.type&&(w.prototype.typeIndex=d++);break;case"object":d=Pn(w,d);break}return d}var En=function(){function h(d){this._implementation=d,this._visitInCache={},this._visitOutCache={},An||(Pn(Dt,1),An=!0)}return h.prototype.visit=function(d){if(!d)return d;var T=d.typeIndex;if(!T)return d.value&&d.value.typeIndex&&this.visit(d.value),d;var w=this._implementation,M=this._visitInCache[T],K=this._visitOutCache[T],I=br,oe;if(I.visitDeeper=!0,M||(oe="visit"+d.type,M=w[oe]||yn,K=w[oe+"Out"]||yn,this._visitInCache[T]=M,this._visitOutCache[T]=K),M!==yn){var de=M.call(w,d,I);d&&w.isReplacing&&(d=de)}if(I.visitDeeper&&d)if(d.length)for(var it=0,at=d.length;itRe.PARENS_DIVISION?this.parensStack&&this.parensStack.length:!0},Xr.Eval.prototype.pathRequiresRewrite=function(h){var d=this.rewriteUrls===$t.LOCAL?gi:bn;return d(h)},Xr.Eval.prototype.rewritePath=function(h,d){var T;return d=d||"",T=this.normalizePath(d+h),gi(h)&&bn(d)&&gi(T)===!1&&(T="./"+T),T},Xr.Eval.prototype.normalizePath=function(h){var d=h.split("/").reverse(),T;for(h=[];d.length!==0;)switch(T=d.pop(),T){case".":break;case"..":h.length===0||h[h.length-1]===".."?h.push(T):h.pop();break;default:h.push(T);break}return h.join("/")};function bn(h){return!/^(?:[a-z-]+:|\/|#)/i.test(h)}function gi(h){return h.charAt(0)==="."}var Di=function(){function h(d){this.imports=[],this.variableImports=[],this._onSequencerEmpty=d,this._currentDepth=0}return h.prototype.addImport=function(d){var T=this,w={callback:d,args:null,isReady:!1};return this.imports.push(w),function(){w.args=Array.prototype.slice.call(arguments,0),w.isReady=!0,T.tryRun()}},h.prototype.addVariableImport=function(d){this.variableImports.push(d)},h.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var d=this.imports[0];if(!d.isReady)return;this.imports=this.imports.slice(1),d.callback.apply(null,d.args)}if(this.variableImports.length===0)break;var T=this.variableImports[0];this.variableImports=this.variableImports.slice(1),T()}}finally{this._currentDepth--}this._currentDepth===0&&this._onSequencerEmpty&&this._onSequencerEmpty()},h}(),fi=function(h,d){this._visitor=new En(this),this._importer=h,this._finish=d,this.context=new Xr.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new Di(this._onSequencerEmpty.bind(this))};fi.prototype={isReplacing:!1,run:function(h){try{this._visitor.visit(h)}catch(d){this.error=d}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(h,d){var T=h.options.inline;if(!h.css||T){var w=new Xr.Eval(this.context,ft(this.context.frames)),M=w.frames[0];this.importCount++,h.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,h,w,M)):this.processImportNode(h,w,M)}d.visitDeeper=!1},processImportNode:function(h,d,T){var w,M=h.options.inline;try{w=h.evalForImport(d)}catch(it){it.filename||(it.index=h.getIndex(),it.filename=h.fileInfo().filename),h.css=!0,h.error=it}if(w&&(!w.css||M)){w.options.multiple&&(d.importMultiple=!0);for(var K=w.css===void 0,I=0;I=0)&&(at=[ee.selfSelectors[0]],I=it.findMatch(Qe,at),I.length&&(Qe.hasFoundMatches=!0,Qe.selfSelectors.forEach(function(Pe){var pt=ee.visibilityInfo();de=it.extendSelector(I,at,Pe,Qe.isVisible()),ve=new Dt.Extend(ee.selector,ee.option,0,ee.fileInfo(),pt),ve.selfSelectors=de,de[de.length-1].extendList=[ve],oe.push(ve),ve.ruleset=ee.ruleset,ve.parent_ids=ve.parent_ids.concat(ee.parent_ids,Qe.parent_ids),ee.firstExtendOnThisSelectorPath&&(ve.firstExtendOnThisSelectorPath=!0,ee.ruleset.paths.push(de))})));if(oe.length){if(this.extendChainCount++,w>100){var ke="{unable to calculate}",qe="{unable to calculate}";try{ke=oe[0].selfSelectors[0].toCSS(),qe=oe[0].selector.toCSS()}catch{}throw{message:"extend circular reference detected. One of the circular extends is currently:"+ke+":extend("+qe+")"}}return oe.concat(it.doExtendChaining(oe,T,w+1))}else return oe},h.prototype.visitDeclaration=function(d,T){T.visitDeeper=!1},h.prototype.visitMixinDefinition=function(d,T){T.visitDeeper=!1},h.prototype.visitSelector=function(d,T){T.visitDeeper=!1},h.prototype.visitRuleset=function(d,T){if(!d.root){var w,M,K,I=this.allExtendsStack[this.allExtendsStack.length-1],oe=[],de=this,it;for(K=0;K0&&at[ee.matched].combinator.value!==oe?ee=null:ee.matched++,ee&&(ee.finished=ee.matched===at.length,ee.finished&&!d.allowAfter&&(K+1K&&I>0&&(oe[oe.length-1].elements=oe[oe.length-1].elements.concat(T[K].elements.slice(I)),I=0,K++),ee=it.elements.slice(I,Qe.index).concat([at]).concat(w.elements.slice(1)),K===Qe.pathIndex&&de>0?oe[oe.length-1].elements=oe[oe.length-1].elements.concat(ee):(oe=oe.concat(T.slice(K,Qe.pathIndex)),oe.push(new Dt.Selector(ee))),K=Qe.endPathIndex,I=Qe.endPathElementIndex,I>=T[K].elements.length&&(I=0,K++);return K0&&(oe[oe.length-1].elements=oe[oe.length-1].elements.concat(T[K].elements.slice(I)),K++),oe=oe.concat(T.slice(K,T.length)),oe=oe.map(function(ve){var ke=ve.createDerived(ve.elements);return M?ke.ensureVisibility():ke.ensureInvisibility(),ke}),oe},h.prototype.visitMedia=function(d,T){var w=d.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);w=w.concat(this.doExtendChaining(w,d.allExtends)),this.allExtendsStack.push(w)},h.prototype.visitMediaOut=function(d){var T=this.allExtendsStack.length-1;this.allExtendsStack.length=T},h.prototype.visitAtRule=function(d,T){var w=d.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);w=w.concat(this.doExtendChaining(w,d.allExtends)),this.allExtendsStack.push(w)},h.prototype.visitAtRuleOut=function(d){var T=this.allExtendsStack.length-1;this.allExtendsStack.length=T},h}(),gr=function(){function h(){this.contexts=[[]],this._visitor=new En(this)}return h.prototype.run=function(d){return this._visitor.visit(d)},h.prototype.visitDeclaration=function(d,T){T.visitDeeper=!1},h.prototype.visitMixinDefinition=function(d,T){T.visitDeeper=!1},h.prototype.visitRuleset=function(d,T){var w=this.contexts[this.contexts.length-1],M=[],K;this.contexts.push(M),d.root||(K=d.selectors,K&&(K=K.filter(function(I){return I.getIsOutput()}),d.selectors=K.length?K:K=null,K&&d.joinSelectors(M,w,K)),K||(d.rules=null),d.paths=M)},h.prototype.visitRulesetOut=function(d){this.contexts.length=this.contexts.length-1},h.prototype.visitMedia=function(d,T){var w=this.contexts[this.contexts.length-1];d.rules[0].root=w.length===0||w[0].multiMedia},h.prototype.visitAtRule=function(d,T){var w=this.contexts[this.contexts.length-1];d.rules&&d.rules.length&&(d.rules[0].root=d.isRooted||w.length===0||null)},h}(),jn=function(){function h(d){this._visitor=new En(this),this._context=d}return h.prototype.containsSilentNonBlockedChild=function(d){var T;if(!d)return!1;for(var w=0;w0:!1},h.prototype.resolveVisibility=function(d){if(!d.blocksVisibility())return this.isEmpty(d)?void 0:d;var T=d.rules[0];if(this.keepOnlyVisibleChilds(T),!this.isEmpty(T))return d.ensureVisibility(),d.removeVisibilityBlock(),d},h.prototype.isVisibleRuleset=function(d){return d.firstRoot?!0:!(this.isEmpty(d)||!d.root&&!this.hasVisibleSelector(d))},h}(),ns=function(h){this._visitor=new En(this),this._context=h,this.utils=new jn(h)};ns.prototype={isReplacing:!0,run:function(h){return this._visitor.visit(h)},visitDeclaration:function(h,d){if(!(h.blocksVisibility()||h.variable))return h},visitMixinDefinition:function(h,d){h.frames=[]},visitExtend:function(h,d){},visitComment:function(h,d){if(!(h.blocksVisibility()||h.isSilent(this._context)))return h},visitMedia:function(h,d){var T=h.rules[0].rules;return h.accept(this._visitor),d.visitDeeper=!1,this.utils.resolveVisibility(h,T)},visitImport:function(h,d){if(!h.blocksVisibility())return h},visitAtRule:function(h,d){return h.rules&&h.rules.length?this.visitAtRuleWithBody(h,d):this.visitAtRuleWithoutBody(h,d)},visitAnonymous:function(h,d){if(!h.blocksVisibility())return h.accept(this._visitor),h},visitAtRuleWithBody:function(h,d){function T(K){var I=K.rules;return I.length===1&&(!I[0].paths||I[0].paths.length===0)}function w(K){var I=K.rules;return T(K)?I[0].rules:I}var M=w(h);return h.accept(this._visitor),d.visitDeeper=!1,this.utils.isEmpty(h)||this._mergeRules(h.rules[0].rules),this.utils.resolveVisibility(h,M)},visitAtRuleWithoutBody:function(h,d){if(!h.blocksVisibility()){if(h.name==="@charset"){if(this.charset){if(h.debugInfo){var T=new Dt.Comment("/* "+h.toCSS(this._context).replace(/\n/g,"")+` */ +`);return T.debugInfo=h.debugInfo,this._visitor.visit(T)}return}this.charset=!0}return h}},checkValidNodes:function(h,d){if(h)for(var T=0;T0?h.accept(this._visitor):h.rules=null,d.visitDeeper=!1}return h.rules&&(this._mergeRules(h.rules),this._removeDuplicateRules(h.rules)),this.utils.isVisibleRuleset(h)&&(h.ensureVisibility(),w.splice(0,0,h)),w.length===1?w[0]:w},_compileRulesetPaths:function(h){h.paths&&(h.paths=h.paths.filter(function(d){var T;for(d[0].elements[0].combinator.value===" "&&(d[0].elements[0].combinator=new Dt.Combinator("")),T=0;T=0;M--)if(w=h[M],w instanceof Dt.Declaration)if(!d[w.name])d[w.name]=w;else{T=d[w.name],T instanceof Dt.Declaration&&(T=d[w.name]=[d[w.name].toCSS(this._context)]);var K=w.toCSS(this._context);T.indexOf(K)!==-1?h.splice(M,1):T.push(K)}}},_mergeRules:function(h){if(h){for(var d={},T=[],w=0;w0){var oe=I[0],de=[],it=[new Dt.Expression(de)];I.forEach(function(at){at.merge==="+"&&de.length>0&&it.push(new Dt.Expression(de=[])),de.push(at.value),oe.important=oe.important||at.important}),oe.value=new Dt.Value(it)}})}}};var ri={Visitor:En,ImportVisitor:fi,MarkVisibleSelectorsVisitor:yi,ExtendVisitor:Ti,JoinSelectorVisitor:gr,ToCSSVisitor:ns};function ni(h,d){var T=h.length,w=0,M=0,K,I,oe,de,it=[],at=0,Qe,ee,ve,ke,qe;function Pe(pt){var _t=Qe-at;_t<512&&!pt||!_t||(it.push(h.slice(at,Qe+1)),at=Qe+1)}for(Qe=0;Qe=97&&ve<=122||ve<34))switch(ve){case 40:M++,I=Qe;continue;case 41:if(--M<0)return d("missing opening `(`",Qe);continue;case 59:M||Pe();continue;case 123:w++,K=Qe;continue;case 125:if(--w<0)return d("missing opening `{`",Qe);!w&&!M&&Pe();continue;case 92:if(Qe96)){if(ke==ve){qe=1;break}if(ke==92){if(Qe==T-1)return d("unescaped `\\`",Qe);Qe++}}if(qe)continue;return d("unmatched `"+String.fromCharCode(ve)+"`",ee);case 47:if(M||Qe==T-1)continue;if(ke=h.charCodeAt(Qe+1),ke==47)for(Qe=Qe+2;QeK&&de>oe?d("missing closing `}` or `*/`",K):d("missing closing `}`",K):M!==0?d("missing closing `)`",I):(Pe(!0),it)}var In=function(){var h,d,T=[],w,M,K,I,oe,de={},it=32,at=9,Qe=10,ee=13,ve=43,ke=44,qe=47,Pe=57;function pt(_t){for(var Et=de.i,ir=d,xr=de.i-oe,Hr=de.i+I.length-xr,Fr=de.i+=_t,Kr=h,_n,cn,pn;de.i=0){pn={index:de.i,text:Kr.substr(de.i,Fn+2-de.i),isLineComment:!1},de.i+=pn.text.length-1,de.commentStore.push(pn);continue}}break}if(_n!==it&&_n!==Qe&&_n!==at&&_n!==ee)break}if(I=I.slice(_t+de.i-Fr+xr),oe=de.i,!I.length){if(dw||de.i===w&&_t&&!M)&&(w=de.i,M=_t);var Et=T.pop();I=Et.current,oe=de.i=Et.i,d=Et.j},de.forget=function(){T.pop()},de.isWhitespace=function(_t){var Et=de.i+(_t||0),ir=h.charCodeAt(Et);return ir===it||ir===ee||ir===at||ir===Qe},de.$re=function(_t){de.i>oe&&(I=I.slice(de.i-oe),oe=de.i);var Et=_t.exec(I);return Et?(pt(Et[0].length),typeof Et=="string"?Et:Et.length===1?Et[0]:Et):null},de.$char=function(_t){return h.charAt(de.i)!==_t?null:(pt(1),_t)},de.$peekChar=function(_t){return h.charAt(de.i)!==_t?null:_t},de.$str=function(_t){for(var Et=_t.length,ir=0;ir_n&&(Fn=!1)}}while(Fn);return ir||null},de.autoCommentAbsorb=!0,de.commentStore=[],de.finished=!1,de.peek=function(_t){if(typeof _t=="string"){for(var Et=0;Et<_t.length;Et++)if(h.charAt(de.i+Et)!==_t.charAt(Et))return!1;return!0}else return _t.test(I)},de.peekChar=function(_t){return h.charAt(de.i)===_t},de.currentChar=function(){return h.charAt(de.i)},de.prevChar=function(){return h.charAt(de.i-1)},de.getInput=function(){return h},de.peekNotNumeric=function(){var _t=h.charCodeAt(de.i);return _t>Pe||_t=h.length;return de.i=h.length-1,furthestChar:h[de.i]}},de};function Hn(h){return{_data:{},add:function(d,T){d=d.toLowerCase(),this._data.hasOwnProperty(d),this._data[d]=T},addMultiple:function(d){var T=this;Object.keys(d).forEach(function(w){T.add(w,d[w])})},get:function(d){return this._data[d]||h&&h.get(d)},getLocalFunctions:function(){return this._data},inherit:function(){return Hn(this)},create:function(d){return Hn(d)}}}var zt=Hn(null),dr={queryInParens:!0},rn={queryInParens:!0},fn=function h(d,T,w,M){M=M||0;var K,I=In();function oe(ee,ve){throw new Qt({index:I.i,filename:w.filename,type:ve||"Syntax",message:ee},T)}function de(ee,ve){var ke=ee instanceof Function?ee.call(K):I.$re(ee);if(ke)return ke;oe(ve||(typeof ee=="string"?"expected '"+ee+"' got '"+I.currentChar()+"'":"unexpected token"))}function it(ee,ve){if(I.$char(ee))return ee;oe(ve||"expected '"+ee+"' got '"+I.currentChar()+"'")}function at(ee){var ve=w.filename;return{lineNumber:St(ee,I.getInput()).line+1,fileName:ve}}function Qe(ee,ve,ke){var qe,Pe=[],pt=I;try{pt.start(ee,!1,function(Hr,Fr){ke({message:Hr,index:Fr+M})});for(var _t=0,Et=void 0;Et=ve[_t];_t++)qe=K[Et](),Pe.push(qe||null);var ir=pt.end();ir.isFinished?ke(null,Pe):ke(!0,null)}catch(xr){throw new Qt({index:xr.index+M,message:xr.message},T,w.filename)}}return{parserInput:I,imports:T,fileInfo:w,parseNode:Qe,parse:function(ee,ve,ke){var qe,Pe=null,pt,_t,Et,ir="";if(ke&&ke.disablePluginRule&&(K.plugin=function(){var cn=I.$re(/^@plugin?\s+/);cn&&oe("@plugin statements are not allowed when disablePluginRule is set to true")}),pt=ke&&ke.globalVars?h.serializeVars(ke.globalVars)+` +`:"",_t=ke&&ke.modifyVars?` +`+h.serializeVars(ke.modifyVars):"",d.pluginManager)for(var xr=d.pluginManager.getPreProcessors(),Hr=0;Hr");return ee},args:function(ee){var ve=K.entities,ke={args:null,variadic:!1},qe=[],Pe=[],pt=[],_t,Et,ir,xr,Hr,Fr,Kr,_n=!0;for(I.save();;){if(ee)Fr=K.detachedRuleset()||K.expression();else{if(I.commentStore.length=0,I.$str("...")){ke.variadic=!0,I.$char(";")&&!_t&&(_t=!0),(_t?Pe:pt).push({variadic:!0});break}Fr=ve.variable()||ve.property()||ve.literal()||ve.keyword()||this.call(!0)}if(!Fr||!_n)break;xr=null,Fr.throwAwayComments&&Fr.throwAwayComments(),Hr=Fr;var cn=null;if(ee?Fr.value&&Fr.value.length==1&&(cn=Fr.value[0]):cn=Fr,cn&&(cn instanceof Dt.Variable||cn instanceof Dt.Property))if(I.$char(":")){if(qe.length>0&&(_t&&oe("Cannot mix ; and , as delimiter types"),Et=!0),Hr=K.detachedRuleset()||K.expression(),!Hr)if(ee)oe("could not understand value for named argument");else return I.restore(),ke.args=[],ke;xr=ir=cn.name}else if(I.$str("..."))if(ee)Kr=!0;else{ke.variadic=!0,I.$char(";")&&!_t&&(_t=!0),(_t?Pe:pt).push({name:Fr.name,variadic:!0});break}else ee||(ir=xr=cn.name,Hr=null);if(Hr&&qe.push(Hr),pt.push({name:xr,value:Hr,expand:Kr}),I.$char(",")){_n=!0;continue}_n=I.$char(";")===";",(_n||_t)&&(Et&&oe("Cannot mix ; and , as delimiter types"),_t=!0,qe.length>1&&(Hr=new Dt.Value(qe)),Pe.push({name:ir,value:Hr,expand:Kr}),ir=null,qe=[],Et=!1)}return I.forget(),ke.args=_t?Pe:pt,ke},definition:function(){var ee,ve=[],ke,qe,Pe,pt=!1;if(!(I.currentChar()!=="."&&I.currentChar()!=="#"||I.peek(/^[^{]*\}/)))if(I.save(),ke=I.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),ke){ee=ke[1];var _t=this.args(!1);if(ve=_t.args,pt=_t.variadic,!I.$char(")")){I.restore("Missing closing ')'");return}if(I.commentStore.length=0,I.$str("when")&&(Pe=de(K.conditions,"expected condition")),qe=K.block(),qe)return I.forget(),new Dt.mixin.Definition(ee,ve,qe,Pe,pt);I.restore()}else I.restore()},ruleLookups:function(){var ee,ve=[];if(I.currentChar()==="["){for(;;){if(I.save(),ee=this.lookupValue(),!ee&&ee!==""){I.restore();break}ve.push(ee),I.forget()}if(ve.length>0)return ve}},lookupValue:function(){if(I.save(),!I.$char("[")){I.restore();return}var ee=I.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(!I.$char("]")){I.restore();return}if(ee||ee==="")return I.forget(),ee;I.restore()}},entity:function(){var ee=this.entities;return this.comment()||ee.literal()||ee.variable()||ee.url()||ee.property()||ee.call()||ee.keyword()||this.mixin.call(!0)||ee.javascript()},end:function(){return I.$char(";")||I.peek("}")},ieAlpha:function(){var ee;if(I.$re(/^opacity=/i))return ee=I.$re(/^\d+/),ee||(ee=de(K.entities.variable,"Could not parse alpha"),ee="@{"+ee.name.slice(1)+"}"),it(")"),new Dt.Quoted("","alpha(opacity="+ee+")")},element:function(){var ee,ve,ke,qe=I.i;if(ve=this.combinator(),ee=I.$re(/^(?:\d+\.\d+|\d+)%/)||I.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||I.$char("*")||I.$char("&")||this.attribute()||I.$re(/^\([^&()@]+\)/)||I.$re(/^[.#:](?=@)/)||this.entities.variableCurly(),ee||(I.save(),I.$char("(")?(ke=this.selector(!1))&&I.$char(")")?(ee=new Dt.Paren(ke),I.forget()):I.restore("Missing closing ')'"):I.forget()),ee)return new Dt.Element(ve,ee,ee instanceof Dt.Variable,qe+M,w)},combinator:function(){var ee=I.currentChar();if(ee==="/"){I.save();var ve=I.$re(/^\/[a-z]+\//i);if(ve)return I.forget(),new Dt.Combinator(ve);I.restore()}if(ee===">"||ee==="+"||ee==="~"||ee==="|"||ee==="^"){for(I.i++,ee==="^"&&I.currentChar()==="^"&&(ee="^^",I.i++);I.isWhitespace();)I.i++;return new Dt.Combinator(ee)}else return I.isWhitespace(-1)?new Dt.Combinator(" "):new Dt.Combinator(null)},selector:function(ee){var ve=I.i,ke,qe,Pe,pt,_t,Et,ir;for(ee=ee!==!1;(ee&&(qe=this.extend())||ee&&(Et=I.$str("when"))||(pt=this.element()))&&(Et?ir=de(this.conditions,"expected condition"):ir?oe("CSS guard can only be used at the end of selector"):qe?_t?_t=_t.concat(qe):_t=qe:(_t&&oe("Extend can only be used at the end of selector"),Pe=I.currentChar(),ke?ke.push(pt):ke=[pt],pt=null),!(Pe==="{"||Pe==="}"||Pe===";"||Pe===","||Pe===")")););if(ke)return new Dt.Selector(ke,_t,ir,ve+M,w);_t&&oe("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var ee,ve;ee=this.selector(),!(!ee||(ve?ve.push(ee):ve=[ee],I.commentStore.length=0,ee.condition&&ve.length>1&&oe("Guards are only currently allowed on a single selector."),!I.$char(",")));)ee.condition&&oe("Guards are only currently allowed on a single selector."),I.commentStore.length=0;return ve},attribute:function(){if(I.$char("[")){var ee=this.entities,ve,ke,qe,Pe;return(ve=ee.variableCurly())||(ve=de(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),qe=I.$re(/^[|~*$^]?=/),qe&&(ke=ee.quoted()||I.$re(/^[0-9]+%/)||I.$re(/^[\w-]+/)||ee.variableCurly(),ke&&(Pe=I.$re(/^[iIsS]/))),it("]"),new Dt.Attribute(ve,qe,ke,Pe)}},block:function(){var ee;if(I.$char("{")&&(ee=this.primary())&&I.$char("}"))return ee},blockRuleset:function(){var ee=this.block();return ee&&(ee=new Dt.Ruleset(null,ee)),ee},detachedRuleset:function(){var ee,ve,ke;if(I.save(),I.$re(/^[.#]\(/)&&(ee=this.mixin.args(!1),ve=ee.args,ke=ee.variadic,!I.$char(")"))){I.restore();return}var qe=this.blockRuleset();if(qe)return I.forget(),ve?new Dt.mixin.Definition(null,ve,qe,null,ke):new Dt.DetachedRuleset(qe);I.restore()},ruleset:function(){var ee,ve,ke;if(I.save(),d.dumpLineNumbers&&(ke=at(I.i)),ee=this.selectors(),ee&&(ve=this.block())){I.forget();var qe=new Dt.Ruleset(ee,ve,d.strictImports);return d.dumpLineNumbers&&(qe.debugInfo=ke),qe}else I.restore()},declaration:function(){var ee,ve,ke=I.i,qe,Pe=I.currentChar(),pt,_t,Et;if(!(Pe==="."||Pe==="#"||Pe==="&"||Pe===":"))if(I.save(),ee=this.variable()||this.ruleProperty(),ee){if(Et=typeof ee=="string",Et&&(ve=this.detachedRuleset(),ve&&(qe=!0)),I.commentStore.length=0,!ve){if(_t=!Et&&ee.length>1&&ee.pop().value,ee[0].value&&ee[0].value.slice(0,2)==="--"?ve=this.permissiveValue(/[;}]/):ve=this.anonymousValue(),ve)return I.forget(),new Dt.Declaration(ee,ve,!1,_t,ke+M,w);ve||(ve=this.value()),ve?pt=this.important():Et&&(ve=this.permissiveValue())}if(ve&&(this.end()||qe))return I.forget(),new Dt.Declaration(ee,ve,pt,_t,ke+M,w);I.restore()}else I.restore()},anonymousValue:function(){var ee=I.i,ve=I.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(ve)return new Dt.Anonymous(ve[1],ee+M)},permissiveValue:function(ee){var ve,ke,qe,Pe,pt=ee||";",_t=I.i,Et=[];function ir(){var Fr=I.currentChar();return typeof pt=="string"?Fr===pt:pt.test(Fr)}if(!ir()){Pe=[];do{if(ke=this.comment(),ke){Pe.push(ke);continue}ke=this.entity(),ke&&Pe.push(ke)}while(ke);if(qe=ir(),Pe.length>0){if(Pe=new Dt.Expression(Pe),qe)return Pe;Et.push(Pe),I.prevChar()===" "&&Et.push(new Dt.Anonymous(" ",_t))}if(I.save(),Pe=I.$parseUntil(pt),Pe){if(typeof Pe=="string"&&oe("Expected '"+Pe+"'","Parse"),Pe.length===1&&Pe[0]===" ")return I.forget(),new Dt.Anonymous("",_t);var xr=void 0;for(ve=0;ve]=|<=|>=|[<>]|=)/)?(I.restore(),Pe=this.condition(),I.save(),pt=this.atomicCondition(null,Pe.rvalue),pt||I.restore()):(I.restore(),qe=this.value()),I.$char(")")?Pe&&!qe?(ke.push(new Dt.Paren(new Dt.QueryInParens(Pe.op,Pe.lvalue,Pe.rvalue,pt?pt.op:null,pt?pt.rvalue:null,Pe._index))),qe=Pe):Pe&&qe?ke.push(new Dt.Paren(new Dt.Declaration(Pe,qe,null,null,I.i+M,w,!0))):qe?ke.push(new Dt.Paren(qe)):oe("badly formed media feature definition"):oe("Missing closing ')'","Parse"));while(qe);if(I.forget(),ke.length>0)return new Dt.Expression(ke)},mediaFeatures:function(ee){var ve=this.entities,ke=[],qe;do if(qe=this.mediaFeature(ee),qe){if(ke.push(qe),!I.$char(","))break}else if(qe=ve.variable()||ve.mixinLookup(),qe&&(ke.push(qe),!I.$char(",")))break;while(qe);return ke.length>0?ke:null},prepareAndGetNestableAtRule:function(ee,ve,ke,qe){var Pe=this.mediaFeatures(qe),pt=this.block();pt||oe("media definitions require block statements after any features"),I.forget();var _t=new ee(pt,Pe,ve+M,w);return d.dumpLineNumbers&&(_t.debugInfo=ke),_t},nestableAtRule:function(){var ee,ve=I.i;if(d.dumpLineNumbers&&(ee=at(ve)),I.save(),I.$peekChar("@")){if(I.$str("@media"))return this.prepareAndGetNestableAtRule(Dt.Media,ve,ee,dr);if(I.$str("@container"))return this.prepareAndGetNestableAtRule(Dt.Container,ve,ee,rn)}I.restore()},plugin:function(){var ee,ve,ke,qe=I.i,Pe=I.$re(/^@plugin\s+/);if(Pe){if(ve=this.pluginArgs(),ve?ke={pluginArgs:ve,isPlugin:!0}:ke={isPlugin:!0},ee=this.entities.quoted()||this.entities.url())return I.$char(";")||(I.i=qe,oe("missing semi-colon on @plugin")),new Dt.Import(ee,null,ke,qe+M,w);I.i=qe,oe("malformed @plugin statement")}},pluginArgs:function(){if(I.save(),!I.$char("("))return I.restore(),null;var ee=I.$re(/^\s*([^);]+)\)\s*/);return ee[1]?(I.forget(),ee[1].trim()):(I.restore(),null)},atrule:function(){var ee=I.i,ve,ke,qe,Pe,pt,_t,Et,ir=!0,xr=!0;if(I.currentChar()==="@"){if(ke=this.import()||this.plugin()||this.nestableAtRule(),ke)return ke;if(I.save(),ve=I.$re(/^@[a-z-]+/),!!ve){switch(Pe=ve,ve.charAt(1)=="-"&&ve.indexOf("-",2)>0&&(Pe="@"+ve.slice(ve.indexOf("-",2)+1)),Pe){case"@charset":pt=!0,ir=!1;break;case"@namespace":_t=!0,ir=!1;break;case"@keyframes":case"@counter-style":pt=!0;break;case"@document":case"@supports":Et=!0,xr=!1;break;default:Et=!0;break}if(I.commentStore.length=0,pt?(ke=this.entity(),ke||oe("expected "+ve+" identifier")):_t?(ke=this.expression(),ke||oe("expected "+ve+" expression")):Et&&(ke=this.permissiveValue(/^[{;]/),ir=I.currentChar()==="{",ke?ke.value||(ke=null):!ir&&I.currentChar()!==";"&&oe(ve+" rule is missing block or ending semi-colon")),ir&&(qe=this.blockRuleset()),qe||!ir&&ke&&I.$char(";"))return I.forget(),new Dt.AtRule(ve,ke,qe,ee+M,w,d.dumpLineNumbers?at(ee):null,xr);I.restore("at-rule options not recognised")}}},value:function(){var ee,ve=[],ke=I.i;do if(ee=this.expression(),ee&&(ve.push(ee),!I.$char(",")))break;while(ee);if(ve.length>0)return new Dt.Value(ve,ke+M)},important:function(){if(I.currentChar()==="!")return I.$re(/^! *important/)},sub:function(){var ee,ve;if(I.save(),I.$char("(")){if(ee=this.addition(),ee&&I.$char(")"))return I.forget(),ve=new Dt.Expression([ee]),ve.parens=!0,ve;I.restore("Expected ')'");return}I.restore()},multiplication:function(){var ee,ve,ke,qe,Pe;if(ee=this.operand(),ee){for(Pe=I.isWhitespace(-1);!I.peek(/^\/[*/]/);){if(I.save(),ke=I.$char("/")||I.$char("*")||I.$str("./"),!ke){I.forget();break}if(ve=this.operand(),!ve){I.restore();break}I.forget(),ee.parensInOp=!0,ve.parensInOp=!0,qe=new Dt.Operation(ke,[qe||ee,ve],Pe),Pe=I.isWhitespace(-1)}return qe||ee}},addition:function(){var ee,ve,ke,qe,Pe;if(ee=this.multiplication(),ee){for(Pe=I.isWhitespace(-1);ke=I.$re(/^[-+]\s+/)||!Pe&&(I.$char("+")||I.$char("-")),!(!ke||(ve=this.multiplication(),!ve));)ee.parensInOp=!0,ve.parensInOp=!0,qe=new Dt.Operation(ke,[qe||ee,ve],Pe),Pe=I.isWhitespace(-1);return qe||ee}},conditions:function(){var ee,ve,ke=I.i,qe;if(ee=this.condition(!0),ee){for(;!(!I.peek(/^,\s*(not\s*)?\(/)||!I.$char(",")||(ve=this.condition(!0),!ve));)qe=new Dt.Condition("or",qe||ee,ve,ke+M);return qe||ee}},condition:function(ee){var ve,ke,qe;function Pe(){return I.$str("or")}if(ve=this.conditionAnd(ee),!!ve){if(ke=Pe(),ke)if(qe=this.condition(ee),qe)ve=new Dt.Condition(ke,ve,qe);else return;return ve}},conditionAnd:function(ee){var ve,ke,qe,Pe=this;function pt(){var Et=Pe.negatedCondition(ee)||Pe.parenthesisCondition(ee);return!Et&&!ee?Pe.atomicCondition(ee):Et}function _t(){return I.$str("and")}if(ve=pt(),!!ve){if(ke=_t(),ke)if(qe=this.conditionAnd(ee),qe)ve=new Dt.Condition(ke,ve,qe);else return;return ve}},negatedCondition:function(ee){if(I.$str("not")){var ve=this.parenthesisCondition(ee);return ve&&(ve.negate=!ve.negate),ve}},parenthesisCondition:function(ee){function ve(qe){var Pe;if(I.save(),Pe=qe.condition(ee),!Pe){I.restore();return}if(!I.$char(")")){I.restore();return}return I.forget(),Pe}var ke;if(I.save(),!I.$str("(")){I.restore();return}if(ke=ve(this),ke)return I.forget(),ke;if(ke=this.atomicCondition(ee),!ke){I.restore();return}if(!I.$char(")")){I.restore("expected ')' got '"+I.currentChar()+"'");return}return I.forget(),ke},atomicCondition:function(ee,ve){var ke=this.entities,qe=I.i,Pe,pt,_t,Et,ir=(function(){return this.addition()||ke.keyword()||ke.quoted()||ke.mixinLookup()}).bind(this);if(ve?Pe=ve:Pe=ir(),Pe)return I.$char(">")?I.$char("=")?Et=">=":Et=">":I.$char("<")?I.$char("=")?Et="<=":Et="<":I.$char("=")&&(I.$char(">")?Et="=>":I.$char("<")?Et="=<":Et="="),Et?(pt=ir(),pt?_t=new Dt.Condition(Et,Pe,pt,qe+M,!1):oe("expected expression")):ve||(_t=new Dt.Condition("=",Pe,new Dt.Keyword("true"),qe+M,!1)),_t},operand:function(){var ee=this.entities,ve;I.peek(/^-[@$(]/)&&(ve=I.$char("-"));var ke=this.sub()||ee.dimension()||ee.color()||ee.variable()||ee.property()||ee.call()||ee.quoted(!0)||ee.colorKeyword()||ee.mixinLookup();return ve&&(ke.parensInOp=!0,ke=new Dt.Negative(ke)),ke},expression:function(){var ee=[],ve,ke,qe=I.i;do{if(ve=this.comment(),ve){ee.push(ve);continue}ve=this.addition()||this.entity(),ve instanceof Dt.Comment&&(ve=null),ve&&(ee.push(ve),I.peek(/^\/[/*]/)||(ke=I.$char("/"),ke&&ee.push(new Dt.Anonymous(ke,qe+M))))}while(ve);if(ee.length>0)return new Dt.Expression(ee)},property:function(){var ee=I.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(ee)return ee[1]},ruleProperty:function(){var ee=[],ve=[],ke,qe;I.save();var Pe=I.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(Pe)return ee=[new Dt.Keyword(Pe[1])],I.forget(),ee;function pt(_t){var Et=I.i,ir=I.$re(_t);if(ir)return ve.push(Et),ee.push(ir[1])}for(pt(/^(\*?)/);pt(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(ee.length>1&&pt(/^((?:\+_|\+)?)\s*:/)){for(I.forget(),ee[0]===""&&(ee.shift(),ve.shift()),qe=0;qe"u"?!1:M,this.allowRoot=!0,this.copyVisibilityInfo(K)};Ht.prototype=Object.assign(new ie,{type:"Anonymous",eval:function(){return new Ht(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},compare:function(h){return h.toCSS&&this.toCSS()===h.toCSS()?0:void 0},isRulesetLike:function(){return this.rulesetLike},genCSS:function(h,d){this.nodeVisible=!!this.value,this.nodeVisible&&d.add(this.value,this._fileInfo,this._index,this.mapLines)}});var Ar=Re;function Rr(h,d){var T="",w,M=d.length,K={add:function(I){T+=I}};for(w=0;w0;h--){var d=this.rules[h-1];if(d instanceof jr)return this.parseValue(d)}},parseValue:function(h){var d=this;function T(M){return M.value instanceof Ht&&!M.parsed&&(typeof M.value.value=="string"?new fn(this.parse.context,this.parse.importManager,M.fileInfo(),M.value.getIndex()).parseNode(M.value.value,["value","important"],function(K,I){K&&(M.parsed=!0),I&&(M.value=I[0],M.important=I[1]||"",M.parsed=!0)}):M.parsed=!0),M}if(Array.isArray(h)){var w=[];return h.forEach(function(M){w.push(T.call(d,M))}),w}else return T.call(d,h)},rulesets:function(){if(!this.rules)return[];var h=[],d=this.rules,T,w;for(T=0;w=d[T];T++)w.isRuleset&&h.push(w);return h},prependRule:function(h){var d=this.rules;d?d.unshift(h):this.rules=[h],this.setParent(h,this)},find:function(h,d,T){d=d||this;var w=[],M,K,I=h.toCSS();return I in this._lookups?this._lookups[I]:(this.rulesets().forEach(function(oe){if(oe!==d){for(var de=0;deM){if(!T||T(oe)){K=oe.find(new nn(h.elements.slice(M)),d,T);for(var it=0;it0&&d.add(Qe),h.firstSelector=!0,de[0].genCSS(h,d),h.firstSelector=!1,w=1;w0?(_t=ft(ke),Et=_t.pop(),ir=pt.createDerived(ft(Et.elements))):ir=pt.createDerived([]),qe.length>0){var xr=Pe.combinator,Hr=qe[0].elements[0];xr.emptyOrWhitespace&&!Hr.combinator.emptyOrWhitespace&&(xr=Hr.combinator),ir.elements.push(new Ke(xr,Hr.value,Pe.isVariable,Pe._index,Pe._fileInfo)),ir.elements=ir.elements.concat(qe[0].elements.slice(1))}if(ir.elements.length!==0&&_t.push(ir),qe.length>1){var Fr=qe.slice(1);Fr=Fr.map(function(Kr){return Kr.createDerived(Kr.elements,[])}),_t=_t.concat(Fr)}return _t}function I(ke,qe,Pe,pt,_t){var Et;for(Et=0;Et0?pt[pt.length-1]=pt[pt.length-1].createDerived(pt[pt.length-1].elements.concat(ke)):pt.push(new nn(ke))}}function de(ke,qe,Pe){var pt,_t,Et,ir,xr,Hr,Fr,Kr,_n=!1,cn,pn;function dn(Aa){var Ro;return!(Aa.value instanceof Be)||(Ro=Aa.value.value,!(Ro instanceof nn))?null:Ro}for(ir=[],xr=[[]],pt=0;Kr=Pe.elements[pt];pt++)if(Kr.value!=="&"){var Fn=dn(Kr);if(Fn!==null){oe(ir,xr);var Pi=[],li=void 0,zi=[];for(li=de(Pi,qe,Fn),_n=_n||li,Et=0;Et0&&Fr[0].elements.push(new Ke(Kr.combinator,"",Kr.isVariable,Kr._index,Kr._fileInfo)),Hr.push(Fr);else for(Et=0;Et0&&(ke.push(xr[pt]),pn=xr[pt][cn-1],xr[pt][cn-1]=pn.createDerived(pn.elements,Pe.extendList));return _n}function it(ke,qe){var Pe=qe.createDerived(qe.elements,qe.extendList,qe.evaldCondition);return Pe.copyVisibilityInfo(ke),Pe}var at,Qe,ee;if(Qe=[],ee=de(Qe,d,T),!ee)if(d.length>0)for(Qe=[],at=0;at0)for(T=0;T-1e-6&&(w=T.toFixed(20).replace(/0+$/,"")),h&&h.compress){if(T===0&&this.unit.isLength()){d.add(w);return}T>0&&T<1&&(w=w.substr(1))}d.add(w),this.unit.genCSS(h,d)},operate:function(h,d,T){var w=this._operate(h,d,this.value,T.value),M=this.unit.clone();if(d==="+"||d==="-"){if(M.numerator.length===0&&M.denominator.length===0)M=T.unit.clone(),this.unit.backupUnit&&(M.backupUnit=this.unit.backupUnit);else if(!(T.unit.numerator.length===0&&M.denominator.length===0)){if(T=T.convertTo(this.unit.usedUnits()),h.strictUnits&&T.unit.toString()!==M.toString())throw new Error("Incompatible units. Change the units or use the unit function. "+("Bad units: '"+M.toString()+"' and '"+T.unit.toString()+"'."));w=this._operate(h,d,this.value,T.value)}}else d==="*"?(M.numerator=M.numerator.concat(T.unit.numerator).sort(),M.denominator=M.denominator.concat(T.unit.denominator).sort(),M.cancel()):d==="/"&&(M.numerator=M.numerator.concat(T.unit.denominator).sort(),M.denominator=M.denominator.concat(T.unit.numerator).sort(),M.cancel());return new ln(w,M)},compare:function(h){var d,T;if(h instanceof ln){if(this.unit.isEmpty()||h.unit.isEmpty())d=this,T=h;else if(d=this.unify(),T=h.unify(),d.unit.compare(T.unit)!==0)return;return ie.numericCompare(d.value,T.value)}},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(h){var d=this.value,T=this.unit.clone(),w,M,K,I,oe={},de;if(typeof h=="string"){for(w in L)L[w].hasOwnProperty(h)&&(oe={},oe[w]=h);h=oe}de=function(it,at){return K.hasOwnProperty(it)?(at?d=d/(K[it]/K[I]):d=d*(K[it]/K[I]),I):it};for(M in h)h.hasOwnProperty(M)&&(I=h[M],K=L[M],T.map(de));return T.cancel(),new ln(d,T)}});var eo=Re,ki=function(h,d,T){this.op=h.trim(),this.operands=d,this.isSpaced=T};ki.prototype=Object.assign(new ie,{type:"Operation",accept:function(h){this.operands=h.visitArray(this.operands)},eval:function(h){var d=this.operands[0].eval(h),T=this.operands[1].eval(h),w;if(h.isMathOn(this.op)){if(w=this.op==="./"?"/":this.op,d instanceof ln&&T instanceof re&&(d=d.toColor()),T instanceof ln&&d instanceof re&&(T=T.toColor()),!d.operate||!T.operate){if((d instanceof ki||T instanceof ki)&&d.op==="/"&&h.math===eo.PARENS_DIVISION)return new ki(this.op,[d,T],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return d.operate(h,w,T)}else return new ki(this.op,[d,T],this.isSpaced)},genCSS:function(h,d){this.operands[0].genCSS(h,d),this.isSpaced&&d.add(" "),d.add(this.op),this.isSpaced&&d.add(" "),this.operands[1].genCSS(h,d)}});/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */var Tr=function(){return Tr=Object.assign||function(d){for(var T,w=1,M=arguments.length;w1?d=new xt(this.value.map(function(K){return K.eval?K.eval(h):K}),this.noSpacing):this.value.length===1?(this.value[0].parens&&!this.value[0].parensInOp&&!h.inCalc&&(M=!0),d=this.value[0].eval(h)):d=this,w&&h.outOfParenthesis(),this.parens&&this.parensInOp&&!T&&!M&&!(d instanceof ln)&&(d=new Be(d)),d},genCSS:function(h,d){for(var T=0;T1){var T=new nn([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();d=new Ln(T,h.mediaBlocks),d.multiMedia=!0,d.copyVisibilityInfo(this.visibilityInfo()),this.setParent(d,this)}return delete h.mediaBlocks,delete h.mediaPath,d},evalNested:function(h){var d,T,w=h.mediaPath.concat([this]);for(d=0;d0;d--)M.splice(d,0,new Ht("and"));return new xt(M)})),this.setParent(this.features,this),new Ln([],[])},permute:function(h){if(h.length===0)return[];if(h.length===1)return h[0];for(var d=[],T=this.permute(h.slice(1)),w=0;w1?"["+h.value.map(function(d){return d.toCSS()}).join(", ")+"]":h.toCSS()}});var Lt=function(h,d,T,w){this.escaped=d,this.expression=h,this._index=T,this._fileInfo=w};Lt.prototype=Object.assign(new gt,{type:"JavaScript",eval:function(h){var d=this.evaluateJavaScript(this.expression,h),T=typeof d;return T==="number"&&!isNaN(d)?new ln(d):T==="string"?new vr('"'+d+'"',d,this.escaped,this._index):Array.isArray(d)?new Ht(d.join(", ")):new Ht(d)}});var Gt=function(h,d){this.key=h,this.value=d};Gt.prototype=Object.assign(new ie,{type:"Assignment",accept:function(h){this.value=h.visit(this.value)},eval:function(h){return this.value.eval?new Gt(this.key,this.value.eval(h)):this},genCSS:function(h,d){d.add(this.key+"="),this.value.genCSS?this.value.genCSS(h,d):d.add(this.value)}});var Ut=function(h,d,T,w,M){this.op=h.trim(),this.lvalue=d,this.rvalue=T,this._index=w,this.negate=M};Ut.prototype=Object.assign(new ie,{type:"Condition",accept:function(h){this.lvalue=h.visit(this.lvalue),this.rvalue=h.visit(this.rvalue)},eval:function(h){var d=function(T,w,M){switch(T){case"and":return w&&M;case"or":return w||M;default:switch(ie.compare(w,M)){case-1:return T==="<"||T==="=<"||T==="<=";case 0:return T==="="||T===">="||T==="=<"||T==="<=";case 1:return T===">"||T===">=";default:return!1}}}(this.op,this.lvalue.eval(h),this.rvalue.eval(h));return this.negate?!d:d}});var bt=function(h,d,T,w,M,K){this.op=h.trim(),this.lvalue=d,this.mvalue=T,this.op2=w?w.trim():null,this.rvalue=M,this._index=K};bt.prototype=Object.assign(new ie,{type:"QueryInParens",accept:function(h){this.lvalue=h.visit(this.lvalue),this.mvalue=h.visit(this.mvalue),this.rvalue&&(this.rvalue=h.visit(this.rvalue))},eval:function(h){return this.lvalue=this.lvalue.eval(h),this.mvalue=this.mvalue.eval(h),this.rvalue&&(this.rvalue=this.rvalue.eval(h)),this},genCSS:function(h,d){this.lvalue.genCSS(h,d),d.add(" "+this.op+" "),this.mvalue.genCSS(h,d),this.rvalue&&(d.add(" "+this.op2+" "),this.rvalue.genCSS(h,d))}});var yr=function(h,d,T,w,M){this._index=T,this._fileInfo=w;var K=new nn([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new Nr(d),this.rules=[new Ln(K,h)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(M),this.allowRoot=!0,this.setParent(K,this),this.setParent(this.features,this),this.setParent(this.rules,this)};yr.prototype=Object.assign(new ss,Tr(Tr({type:"Container"},je),{genCSS:function(h,d){d.add("@container ",this._fileInfo,this._index),this.features.genCSS(h,d),this.outputRuleset(h,d,this.rules)},eval:function(h){h.mediaBlocks||(h.mediaBlocks=[],h.mediaPath=[]);var d=new yr(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,d.debugInfo=this.debugInfo),d.features=this.features.eval(h),h.mediaPath.push(d),h.mediaBlocks.push(d),this.rules[0].functionRegistry=h.frames[0].functionRegistry.inherit(),h.frames.unshift(this.rules[0]),d.rules=[this.rules[0].eval(h)],h.frames.shift(),h.mediaPath.pop(),h.mediaPath.length===0?d.evalTop(h):d.evalNested(h)}}));var Er=function(h){this.value=h};Er.prototype=Object.assign(new ie,{type:"UnicodeDescriptor"});var wr=function(h){this.value=h};wr.prototype=Object.assign(new ie,{type:"Negative",genCSS:function(h,d){d.add("-"),this.value.genCSS(h,d)},eval:function(h){return h.isMathOn()?new ki("*",[new ln(-1),this.value]).eval(h):new wr(this.value.eval(h))}});var cr=function(h,d,T,w,M){switch(this.selector=h,this.option=d,this.object_id=cr.next_id++,this.parent_ids=[this.object_id],this._index=T,this._fileInfo=w,this.copyVisibilityInfo(M),this.allowRoot=!0,d){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1;break}this.setParent(this.selector,this)};cr.prototype=Object.assign(new ie,{type:"Extend",accept:function(h){this.selector=h.visit(this.selector)},eval:function(h){return new cr(this.selector.eval(h),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(h){return new cr(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},findSelfSelectors:function(h){var d=[],T,w;for(T=0;T0&&w.length&&w[0].combinator.value===""&&(w[0].combinator.value=" "),d=d.concat(h[T].elements);this.selfSelectors=[new nn(d)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}),cr.next_id=0;var Ue=function(h,d,T){this.variable=h,this._index=d,this._fileInfo=T,this.allowRoot=!0};Ue.prototype=Object.assign(new ie,{type:"VariableCall",eval:function(h){var d,T=new qt(this.variable,this.getIndex(),this.fileInfo()).eval(h),w=new Qt({message:"Could not evaluate variable call "+this.variable});if(!T.ruleset){if(T.rules)d=T;else if(Array.isArray(T))d=new Ln("",T);else if(Array.isArray(T.value))d=new Ln("",T.value);else throw w;T=new as(d)}if(T.ruleset)return T.callEval(h);throw w}});var Wr=function(h,d,T,w){this.value=h,this.lookups=d,this._index=T,this._fileInfo=w};Wr.prototype=Object.assign(new ie,{type:"NamespaceValue",eval:function(h){var d,T,w=this.value.eval(h);for(d=0;dthis.params.length)return!1;w=Math.min(K,this.arity);for(var I=0;I0){for(ve=!0,at=0;at0)pt=xr;else if(pt=ir,Hr[ir]+Hr[xr]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(M)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(at=0;at0&&(d=d.slice(0,T)),T=d.lastIndexOf("/"),T<0&&(T=d.lastIndexOf("\\")),T<0?"":d.slice(0,T+1)},h.prototype.tryAppendExtension=function(d,T){return/(\.[a-z]*$)|([?;].*)$/.test(d)?d:d+T},h.prototype.tryAppendLessExtension=function(d){return this.tryAppendExtension(d,".less")},h.prototype.supportsSync=function(){return!1},h.prototype.alwaysMakePathsAbsolute=function(){return!1},h.prototype.isPathAbsolute=function(d){return/^(?:[a-z-]+:|\/|\\|#)/i.test(d)},h.prototype.join=function(d,T){return d?d+T:T},h.prototype.pathDiff=function(d,T){var w=this.extractUrlParts(d),M=this.extractUrlParts(T),K,I,oe,de,it="";if(w.hostPart!==M.hostPart)return"";for(I=Math.max(M.directories.length,w.directories.length),K=0;KparseInt(T[w])?-1:1;return 0},h.prototype.versionToString=function(d){for(var T="",w=0;w1?de-1:de,de*6<1?M+(K-M)*de*6:de*2<1?K:de*3<2?M+(K-M)*(2/3-de)*6:M}try{if(h instanceof re)return d?w=wi(d):w=h.alpha,new re(h.rgb,w,"hsla");h=wi(h)%360/360,d=qn(wi(d)),T=qn(wi(T)),w=qn(wi(w)),K=T<=.5?T*(d+1):T+d-T*d,M=T*2-K;var oe=[I(h+1/3)*255,I(h)*255,I(h-1/3)*255];return w=wi(w),new re(oe,w,"hsla")}catch{}},hsv:function(h,d,T){return ai.hsva(h,d,T,1)},hsva:function(h,d,T,w){h=wi(h)%360/360*360,d=wi(d),T=wi(T),w=wi(w);var M,K;M=Math.floor(h/60%6),K=h/60-M;var I=[T,T*(1-d),T*(1-K*d),T*(1-(1-K)*d)],oe=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return ai.rgba(I[oe[M][0]]*255,I[oe[M][1]]*255,I[oe[M][2]]*255,w)},hue:function(h){return new ln(Bn(h).h)},saturation:function(h){return new ln(Bn(h).s*100,"%")},lightness:function(h){return new ln(Bn(h).l*100,"%")},hsvhue:function(h){return new ln(ta(h).h)},hsvsaturation:function(h){return new ln(ta(h).s*100,"%")},hsvvalue:function(h){return new ln(ta(h).v*100,"%")},red:function(h){return new ln(h.rgb[0])},green:function(h){return new ln(h.rgb[1])},blue:function(h){return new ln(h.rgb[2])},alpha:function(h){return new ln(Bn(h).a)},luma:function(h){return new ln(h.luma()*h.alpha*100,"%")},luminance:function(h){var d=.2126*h.rgb[0]/255+.7152*h.rgb[1]/255+.0722*h.rgb[2]/255;return new ln(d*h.alpha*100,"%")},saturate:function(h,d,T){if(!h.rgb)return null;var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.s+=w.s*d.value/100:w.s+=d.value/100,w.s=qn(w.s),Oi(h,w)},desaturate:function(h,d,T){var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.s-=w.s*d.value/100:w.s-=d.value/100,w.s=qn(w.s),Oi(h,w)},lighten:function(h,d,T){var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.l+=w.l*d.value/100:w.l+=d.value/100,w.l=qn(w.l),Oi(h,w)},darken:function(h,d,T){var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.l-=w.l*d.value/100:w.l-=d.value/100,w.l=qn(w.l),Oi(h,w)},fadein:function(h,d,T){var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.a+=w.a*d.value/100:w.a+=d.value/100,w.a=qn(w.a),Oi(h,w)},fadeout:function(h,d,T){var w=Bn(h);return typeof T<"u"&&T.value==="relative"?w.a-=w.a*d.value/100:w.a-=d.value/100,w.a=qn(w.a),Oi(h,w)},fade:function(h,d){var T=Bn(h);return T.a=d.value/100,T.a=qn(T.a),Oi(h,T)},spin:function(h,d){var T=Bn(h),w=(T.h+d.value)%360;return T.h=w<0?360+w:w,Oi(h,T)},mix:function(h,d,T){T||(T=new ln(50));var w=T.value/100,M=w*2-1,K=Bn(h).a-Bn(d).a,I=((M*K==-1?M:(M+K)/(1+M*K))+1)/2,oe=1-I,de=[h.rgb[0]*I+d.rgb[0]*oe,h.rgb[1]*I+d.rgb[1]*oe,h.rgb[2]*I+d.rgb[2]*oe],it=h.alpha*w+d.alpha*(1-w);return new re(de,it)},greyscale:function(h){return ai.desaturate(h,new ln(100))},contrast:function(h,d,T,w){if(!h.rgb)return null;if(typeof T>"u"&&(T=ai.rgba(255,255,255,1)),typeof d>"u"&&(d=ai.rgba(0,0,0,1)),d.luma()>T.luma()){var M=T;T=d,d=M}return typeof w>"u"?w=.43:w=wi(w),h.luma().5&&(w=1,T=h>.25?Math.sqrt(h):((16*h-12)*h+4)*h),h-(1-2*d)*w*(T-h)},hardlight:function(h,d){return As.overlay(d,h)},difference:function(h,d){return Math.abs(h-d)},exclusion:function(h,d){return h+d-2*h*d},average:function(h,d){return(h+d)/2},negation:function(h,d){return 1-Math.abs(h+d-1)}};for(var to in As)As.hasOwnProperty(to)&&(Fi[to]=Fi.bind(null,As[to]));var Io=function(h){var d=function(T,w){return new We(w,T.index,T.currentFileInfo).eval(T.context)};return{"data-uri":function(T,w){w||(w=T,T=null);var M=T&&T.value,K=w.value,I=this.currentFileInfo,oe=I.rewriteUrls?I.currentDirectory:I.entryPath,de=K.indexOf("#"),it="";de!==-1&&(it=K.slice(de),K=K.slice(0,de));var at=er(this.context);at.rawBuffer=!0;var Qe=h.getFileManager(K,oe,at,h,!0);if(!Qe)return d(this,w);var ee=!1;if(T)ee=/;base64$/.test(M);else{if(M=h.mimeLookup(K),M==="image/svg+xml")ee=!1;else{var ve=h.charsetLookup(M);ee=["US-ASCII","UTF-8"].indexOf(ve)<0}ee&&(M+=";base64")}var ke=Qe.loadFileSync(K,oe,at,h);if(!ke.contents)return b.warn("Skipped data-uri embedding of "+K+" because file not found"),d(this,w||T);var qe=ke.contents;if(ee&&!h.encodeBase64)return d(this,w);qe=ee?h.encodeBase64(qe):encodeURIComponent(qe);var Pe="data:"+M+","+qe+it;return new We(new vr('"'+Pe+'"',Pe,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}},Lo=function(h){var d=Array.isArray(h.value)?h.value:Array(h);return d},ro={_SELF:function(h){return h},"~":function(){for(var h=[],d=0;d"u"?0:d.value;return Rs(function(w){return w.toFixed(T)},null,h)};var Gr=function(h,d){var T=this;switch(d=Array.prototype.slice.call(d),d.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var w,M,K,I,oe,de,it,at,Qe=[],ee={};for(w=0;woe.value)&&(Qe[M]=K)}return Qe.length==1?Qe[0]:(d=Qe.map(function(ve){return ve.toCSS(T.context)}).join(this.context.compress?",":", "),new Ht((h?"min":"max")+"("+d+")"))},Zu={min:function(){for(var h=[],d=0;d",de=0;de";return I+="',I=encodeURIComponent(I),I="data:image/svg+xml,"+I,new We(new vr("'"+I+"'",I,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}},cs=function(h,d){return h instanceof d?On.True:On.False},Ta=function(h,d){if(d===void 0)throw{type:"Argument",message:"missing the required second argument to isunit."};if(d=typeof d.value=="string"?d.value:d,typeof d!="string")throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return h instanceof ln&&h.unit.is(d)?On.True:On.False},Rl={isruleset:function(h){return cs(h,as)},iscolor:function(h){return cs(h,re)},isnumber:function(h){return cs(h,ln)},isstring:function(h){return cs(h,vr)},iskeyword:function(h){return cs(h,On)},isurl:function(h){return cs(h,We)},ispixel:function(h){return Ta(h,"px")},ispercentage:function(h){return Ta(h,"%")},isem:function(h){return Ta(h,"em")},isunit:Ta,unit:function(h,d){if(!(h instanceof ln))throw{type:"Argument",message:"the first argument to unit must be a number"+(h instanceof ki?". Have you forgotten parenthesis?":"")};return d?d instanceof On?d=d.value:d=d.toCSS():d="",new ln(h.value,d)},"get-unit":function(h){return new Ht(h.unit)}},jl=function(h){var d={functionRegistry:zt,functionCaller:Rt};return zt.addMultiple(Jr),zt.add("default",is.eval.bind(is)),zt.addMultiple(Ea),zt.addMultiple(Fi),zt.addMultiple(Io(h)),zt.addMultiple(ro),zt.addMultiple(Da),zt.addMultiple(Zu),zt.addMultiple(Bl),zt.addMultiple(Oo()),zt.addMultiple(Rl),d};function el(h,d){d=d||{};var T,w=d.variables,M=new Xr.Eval(d);typeof w=="object"&&!Array.isArray(w)&&(w=Object.keys(w).map(function(Qe){var ee=w[Qe];return ee instanceof Dt.Value||(ee instanceof Dt.Expression||(ee=new Dt.Expression([ee])),ee=new Dt.Value([ee])),new Dt.Declaration("@"+Qe,ee,!1,null,0)}),M.frames=[new Dt.Ruleset(null,w)]);var K=[new ri.JoinSelectorVisitor,new ri.MarkVisibleSelectorsVisitor(!0),new ri.ExtendVisitor,new ri.ToCSSVisitor({compress:!!d.compress})],I=[],oe,de;if(d.pluginManager){de=d.pluginManager.visitor();for(var it=0;it<2;it++)for(de.first();oe=de.get();)oe.isPreEvalVisitor?(it===0||I.indexOf(oe)===-1)&&(I.push(oe),oe.run(h)):(it===0||K.indexOf(oe)===-1)&&(oe.isPreVisitor?K.unshift(oe):K.push(oe))}T=h.eval(M);for(var at=0;at=T);w++);this.preProcessors.splice(w,0,{preProcessor:d,priority:T})},h.prototype.addPostProcessor=function(d,T){var w;for(w=0;w=T);w++);this.postProcessors.splice(w,0,{postProcessor:d,priority:T})},h.prototype.addFileManager=function(d){this.fileManagers.push(d)},h.prototype.getPreProcessors=function(){for(var d=[],T=0;T0){var I=void 0,oe=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?I=this.sourceMapURL:this._sourceMapFilename&&(I=this._sourceMapFilename),this.sourceMapURL=I,this.sourceMap=oe}return this._css.join("")},T}();return d}function nl(h,d){var T=function(){function w(M){this.options=M}return w.prototype.toCSS=function(M,K,I){var oe=new h({contentsIgnoredCharsMap:I.contentsIgnoredChars,rootNode:M,contentsMap:I.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),de=oe.toCSS(K);return this.sourceMap=oe.sourceMap,this.sourceMapURL=oe.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=oe.normalizeFilename(this.options.sourceMapInputFilename)),this.options.sourceMapBasepath!==void 0&&this.sourceMapURL!==void 0&&(this.sourceMapURL=oe.removeBasepath(this.sourceMapURL)),de+this.getCSSAppendage()},w.prototype.getCSSAppendage=function(){var M=this.sourceMapURL;if(this.options.sourceMapFileInline){if(this.sourceMap===void 0)return"";M="data:application/json;base64,"+d.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":M?"/*# sourceMappingURL="+M+" */":""},w.prototype.getExternalSourceMap=function(){return this.sourceMap},w.prototype.setExternalSourceMap=function(M){this.sourceMap=M},w.prototype.isInline=function(){return this.options.sourceMapFileInline},w.prototype.getSourceMapURL=function(){return this.sourceMapURL},w.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},w.prototype.getInputFilename=function(){return this.sourceMapInputFilename},w}();return T}function Mo(h){var d=function(){function T(w,M){this.root=w,this.imports=M}return T.prototype.toCSS=function(w){var M,K={},I;try{M=el(this.root,w)}catch(ee){throw new Qt(ee,this.imports)}try{var oe=!!w.compress;oe&&b.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var de={compress:oe,dumpLineNumbers:w.dumpLineNumbers,strictUnits:!!w.strictUnits,numPrecision:8};w.sourceMap?(I=new h(w.sourceMap),K.css=I.toCSS(M,de,this.imports)):K.css=M.toCSS(de)}catch(ee){throw new Qt(ee,this.imports)}if(w.pluginManager)for(var it=w.pluginManager.getPostProcessors(),at=0;at=200&&oe.status<300?de(oe.responseText,oe.getResponseHeader("Last-Modified")):typeof it=="function"&&it(oe.status,h)}vi.isFileProtocol&&!vi.fileAsync?M.status===0||M.status>=200&&M.status<300?T(M.responseText):w(M.status,h):K?M.onreadystatechange=function(){M.readyState==4&&I(M,T,w)}:I(M,T,w)},supports:function(){return!0},clearFileCache:function(){xa={}},loadFile:function(h,d,T){d&&!this.isPathAbsolute(h)&&(h=d+h),h=T.ext?this.tryAppendExtension(h,T.ext):h,T=T||{};var w=this.extractUrlParts(h,window.location.href),M=w.url,K=this;return new Promise(function(I,oe){if(T.useFileCache&&xa[M])try{var de=xa[M];return I({contents:de,filename:M,webInfo:{lastModified:new Date}})}catch(it){return oe({filename:M,message:"Error loading file "+M+" error was "+it.message})}K.doXHR(M,T.mime,function(at,Qe){xa[M]=at,I({contents:at,filename:M,webInfo:{lastModified:Qe}})},function(at,Qe){oe({type:"File",message:"'"+Qe+"' wasn't found ("+at+")",href:M})})})}});var oo=function(h,d){return vi=h,Tn=d,ao},hs=function(h){this.less=h};hs.prototype=Object.assign(new Je,{loadPlugin:function(h,d,T,w,M){return new Promise(function(K,I){M.loadFile(h,d,T,w).then(K).catch(I)})}});var uo=function(h,d){var T=4,w=3,M=2,K=1;d.logLevel=typeof d.logLevel<"u"?d.logLevel:d.env==="development"?w:K,d.loggers||(d.loggers=[{debug:function(oe){d.logLevel>=T&&console.log(oe)},info:function(oe){d.logLevel>=w&&console.log(oe)},warn:function(oe){d.logLevel>=M&&console.warn(oe)},error:function(oe){d.logLevel>=K&&console.error(oe)}}]);for(var I=0;I"+(de.type||"Syntax")+"Error: "+(de.message||"There is an error in your .less file")+('

in '+pt+" ");var _t=function(Et,ir,xr){Et.extract[ir]!==void 0&&qe.push(Qe.replace(/\{line\}/,(parseInt(Et.line,10)||0)+(ir-1)).replace(/\{class\}/,xr).replace(/\{content\}/,Et.extract[ir]))};de.line&&(_t(de,0,""),_t(de,1,"line"),_t(de,2,""),ke+="on line "+de.line+", column "+(de.column+1)+":

    "+qe.join("")+"
"),de.stack&&(de.extract||T.logLevel>=4)&&(ke+="
Stack Trace
"+de.stack.split(` +`).slice(1).join("
")),ee.innerHTML=ke,v.createCSS(h.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join(` +`),{title:"error-message"}),ee.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),T.env==="development"&&(ve=setInterval(function(){var Et=h.document,ir=Et.body;ir&&(Et.getElementById(at)?ir.replaceChild(ee,Et.getElementById(at)):ir.insertBefore(ee,ir.firstChild),clearInterval(ve))},10))}function M(de){var it=h.document.getElementById("less-error-message:"+o(de));it&&it.parentNode.removeChild(it)}function K(de){!T.errorReporting||T.errorReporting==="html"?M(de):T.errorReporting==="console"||typeof T.errorReporting=="function"&&T.errorReporting("remove",de)}function I(de,it){var at="{line} {content}",Qe=de.filename||it,ee=[],ve=(de.type||"Syntax")+"Error: "+(de.message||"There is an error in your .less file")+" in "+Qe,ke=function(qe,Pe,pt){qe.extract[Pe]!==void 0&&ee.push(at.replace(/\{line\}/,(parseInt(qe.line,10)||0)+(Pe-1)).replace(/\{class\}/,pt).replace(/\{content\}/,qe.extract[Pe]))};de.line&&(ke(de,0,""),ke(de,1,"line"),ke(de,2,""),ve+=" on line "+de.line+", column "+(de.column+1)+`: +`+ee.join(` +`)),de.stack&&(de.extract||T.logLevel>=4)&&(ve+=` +Stack Trace +`+de.stack),d.logger.error(ve)}function oe(de,it){!T.errorReporting||T.errorReporting==="html"?w(de,it):T.errorReporting==="console"?I(de,it):typeof T.errorReporting=="function"&&T.errorReporting("add",de,it)}return{add:oe,remove:K}},ba=function(h,d,T){var w=null;if(d.env!=="development")try{w=typeof h.localStorage>"u"?null:h.localStorage}catch{}return{setCSS:function(M,K,I,oe){if(w){T.info("saving "+M+" to cache.");try{w.setItem(M,oe),w.setItem(M+":timestamp",K),I&&w.setItem(M+":vars",JSON.stringify(I))}catch{T.error('failed to save "'+M+'" to local storage for caching.')}}},getCSS:function(M,K,I){var oe=w&&w.getItem(M),de=w&&w.getItem(M+":timestamp"),it=w&&w.getItem(M+":vars");if(I=I||{},it=it||"{}",de&&K.lastModified&&new Date(K.lastModified).valueOf()===new Date(de).valueOf()&&JSON.stringify(I)===it)return oe}}},lo=function(){function h(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var d={"image-size":function(T){return h(),-1},"image-width":function(T){return h(),-1},"image-height":function(T){return h(),-1}};zt.addMultiple(d)},js=function(h,d){var T=h.document,w=Eu();w.options=d;var M=w.environment,K=oo(d,w.logger),I=new K;M.addFileManager(I),w.FileManager=K,w.PluginLoader=hs,uo(w,d);var oe=Ds(h,w,d),de=w.cache=d.cache||ba(h,d,w.logger);lo(w.environment),d.functions&&w.functions.functionRegistry.addMultiple(d.functions);var it=/^text\/(x-)?less$/;function at(Pe){var pt={};for(var _t in Pe)Object.prototype.hasOwnProperty.call(Pe,_t)&&(pt[_t]=Pe[_t]);return pt}function Qe(Pe,pt){var _t=Array.prototype.slice.call(arguments,2);return function(){var Et=_t.concat(Array.prototype.slice.call(arguments,0));return Pe.apply(pt,Et)}}function ee(Pe){for(var pt=T.getElementsByTagName("style"),_t,Et=0;Et{const[r,o]=qh(""),[g,v]=qh(""),[E,b]=qh(0),N=s9(null);i9(t,()=>({getCode(){return r},getCompileCode(){return g},refresh(){b(E+1)}})),$d(()=>{const ie=localStorage.getItem("less-code");o(ie||"")},[]),$d(()=>{F(r)},[r]);const F=async ie=>{try{if(!ie)return;localStorage.setItem("less-code",ie);const re=await r9.render(ie);v(re.css),localStorage.setItem("less-compile",re.css);const Ae=document.getElementById("less-style");if(Ae)Ae.innerHTML=re.css;else{const $e=document.createElement("style");$e.id="less-style",$e.innerHTML=re.css,document.head.appendChild($e)}}catch(re){console.error(re)}},L=async(ie="")=>{o(ie)},{run:H}=a9(L,{wait:200});return wn.jsx("div",{className:"code-editor",children:wn.jsxs(hu,{children:[wn.jsx(hu.Pane,{preferredSize:"50%",children:wn.jsx(nd,{language:"less",value:r,onChange:H,options:{lineNumbers:"on",minimap:{enabled:!1}},onMount:ie=>N.current=ie})}),wn.jsx(hu.Pane,{preferredSize:"50%",children:wn.jsx(id,{refreshTag:E})})]})})}),u9=window.React.forwardRef,l9=window.React.memo,Gd=window.React.useEffect,c9=window.React.useImperativeHandle,p9=window.React.useRef,qp=window.React.useState,h9=window.ahooks.useDebounceFn,Wd=window.antd.Form,f9=window.antd.Spin,d9=l9(u9((e,t)=>{const[r,o]=qp(""),[g,v]=qp(""),[E,b]=qp(null),[N,F]=qp(!1),[L,H]=qp(0),ie=p9(null),[re]=Wd.useForm();c9(t,()=>({getCode(){return r},refresh(){H(L+1)}})),Gd(()=>{const Ke=localStorage.getItem("config-code")||"";o(Ke||"")},[]);const Ae=(Ke="")=>{o(Ke)};Gd(()=>{$e(r)},[r]);const $e=async Ke=>{var ze;if(!Ke)return;localStorage.setItem("config-code",Ke);const Re=new Blob([Ke],{type:"application/javascript"}),$t=URL.createObjectURL(Re);try{const rr=(await import($t)).default||{};b({...rr}),re.setFieldsValue(((ze=rr.config)==null?void 0:ze.props)||{}),localStorage.setItem("config-compile",JSON.stringify(rr)),F(!1),v(""),URL.revokeObjectURL($t)}catch(ht){v(ht.message),F(!1),console.error("模块加载失败:",ht)}},{run:Be}=h9(Ae,{wait:300}),Ne=()=>{try{const Ke=re.getFieldsValue();E&&b(Re=>({...Re,config:{...Re.config,props:Ke}}))}catch(Ke){console.error(Ke)}},et={labelCol:{span:8},wrapperCol:{span:14}};return wn.jsx("div",{className:"code-editor",children:wn.jsxs(hu,{children:[wn.jsx(hu.Pane,{minSize:300,children:wn.jsx(nd,{language:"javascript",value:r,onChange:Ke=>{F(!0),Be(Ke)},options:{lineNumbers:"on",minimap:{enabled:!1}},onMount:Ke=>ie.current=Ke})}),wn.jsx(hu.Pane,{minSize:700,children:wn.jsxs(f9,{spinning:N,tip:"正在编译中...",children:[wn.jsx(id,{config:E==null?void 0:E.config,refreshTag:L}),g&&wn.jsx("p",{style:{color:"red",lineHeight:"30px",padding:30},children:g})]})}),wn.jsx(hu.Pane,{minSize:300,children:wn.jsx(Wd,{form:re,style:{paddingBottom:20},...et,layout:"horizontal",labelAlign:"right",onValuesChange:Ne,children:wn.jsx(mE,{attrs:(E==null?void 0:E.attrs)||[],form:re})})})]})})})),m9=function(){var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),o=/MSIE \d/.test(e),g=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),v=/Edge\/(\d+)/.exec(e),E=o||g||v,b=E&&(o?document.documentMode||6:+(v||g)[1]),N=!v&&/WebKit\//.test(e),F=N&&/Qt\/\d+\.\d+/.test(e),L=!v&&/Chrome\//.test(e),H=/Opera\//.test(e),ie=/Apple Computer/.test(navigator.vendor),re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),Ae=/PhantomJS/.test(e),$e=ie&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),Be=/Android/.test(e),Ne=$e||Be||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),et=$e||/Mac/.test(t),Ke=/\bCrOS\b/.test(e),Re=/win/i.test(t),$t=H&&e.match(/Version\/(\d*\.\d*)/);$t&&($t=Number($t[1])),$t&&$t>=15&&(H=!1,N=!0);var ze=et&&(F||H&&($t==null||$t<12.11)),ht=r||E&&b>=9;function rr(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Kt=function(n,s){var u=n.className,p=rr(s).exec(u);if(p){var f=u.slice(p.index+p[0].length);n.className=u.slice(0,p.index)+(f?p[1]+f:"")}};function vt(n){for(var s=n.childNodes.length;s>0;--s)n.removeChild(n.firstChild);return n}function Yt(n,s){return vt(n).appendChild(s)}function St(n,s,u,p){var f=document.createElement(n);if(u&&(f.className=u),p&&(f.style.cssText=p),typeof s=="string")f.appendChild(document.createTextNode(s));else if(s)for(var D=0;D=s)return P+(s-D);P+=R-D,P+=u-P%u,D=R+1}}var Ve=function(){this.id=null,this.f=null,this.time=0,this.handler=fe(this.onTimeout,this)};Ve.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ve.prototype.set=function(n,s){this.f=s;var u=+new Date+n;(!this.id||u=s)return p+Math.min(P,s-f);if(f+=D-p,f+=u-f%u,p=D+1,f>=s)return p}}var Rn=[""];function mi(n){for(;Rn.length<=n;)Rn.push(bn(Rn)+" ");return Rn[n]}function bn(n){return n[n.length-1]}function gi(n,s){for(var u=[],p=0;p"€"&&(n.toUpperCase()!=n.toLowerCase()||Li.test(n))}function gr(n,s){return s?s.source.indexOf("\\w")>-1&&Ti(n)?!0:s.test(n):Ti(n)}function jn(n){for(var s in n)if(n.hasOwnProperty(s)&&n[s])return!1;return!0}var ns=/[\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 ri(n){return n.charCodeAt(0)>=768&&ns.test(n)}function ni(n,s,u){for(;(u<0?s>0:su?-1:1;;){if(s==u)return s;var f=(s+u)/2,D=p<0?Math.ceil(f):Math.floor(f);if(D==s)return n(D)?s:u;n(D)?u=D:s=D+p}}function Hn(n,s,u,p){if(!n)return p(s,u,"ltr",0);for(var f=!1,D=0;Ds||s==u&&P.to==s)&&(p(Math.max(P.from,s),Math.min(P.to,u),P.level==1?"rtl":"ltr",D),f=!0)}f||p(s,u,"ltr")}var zt=null;function dr(n,s,u){var p;zt=null;for(var f=0;fs)return f;D.to==s&&(D.from!=D.to&&u=="before"?p=f:zt=f),D.from==s&&(D.from!=D.to&&u!="before"?p=f:zt=f)}return p??zt}var rn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?s.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,D=/[LRr]/,P=/[Lb1n]/,R=/[1n]/;function j(_,Y,he){this.level=_,this.from=Y,this.to=he}return function(_,Y){var he=Y=="ltr"?"L":"R";if(_.length==0||Y=="ltr"&&!p.test(_))return!1;for(var Me=_.length,Ie=[],ct=0;ct-1&&(p[s]=f.slice(0,D).concat(f.slice(D+1)))}}}function Ar(n,s){var u=On(n,s);if(u.length)for(var p=Array.prototype.slice.call(arguments,2),f=0;f0}function Mn(n){n.prototype.on=function(s,u){Nr(this,s,u)},n.prototype.off=function(s,u){Ht(this,s,u)}}function Xn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Xi(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function is(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ln(n){Xn(n),Xi(n)}function ss(n){return n.target||n.srcElement}function as(n){var s=n.which;return s==null&&(n.button&1?s=1:n.button&2?s=3:n.button&4&&(s=2)),et&&n.ctrlKey&&s==1&&(s=3),s}var Ji=function(){if(E&&b<9)return!1;var n=St("div");return"draggable"in n||"dragDrop"in n}(),ln;function eo(n){if(ln==null){var s=St("span","​");Yt(n,St("span",[s,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(ln=s.offsetWidth<=1&&s.offsetHeight>2&&!(E&&b<8))}var u=ln?St("span","​"):St("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var ki;function Tr(n){if(ki!=null)return ki;var s=Yt(n,document.createTextNode("AخA")),u=er(s,0,1).getBoundingClientRect(),p=er(s,1,2).getBoundingClientRect();return vt(n),!u||u.left==u.right?!1:ki=p.right-u.right<3}var Mt=` + +b`.split(/\n/).length!=3?function(n){for(var s=0,u=[],p=n.length;s<=p;){var f=n.indexOf(` +`,s);f==-1&&(f=n.length);var D=n.slice(s,n.charAt(f-1)=="\r"?f-1:f),P=D.indexOf("\r");P!=-1?(u.push(D.slice(0,P)),s+=P+1):(u.push(D),s=f+1)}return u}:function(n){return n.split(/\r\n?|\n/)},xt=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var s;try{s=n.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=n?!1:s.compareEndPoints("StartToEnd",s)!=0},Rt=function(){var n=St("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Ft=null;function qt(n){if(Ft!=null)return Ft;var s=Yt(n,St("span","x")),u=s.getBoundingClientRect(),p=er(s,0,1).getBoundingClientRect();return Ft=Math.abs(u.left-p.left)>1}var lr={},ar={};function vr(n,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),lr[n]=s}function Ct(n,s){ar[n]=s}function We(n){if(typeof n=="string"&&ar.hasOwnProperty(n))n=ar[n];else if(n&&typeof n.name=="string"&&ar.hasOwnProperty(n.name)){var s=ar[n.name];typeof s=="string"&&(s={name:s}),n=yi(s,n),n.name=s.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return We("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return We("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function je(n,s){s=We(s);var u=lr[s.name];if(!u)return je(n,"text/plain");var p=u(n,s);if(Ye.hasOwnProperty(s.name)){var f=Ye[s.name];for(var D in f)f.hasOwnProperty(D)&&(p.hasOwnProperty(D)&&(p["_"+D]=p[D]),p[D]=f[D])}if(p.name=s.name,s.helperType&&(p.helperType=s.helperType),s.modeProps)for(var P in s.modeProps)p[P]=s.modeProps[P];return p}var Ye={};function Xe(n,s){var u=Ye.hasOwnProperty(n)?Ye[n]:Ye[n]={};Te(s,u)}function gt(n,s){if(s===!0)return s;if(n.copyState)return n.copyState(s);var u={};for(var p in s){var f=s[p];f instanceof Array&&(f=f.concat([])),u[p]=f}return u}function Lt(n,s){for(var u;n.innerMode&&(u=n.innerMode(s),!(!u||u.mode==n));)s=u.state,n=u.mode;return u||{mode:n,state:s}}function Gt(n,s,u){return n.startState?n.startState(s,u):!0}var Ut=function(n,s,u){this.pos=this.start=0,this.string=n,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};Ut.prototype.eol=function(){return this.pos>=this.string.length},Ut.prototype.sol=function(){return this.pos==this.lineStart},Ut.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ut.prototype.next=function(){if(this.poss},Ut.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Ut.prototype.skipToEnd=function(){this.pos=this.string.length},Ut.prototype.skipTo=function(n){var s=this.string.indexOf(n,this.pos);if(s>-1)return this.pos=s,!0},Ut.prototype.backUp=function(n){this.pos-=n},Ut.prototype.column=function(){return this.lastColumnPos0?null:(D&&s!==!1&&(this.pos+=D[0].length),D)}},Ut.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ut.prototype.hideFirstChars=function(n,s){this.lineStart+=n;try{return s()}finally{this.lineStart-=n}},Ut.prototype.lookAhead=function(n){var s=this.lineOracle;return s&&s.lookAhead(n)},Ut.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function bt(n,s){if(s-=n.first,s<0||s>=n.size)throw new Error("There is no line "+(s+n.first)+" in the document.");for(var u=n;!u.lines;)for(var p=0;;++p){var f=u.children[p],D=f.chunkSize();if(s=n.first&&su?Vt(u,bt(n,u).text.length):ai(s,bt(n,s.line).text.length)}function ai(n,s){var u=n.ch;return u==null||u>s?Vt(n.line,s):u<0?Vt(n.line,0):n}function qn(n,s){for(var u=[],p=0;pthis.maxLookAhead&&(this.maxLookAhead=n),s},Bn.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Bn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Bn.fromSaved=function(n,s,u){return s instanceof Oi?new Bn(n,gt(n.mode,s.state),u,s.lookAhead):new Bn(n,gt(n.mode,s),u)},Bn.prototype.save=function(n){var s=n!==!1?gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oi(s,this.maxLookAhead):s};function ta(n,s,u,p){var f=[n.state.modeGen],D={};ro(n,s.text,n.doc.mode,u,function(_,Y){return f.push(_,Y)},D,p);for(var P=u.state,R=function(_){u.baseTokens=f;var Y=n.state.overlays[_],he=1,Me=0;u.state=!0,ro(n,s.text,Y.mode,u,function(Ie,ct){for(var rt=he;MeIe&&f.splice(he,1,Ie,f[he+1],sr),he+=2,Me=Math.min(Ie,sr)}if(ct)if(Y.opaque)f.splice(rt,he-rt,Ie,"overlay "+ct),he=rt+2;else for(;rtn.options.maxHighlightLength&>(n.doc.mode,p.state),D=ta(n,s,p);f&&(p.state=f),s.stateAfter=p.save(!f),s.styles=D.styles,D.classes?s.styleClasses=D.classes:s.styleClasses&&(s.styleClasses=null),u===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return s.styles}function Bs(n,s,u){var p=n.doc,f=n.display;if(!p.mode.startState)return new Bn(p,!0,s);var D=Rs(n,s,u),P=D>p.first&&bt(p,D-1).stateAfter,R=P?Bn.fromSaved(p,P,D):new Bn(p,Gt(p.mode),D);return p.iter(D,s,function(j){Ea(n,j.text,R);var _=R.line;j.stateAfter=_==s-1||_%5==0||_>=f.viewFrom&&_s.start)return D}throw new Error("Mode "+n.name+" failed to advance stream.")}var to=function(n,s,u){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=s||null,this.state=u};function Io(n,s,u,p){var f=n.doc,D=f.mode,P;s=Jr(f,s);var R=bt(f,s.line),j=Bs(n,s.line,u),_=new Ut(R.text,n.options.tabSize,j),Y;for(p&&(Y=[]);(p||_.posn.options.maxHighlightLength?(R=!1,P&&Ea(n,s,p,Y.pos),Y.pos=s.length,he=null):he=Lo(As(u,Y,p.state,Me),D),Me){var Ie=Me[0].name;Ie&&(he="m-"+(he?Ie+" "+he:Ie))}if(!R||_!=he){for(;jP;--R){if(R<=D.first)return D.first;var j=bt(D,R-1),_=j.stateAfter;if(_&&(!u||R+(_ instanceof Oi?_.lookAhead:0)<=D.modeFrontier))return R;var Y=Qt(j.text,null,n.options.tabSize);(f==null||p>Y)&&(f=R-1,p=Y)}return f}function Da(n,s){if(n.modeFrontier=Math.min(n.modeFrontier,s),!(n.highlightFrontieru;p--){var f=bt(n,p).stateAfter;if(f&&(!(f instanceof Oi)||p+f.lookAhead=s:D.to>s);(p||(p=[])).push(new Oo(P,D.from,j?null:D.to))}}return p}function el(n,s,u){var p;if(n)for(var f=0;f=s:D.to>s);if(R||D.from==s&&P.type=="bookmark"&&(!u||D.marker.insertLeft)){var j=D.from==null||(P.inclusiveLeft?D.from<=s:D.from0&&R)for(var Zt=0;Zt0)){var Y=[j,1],he=Dt(_.from,R.from),Me=Dt(_.to,R.to);(he<0||!P.inclusiveLeft&&!he)&&Y.push({from:_.from,to:R.from}),(Me>0||!P.inclusiveRight&&!Me)&&Y.push({from:R.to,to:_.to}),f.splice.apply(f,Y),j+=Y.length-3}}return f}function rl(n){var s=n.markedSpans;if(s){for(var u=0;us)&&(!p||Ca(p,D.marker)<0)&&(p=D.marker)}return p}function Eu(n,s,u,p,f){var D=bt(n,s),P=Gr&&D.markedSpans;if(P)for(var R=0;R=0&&he<=0||Y<=0&&he>=0)&&(Y<=0&&(j.marker.inclusiveRight&&f.inclusiveLeft?Dt(_.to,u)>=0:Dt(_.to,u)>0)||Y>=0&&(j.marker.inclusiveRight&&f.inclusiveLeft?Dt(_.from,p)<=0:Dt(_.from,p)<0)))return!0}}}function vi(n){for(var s;s=Ui(n);)n=s.find(-1,!0).line;return n}function Tn(n){for(var s;s=so(n);)n=s.find(1,!0).line;return n}function xa(n){for(var s,u;s=so(n);)n=s.find(1,!0).line,(u||(u=[])).push(n);return u}function ao(n,s){var u=bt(n,s),p=vi(u);return u==p?s:cr(p)}function oo(n,s){if(s>n.lastLine())return s;var u=bt(n,s),p;if(!hs(n,u))return s;for(;p=so(u);)u=p.find(1,!0).line;return cr(u)+1}function hs(n,s){var u=Gr&&s.markedSpans;if(u){for(var p=void 0,f=0;fs.maxLineLength&&(s.maxLineLength=f,s.maxLine=p)})}var js=function(n,s,u){this.text=n,nl(this,s),this.height=u?u(this):1};js.prototype.lineNo=function(){return cr(this)},Mn(js);function fs(n,s,u,p){n.text=s,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),rl(n),nl(n,u);var f=p?p(n):1;f!=n.height&&wr(n,f)}function zr(n){n.parent=null,rl(n)}var Dr={},Cr={};function or(n,s){if(!n||/^\s*$/.test(n))return null;var u=s.addModeClass?Cr:Dr;return u[n]||(u[n]=n.replace(/\S+/g,"cm-$&"))}function tr(n,s){var u=ft("span",null,null,N?"padding-right: .1px":null),p={pre:ft("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};s.measure={};for(var f=0;f<=(s.rest?s.rest.length:0);f++){var D=f?s.rest[f-1]:s.line,P=void 0;p.pos=0,p.addToken=h,Tr(n.display.measure)&&(P=fn(D,n.doc.direction))&&(p.addToken=T(p.addToken,P)),p.map=[];var R=s!=n.display.externalMeasured&&cr(D);M(D,p,wi(n,D,R)),D.styleClasses&&(D.styleClasses.bgClass&&(p.bgClass=Yr(D.styleClasses.bgClass,p.bgClass||"")),D.styleClasses.textClass&&(p.textClass=Yr(D.styleClasses.textClass,p.textClass||""))),p.map.length==0&&p.map.push(0,0,p.content.appendChild(eo(n.display.measure))),f==0?(s.measure.map=p.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(p.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(N){var j=p.content.lastChild;(/\bcm-tab\b/.test(j.className)||j.querySelector&&j.querySelector(".cm-tab"))&&(p.content.className="cm-tab-wrap-hack")}return Ar(n,"renderLine",n,s.line,p.pre),p.pre.className&&(p.textClass=Yr(p.pre.className,p.textClass||"")),p}function mr(n){var s=St("span","•","cm-invalidchar");return s.title="\\u"+n.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function h(n,s,u,p,f,D,P){if(s){var R=n.splitSpaces?d(s,n.trailingSpace):s,j=n.cm.state.specialChars,_=!1,Y;if(!j.test(s))n.col+=s.length,Y=document.createTextNode(R),n.map.push(n.pos,n.pos+s.length,Y),E&&b<9&&(_=!0),n.pos+=s.length;else{Y=document.createDocumentFragment();for(var he=0;;){j.lastIndex=he;var Me=j.exec(s),Ie=Me?Me.index-he:s.length-he;if(Ie){var ct=document.createTextNode(R.slice(he,he+Ie));E&&b<9?Y.appendChild(St("span",[ct])):Y.appendChild(ct),n.map.push(n.pos,n.pos+Ie,ct),n.col+=Ie,n.pos+=Ie}if(!Me)break;he+=Ie+1;var rt=void 0;if(Me[0]==" "){var sr=n.cm.options.tabSize,Ot=sr-n.col%sr;rt=Y.appendChild(St("span",mi(Ot),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),n.col+=Ot}else Me[0]=="\r"||Me[0]==` +`?(rt=Y.appendChild(St("span",Me[0]=="\r"?"␍":"␤","cm-invalidchar")),rt.setAttribute("cm-text",Me[0]),n.col+=1):(rt=n.cm.options.specialCharPlaceholder(Me[0]),rt.setAttribute("cm-text",Me[0]),E&&b<9?Y.appendChild(St("span",[rt])):Y.appendChild(rt),n.col+=1);n.map.push(n.pos,n.pos+1,rt),n.pos++}}if(n.trailingSpace=R.charCodeAt(s.length-1)==32,u||p||f||_||D||P){var fr=u||"";p&&(fr+=p),f&&(fr+=f);var It=St("span",[Y],fr,D);if(P)for(var Zt in P)P.hasOwnProperty(Zt)&&Zt!="style"&&Zt!="class"&&It.setAttribute(Zt,P[Zt]);return n.content.appendChild(It)}n.content.appendChild(Y)}}function d(n,s){if(n.length>1&&!/ /.test(n))return n;for(var u=s,p="",f=0;f_&&he.from<=_));Me++);if(he.to>=Y)return n(u,p,f,D,P,R,j);n(u,p.slice(0,he.to-_),f,D,null,R,j),D=null,p=p.slice(he.to-_),_=he.to}}}function w(n,s,u,p){var f=!p&&u.widgetNode;f&&n.map.push(n.pos,n.pos+s,f),!p&&n.cm.display.input.needsContentAttribute&&(f||(f=n.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(n.cm.display.input.setUneditable(f),n.content.appendChild(f)),n.pos+=s,n.trailingSpace=!1}function M(n,s,u){var p=n.markedSpans,f=n.text,D=0;if(!p){for(var P=1;Pj||nr.collapsed&&Sr.to==j&&Sr.from==j)){if(Sr.to!=null&&Sr.to!=j&&Ie>Sr.to&&(Ie=Sr.to,rt=""),nr.className&&(ct+=" "+nr.className),nr.css&&(Me=(Me?Me+";":"")+nr.css),nr.startStyle&&Sr.from==j&&(sr+=" "+nr.startStyle),nr.endStyle&&Sr.to==Ie&&(Zt||(Zt=[])).push(nr.endStyle,Sr.to),nr.title&&((fr||(fr={})).title=nr.title),nr.attributes)for(var Or in nr.attributes)(fr||(fr={}))[Or]=nr.attributes[Or];nr.collapsed&&(!Ot||Ca(Ot.marker,nr)<0)&&(Ot=Sr)}else Sr.from>j&&Ie>Sr.from&&(Ie=Sr.from)}if(Zt)for(var Br=0;Br=R)break;for(var ci=Math.min(R,Ie);;){if(Y){var Qn=j+Y.length;if(!Ot){var Vr=Qn>ci?Y.slice(0,ci-j):Y;s.addToken(s,Vr,he?he+ct:ct,sr,j+Vr.length==Ie?rt:"",Me,fr)}if(Qn>=ci){Y=Y.slice(ci-j),j=ci;break}j=Qn,sr=""}Y=f.slice(D,D=u[_++]),he=or(u[_++],s.cm.options)}}}function K(n,s,u){this.line=s,this.rest=xa(s),this.size=this.rest?cr(bn(this.rest))-u+1:1,this.node=this.text=null,this.hidden=hs(n,s)}function I(n,s,u){for(var p=[],f,D=s;D2&&D.push((j.bottom+_.top)/2-u.top)}}D.push(u.bottom-u.top)}}function Aa(n,s,u){if(n.line==s)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var p=0;pu)return{map:n.measure.maps[f],cache:n.measure.caches[f],before:!0}}}function Ro(n,s){s=vi(s);var u=cr(s),p=n.display.externalMeasured=new K(n.doc,s,u);p.lineN=u;var f=p.built=tr(n,p);return p.text=f.pre,Yt(n.display.lineMeasure,f.pre),p}function Du(n,s,u,p){return Ri(n,ra(n,s),u,p)}function Ts(n,s){if(s>=n.display.viewFrom&&s=u.lineN&&ss)&&(D=j-R,f=D-1,s>=j&&(P="right")),f!=null){if(p=n[_+2],R==j&&u==(p.insertLeft?"left":"right")&&(P=u),u=="left"&&f==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)p=n[(_-=3)+2],P="left";if(u=="right"&&f==j-R)for(;_=0&&(u=n[f]).left==u.right;f--);return u}function Fp(n,s,u,p){var f=$i(s.map,u,p),D=f.node,P=f.start,R=f.end,j=f.collapse,_;if(D.nodeType==3){for(var Y=0;Y<4;Y++){for(;P&&ri(s.line.text.charAt(f.coverStart+P));)--P;for(;f.coverStart+R0&&(j=p="right");var he;n.options.lineWrapping&&(he=D.getClientRects()).length>1?_=he[p=="right"?he.length-1:0]:_=D.getBoundingClientRect()}if(E&&b<9&&!P&&(!_||!_.left&&!_.right)){var Me=D.parentNode.getClientRects()[0];Me?_={left:Me.left,right:Me.left+Ho(n.display),top:Me.top,bottom:Me.bottom}:_=Cs}for(var Ie=_.top-s.rect.top,ct=_.bottom-s.rect.top,rt=(Ie+ct)/2,sr=s.view.measure.heights,Ot=0;Ot=p.text.length?(j=p.text.length,_="before"):j<=0&&(j=0,_="after"),!R)return P(_=="before"?j-1:j,_=="before");function Y(ct,rt,sr){var Ot=R[rt],fr=Ot.level==1;return P(sr?ct-1:ct,fr!=sr)}var he=dr(R,j,_),Me=zt,Ie=Y(j,he,_=="before");return Me!=null&&(Ie.other=Y(j,Me,_!="before")),Ie}function oi(n,s){var u=0;s=Jr(n.doc,s),n.options.lineWrapping||(u=Ho(n.display)*s.ch);var p=bt(n.doc,s.line),f=Ds(p)+dn(n.display);return{left:u,right:u,top:f,bottom:f+p.height}}function mt(n,s,u,p,f){var D=Vt(n,s,u);return D.xRel=f,p&&(D.outside=p),D}function $l(n,s,u){var p=n.doc;if(u+=n.display.viewOffset,u<0)return mt(p.first,0,null,-1,-1);var f=Ue(p,u),D=p.first+p.size-1;if(f>D)return mt(p.first+p.size-1,bt(p,D).text.length,null,1,1);s<0&&(s=0);for(var P=bt(p,f);;){var R=Wl(n,P,f,s,u),j=il(P,R.ch+(R.xRel>0||R.outside>0?1:0));if(!j)return R;var _=j.find(1);if(_.line==f)return _;P=bt(p,f=_.line)}}function Gl(n,s,u,p){p-=zl(s);var f=s.text.length,D=In(function(P){return Ri(n,u,P-1).bottom<=p},f,0);return f=In(function(P){return Ri(n,u,P).top>p},D,f),{begin:D,end:f}}function wa(n,s,u,p){u||(u=ra(n,s));var f=al(n,s,Ri(n,u,p),"line").top;return Gl(n,s,u,f)}function ul(n,s,u,p){return n.bottom<=u?!1:n.top>u?!0:(p?n.left:n.right)>s}function Wl(n,s,u,p,f){f-=Ds(s);var D=ra(n,s),P=zl(s),R=0,j=s.text.length,_=!0,Y=fn(s,n.doc.direction);if(Y){var he=(n.options.lineWrapping?xi:jo)(n,s,u,D,Y,p,f);_=he.level!=1,R=_?he.from:he.to-1,j=_?he.to:he.from-1}var Me=null,Ie=null,ct=In(function(hr){var Sr=Ri(n,D,hr);return Sr.top+=P,Sr.bottom+=P,ul(Sr,p,f,!1)?(Sr.top<=f&&Sr.left<=p&&(Me=hr,Ie=Sr),!0):!1},R,j),rt,sr,Ot=!1;if(Ie){var fr=p-Ie.left=Zt.bottom?1:0}return ct=ni(s.text,ct,1),mt(u,ct,sr,Ot,p-rt)}function jo(n,s,u,p,f,D,P){var R=In(function(he){var Me=f[he],Ie=Me.level!=1;return ul(Ss(n,Vt(u,Ie?Me.to:Me.from,Ie?"before":"after"),"line",s,p),D,P,!0)},0,f.length-1),j=f[R];if(R>0){var _=j.level!=1,Y=Ss(n,Vt(u,_?j.from:j.to,_?"after":"before"),"line",s,p);ul(Y,D,P,!0)&&Y.top>P&&(j=f[R-1])}return j}function xi(n,s,u,p,f,D,P){var R=Gl(n,s,p,P),j=R.begin,_=R.end;/\s/.test(s.text.charAt(_-1))&&_--;for(var Y=null,he=null,Me=0;Me=_||Ie.to<=j)){var ct=Ie.level!=1,rt=Ri(n,p,ct?Math.min(_,Ie.to)-1:Math.max(j,Ie.from)).right,sr=rtsr)&&(Y=Ie,he=sr)}}return Y||(Y=f[f.length-1]),Y.from_&&(Y={from:Y.from,to:_,level:Y.level}),Y}var co;function po(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(co==null){co=St("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)co.appendChild(document.createTextNode("x")),co.appendChild(St("br"));co.appendChild(document.createTextNode("x"))}Yt(n.measure,co);var u=co.offsetHeight/50;return u>3&&(n.cachedTextHeight=u),vt(n.measure),u||1}function Ho(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var s=St("span","xxxxxxxxxx"),u=St("pre",[s],"CodeMirror-line-like");Yt(n.measure,u);var p=s.getBoundingClientRect(),f=(p.right-p.left)/10;return f>2&&(n.cachedCharWidth=f),f||10}function Tu(n){for(var s=n.display,u={},p={},f=s.gutters.clientLeft,D=s.gutters.firstChild,P=0;D;D=D.nextSibling,++P){var R=n.display.gutterSpecs[P].className;u[R]=D.offsetLeft+D.clientLeft+f,p[R]=D.clientWidth}return{fixedPos:ws(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:p,wrapperWidth:s.wrapper.clientWidth}}function ws(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function ho(n){var s=po(n.display),u=n.options.lineWrapping,p=u&&Math.max(5,n.display.scroller.clientWidth/Ho(n.display)-3);return function(f){if(hs(n.doc,f))return 0;var D=0;if(f.widgets)for(var P=0;P0&&(_=bt(n.doc,j.line).text).length==j.ch){var Y=Qt(_,_.length,n.options.tabSize)-_.length;j=Vt(j.line,Math.max(0,Math.round((D-Pi(n.display).left)/Ho(n.display))-Y))}return j}function _a(n,s){if(s>=n.display.viewTo||(s-=n.display.viewFrom,s<0))return null;for(var u=n.display.view,p=0;ps)&&(f.updateLineNumbers=s),n.curOp.viewChanged=!0,s>=f.viewTo)Gr&&ao(n.doc,s)f.viewFrom?Zi(n):(f.viewFrom+=p,f.viewTo+=p);else if(s<=f.viewFrom&&u>=f.viewTo)Zi(n);else if(s<=f.viewFrom){var D=Cu(n,u,u+p,1);D?(f.view=f.view.slice(D.index),f.viewFrom=D.lineN,f.viewTo+=p):Zi(n)}else if(u>=f.viewTo){var P=Cu(n,s,s,-1);P?(f.view=f.view.slice(0,P.index),f.viewTo=P.lineN):Zi(n)}else{var R=Cu(n,s,s,-1),j=Cu(n,u,u+p,1);R&&j?(f.view=f.view.slice(0,R.index).concat(I(n,R.lineN,j.lineN)).concat(f.view.slice(j.index)),f.viewTo+=p):Zi(n)}var _=f.externalMeasured;_&&(u<_.lineN?_.lineN+=p:s<_.lineN+_.size&&(f.externalMeasured=null))}function na(n,s,u){n.curOp.viewChanged=!0;var p=n.display,f=n.display.externalMeasured;if(f&&s>=f.lineN&&s=p.viewTo)){var D=p.view[_a(n,s)];if(D.node!=null){var P=D.changes||(D.changes=[]);br(P,u)==-1&&P.push(u)}}}function Zi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Cu(n,s,u,p){var f=_a(n,s),D,P=n.display.view;if(!Gr||u==n.doc.first+n.doc.size)return{index:f,lineN:u};for(var R=n.display.viewFrom,j=0;j0){if(f==P.length-1)return null;D=R+P[f].size-s,f++}else D=R-s;s+=D,u+=D}for(;ao(n.doc,u)!=u;){if(f==(p<0?0:P.length-1))return null;u+=p*P[f-(p<0?1:0)].size,f+=p}return{index:f,lineN:u}}function Kn(n,s,u){var p=n.display,f=p.view;f.length==0||s>=p.viewTo||u<=p.viewFrom?(p.view=I(n,s,u),p.viewFrom=s):(p.viewFrom>s?p.view=I(n,s,p.viewFrom).concat(p.view):p.viewFromu&&(p.view=p.view.slice(0,_a(n,u)))),p.viewTo=u}function mo(n){for(var s=n.display.view,u=0,p=0;p=n.display.viewTo||j.to().line0?P:n.defaultCharWidth())+"px"}if(p.other){var R=u.appendChild(St("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));R.style.display="",R.style.left=p.other.left+"px",R.style.top=p.other.top+"px",R.style.height=(p.other.bottom-p.other.top)*.85+"px"}}function ia(n,s){return n.top-s.top||n.left-s.left}function Uo(n,s,u){var p=n.display,f=n.doc,D=document.createDocumentFragment(),P=Pi(n.display),R=P.left,j=Math.max(p.sizerWidth,zi(n)-p.sizer.offsetLeft)-P.right,_=f.direction=="ltr";function Y(It,Zt,hr,Sr){Zt<0&&(Zt=0),Zt=Math.round(Zt),Sr=Math.round(Sr),D.appendChild(St("div",null,"CodeMirror-selected","position: absolute; left: "+It+`px; + top: `+Zt+"px; width: "+(hr??j-It)+`px; + height: `+(Sr-Zt)+"px"))}function he(It,Zt,hr){var Sr=bt(f,It),nr=Sr.text.length,Or,Br;function yt(Vr,tn){return ol(n,Vt(It,Vr),"div",Sr,tn)}function ci(Vr,tn,Cn){var Zn=wa(n,Sr,null,Vr),Ce=tn=="ltr"==(Cn=="after")?"left":"right",wt=Cn=="after"?Zn.begin:Zn.end-(/\s/.test(Sr.text.charAt(Zn.end-1))?2:1);return yt(wt,Ce)[Ce]}var Qn=fn(Sr,f.direction);return Hn(Qn,Zt||0,hr??nr,function(Vr,tn,Cn,Zn){var Ce=Cn=="ltr",wt=yt(Vr,Ce?"left":"right"),Pr=yt(tn-1,Ce?"right":"left"),xn=Zt==null&&Vr==0,gn=hr==null&&tn==nr,ii=Zn==0,zn=!Qn||Zn==Qn.length-1;if(Pr.top-wt.top<=3){var $n=(_?xn:gn)&&ii,gs=(_?gn:xn)&&zn,si=$n?R:(Ce?wt:Pr).left,qr=gs?j:(Ce?Pr:wt).right;Y(si,wt.top,qr-si,wt.bottom)}else{var un,ji,au,tp;Ce?(un=_&&xn&&ii?R:wt.left,ji=_?j:ci(Vr,Cn,"before"),au=_?R:ci(tn,Cn,"after"),tp=_&&gn&&zn?j:Pr.right):(un=_?ci(Vr,Cn,"before"):R,ji=!_&&xn&&ii?j:wt.right,au=!_&&gn&&zn?R:Pr.left,tp=_?ci(tn,Cn,"after"):j),Y(un,wt.top,ji-un,wt.bottom),wt.bottom0?s.blinker=setInterval(function(){n.hasFocus()||ka(n),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function bu(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||go(n))}function Au(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&ka(n))},100)}function go(n,s){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Ar(n,"focus",n,s),n.state.focused=!0,Ur(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),N&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),ks(n))}function ka(n,s){n.state.delayingBlurEvent||(n.state.focused&&(Ar(n,"blur",n,s),n.state.focused=!1,Kt(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Fs(n){for(var s=n.display,u=s.lineDiv.offsetTop,p=Math.max(0,s.scroller.getBoundingClientRect().top),f=s.lineDiv.getBoundingClientRect().top,D=0,P=0;P.005||Ie<-.005)&&(fn.display.sizerWidth){var rt=Math.ceil(Y/Ho(n.display));rt>n.display.maxLineLength&&(n.display.maxLineLength=rt,n.display.maxLine=R.line,n.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(s.scroller.scrollTop+=D)}function zo(n){if(n.widgets)for(var s=0;s=P&&(D=Ue(s,Ds(bt(s,j))-n.wrapper.clientHeight),P=j)}return{from:D,to:Math.max(P,D+1)}}function Su(n,s){if(!Rr(n,"scrollCursorIntoView")){var u=n.display,p=u.sizer.getBoundingClientRect(),f=null;if(s.top+p.top<0?f=!0:s.bottom+p.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!Ae){var D=St("div","​",null,`position: absolute; + top: `+(s.top-u.viewOffset-dn(n.display))+`px; + height: `+(s.bottom-s.top+li(n)+u.barHeight)+`px; + left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");n.display.lineSpace.appendChild(D),D.scrollIntoView(f),n.display.lineSpace.removeChild(D)}}}function Ps(n,s,u,p){p==null&&(p=0);var f;!n.options.lineWrapping&&s==u&&(u=s.sticky=="before"?Vt(s.line,s.ch+1,"before"):s,s=s.ch?Vt(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var D=0;D<5;D++){var P=!1,R=Ss(n,s),j=!u||u==s?R:Ss(n,u);f={left:Math.min(R.left,j.left),top:Math.min(R.top,j.top)-p,right:Math.max(R.left,j.left),bottom:Math.max(R.bottom,j.bottom)+p};var _=wu(n,f),Y=n.doc.scrollTop,he=n.doc.scrollLeft;if(_.scrollTop!=null&&(oa(n,_.scrollTop),Math.abs(n.doc.scrollTop-Y)>1&&(P=!0)),_.scrollLeft!=null&&(Ns(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-he)>1&&(P=!0)),!P)break}return f}function Fa(n,s){var u=wu(n,s);u.scrollTop!=null&&oa(n,u.scrollTop),u.scrollLeft!=null&&Ns(n,u.scrollLeft)}function wu(n,s){var u=n.display,p=po(n.display);s.top<0&&(s.top=0);var f=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:u.scroller.scrollTop,D=Hs(n),P={};s.bottom-s.top>D&&(s.bottom=s.top+D);var R=n.doc.height+Fn(u),j=s.topR-p;if(s.topf+D){var Y=Math.min(s.top,(_?R:s.bottom)-D);Y!=f&&(P.scrollTop=Y)}var he=n.options.fixedGutter?0:u.gutters.offsetWidth,Me=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:u.scroller.scrollLeft-he,Ie=zi(n)-u.gutters.offsetWidth,ct=s.right-s.left>Ie;return ct&&(s.right=s.left+Ie),s.left<10?P.scrollLeft=0:s.leftIe+Me-3&&(P.scrollLeft=s.right+(ct?0:10)-Ie),P}function $s(n,s){s!=null&&(aa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+s)}function sa(n){aa(n);var s=n.getCursor();n.curOp.scrollToPos={from:s,to:s,margin:n.options.cursorScrollMargin}}function $o(n,s,u){(s!=null||u!=null)&&aa(n),s!=null&&(n.curOp.scrollLeft=s),u!=null&&(n.curOp.scrollTop=u)}function Go(n,s){aa(n),n.curOp.scrollToPos=s}function aa(n){var s=n.curOp.scrollToPos;if(s){n.curOp.scrollToPos=null;var u=oi(n,s.from),p=oi(n,s.to);Wo(n,u,p,s.margin)}}function Wo(n,s,u,p){var f=wu(n,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-p,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+p});$o(n,f.scrollLeft,f.scrollTop)}function oa(n,s){Math.abs(n.doc.scrollTop-s)<2||(r||cl(n,{top:s}),_u(n,s,!0),r&&cl(n),La(n,100))}function _u(n,s,u){s=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,s)),!(n.display.scroller.scrollTop==s&&!u)&&(n.doc.scrollTop=s,n.display.scrollbars.setScrollTop(s),n.display.scroller.scrollTop!=s&&(n.display.scroller.scrollTop=s))}function Ns(n,s,u,p){s=Math.max(0,Math.min(s,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((u?s==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-s)<2)&&!p)&&(n.doc.scrollLeft=s,vo(n),n.display.scroller.scrollLeft!=s&&(n.display.scroller.scrollLeft=s),n.display.scrollbars.setScrollLeft(s))}function Pa(n){var s=n.display,u=s.gutters.offsetWidth,p=Math.round(n.doc.height+Fn(n.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:n.options.fixedGutter?u:0,docHeight:p,scrollHeight:p+li(n)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var Na=function(n,s,u){this.cm=u;var p=this.vert=St("div",[St("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=St("div",[St("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");p.tabIndex=f.tabIndex=-1,n(p),n(f),Nr(p,"scroll",function(){p.clientHeight&&s(p.scrollTop,"vertical")}),Nr(f,"scroll",function(){f.clientWidth&&s(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,E&&b<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Na.prototype.update=function(n){var s=n.scrollWidth>n.clientWidth+1,u=n.scrollHeight>n.clientHeight+1,p=n.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?p+"px":"0";var f=n.viewHeight-(s?p:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?p+"px":"0",this.horiz.style.left=n.barLeft+"px";var D=n.viewWidth-n.barLeft-(u?p:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+D)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(p==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?p:0,bottom:s?p:0}},Na.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Na.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Na.prototype.zeroWidthHack=function(){var n=et&&!re?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ve,this.disableVert=new Ve},Na.prototype.enableZeroWidthBar=function(n,s,u){n.style.pointerEvents="auto";function p(){var f=n.getBoundingClientRect(),D=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);D!=n?n.style.pointerEvents="none":s.set(1e3,p)}s.set(1e3,p)},Na.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Gs=function(){};Gs.prototype.update=function(){return{bottom:0,right:0}},Gs.prototype.setScrollLeft=function(){},Gs.prototype.setScrollTop=function(){},Gs.prototype.clear=function(){};function Vo(n,s){s||(s=Pa(n));var u=n.display.barWidth,p=n.display.barHeight;qo(n,s);for(var f=0;f<4&&u!=n.display.barWidth||p!=n.display.barHeight;f++)u!=n.display.barWidth&&n.options.lineWrapping&&Fs(n),qo(n,Pa(n)),u=n.display.barWidth,p=n.display.barHeight}function qo(n,s){var u=n.display,p=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=p.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=p.bottom)+"px",u.heightForcer.style.borderBottom=p.bottom+"px solid transparent",p.right&&p.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=p.bottom+"px",u.scrollbarFiller.style.width=p.right+"px"):u.scrollbarFiller.style.display="",p.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=p.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}var ql={native:Na,null:Gs};function Kl(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&Kt(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ql[n.options.scrollbarStyle](function(s){n.display.wrapper.insertBefore(s,n.display.scrollbarFiller),Nr(s,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Ns(n,s):oa(n,s)},n),n.display.scrollbars.addClass&&Ur(n.display.wrapper,n.display.scrollbars.addClass)}var Ko=0;function ua(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ko,markArrays:null},de(n.curOp)}function Ia(n){var s=n.curOp;s&&at(s,function(u){for(var p=0;p=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,n.update=n.mustUpdate&&new yo(s,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Ip(n){n.updatedDisplay=n.mustUpdate&&la(n.cm,n.update)}function ds(n){var s=n.cm,u=s.display;n.updatedDisplay&&Fs(s),n.barMeasure=Pa(s),u.maxLineChanged&&!s.options.lineWrapping&&(n.adjustWidthTo=Du(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+n.adjustWidthTo+li(s)+s.display.barWidth),n.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+n.adjustWidthTo-zi(s))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=u.input.prepareSelection())}function Yo(n){var s=n.cm;n.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)){var u=+new Date+n.options.workTime,p=Bs(n,s.highlightFrontier),f=[];s.iter(p.line,Math.min(s.first+s.size,n.display.viewTo+500),function(D){if(p.line>=n.display.viewFrom){var P=D.styles,R=D.text.length>n.options.maxHighlightLength?gt(s.mode,p.state):null,j=ta(n,D,p,!0);R&&(p.state=R),D.styles=j.styles;var _=D.styleClasses,Y=j.classes;Y?D.styleClasses=Y:_&&(D.styleClasses=null);for(var he=!P||P.length!=D.styles.length||_!=Y&&(!_||!Y||_.bgClass!=Y.bgClass||_.textClass!=Y.textClass),Me=0;!he&&Meu)return La(n,n.options.workDelay),!0}),s.highlightFrontier=p.line,s.modeFrontier=Math.max(s.modeFrontier,p.line),f.length&&Mi(n,function(){for(var D=0;D=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&mo(n)==0)return!1;Eo(n)&&(Zi(n),s.dims=Tu(n));var f=p.first+p.size,D=Math.max(s.visible.from-n.options.viewportMargin,p.first),P=Math.min(f,s.visible.to+n.options.viewportMargin);u.viewFromP&&u.viewTo-P<20&&(P=Math.min(f,u.viewTo)),Gr&&(D=ao(n.doc,D),P=oo(n.doc,P));var R=D!=u.viewFrom||P!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;Kn(n,D,P),u.viewOffset=Ds(bt(n.doc,u.viewFrom)),n.display.mover.style.top=u.viewOffset+"px";var j=mo(n);if(!R&&j==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var _=Xo(n);return j>4&&(u.lineDiv.style.display="none"),Xl(n,u.updateLineNumbers,s.dims),j>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Fu(_),vt(u.cursorDiv),vt(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,R&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,La(n,400)),u.updateLineNumbers=null,!0}function Yl(n,s){for(var u=s.viewport,p=!0;;p=!1){if(!p||!n.options.lineWrapping||s.oldDisplayWidth==zi(n)){if(u&&u.top!=null&&(u={top:Math.min(n.doc.height+Fn(n.display)-Hs(n),u.top)}),s.visible=zs(n.display,n.doc,u),s.visible.from>=n.display.viewFrom&&s.visible.to<=n.display.viewTo)break}else p&&(s.visible=zs(n.display,n.doc,u));if(!la(n,s))break;Fs(n);var f=Pa(n);xu(n),Vo(n,f),Jl(n,f),s.force=!1}s.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(s.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function cl(n,s){var u=new yo(n,s);if(la(n,u)){Fs(n),Yl(n,u);var p=Pa(n);xu(n),Vo(n,p),Jl(n,p),u.finish()}}function Xl(n,s,u){var p=n.display,f=n.options.lineNumbers,D=p.lineDiv,P=D.firstChild;function R(ct){var rt=ct.nextSibling;return N&&et&&n.display.currentWheelTarget==ct?ct.style.display="none":ct.parentNode.removeChild(ct),rt}for(var j=p.view,_=p.viewFrom,Y=0;Y-1&&(Ie=!1),ke(n,he,_,u)),Ie&&(vt(he.lineNumber),he.lineNumber.appendChild(document.createTextNode(en(n.options,_)))),P=he.node.nextSibling}_+=he.size}for(;P;)P=R(P)}function pl(n){var s=n.gutters.offsetWidth;n.sizer.style.marginLeft=s+"px",ee(n,"gutterChanged",n)}function Jl(n,s){n.display.sizer.style.minHeight=s.docHeight+"px",n.display.heightForcer.style.top=s.docHeight+"px",n.display.gutters.style.height=s.docHeight+n.display.barHeight+li(n)+"px"}function vo(n){var s=n.display,u=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!n.options.fixedGutter))){for(var p=ws(s)-s.scroller.scrollLeft+n.doc.scrollLeft,f=s.gutters.offsetWidth,D=p+"px",P=0;PR.clientWidth,_=R.scrollHeight>R.clientHeight;if(p&&j||f&&_){if(f&&et&&N){e:for(var Y=s.target,he=P.view;Y!=R;Y=Y.parentNode)for(var Me=0;Me=0&&Dt(n,p.to())<=0)return u}return-1};var Un=function(n,s){this.anchor=n,this.head=s};Un.prototype.from=function(){return ls(this.anchor,this.head)},Un.prototype.to=function(){return Ci(this.anchor,this.head)},Un.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function os(n,s,u){var p=n&&n.options.selectionsMayTouch,f=s[u];s.sort(function(Me,Ie){return Dt(Me.from(),Ie.from())}),u=br(s,f);for(var D=1;D0:j>=0){var _=ls(R.from(),P.from()),Y=Ci(R.to(),P.to()),he=R.empty()?P.from()==P.head:R.from()==R.head;D<=u&&--u,s.splice(--D,2,new Un(he?Y:_,he?_:Y))}}return new es(s,u)}function Vs(n,s){return new es([new Un(n,s||n)],0)}function Ba(n){return n.text?Vt(n.from.line+n.text.length-1,bn(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Fc(n,s){if(Dt(n,s.from)<0)return n;if(Dt(n,s.to)<=0)return Ba(s);var u=n.line+s.text.length-(s.to.line-s.from.line)-1,p=n.ch;return n.line==s.to.line&&(p+=Ba(s).ch-s.to.ch),Vt(u,p)}function Nu(n,s){for(var u=[],p=0;p1&&n.remove(R.line+1,ct-1),n.insert(R.line+1,Ot)}ee(n,"change",n,s)}function ts(n,s,u){function p(f,D,P){if(f.linked)for(var R=0;R1&&!n.done[n.done.length-2].ranges)return n.done.pop(),bn(n.done)}function Iu(n,s,u,p){var f=n.history;f.undone.length=0;var D=+new Date,P,R;if((f.lastOp==p||f.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&f.lastModTime>D-(n.cm?n.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(P=Ic(f,f.lastOp==p)))R=bn(P.changes),Dt(s.from,s.to)==0&&Dt(s.from,R.to)==0?R.to=Ba(s):P.changes.push(gl(n,s));else{var j=bn(f.done);for((!j||!j.ranges)&&vl(n.sel,f.done),P={changes:[gl(n,s)],generation:f.generation},f.done.push(P);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=D,f.lastOp=f.lastSelOp=p,f.lastOrigin=f.lastSelOrigin=s.origin,R||Ar(n,"historyAdded")}function Lc(n,s,u,p){var f=s.charAt(0);return f=="*"||f=="+"&&u.ranges.length==p.ranges.length&&u.somethingSelected()==p.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Mp(n,s,u,p){var f=n.history,D=p&&p.origin;u==f.lastSelOp||D&&f.lastSelOrigin==D&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==D||Lc(n,D,bn(f.done),s))?f.done[f.done.length-1]=s:vl(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=D,f.lastSelOp=u,p&&p.clearRedo!==!1&&yl(f.undone)}function vl(n,s){var u=bn(s);u&&u.ranges&&u.equals(n)||s.push(n)}function Oc(n,s,u,p){var f=s["spans_"+n.id],D=0;n.iter(Math.max(n.first,u),Math.min(n.first+n.size,p),function(P){P.markedSpans&&((f||(f=s["spans_"+n.id]={}))[D]=P.markedSpans),++D})}function Bp(n){if(!n)return null;for(var s,u=0;u-1&&(bn(R)[he]=_[he],delete _[he])}}return p}function eu(n,s,u,p){if(p){var f=n.anchor;if(u){var D=Dt(s,f)<0;D!=Dt(u,f)<0?(f=s,s=u):D!=Dt(s,u)<0&&(s=u)}return new Un(f,s)}else return new Un(u||s,s)}function Lu(n,s,u,p,f){f==null&&(f=n.cm&&(n.cm.display.shift||n.extend)),_i(n,new es([eu(n.sel.primary(),s,u,f)],0),p)}function Co(n,s,u){for(var p=[],f=n.cm&&(n.cm.display.shift||n.extend),D=0;D=s.ch:R.to>s.ch))){if(f&&(Ar(j,"beforeCursorEnter"),j.explicitlyCleared))if(D.markedSpans){--P;continue}else break;if(!j.atomic)continue;if(u){var he=j.find(p<0?1:-1),Me=void 0;if((p<0?Y:_)&&(he=sn(n,he,-p,he&&he.line==s.line?D:null)),he&&he.line==s.line&&(Me=Dt(he,u))&&(p<0?Me<0:Me>0))return xo(n,he,s,p,f)}var Ie=j.find(p<0?-1:1);return(p<0?_:Y)&&(Ie=sn(n,Ie,p,Ie.line==s.line?D:null)),Ie?xo(n,Ie,s,p,f):null}}return s}function Bu(n,s,u,p,f){var D=p||1,P=xo(n,s,u,D,f)||!f&&xo(n,s,u,D,!0)||xo(n,s,u,-D,f)||!f&&xo(n,s,u,-D,!0);return P||(n.cantEdit=!0,Vt(n.first,0))}function sn(n,s,u,p){return u<0&&s.ch==0?s.line>n.first?Jr(n,Vt(s.line-1)):null:u>0&&s.ch==(p||bt(n,s.line)).text.length?s.line=0;--f)jc(n,{from:p[f].from,to:p[f].to,text:f?[""]:s.text,origin:s.origin});else jc(n,s)}}function jc(n,s){if(!(s.text.length==1&&s.text[0]==""&&Dt(s.from,s.to)==0)){var u=Nu(n,s);Iu(n,s,u,n.cm?n.cm.curOp.id:NaN),Ru(n,s,u,vu(n,s));var p=[];ts(n,function(f,D){!D&&br(p,f.history)==-1&&(Uc(f.history,s),p.push(f.history)),Ru(f,s,null,vu(f,s))})}}function Tl(n,s,u){var p=n.cm&&n.cm.state.suppressEdits;if(!(p&&!u)){for(var f=n.history,D,P=n.sel,R=s=="undo"?f.done:f.undone,j=s=="undo"?f.undone:f.done,_=0;_=0;--Ie){var ct=Me(Ie);if(ct)return ct.v}}}}function Hc(n,s){if(s!=0&&(n.first+=s,n.sel=new es(gi(n.sel.ranges,function(f){return new Un(Vt(f.anchor.line+s,f.anchor.ch),Vt(f.head.line+s,f.head.ch))}),n.sel.primIndex),n.cm)){Qi(n.cm,n.first,n.first-s,s);for(var u=n.cm.display,p=u.viewFrom;pn.lastLine())){if(s.from.lineD&&(s={from:s.from,to:Vt(D,bt(n,D).text.length),text:[s.text[0]],origin:s.origin}),s.removed=yr(n,s.from,s.to),u||(u=Nu(n,s)),n.cm?jp(n.cm,s,p):tc(n,s,p),tu(n,u,Pn),n.cantEdit&&Bu(n,Vt(n.firstLine(),0))&&(n.cantEdit=!1)}}function jp(n,s,u){var p=n.doc,f=n.display,D=s.from,P=s.to,R=!1,j=D.line;n.options.lineWrapping||(j=cr(vi(bt(p,D.line))),p.iter(j,P.line+1,function(Ie){if(Ie==f.maxLine)return R=!0,!0})),p.sel.contains(s.from,s.to)>-1&&jr(n),tc(p,s,u,ho(n)),n.options.lineWrapping||(p.iter(j,D.line+s.text.length,function(Ie){var ct=ba(Ie);ct>f.maxLineLength&&(f.maxLine=Ie,f.maxLineLength=ct,f.maxLineChanged=!0,R=!1)}),R&&(n.curOp.updateMaxLine=!0)),Da(p,D.line),La(n,400);var _=s.text.length-(P.line-D.line)-1;s.full?Qi(n):D.line==P.line&&s.text.length==1&&!Zo(n.doc,s)?na(n,D.line,"text"):Qi(n,D.line,P.line+1,_);var Y=an(n,"changes"),he=an(n,"change");if(he||Y){var Me={from:D,to:P,text:s.text,removed:s.removed,origin:s.origin};he&&ee(n,"change",n,Me),Y&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(Me)}n.display.selForContextMenu=null}function ms(n,s,u,p,f){var D;p||(p=u),Dt(p,u)<0&&(D=[p,u],u=D[0],p=D[1]),typeof s=="string"&&(s=n.splitLines(s)),Ra(n,{from:u,to:p,text:s,origin:f})}function pa(n,s,u,p){u1||!(this.children[0]instanceof Ks))){var R=[];this.collapse(R),this.children=[new Ks(R)],this.children[0].parent=this}},collapse:function(n){for(var s=0;s50){for(var P=f.lines.length%25+25,R=P;R10);n.parent.maybeSpill()}},iterN:function(n,s,u){for(var p=0;pn.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=Y,n.display.maxLineChanged=!0)}p!=null&&n&&this.collapsed&&Qi(n,p,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&qs(n.doc)),n&&ee(n,"markerCleared",n,this,p,f),s&&Ia(n),this.parent&&this.parent.clear()}},ha.prototype.find=function(n,s){n==null&&this.type=="bookmark"&&(n=1);for(var u,p,f=0;f0||P==0&&D.clearWhenEmpty!==!1)return D;if(D.replacedWith&&(D.collapsed=!0,D.widgetNode=ft("span",[D.replacedWith],"CodeMirror-widget"),p.handleMouseEvents||D.widgetNode.setAttribute("cm-ignore-events","true"),p.insertLeft&&(D.widgetNode.insertLeft=!0)),D.collapsed){if(Eu(n,s.line,s,u,D)||s.line!=u.line&&Eu(n,u.line,s,u,D))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bl()}D.addToHistory&&Iu(n,{from:s,to:u,origin:"markText"},n.sel,NaN);var R=s.line,j=n.cm,_;if(n.iter(R,u.line+1,function(he){j&&D.collapsed&&!j.options.lineWrapping&&vi(he)==j.display.maxLine&&(_=!0),D.collapsed&&R!=s.line&&wr(he,0),Rl(he,new Oo(D,R==s.line?s.ch:null,R==u.line?u.ch:null),n.cm&&n.cm.curOp),++R}),D.collapsed&&n.iter(s.line,u.line+1,function(he){hs(n,he)&&wr(he,0)}),D.clearOnEnter&&Nr(D,"beforeCursorEnter",function(){return D.clear()}),D.readOnly&&(Zu(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),D.collapsed&&(D.id=++$c,D.atomic=!0),j){if(_&&(j.curOp.updateMaxLine=!0),D.collapsed)Qi(j,s.line,u.line+1);else if(D.className||D.startStyle||D.endStyle||D.css||D.attributes||D.title)for(var Y=s.line;Y<=u.line;Y++)na(j,Y,"text");D.atomic&&qs(j.doc),ee(j,"markerAdded",j,D)}return D}var Ao=function(n,s){this.markers=n,this.primary=s;for(var u=0;u=0;j--)Ra(this,p[j]);R?Mu(this,R):this.cm&&sa(this.cm)}),undo:ui(function(){Tl(this,"undo")}),redo:ui(function(){Tl(this,"redo")}),undoSelection:ui(function(){Tl(this,"undo",!0)}),redoSelection:ui(function(){Tl(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,s=0,u=0,p=0;p=n.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(n,s,u){n=Jr(this,n),s=Jr(this,s);var p=[],f=n.line;return this.iter(n.line,s.line+1,function(D){var P=D.markedSpans;if(P)for(var R=0;R=j.to||j.from==null&&f!=n.line||j.from!=null&&f==s.line&&j.from>=s.ch)&&(!u||u(j.marker))&&p.push(j.marker.parent||j.marker)}++f}),p},getAllMarks:function(){var n=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var p=0;pn)return s=n,!0;n-=D,++u}),Jr(this,Vt(u,s))},indexFromPos:function(n){n=Jr(this,n);var s=n.ch;if(n.lines&&(s=n.from),n.to!=null&&n.to-1){s.state.draggingText(n),setTimeout(function(){return s.display.input.focus()},20);return}try{var Y=n.dataTransfer.getData("Text");if(Y){var he;if(s.state.draggingText&&!s.state.draggingText.copy&&(he=s.listSelections()),tu(s.doc,Vs(u,u)),he)for(var Me=0;Me=0;R--)ms(n.doc,"",p[R].from,p[R].to,"+delete");sa(n)})}function sc(n,s,u){var p=ni(n.text,s+u,u);return p<0||p>n.text.length?null:p}function $a(n,s,u){var p=sc(n,s.ch,u);return p==null?null:new Vt(s.line,p,u<0?"after":"before")}function ac(n,s,u,p,f){if(n){s.doc.direction=="rtl"&&(f=-f);var D=fn(u,s.doc.direction);if(D){var P=f<0?bn(D):D[0],R=f<0==(P.level==1),j=R?"after":"before",_;if(P.level>0||s.doc.direction=="rtl"){var Y=ra(s,u);_=f<0?u.text.length-1:0;var he=Ri(s,Y,_).top;_=In(function(Me){return Ri(s,Y,Me).top==he},f<0==(P.level==1)?P.from:P.to-1,_),j=="before"&&(_=sc(u,_,1))}else _=f<0?P.to:P.from;return new Vt(p,_,j)}}return new Vt(p,f<0?u.text.length:0,f<0?"before":"after")}function Uu(n,s,u,p){var f=fn(s,n.doc.direction);if(!f)return $a(s,u,p);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var D=dr(f,u.ch,u.sticky),P=f[D];if(n.doc.direction=="ltr"&&P.level%2==0&&(p>0?P.to>u.ch:P.from=P.from&&Me>=Y.begin)){var Ie=he?"before":"after";return new Vt(u.line,Me,Ie)}}var ct=function(Ot,fr,It){for(var Zt=function(Or,Br){return Br?new Vt(u.line,R(Or,1),"before"):new Vt(u.line,Or,"after")};Ot>=0&&Ot0==(hr.level!=1),nr=Sr?It.begin:R(It.end,-1);if(hr.from<=nr&&nr0?Y.end:R(Y.begin,-1);return sr!=null&&!(p>0&&sr==s.text.length)&&(rt=ct(p>0?0:f.length-1,p,_(sr)),rt)?rt:null}var su={selectAll:El,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Pn)},killLine:function(n){return iu(n,function(s){if(s.empty()){var u=bt(n.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line0)f=new Vt(f.line,f.ch+1),n.replaceRange(D.charAt(f.ch-1)+D.charAt(f.ch-2),Vt(f.line,f.ch-2),f,"+transpose");else if(f.line>n.doc.first){var P=bt(n.doc,f.line-1).text;P&&(f=new Vt(f.line,1),n.replaceRange(D.charAt(0)+n.doc.lineSeparator()+P.charAt(P.length-1),Vt(f.line-1,P.length-1),f,"+transpose"))}}u.push(new Un(f,f))}n.setSelections(u)})},newlineAndIndent:function(n){return Mi(n,function(){for(var s=n.listSelections(),u=s.length-1;u>=0;u--)n.replaceRange(n.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=n.listSelections();for(var p=0;pn&&Dt(s,this.pos)==0&&u==this.button};var $,Q;function ce(n,s){var u=+new Date;return Q&&Q.compare(u,n,s)?($=Q=null,"triple"):$&&$.compare(u,n,s)?(Q=new U(u,n,s),$=null,"double"):($=new U(u,n,s),Q=null,"single")}function ge(n){var s=this,u=s.display;if(!(Rr(s,n)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=n.shiftKey,pn(u,n)){N||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!W(s,n)){var p=fo(s,n),f=as(n),D=p?ce(p,f):"single";window.focus(),f==1&&s.state.selectingText&&s.state.selectingText(n),!(p&&ne(s,f,p,D,n))&&(f==1?p?ue(s,p,D,n):ss(n)==u.scroller&&Xn(n):f==2?(p&&Lu(s.doc,p),setTimeout(function(){return u.input.focus()},20)):f==3&&(ht?s.display.input.onContextMenu(n):Au(s)))}}}function ne(n,s,u,p,f){var D="Click";return p=="double"?D="Double"+D:p=="triple"&&(D="Triple"+D),D=(s==1?"Left":s==2?"Middle":"Right")+D,y(n,Zc(D,f),f,function(P){if(typeof P=="string"&&(P=su[P]),!P)return!1;var R=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),R=P(n,u)!=yn}finally{n.state.suppressEdits=!1}return R})}function me(n,s,u){var p=n.getOption("configureMouse"),f=p?p(n,s,u):{};if(f.unit==null){var D=Ke?u.shiftKey&&u.metaKey:u.altKey;f.unit=D?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(f.extend==null||n.doc.extend)&&(f.extend=n.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=et?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(et?u.altKey:u.ctrlKey)),f}function ue(n,s,u,p){E?setTimeout(fe(bu,n),0):n.curOp.focus=ur();var f=me(n,u,p),D=n.doc.sel,P;n.options.dragDrop&&Ji&&!n.isReadOnly()&&u=="single"&&(P=D.contains(s))>-1&&(Dt((P=D.ranges[P]).from(),s)<0||s.xRel>0)&&(Dt(P.to(),s)>0||s.xRel<0)?Ee(n,p,s,f):Oe(n,p,s,f)}function Ee(n,s,u,p){var f=n.display,D=!1,P=bi(n,function(_){N&&(f.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Au(n)),Ht(f.wrapper.ownerDocument,"mouseup",P),Ht(f.wrapper.ownerDocument,"mousemove",R),Ht(f.scroller,"dragstart",j),Ht(f.scroller,"drop",P),D||(Xn(_),p.addNew||Lu(n.doc,u,null,null,p.extend),N&&!ie||E&&b==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),R=function(_){D=D||Math.abs(s.clientX-_.clientX)+Math.abs(s.clientY-_.clientY)>=10},j=function(){return D=!0};N&&(f.scroller.draggable=!0),n.state.draggingText=P,P.copy=!p.moveOnDrag,Nr(f.wrapper.ownerDocument,"mouseup",P),Nr(f.wrapper.ownerDocument,"mousemove",R),Nr(f.scroller,"dragstart",j),Nr(f.scroller,"drop",P),n.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function ye(n,s,u){if(u=="char")return new Un(s,s);if(u=="word")return n.findWordAt(s);if(u=="line")return new Un(Vt(s.line,0),Jr(n.doc,Vt(s.line+1,0)));var p=u(n,s);return new Un(p.from,p.to)}function Oe(n,s,u,p){E&&Au(n);var f=n.display,D=n.doc;Xn(s);var P,R,j=D.sel,_=j.ranges;if(p.addNew&&!p.extend?(R=D.sel.contains(u),R>-1?P=_[R]:P=new Un(u,u)):(P=D.sel.primary(),R=D.sel.primIndex),p.unit=="rectangle")p.addNew||(P=new Un(u,u)),u=fo(n,s,!0,!0),R=-1;else{var Y=ye(n,u,p.unit);p.extend?P=eu(P,Y.anchor,Y.head,p.extend):P=Y}p.addNew?R==-1?(R=_.length,_i(D,os(n,_.concat([P]),R),{scroll:!1,origin:"*mouse"})):_.length>1&&_[R].empty()&&p.unit=="char"&&!p.extend?(_i(D,os(n,_.slice(0,R).concat(_.slice(R+1)),0),{scroll:!1,origin:"*mouse"}),j=D.sel):rc(D,R,P,En):(R=0,_i(D,new es([P],0),En),j=D.sel);var he=u;function Me(It){if(Dt(he,It)!=0)if(he=It,p.unit=="rectangle"){for(var Zt=[],hr=n.options.tabSize,Sr=Qt(bt(D,u.line).text,u.ch,hr),nr=Qt(bt(D,It.line).text,It.ch,hr),Or=Math.min(Sr,nr),Br=Math.max(Sr,nr),yt=Math.min(u.line,It.line),ci=Math.min(n.lastLine(),Math.max(u.line,It.line));yt<=ci;yt++){var Qn=bt(D,yt).text,Vr=Dn(Qn,Or,hr);Or==Br?Zt.push(new Un(Vt(yt,Vr),Vt(yt,Vr))):Qn.length>Vr&&Zt.push(new Un(Vt(yt,Vr),Vt(yt,Dn(Qn,Br,hr))))}Zt.length||Zt.push(new Un(u,u)),_i(D,os(n,j.ranges.slice(0,R).concat(Zt),R),{origin:"*mouse",scroll:!1}),n.scrollIntoView(It)}else{var tn=P,Cn=ye(n,It,p.unit),Zn=tn.anchor,Ce;Dt(Cn.anchor,Zn)>0?(Ce=Cn.head,Zn=ls(tn.from(),Cn.anchor)):(Ce=Cn.anchor,Zn=Ci(tn.to(),Cn.head));var wt=j.ranges.slice(0);wt[R]=V(n,new Un(Jr(D,Zn),Ce)),_i(D,os(n,wt,R),En)}}var Ie=f.wrapper.getBoundingClientRect(),ct=0;function rt(It){var Zt=++ct,hr=fo(n,It,!0,p.unit=="rectangle");if(hr)if(Dt(hr,he)!=0){n.curOp.focus=ur(),Me(hr);var Sr=zs(f,D);(hr.line>=Sr.to||hr.lineIe.bottom?20:0;nr&&setTimeout(bi(n,function(){ct==Zt&&(f.scroller.scrollTop+=nr,rt(It))}),50)}}function sr(It){n.state.selectingText=!1,ct=1/0,It&&(Xn(It),f.input.focus()),Ht(f.wrapper.ownerDocument,"mousemove",Ot),Ht(f.wrapper.ownerDocument,"mouseup",fr),D.history.lastSelOrigin=null}var Ot=bi(n,function(It){It.buttons===0||!as(It)?sr(It):rt(It)}),fr=bi(n,sr);n.state.selectingText=fr,Nr(f.wrapper.ownerDocument,"mousemove",Ot),Nr(f.wrapper.ownerDocument,"mouseup",fr)}function V(n,s){var u=s.anchor,p=s.head,f=bt(n.doc,u.line);if(Dt(u,p)==0&&u.sticky==p.sticky)return s;var D=fn(f);if(!D)return s;var P=dr(D,u.ch,u.sticky),R=D[P];if(R.from!=u.ch&&R.to!=u.ch)return s;var j=P+(R.from==u.ch==(R.level!=1)?0:1);if(j==0||j==D.length)return s;var _;if(p.line!=u.line)_=(p.line-u.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var Y=dr(D,p.ch,p.sticky),he=Y-P||(p.ch-u.ch)*(R.level==1?-1:1);Y==j-1||Y==j?_=he<0:_=he>0}var Me=D[j+(_?-1:0)],Ie=_==(Me.level==1),ct=Ie?Me.from:Me.to,rt=Ie?"after":"before";return u.ch==ct&&u.sticky==rt?s:new Un(new Vt(u.line,ct,rt),p)}function le(n,s,u,p){var f,D;if(s.touches)f=s.touches[0].clientX,D=s.touches[0].clientY;else try{f=s.clientX,D=s.clientY}catch{return!1}if(f>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;p&&Xn(s);var P=n.display,R=P.lineDiv.getBoundingClientRect();if(D>R.bottom||!an(n,u))return is(s);D-=R.top-P.viewOffset;for(var j=0;j=f){var Y=Ue(n.doc,D),he=n.display.gutterSpecs[j];return Ar(n,u,n,Y,he.className,s),is(s)}}}function W(n,s){return le(n,s,"gutterClick",!0)}function te(n,s){pn(n.display,s)||B(n,s)||Rr(n,s,"contextmenu")||ht||n.display.input.onContextMenu(s)}function B(n,s){return an(n,"gutterContextMenu")?le(n,s,"gutterContextMenu",!1):!1}function X(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Sa(n)}var Z={toString:function(){return"CodeMirror.Init"}},se={},ae={};function pe(n){var s=n.optionHandlers;function u(p,f,D,P){n.defaults[p]=f,D&&(s[p]=P?function(R,j,_){_!=Z&&D(R,j,_)}:D)}n.defineOption=u,n.Init=Z,u("value","",function(p,f){return p.setValue(f)},!0),u("mode",null,function(p,f){p.doc.modeOption=f,ec(p)},!0),u("indentUnit",2,ec,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(p){Qo(p),Sa(p),Qi(p)},!0),u("lineSeparator",null,function(p,f){if(p.doc.lineSep=f,!!f){var D=[],P=p.doc.first;p.doc.iter(function(j){for(var _=0;;){var Y=j.text.indexOf(f,_);if(Y==-1)break;_=Y+f.length,D.push(Vt(P,Y))}P++});for(var R=D.length-1;R>=0;R--)ms(p.doc,f,D[R],Vt(D[R].line,D[R].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(p,f,D){p.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),D!=Z&&p.refresh()}),u("specialCharPlaceholder",mr,function(p){return p.refresh()},!0),u("electricChars",!0),u("inputStyle",Ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(p,f){return p.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(p,f){return p.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(p,f){return p.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!Re),u("wholeLineUpdateBefore",!0),u("theme","default",function(p){X(p),Oa(p)},!0),u("keyMap","default",function(p,f,D){var P=xl(f),R=D!=Z&&xl(D);R&&R.detach&&R.detach(p,P),P.attach&&P.attach(p,R||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,we,!0),u("gutters",[],function(p,f){p.display.gutterSpecs=hl(f,p.options.lineNumbers),Oa(p)},!0),u("fixedGutter",!0,function(p,f){p.display.gutters.style.left=f?ws(p.display)+"px":"0",p.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(p){return Vo(p)},!0),u("scrollbarStyle","native",function(p){Kl(p),Vo(p),p.display.scrollbars.setScrollTop(p.doc.scrollTop),p.display.scrollbars.setScrollLeft(p.doc.scrollLeft)},!0),u("lineNumbers",!1,function(p,f){p.display.gutterSpecs=hl(p.options.gutters,f),Oa(p)},!0),u("firstLineNumber",1,Oa,!0),u("lineNumberFormatter",function(p){return p},Oa,!0),u("showCursorWhenSelecting",!1,xu,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(p,f){f=="nocursor"&&(ka(p),p.display.input.blur()),p.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(p,f){f=f===""?null:f,p.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(p,f){f||p.display.input.reset()},!0),u("dragDrop",!0,De),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,xu,!0),u("singleCursorHeightPerLine",!0,xu,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Qo,!0),u("addModeClass",!1,Qo,!0),u("pollInterval",100),u("undoDepth",200,function(p,f){return p.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(p){return p.refresh()},!0),u("maxHighlightLength",1e4,Qo,!0),u("moveInputWithCursor",!0,function(p,f){f||p.display.input.resetPosition()}),u("tabindex",null,function(p,f){return p.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(p,f){return p.doc.setDirection(f)},!0),u("phrases",null)}function De(n,s,u){var p=u&&u!=Z;if(!s!=!p){var f=n.display.dragFunctions,D=s?Nr:Ht;D(n.display.scroller,"dragstart",f.start),D(n.display.scroller,"dragenter",f.enter),D(n.display.scroller,"dragover",f.over),D(n.display.scroller,"dragleave",f.leave),D(n.display.scroller,"drop",f.drop)}}function we(n){n.options.lineWrapping?(Ur(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(Kt(n.display.wrapper,"CodeMirror-wrap"),lo(n)),_s(n),Qi(n),Sa(n),setTimeout(function(){return Vo(n)},100)}function Se(n,s){var u=this;if(!(this instanceof Se))return new Se(n,s);this.options=s=s?Te(s):{},Te(se,s,!1);var p=s.value;typeof p=="string"?p=new Gi(p,s.mode,null,s.lineSeparator,s.direction):s.mode&&(p.modeOption=s.mode),this.doc=p;var f=new Se.inputStyles[s.inputStyle](this),D=this.display=new Pu(n,p,f,s);D.wrapper.CodeMirror=this,X(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ve,keySeq:null,specialChars:null},s.autofocus&&!Ne&&D.input.focus(),E&&b<11&&setTimeout(function(){return u.display.input.reset(!0)},20),_e(this),Yc(),ua(this),this.curOp.forceUpdate=!0,Pc(this,p),s.autofocus&&!Ne||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&go(u)},20):ka(this);for(var P in ae)ae.hasOwnProperty(P)&&ae[P](this,s[P],Z);Eo(this),s.finishInit&&s.finishInit(this);for(var R=0;R20*20}Nr(s.scroller,"touchstart",function(j){if(!Rr(n,j)&&!D(j)&&!W(n,j)){s.input.ensurePolled(),clearTimeout(u);var _=+new Date;s.activeTouch={start:_,moved:!1,prev:_-p.end<=300?p:null},j.touches.length==1&&(s.activeTouch.left=j.touches[0].pageX,s.activeTouch.top=j.touches[0].pageY)}}),Nr(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Nr(s.scroller,"touchend",function(j){var _=s.activeTouch;if(_&&!pn(s,j)&&_.left!=null&&!_.moved&&new Date-_.start<300){var Y=n.coordsChar(s.activeTouch,"page"),he;!_.prev||P(_,_.prev)?he=new Un(Y,Y):!_.prev.prev||P(_,_.prev.prev)?he=n.findWordAt(Y):he=new Un(Vt(Y.line,0),Jr(n.doc,Vt(Y.line+1,0))),n.setSelection(he.anchor,he.head),n.focus(),Xn(j)}f()}),Nr(s.scroller,"touchcancel",f),Nr(s.scroller,"scroll",function(){s.scroller.clientHeight&&(oa(n,s.scroller.scrollTop),Ns(n,s.scroller.scrollLeft,!0),Ar(n,"scroll",n))}),Nr(s.scroller,"mousewheel",function(j){return Ql(n,j)}),Nr(s.scroller,"DOMMouseScroll",function(j){return Ql(n,j)}),Nr(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(j){Rr(n,j)||Ln(j)},over:function(j){Rr(n,j)||($p(n,j),Ln(j))},start:function(j){return qc(n,j)},drop:bi(n,Vc),leave:function(j){Rr(n,j)||Kc(n)}};var R=s.input.getField();Nr(R,"keyup",function(j){return G.call(n,j)}),Nr(R,"keydown",bi(n,k)),Nr(R,"keypress",bi(n,z)),Nr(R,"focus",function(j){return go(n,j)}),Nr(R,"blur",function(j){return ka(n,j)})}var Ge=[];Se.defineInitHook=function(n){return Ge.push(n)};function xe(n,s,u,p){var f=n.doc,D;u==null&&(u="add"),u=="smart"&&(f.mode.indent?D=Bs(n,s).state:u="prev");var P=n.options.tabSize,R=bt(f,s),j=Qt(R.text,null,P);R.stateAfter&&(R.stateAfter=null);var _=R.text.match(/^\s*/)[0],Y;if(!p&&!/\S/.test(R.text))Y=0,u="not";else if(u=="smart"&&(Y=f.mode.indent(D,R.text.slice(_.length),R.text),Y==yn||Y>150)){if(!p)return;u="prev"}u=="prev"?s>f.first?Y=Qt(bt(f,s-1).text,null,P):Y=0:u=="add"?Y=j+n.options.indentUnit:u=="subtract"?Y=j-n.options.indentUnit:typeof u=="number"&&(Y=j+u),Y=Math.max(0,Y);var he="",Me=0;if(n.options.indentWithTabs)for(var Ie=Math.floor(Y/P);Ie;--Ie)Me+=P,he+=" ";if(MeP,j=Mt(s),_=null;if(R&&p.ranges.length>1)if(nt&&nt.text.join(` +`)==s){if(p.ranges.length%nt.text.length==0){_=[];for(var Y=0;Y=0;Me--){var Ie=p.ranges[Me],ct=Ie.from(),rt=Ie.to();Ie.empty()&&(u&&u>0?ct=Vt(ct.line,ct.ch-u):n.state.overwrite&&!R?rt=Vt(rt.line,Math.min(bt(D,rt.line).text.length,rt.ch+bn(j).length)):R&&nt&&nt.lineWise&&nt.text.join(` +`)==j.join(` +`)&&(ct=rt=Vt(ct.line,0)));var sr={from:ct,to:rt,text:_?_[Me%_.length]:j,origin:f||(R?"paste":n.state.cutIncoming>P?"cut":"+input")};Ra(n.doc,sr),ee(n,"inputRead",n,sr)}s&&!R&&At(n,s),sa(n),n.curOp.updateInput<2&&(n.curOp.updateInput=he),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function st(n,s){var u=n.clipboardData&&n.clipboardData.getData("Text");if(u)return n.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&Mi(s,function(){return be(s,u,0,null,"paste")}),!0}function At(n,s){if(!(!n.options.electricChars||!n.options.smartIndent))for(var u=n.doc.sel,p=u.ranges.length-1;p>=0;p--){var f=u.ranges[p];if(!(f.head.ch>100||p&&u.ranges[p-1].head.line==f.head.line)){var D=n.getModeAt(f.head),P=!1;if(D.electricChars){for(var R=0;R-1){P=xe(n,f.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(bt(n.doc,f.head.line).text.slice(0,f.head.ch))&&(P=xe(n,f.head.line,"smart"));P&&ee(n,"electricInput",n,f.head.line)}}}function lt(n){for(var s=[],u=[],p=0;pD&&(xe(this,R.head.line,p,!0),D=R.head.line,P==this.doc.sel.primIndex&&sa(this));else{var j=R.from(),_=R.to(),Y=Math.max(D,j.line);D=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var he=Y;he0&&rc(this.doc,P,new Un(j,Me[P].to()),Pn)}}}),getTokenAt:function(p,f){return Io(this,p,f)},getLineTokens:function(p,f){return Io(this,Vt(p),f,!0)},getTokenTypeAt:function(p){p=Jr(this.doc,p);var f=wi(this,bt(this.doc,p.line)),D=0,P=(f.length-1)/2,R=p.ch,j;if(R==0)j=f[2];else for(;;){var _=D+P>>1;if((_?f[_*2-1]:0)>=R)P=_;else if(f[_*2+1]j&&(p=j,P=!0),R=bt(this.doc,p)}else R=p;return al(this,R,{top:0,left:0},f||"page",D||P).top+(P?this.doc.height-Ds(R):0)},defaultTextHeight:function(){return po(this.display)},defaultCharWidth:function(){return Ho(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(p,f,D,P,R){var j=this.display;p=Ss(this,Jr(this.doc,p));var _=p.bottom,Y=p.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),j.sizer.appendChild(f),P=="over")_=p.top;else if(P=="above"||P=="near"){var he=Math.max(j.wrapper.clientHeight,this.doc.height),Me=Math.max(j.sizer.clientWidth,j.lineSpace.clientWidth);(P=="above"||p.bottom+f.offsetHeight>he)&&p.top>f.offsetHeight?_=p.top-f.offsetHeight:p.bottom+f.offsetHeight<=he&&(_=p.bottom),Y+f.offsetWidth>Me&&(Y=Me-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",R=="right"?(Y=j.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(R=="left"?Y=0:R=="middle"&&(Y=(j.sizer.clientWidth-f.offsetWidth)/2),f.style.left=Y+"px"),D&&Fa(this,{left:Y,top:_,right:Y+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:Ni(k),triggerOnKeyPress:Ni(z),triggerOnKeyUp:G,triggerOnMouseDown:Ni(ge),execCommand:function(p){if(su.hasOwnProperty(p))return su[p].call(null,this)},triggerElectric:Ni(function(p){At(this,p)}),findPosH:function(p,f,D,P){var R=1;f<0&&(R=-1,f=-f);for(var j=Jr(this.doc,p),_=0;_0&&Y(D.charAt(P-1));)--P;for(;R.5||this.options.lineWrapping)&&_s(this),Ar(this,"refresh",this)}),swapDoc:Ni(function(p){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Pc(this,p),Sa(this),this.display.input.reset(),$o(this,p.scrollLeft,p.scrollTop),this.curOp.forceScroll=!0,ee(this,"swapDoc",this,f),f}),phrase:function(p){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,p)?f[p]:p},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Mn(n),n.registerHelper=function(p,f,D){u.hasOwnProperty(p)||(u[p]=n[p]={_global:[]}),u[p][f]=D},n.registerGlobalHelper=function(p,f,D,P){n.registerHelper(p,f,P),u[p]._global.push({pred:D,val:P})}}function kt(n,s,u,p,f){var D=s,P=u,R=bt(n,s.line),j=f&&n.direction=="rtl"?-u:u;function _(){var fr=s.line+j;return fr=n.first+n.size?!1:(s=new Vt(fr,s.ch,s.sticky),R=bt(n,fr))}function Y(fr){var It;if(p=="codepoint"){var Zt=R.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(Zt))It=null;else{var hr=u>0?Zt>=55296&&Zt<56320:Zt>=56320&&Zt<57343;It=new Vt(s.line,Math.max(0,Math.min(R.text.length,s.ch+u*(hr?2:1))),-u)}}else f?It=Uu(n.cm,R,s,u):It=$a(R,s,u);if(It==null)if(!fr&&_())s=ac(f,n.cm,R,s.line,j);else return!1;else s=It;return!0}if(p=="char"||p=="codepoint")Y();else if(p=="column")Y(!0);else if(p=="word"||p=="group")for(var he=null,Me=p=="group",Ie=n.cm&&n.cm.getHelper(s,"wordChars"),ct=!0;!(u<0&&!Y(!ct));ct=!1){var rt=R.text.charAt(s.ch)||` +`,sr=gr(rt,Ie)?"w":Me&&rt==` +`?"n":!Me||/\s/.test(rt)?null:"p";if(Me&&!ct&&!sr&&(sr="s"),he&&he!=sr){u<0&&(u=1,Y(),s.sticky="after");break}if(sr&&(he=sr),u>0&&!Y(!ct))break}var Ot=Bu(n,s,D,P,!0);return Jn(D,Ot)&&(Ot.hitSide=!0),Ot}function Pt(n,s,u,p){var f=n.doc,D=s.left,P;if(p=="page"){var R=Math.min(n.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),j=Math.max(R-.5*po(n.display),3);P=(u>0?s.bottom:s.top)+u*j}else p=="line"&&(P=u>0?s.bottom+3:s.top-3);for(var _;_=$l(n,D,P),!!_.outside;){if(u<0?P<=0:P>=f.height){_.hitSide=!0;break}P+=u*5}return _}var Jt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ve,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Jt.prototype.init=function(n){var s=this,u=this,p=u.cm,f=u.div=n.lineDiv;f.contentEditable=!0,Nt(f,p.options.spellcheck,p.options.autocorrect,p.options.autocapitalize);function D(R){for(var j=R.target;j;j=j.parentNode){if(j==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(j.className))break}return!1}Nr(f,"paste",function(R){!D(R)||Rr(p,R)||st(R,p)||b<=11&&setTimeout(bi(p,function(){return s.updateFromDOM()}),20)}),Nr(f,"compositionstart",function(R){s.composing={data:R.data,done:!1}}),Nr(f,"compositionupdate",function(R){s.composing||(s.composing={data:R.data,done:!1})}),Nr(f,"compositionend",function(R){s.composing&&(R.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Nr(f,"touchstart",function(){return u.forceCompositionEnd()}),Nr(f,"input",function(){s.composing||s.readFromDOMSoon()});function P(R){if(!(!D(R)||Rr(p,R))){if(p.somethingSelected())Fe({lineWise:!1,text:p.getSelections()}),R.type=="cut"&&p.replaceSelection("",null,"cut");else if(p.options.lineWiseCopyCut){var j=lt(p);Fe({lineWise:!0,text:j.text}),R.type=="cut"&&p.operation(function(){p.setSelections(j.ranges,0,Pn),p.replaceSelection("",null,"cut")})}else return;if(R.clipboardData){R.clipboardData.clearData();var _=nt.text.join(` +`);if(R.clipboardData.setData("Text",_),R.clipboardData.getData("Text")==_){R.preventDefault();return}}var Y=Le(),he=Y.firstChild;p.display.lineSpace.insertBefore(Y,p.display.lineSpace.firstChild),he.value=nt.text.join(` +`);var Me=ur();Zr(he),setTimeout(function(){p.display.lineSpace.removeChild(Y),Me.focus(),Me==f&&u.showPrimarySelection()},50)}}Nr(f,"copy",P),Nr(f,"cut",P)},Jt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},Jt.prototype.prepareSelection=function(){var n=_c(this.cm,!1);return n.focus=ur()==this.div,n},Jt.prototype.showSelection=function(n,s){!n||!this.cm.display.view.length||((n.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(n))},Jt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Jt.prototype.showPrimarySelection=function(){var n=this.getSelection(),s=this.cm,u=s.doc.sel.primary(),p=u.from(),f=u.to();if(s.display.viewTo==s.display.viewFrom||p.line>=s.display.viewTo||f.line=s.display.viewFrom&&tt(s,p)||{node:R[0].measure.map[2],offset:0},_=f.linen.firstLine()&&(p=Vt(p.line-1,bt(n.doc,p.line-1).length)),f.ch==bt(n.doc,f.line).text.length&&f.lines.viewTo-1)return!1;var D,P,R;p.line==s.viewFrom||(D=_a(n,p.line))==0?(P=cr(s.view[0].line),R=s.view[0].node):(P=cr(s.view[D].line),R=s.view[D-1].node.nextSibling);var j=_a(n,f.line),_,Y;if(j==s.view.length-1?(_=s.viewTo-1,Y=s.lineDiv.lastChild):(_=cr(s.view[j+1].line)-1,Y=s.view[j+1].node.previousSibling),!R)return!1;for(var he=n.doc.splitLines(Tt(n,R,Y,P,_)),Me=yr(n.doc,Vt(P,0),Vt(_,bt(n.doc,_).text.length));he.length>1&&Me.length>1;)if(bn(he)==bn(Me))he.pop(),Me.pop(),_--;else if(he[0]==Me[0])he.shift(),Me.shift(),P++;else break;for(var Ie=0,ct=0,rt=he[0],sr=Me[0],Ot=Math.min(rt.length,sr.length);Iep.ch&&fr.charCodeAt(fr.length-ct-1)==It.charCodeAt(It.length-ct-1);)Ie--,ct++;he[he.length-1]=fr.slice(0,fr.length-ct).replace(/^\u200b+/,""),he[0]=he[0].slice(Ie).replace(/\u200b+$/,"");var hr=Vt(P,Ie),Sr=Vt(_,Me.length?bn(Me).length-ct:0);if(he.length>1||he[0]||Dt(hr,Sr))return ms(n.doc,he,hr,Sr,"+input"),!0},Jt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Jt.prototype.reset=function(){this.forceCompositionEnd()},Jt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Jt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},Jt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Mi(this.cm,function(){return Qi(n.cm)})},Jt.prototype.setUneditable=function(n){n.contentEditable="false"},Jt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||bi(this.cm,be)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},Jt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},Jt.prototype.onContextMenu=function(){},Jt.prototype.resetPosition=function(){},Jt.prototype.needsContentAttribute=!0;function tt(n,s){var u=Ts(n,s.line);if(!u||u.hidden)return null;var p=bt(n.doc,s.line),f=Aa(u,p,s.line),D=fn(p,n.doc.direction),P="left";if(D){var R=dr(D,s.ch);P=R%2?"right":"left"}var j=$i(f.map,s.ch,P);return j.offset=j.collapse=="right"?j.end:j.start,j}function He(n){for(var s=n;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function ot(n,s){return s&&(n.bad=!0),n}function Tt(n,s,u,p,f){var D="",P=!1,R=n.doc.lineSeparator(),j=!1;function _(Ie){return function(ct){return ct.id==Ie}}function Y(){P&&(D+=R,j&&(D+=R),P=j=!1)}function he(Ie){Ie&&(Y(),D+=Ie)}function Me(Ie){if(Ie.nodeType==1){var ct=Ie.getAttribute("cm-text");if(ct){he(ct);return}var rt=Ie.getAttribute("cm-marker"),sr;if(rt){var Ot=n.findMarks(Vt(p,0),Vt(f+1,0),_(+rt));Ot.length&&(sr=Ot[0].find(0))&&he(yr(n.doc,sr.from,sr.to).join(R));return}if(Ie.getAttribute("contenteditable")=="false")return;var fr=/^(pre|div|p|li|table|br)$/i.test(Ie.nodeName);if(!/^br$/i.test(Ie.nodeName)&&Ie.textContent.length==0)return;fr&&Y();for(var It=0;It=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),Nr(f,"paste",function(P){Rr(p,P)||st(P,p)||(p.state.pasteIncoming=+new Date,u.fastPoll())});function D(P){if(!Rr(p,P)){if(p.somethingSelected())Fe({lineWise:!1,text:p.getSelections()});else if(p.options.lineWiseCopyCut){var R=lt(p);Fe({lineWise:!0,text:R.text}),P.type=="cut"?p.setSelections(R.ranges,null,Pn):(u.prevInput="",f.value=R.text.join(` +`),Zr(f))}else return;P.type=="cut"&&(p.state.cutIncoming=+new Date)}}Nr(f,"cut",D),Nr(f,"copy",D),Nr(n.scroller,"paste",function(P){if(!(pn(n,P)||Rr(p,P))){if(!f.dispatchEvent){p.state.pasteIncoming=+new Date,u.focus();return}var R=new Event("paste");R.clipboardData=P.clipboardData,f.dispatchEvent(R)}}),Nr(n.lineSpace,"selectstart",function(P){pn(n,P)||Xn(P)}),Nr(f,"compositionstart",function(){var P=p.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:P,range:p.markText(P,p.getCursor("to"),{className:"CodeMirror-composing"})}}),Nr(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=Le(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,s=n.display,u=n.doc,p=_c(n);if(n.options.moveInputWithCursor){var f=Ss(n,u.sel.primary().head,"div"),D=s.wrapper.getBoundingClientRect(),P=s.lineDiv.getBoundingClientRect();p.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,f.top+P.top-D.top)),p.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,f.left+P.left-D.left))}return p},Wt.prototype.showSelection=function(n){var s=this.cm,u=s.display;Yt(u.cursorDiv,n.cursors),Yt(u.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing)){var s=this.cm;if(s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&Zr(this.textarea),E&&b>=9&&(this.hasSelection=u)}else n||(this.prevInput=this.textarea.value="",E&&b>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||ur()!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,s=this;s.pollingFast=!0;function u(){var p=s.poll();!p&&!n?(n=!0,s.polling.set(60,u)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,u)},Wt.prototype.poll=function(){var n=this,s=this.cm,u=this.textarea,p=this.prevInput;if(this.contextMenuPending||!s.state.focused||xt(u)&&!p&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var f=u.value;if(f==p&&!s.somethingSelected())return!1;if(E&&b>=9&&this.hasSelection===f||et&&/[\uf700-\uf7ff]/.test(f))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var D=f.charCodeAt(0);if(D==8203&&!p&&(p="​"),D==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,R=Math.min(p.length,f.length);P1e3||f.indexOf(` +`)>-1?u.value=n.prevInput="":n.prevInput=f,n.composing&&(n.composing.range.clear(),n.composing.range=s.markText(n.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){E&&b>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var s=this,u=s.cm,p=u.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var D=fo(u,n),P=p.scroller.scrollTop;if(!D||H)return;var R=u.options.resetSelectionOnContextMenu;R&&u.doc.sel.contains(D)==-1&&bi(u,_i)(u.doc,Vs(D),Pn);var j=f.style.cssText,_=s.wrapper.style.cssText,Y=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(n.clientY-Y.top-5)+"px; left: "+(n.clientX-Y.left-5)+`px; + z-index: 1000; background: `+(E?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var he;N&&(he=window.scrollY),p.input.focus(),N&&window.scrollTo(null,he),p.input.reset(),u.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=Ie,p.selForContextMenu=u.doc.sel,clearTimeout(p.detectingSelectAll);function Me(){if(f.selectionStart!=null){var rt=u.somethingSelected(),sr="​"+(rt?f.value:"");f.value="⇚",f.value=sr,s.prevInput=rt?"":"​",f.selectionStart=1,f.selectionEnd=sr.length,p.selForContextMenu=u.doc.sel}}function Ie(){if(s.contextMenuPending==Ie&&(s.contextMenuPending=!1,s.wrapper.style.cssText=_,f.style.cssText=j,E&&b<9&&p.scrollbars.setScrollTop(p.scroller.scrollTop=P),f.selectionStart!=null)){(!E||E&&b<9)&&Me();var rt=0,sr=function(){p.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput=="​"?bi(u,El)(u):rt++<10?p.detectingSelectAll=setTimeout(sr,500):(p.selForContextMenu=null,p.input.reset())};p.detectingSelectAll=setTimeout(sr,200)}}if(E&&b>=9&&Me(),ht){Ln(n);var ct=function(){Ht(window,"mouseup",ct),setTimeout(Ie,20)};Nr(window,"mouseup",ct)}else setTimeout(Ie,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function Mr(n,s){if(s=s?Te(s):{},s.value=n.value,!s.tabindex&&n.tabIndex&&(s.tabindex=n.tabIndex),!s.placeholder&&n.placeholder&&(s.placeholder=n.placeholder),s.autofocus==null){var u=ur();s.autofocus=u==n||n.getAttribute("autofocus")!=null&&u==document.body}function p(){n.value=R.getValue()}var f;if(n.form&&(Nr(n.form,"submit",p),!s.leaveSubmitMethodAlone)){var D=n.form;f=D.submit;try{var P=D.submit=function(){p(),D.submit=f,D.submit(),D.submit=P}}catch{}}s.finishInit=function(j){j.save=p,j.getTextArea=function(){return n},j.toTextArea=function(){j.toTextArea=isNaN,p(),n.parentNode.removeChild(j.getWrapperElement()),n.style.display="",n.form&&(Ht(n.form,"submit",p),!s.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=f))}},n.style.display="none";var R=Se(function(j){return n.parentNode.insertBefore(j,n.nextSibling)},s);return R}function hn(n){n.off=Ht,n.on=Nr,n.wheelEventPixels=Lp,n.Doc=Gi,n.splitLines=Mt,n.countColumn=Qt,n.findColumn=Dn,n.isWordChar=Ti,n.Pass=yn,n.signal=Ar,n.Line=js,n.changeEnd=Ba,n.scrollbarModel=ql,n.Pos=Vt,n.cmpPos=Dt,n.modes=lr,n.mimeModes=ar,n.resolveMode=We,n.getMode=je,n.modeExtensions=Ye,n.extendMode=Xe,n.copyState=gt,n.startState=Gt,n.innerMode=Lt,n.commands=su,n.keyMap=Ls,n.keyName=ic,n.isModifierKey=Qc,n.lookupKey=za,n.normalizeKeyMap=Wp,n.StringStream=Ut,n.SharedTextMarker=Ao,n.TextMarker=ha,n.LineWidget=ru,n.e_preventDefault=Xn,n.e_stopPropagation=Xi,n.e_stop=Ln,n.addClass=Ur,n.contains=jt,n.rmClass=Kt,n.keyNames=Ha}pe(Se),Ze(Se);var on="iter insert remove copy getEditor constructor".split(" ");for(var Ir in Gi.prototype)Gi.prototype.hasOwnProperty(Ir)&&br(on,Ir)<0&&(Se.prototype[Ir]=function(n){return function(){return n.apply(this.doc,arguments)}}(Gi.prototype[Ir]));return Mn(Gi),Se.inputStyles={textarea:Wt,contenteditable:Jt},Se.defineMode=function(n){!Se.defaults.mode&&n!="null"&&(Se.defaults.mode=n),vr.apply(this,arguments)},Se.defineMIME=Ct,Se.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Se.defineMIME("text/plain","null"),Se.defineExtension=function(n,s){Se.prototype[n]=s},Se.defineDocExtension=function(n,s){Gi.prototype[n]=s},Se.fromTextArea=Mr,hn(Se),Se.version="5.65.3",Se},g9=function(e){e.defineOption("placeholder","",function(b,N,F){var L=F&&F!=e.Init;if(N&&!L)b.on("blur",g),b.on("change",v),b.on("swapDoc",v),e.on(b.getInputField(),"compositionupdate",b.state.placeholderCompose=function(){o(b)}),v(b);else if(!N&&L){b.off("blur",g),b.off("change",v),b.off("swapDoc",v),e.off(b.getInputField(),"compositionupdate",b.state.placeholderCompose),t(b);var H=b.getWrapperElement();H.className=H.className.replace(" CodeMirror-empty","")}N&&!b.hasFocus()&&g(b)});function t(b){b.state.placeholder&&(b.state.placeholder.parentNode.removeChild(b.state.placeholder),b.state.placeholder=null)}function r(b){t(b);var N=b.state.placeholder=document.createElement("pre");N.style.cssText="height: 0; overflow: visible",N.style.direction=b.getOption("direction"),N.className="CodeMirror-placeholder CodeMirror-line-like";var F=b.getOption("placeholder");typeof F=="string"&&(F=document.createTextNode(F)),N.appendChild(F),b.display.lineSpace.insertBefore(N,b.display.lineSpace.firstChild)}function o(b){setTimeout(function(){var N=!1;if(b.lineCount()==1){var F=b.getInputField();N=F.nodeName=="TEXTAREA"?!b.getLine(0).length:!/[^\u200b]/.test(F.querySelector(".CodeMirror-line").textContent)}N?r(b):t(b)},20)}function g(b){E(b)&&r(b)}function v(b){var N=b.getWrapperElement(),F=E(b);N.className=N.className.replace(" CodeMirror-empty","")+(F?" CodeMirror-empty":""),F?r(b):t(b)}function E(b){return b.lineCount()===1&&b.getLine(0)===""}},y9=function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,o=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(v){if(v.getOption("disableInput"))return e.Pass;for(var E=v.listSelections(),b=[],N=0;N\s*$/.test(Ae),et=!/>\s*$/.test(Ae);(Ne||et)&&v.replaceRange("",{line:F.line,ch:0},{line:F.line,ch:F.ch+1}),b[N]=` +`}else{var Ke=$e[1],Re=$e[5],$t=!(o.test($e[2])||$e[2].indexOf(">")>=0),ze=$t?parseInt($e[3],10)+1+$e[4]:$e[2].replace("x"," ");b[N]=` +`+Ke+ze+Re,$t&&g(v,F)}}v.replaceSelections(b)};function g(v,E){var b=E.line,N=0,F=0,L=t.exec(v.getLine(b)),H=L[1];do{N+=1;var ie=b+N,re=v.getLine(ie),Ae=t.exec(re);if(Ae){var $e=Ae[1],Be=parseInt(L[3],10)+N-F,Ne=parseInt(Ae[3],10),et=Ne;if(H===$e&&!isNaN(Ne))Be===Ne&&(et=Ne+1),Be>Ne&&(et=Be+1),v.replaceRange(re.replace(t,$e+et+Ae[4]+Ae[5]),{line:ie,ch:0},{line:ie,ch:re.length});else{if(H.length>$e.length||H.length<$e.length&&N===1)return;F+=1}}}while(Ae)}},v9=function(e){e.overlayMode=function(t,r,o){return{startState:function(){return{base:e.startState(t),overlay:e.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(g){return{base:e.copyState(t,g.base),overlay:e.copyState(r,g.overlay),basePos:g.basePos,baseCur:null,overlayPos:g.overlayPos,overlayCur:null}},token:function(g,v){return(g!=v.streamSeen||Math.min(v.basePos,v.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(r,o){var g=0;function v(F){return F.code=!1,null}var E={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(F){return{code:F.code,codeBlock:F.codeBlock,ateSpace:F.ateSpace}},token:function(F,L){if(L.combineTokens=null,L.codeBlock)return F.match(/^```+/)?(L.codeBlock=!1,null):(F.skipToEnd(),null);if(F.sol()&&(L.code=!1),F.sol()&&F.match(/^```+/))return F.skipToEnd(),L.codeBlock=!0,null;if(F.peek()==="`"){F.next();var H=F.pos;F.eatWhile("`");var ie=1+F.pos-H;return L.code?ie===g&&(L.code=!1):(g=ie,L.code=!0),null}else if(L.code)return F.next(),null;if(F.eatSpace())return L.ateSpace=!0,null;if((F.sol()||L.ateSpace)&&(L.ateSpace=!1,o.gitHubSpice!==!1)){if(F.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return L.combineTokens=!0,"link";if(F.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return L.combineTokens=!0,"link"}return F.match(t)&&F.string.slice(F.start-2,F.start)!="]("&&(F.start==0||/\W/.test(F.string.charAt(F.start-1)))?(L.combineTokens=!0,"link"):(F.next(),null)},blankLine:v},b={taskLists:!0,strikethrough:!0,emoji:!0};for(var N in o)b[N]=o[N];return b.name="markdown",e.overlayMode(e.getMode(r,b),E)},"markdown"),e.defineMIME("text/x-gfm","gfm")},D9=function(e){e.defineMode("markdown",function(t,r){var o=e.getMode(t,"text/html"),g=o.name=="null";function v(fe){if(e.findModeByName){var Te=e.findModeByName(fe);Te&&(fe=Te.mime||Te.mimes[0])}var Qt=e.getMode(t,fe);return Qt.name=="null"?null:Qt}r.highlightFormatting===void 0&&(r.highlightFormatting=!1),r.maxBlockquoteDepth===void 0&&(r.maxBlockquoteDepth=0),r.taskLists===void 0&&(r.taskLists=!1),r.strikethrough===void 0&&(r.strikethrough=!1),r.emoji===void 0&&(r.emoji=!1),r.fencedCodeBlockHighlighting===void 0&&(r.fencedCodeBlockHighlighting=!0),r.fencedCodeBlockDefaultMode===void 0&&(r.fencedCodeBlockDefaultMode="text/plain"),r.xml===void 0&&(r.xml=!0),r.tokenTypeOverrides===void 0&&(r.tokenTypeOverrides={});var E={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var b in E)E.hasOwnProperty(b)&&r.tokenTypeOverrides[b]&&(E[b]=r.tokenTypeOverrides[b]);var N=/^([*\-_])(?:\s*\1){2,}\s*$/,F=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,L=/^\[(x| )\](?=\s)/i,H=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ie=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,Ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,$e=/^\s*\[[^\]]+?\]:.*$/,Be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ne=" ";function et(fe,Te,Qt){return Te.f=Te.inline=Qt,Qt(fe,Te)}function Ke(fe,Te,Qt){return Te.f=Te.block=Qt,Qt(fe,Te)}function Re(fe){return!fe||!/\S/.test(fe.string)}function $t(fe){if(fe.linkTitle=!1,fe.linkHref=!1,fe.linkText=!1,fe.em=!1,fe.strong=!1,fe.strikethrough=!1,fe.quote=0,fe.indentedCode=!1,fe.f==ht){var Te=g;if(!Te){var Qt=e.innerMode(o,fe.htmlState);Te=Qt.mode.name=="xml"&&Qt.state.tagStart===null&&!Qt.state.context&&Qt.state.tokenize.isInText}Te&&(fe.f=Yt,fe.block=ze,fe.htmlState=null)}return fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,fe.prevLine=fe.thisLine,fe.thisLine={stream:null},null}function ze(fe,Te){var Qt=fe.column()===Te.indentation,Ve=Re(Te.prevLine.stream),br=Te.indentedCode,An=Te.prevLine.hr,yn=Te.list!==!1,Pn=(Te.listStack[Te.listStack.length-1]||0)+3;Te.indentedCode=!1;var En=Te.indentation;if(Te.indentationDiff===null&&(Te.indentationDiff=Te.indentation,yn)){for(Te.list=null;En=4&&(br||Te.prevLine.fencedCodeEnd||Te.prevLine.header||Ve))return fe.skipToEnd(),Te.indentedCode=!0,E.code;if(fe.eatSpace())return null;if(Qt&&Te.indentation<=Pn&&(Rn=fe.match(H))&&Rn[1].length<=6)return Te.quote=0,Te.header=Rn[1].length,Te.thisLine.header=!0,r.highlightFormatting&&(Te.formatting="header"),Te.f=Te.inline,Kt(Te);if(Te.indentation<=Pn&&fe.eat(">"))return Te.quote=Qt?1:Te.quote+1,r.highlightFormatting&&(Te.formatting="quote"),fe.eatSpace(),Kt(Te);if(!Dn&&!Te.setext&&Qt&&Te.indentation<=Pn&&(Rn=fe.match(F))){var mi=Rn[1]?"ol":"ul";return Te.indentation=En+fe.current().length,Te.list=!0,Te.quote=0,Te.listStack.push(Te.indentation),Te.em=!1,Te.strong=!1,Te.code=!1,Te.strikethrough=!1,r.taskLists&&fe.match(L,!1)&&(Te.taskList=!0),Te.f=Te.inline,r.highlightFormatting&&(Te.formatting=["list","list-"+mi]),Kt(Te)}else{if(Qt&&Te.indentation<=Pn&&(Rn=fe.match(Ae,!0)))return Te.quote=0,Te.fencedEndRE=new RegExp(Rn[1]+"+ *$"),Te.localMode=r.fencedCodeBlockHighlighting&&v(Rn[2]||r.fencedCodeBlockDefaultMode),Te.localMode&&(Te.localState=e.startState(Te.localMode)),Te.f=Te.block=rr,r.highlightFormatting&&(Te.formatting="code-block"),Te.code=-1,Kt(Te);if(Te.setext||(!Xr||!yn)&&!Te.quote&&Te.list===!1&&!Te.code&&!Dn&&!$e.test(fe.string)&&(Rn=fe.lookAhead(1))&&(Rn=Rn.match(ie)))return Te.setext?(Te.header=Te.setext,Te.setext=0,fe.skipToEnd(),r.highlightFormatting&&(Te.formatting="header")):(Te.header=Rn[0].charAt(0)=="="?1:2,Te.setext=Te.header),Te.thisLine.header=!0,Te.f=Te.inline,Kt(Te);if(Dn)return fe.skipToEnd(),Te.hr=!0,Te.thisLine.hr=!0,E.hr;if(fe.peek()==="[")return et(fe,Te,ur)}return et(fe,Te,Te.inline)}function ht(fe,Te){var Qt=o.token(fe,Te.htmlState);if(!g){var Ve=e.innerMode(o,Te.htmlState);(Ve.mode.name=="xml"&&Ve.state.tagStart===null&&!Ve.state.context&&Ve.state.tokenize.isInText||Te.md_inside&&fe.current().indexOf(">")>-1)&&(Te.f=Yt,Te.block=ze,Te.htmlState=null)}return Qt}function rr(fe,Te){var Qt=Te.listStack[Te.listStack.length-1]||0,Ve=Te.indentation=fe.quote?Te.push(E.formatting+"-"+fe.formatting[Qt]+"-"+fe.quote):Te.push("error"))}if(fe.taskOpen)return Te.push("meta"),Te.length?Te.join(" "):null;if(fe.taskClosed)return Te.push("property"),Te.length?Te.join(" "):null;if(fe.linkHref?Te.push(E.linkHref,"url"):(fe.strong&&Te.push(E.strong),fe.em&&Te.push(E.em),fe.strikethrough&&Te.push(E.strikethrough),fe.emoji&&Te.push(E.emoji),fe.linkText&&Te.push(E.linkText),fe.code&&Te.push(E.code),fe.image&&Te.push(E.image),fe.imageAltText&&Te.push(E.imageAltText,"link"),fe.imageMarker&&Te.push(E.imageMarker)),fe.header&&Te.push(E.header,E.header+"-"+fe.header),fe.quote&&(Te.push(E.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=fe.quote?Te.push(E.quote+"-"+fe.quote):Te.push(E.quote+"-"+r.maxBlockquoteDepth)),fe.list!==!1){var Ve=(fe.listStack.length-1)%3;Ve?Ve===1?Te.push(E.list2):Te.push(E.list3):Te.push(E.list1)}return fe.trailingSpaceNewLine?Te.push("trailing-space-new-line"):fe.trailingSpace&&Te.push("trailing-space-"+(fe.trailingSpace%2?"a":"b")),Te.length?Te.join(" "):null}function vt(fe,Te){if(fe.match(re,!0))return Kt(Te)}function Yt(fe,Te){var Qt=Te.text(fe,Te);if(typeof Qt<"u")return Qt;if(Te.list)return Te.list=null,Kt(Te);if(Te.taskList){var Ve=fe.match(L,!0)[1]===" ";return Ve?Te.taskOpen=!0:Te.taskClosed=!0,r.highlightFormatting&&(Te.formatting="task"),Te.taskList=!1,Kt(Te)}if(Te.taskOpen=!1,Te.taskClosed=!1,Te.header&&fe.match(/^#+$/,!0))return r.highlightFormatting&&(Te.formatting="header"),Kt(Te);var br=fe.next();if(Te.linkTitle){Te.linkTitle=!1;var An=br;br==="("&&(An=")"),An=(An+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var yn="^\\s*(?:[^"+An+"\\\\]+|\\\\\\\\|\\\\.)"+An;if(fe.match(new RegExp(yn),!0))return E.linkHref}if(br==="`"){var Pn=Te.formatting;r.highlightFormatting&&(Te.formatting="code"),fe.eatWhile("`");var En=fe.current().length;if(Te.code==0&&(!Te.quote||En==1))return Te.code=En,Kt(Te);if(En==Te.code){var Xr=Kt(Te);return Te.code=0,Xr}else return Te.formatting=Pn,Kt(Te)}else if(Te.code)return Kt(Te);if(br==="\\"&&(fe.next(),r.highlightFormatting)){var Dn=Kt(Te),Rn=E.formatting+"-escape";return Dn?Dn+" "+Rn:Rn}if(br==="!"&&fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Te.imageMarker=!0,Te.image=!0,r.highlightFormatting&&(Te.formatting="image"),Kt(Te);if(br==="["&&Te.imageMarker&&fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Te.imageMarker=!1,Te.imageAltText=!0,r.highlightFormatting&&(Te.formatting="image"),Kt(Te);if(br==="]"&&Te.imageAltText){r.highlightFormatting&&(Te.formatting="image");var Dn=Kt(Te);return Te.imageAltText=!1,Te.image=!1,Te.inline=Te.f=ft,Dn}if(br==="["&&!Te.image)return Te.linkText&&fe.match(/^.*?\]/)||(Te.linkText=!0,r.highlightFormatting&&(Te.formatting="link")),Kt(Te);if(br==="]"&&Te.linkText){r.highlightFormatting&&(Te.formatting="link");var Dn=Kt(Te);return Te.linkText=!1,Te.inline=Te.f=fe.match(/\(.*?\)| ?\[.*?\]/,!1)?ft:Yt,Dn}if(br==="<"&&fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Te.f=Te.inline=St,r.highlightFormatting&&(Te.formatting="link");var Dn=Kt(Te);return Dn?Dn+=" ":Dn="",Dn+E.linkInline}if(br==="<"&&fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Te.f=Te.inline=St,r.highlightFormatting&&(Te.formatting="link");var Dn=Kt(Te);return Dn?Dn+=" ":Dn="",Dn+E.linkEmail}if(r.xml&&br==="<"&&fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var mi=fe.string.indexOf(">",fe.pos);if(mi!=-1){var bn=fe.string.substring(fe.start,mi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(bn)&&(Te.md_inside=!0)}return fe.backUp(1),Te.htmlState=e.startState(o),Ke(fe,Te,ht)}if(r.xml&&br==="<"&&fe.match(/^\/\w*?>/))return Te.md_inside=!1,"tag";if(br==="*"||br==="_"){for(var gi=1,Di=fe.pos==1?" ":fe.string.charAt(fe.pos-2);gi<3&&fe.eat(br);)gi++;var fi=fe.peek()||" ",yi=!/\s/.test(fi)&&(!Be.test(fi)||/\s/.test(Di)||Be.test(Di)),Li=!/\s/.test(Di)&&(!Be.test(Di)||/\s/.test(fi)||Be.test(fi)),Ti=null,gr=null;if(gi%2&&(!Te.em&&yi&&(br==="*"||!Li||Be.test(Di))?Ti=!0:Te.em==br&&Li&&(br==="*"||!yi||Be.test(fi))&&(Ti=!1)),gi>1&&(!Te.strong&&yi&&(br==="*"||!Li||Be.test(Di))?gr=!0:Te.strong==br&&Li&&(br==="*"||!yi||Be.test(fi))&&(gr=!1)),gr!=null||Ti!=null){r.highlightFormatting&&(Te.formatting=Ti==null?"strong":gr==null?"em":"strong em"),Ti===!0&&(Te.em=br),gr===!0&&(Te.strong=br);var Xr=Kt(Te);return Ti===!1&&(Te.em=!1),gr===!1&&(Te.strong=!1),Xr}}else if(br===" "&&(fe.eat("*")||fe.eat("_"))){if(fe.peek()===" ")return Kt(Te);fe.backUp(1)}if(r.strikethrough){if(br==="~"&&fe.eatWhile(br)){if(Te.strikethrough){r.highlightFormatting&&(Te.formatting="strikethrough");var Xr=Kt(Te);return Te.strikethrough=!1,Xr}else if(fe.match(/^[^\s]/,!1))return Te.strikethrough=!0,r.highlightFormatting&&(Te.formatting="strikethrough"),Kt(Te)}else if(br===" "&&fe.match("~~",!0)){if(fe.peek()===" ")return Kt(Te);fe.backUp(2)}}if(r.emoji&&br===":"&&fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Te.emoji=!0,r.highlightFormatting&&(Te.formatting="emoji");var jn=Kt(Te);return Te.emoji=!1,jn}return br===" "&&(fe.match(/^ +$/,!1)?Te.trailingSpace++:Te.trailingSpace&&(Te.trailingSpaceNewLine=!0)),Kt(Te)}function St(fe,Te){var Qt=fe.next();if(Qt===">"){Te.f=Te.inline=Yt,r.highlightFormatting&&(Te.formatting="link");var Ve=Kt(Te);return Ve?Ve+=" ":Ve="",Ve+E.linkInline}return fe.match(/^[^>]+/,!0),E.linkInline}function ft(fe,Te){if(fe.eatSpace())return null;var Qt=fe.next();return Qt==="("||Qt==="["?(Te.f=Te.inline=jt(Qt==="("?")":"]"),r.highlightFormatting&&(Te.formatting="link-string"),Te.linkHref=!0,Kt(Te)):"error"}var er={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function jt(fe){return function(Te,Qt){var Ve=Te.next();if(Ve===fe){Qt.f=Qt.inline=Yt,r.highlightFormatting&&(Qt.formatting="link-string");var br=Kt(Qt);return Qt.linkHref=!1,br}return Te.match(er[fe]),Qt.linkHref=!0,Kt(Qt)}}function ur(fe,Te){return fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Te.f=Ur,fe.next(),r.highlightFormatting&&(Te.formatting="link"),Te.linkText=!0,Kt(Te)):et(fe,Te,Yt)}function Ur(fe,Te){if(fe.match("]:",!0)){Te.f=Te.inline=Yr,r.highlightFormatting&&(Te.formatting="link");var Qt=Kt(Te);return Te.linkText=!1,Qt}return fe.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function Yr(fe,Te){return fe.eatSpace()?null:(fe.match(/^[^\s]+/,!0),fe.peek()===void 0?Te.linkTitle=!0:fe.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),Te.f=Te.inline=Yt,E.linkHref+" url")}var Zr={startState:function(){return{f:ze,prevLine:{stream:null},thisLine:{stream:null},block:ze,htmlState:null,indentation:0,inline:Yt,text:vt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(fe){return{f:fe.f,prevLine:fe.prevLine,thisLine:fe.thisLine,block:fe.block,htmlState:fe.htmlState&&e.copyState(o,fe.htmlState),indentation:fe.indentation,localMode:fe.localMode,localState:fe.localMode?e.copyState(fe.localMode,fe.localState):null,inline:fe.inline,text:fe.text,formatting:!1,linkText:fe.linkText,linkTitle:fe.linkTitle,linkHref:fe.linkHref,code:fe.code,em:fe.em,strong:fe.strong,strikethrough:fe.strikethrough,emoji:fe.emoji,header:fe.header,setext:fe.setext,hr:fe.hr,taskList:fe.taskList,list:fe.list,listStack:fe.listStack.slice(0),quote:fe.quote,indentedCode:fe.indentedCode,trailingSpace:fe.trailingSpace,trailingSpaceNewLine:fe.trailingSpaceNewLine,md_inside:fe.md_inside,fencedEndRE:fe.fencedEndRE}},token:function(fe,Te){if(Te.formatting=!1,fe!=Te.thisLine.stream){if(Te.header=0,Te.hr=!1,fe.match(/^\s*$/,!0))return $t(Te),null;if(Te.prevLine=Te.thisLine,Te.thisLine={stream:fe},Te.taskList=!1,Te.trailingSpace=0,Te.trailingSpaceNewLine=!1,!Te.localState&&(Te.f=Te.block,Te.f!=ht)){var Qt=fe.match(/^\s*/,!0)[0].replace(/\t/g,Ne).length;if(Te.indentation=Qt,Te.indentationDiff=null,Qt>0)return null}}return Te.f(fe,Te)},innerMode:function(fe){return fe.block==ht?{state:fe.htmlState,mode:o}:fe.localState?{state:fe.localState,mode:fe.localMode}:{state:fe,mode:Zr}},indent:function(fe,Te,Qt){return fe.block==ht&&o.indent?o.indent(fe.htmlState,Te,Qt):fe.localState&&fe.localMode.indent?fe.localMode.indent(fe.localState,Te,Qt):e.Pass},blankLine:$t,getType:Kt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Zr},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},T9=function(e){var t={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},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(o,g){var v=o.indentUnit,E={},b=g.htmlMode?t:r;for(var N in b)E[N]=b[N];for(var N in g)E[N]=g[N];var F,L;function H(ft,er){function jt(Yr){return er.tokenize=Yr,Yr(ft,er)}var ur=ft.next();if(ur=="<")return ft.eat("!")?ft.eat("[")?ft.match("CDATA[")?jt(Ae("atom","]]>")):null:ft.match("--")?jt(Ae("comment","-->")):ft.match("DOCTYPE",!0,!0)?(ft.eatWhile(/[\w\._\-]/),jt($e(1))):null:ft.eat("?")?(ft.eatWhile(/[\w\._\-]/),er.tokenize=Ae("meta","?>"),"meta"):(F=ft.eat("/")?"closeTag":"openTag",er.tokenize=ie,"tag bracket");if(ur=="&"){var Ur;return ft.eat("#")?ft.eat("x")?Ur=ft.eatWhile(/[a-fA-F\d]/)&&ft.eat(";"):Ur=ft.eatWhile(/[\d]/)&&ft.eat(";"):Ur=ft.eatWhile(/[\w\.\-:]/)&&ft.eat(";"),Ur?"atom":"error"}else return ft.eatWhile(/[^&<]/),null}H.isInText=!0;function ie(ft,er){var jt=ft.next();if(jt==">"||jt=="/"&&ft.eat(">"))return er.tokenize=H,F=jt==">"?"endTag":"selfcloseTag","tag bracket";if(jt=="=")return F="equals",null;if(jt=="<"){er.tokenize=H,er.state=Re,er.tagName=er.tagStart=null;var ur=er.tokenize(ft,er);return ur?ur+" tag error":"tag error"}else return/[\'\"]/.test(jt)?(er.tokenize=re(jt),er.stringStartCol=ft.column(),er.tokenize(ft,er)):(ft.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(ft){var er=function(jt,ur){for(;!jt.eol();)if(jt.next()==ft){ur.tokenize=ie;break}return"string"};return er.isInAttribute=!0,er}function Ae(ft,er){return function(jt,ur){for(;!jt.eol();){if(jt.match(er)){ur.tokenize=H;break}jt.next()}return ft}}function $e(ft){return function(er,jt){for(var ur;(ur=er.next())!=null;){if(ur=="<")return jt.tokenize=$e(ft+1),jt.tokenize(er,jt);if(ur==">")if(ft==1){jt.tokenize=H;break}else return jt.tokenize=$e(ft-1),jt.tokenize(er,jt)}return"meta"}}function Be(ft){return ft&&ft.toLowerCase()}function Ne(ft,er,jt){this.prev=ft.context,this.tagName=er||"",this.indent=ft.indented,this.startOfLine=jt,(E.doNotIndent.hasOwnProperty(er)||ft.context&&ft.context.noIndent)&&(this.noIndent=!0)}function et(ft){ft.context&&(ft.context=ft.context.prev)}function Ke(ft,er){for(var jt;;){if(!ft.context||(jt=ft.context.tagName,!E.contextGrabbers.hasOwnProperty(Be(jt))||!E.contextGrabbers[Be(jt)].hasOwnProperty(Be(er))))return;et(ft)}}function Re(ft,er,jt){return ft=="openTag"?(jt.tagStart=er.column(),$t):ft=="closeTag"?ze:Re}function $t(ft,er,jt){return ft=="word"?(jt.tagName=er.current(),L="tag",Kt):E.allowMissingTagName&&ft=="endTag"?(L="tag bracket",Kt(ft,er,jt)):(L="error",$t)}function ze(ft,er,jt){if(ft=="word"){var ur=er.current();return jt.context&&jt.context.tagName!=ur&&E.implicitlyClosed.hasOwnProperty(Be(jt.context.tagName))&&et(jt),jt.context&&jt.context.tagName==ur||E.matchClosing===!1?(L="tag",ht):(L="tag error",rr)}else return E.allowMissingTagName&&ft=="endTag"?(L="tag bracket",ht(ft,er,jt)):(L="error",rr)}function ht(ft,er,jt){return ft!="endTag"?(L="error",ht):(et(jt),Re)}function rr(ft,er,jt){return L="error",ht(ft,er,jt)}function Kt(ft,er,jt){if(ft=="word")return L="attribute",vt;if(ft=="endTag"||ft=="selfcloseTag"){var ur=jt.tagName,Ur=jt.tagStart;return jt.tagName=jt.tagStart=null,ft=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(Be(ur))?Ke(jt,ur):(Ke(jt,ur),jt.context=new Ne(jt,ur,Ur==jt.indented)),Re}return L="error",Kt}function vt(ft,er,jt){return ft=="equals"?Yt:(E.allowMissing||(L="error"),Kt(ft,er,jt))}function Yt(ft,er,jt){return ft=="string"?St:ft=="word"&&E.allowUnquoted?(L="string",Kt):(L="error",Kt(ft,er,jt))}function St(ft,er,jt){return ft=="string"?St:Kt(ft,er,jt)}return{startState:function(ft){var er={tokenize:H,state:Re,indented:ft||0,tagName:null,tagStart:null,context:null};return ft!=null&&(er.baseIndent=ft),er},token:function(ft,er){if(!er.tagName&&ft.sol()&&(er.indented=ft.indentation()),ft.eatSpace())return null;F=null;var jt=er.tokenize(ft,er);return(jt||F)&&jt!="comment"&&(L=null,er.state=er.state(F||jt,ft,er),L&&(jt=L=="error"?jt+" error":L)),jt},indent:function(ft,er,jt){var ur=ft.context;if(ft.tokenize.isInAttribute)return ft.tagStart==ft.indented?ft.stringStartCol+1:ft.indented+v;if(ur&&ur.noIndent)return e.Pass;if(ft.tokenize!=ie&&ft.tokenize!=H)return jt?jt.match(/^(\s*)/)[0].length:0;if(ft.tagName)return E.multilineTagIndentPastTag!==!1?ft.tagStart+ft.tagName.length+2:ft.tagStart+v*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/$/,blockCommentStart:"",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(ft){ft.state==Yt&&(ft.state=Kt)},xmlCurrentTag:function(ft){return ft.tagName?{name:ft.tagName,close:ft.type=="closeTag"}:null},xmlCurrentContext:function(ft){for(var er=[],jt=ft.context;jt;jt=jt.prev)er.push(jt.tagName);return er.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},C9=function(e){var t=0,r=1,o=2;e.defineMode("yaml-frontmatter",function(g,v){var E=e.getMode(g,"yaml"),b=e.getMode(g,v&&v.base||"gfm");function N(F){return F.state==r?{mode:E,state:F.yaml}:{mode:b,state:F.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(b)}},copyState:function(F){return{state:F.state,yaml:F.yaml&&e.copyState(E,F.yaml),inner:e.copyState(b,F.inner)}},token:function(F,L){if(L.state==t)return F.match("---",!1)?(L.state=r,L.yaml=e.startState(E),E.token(F,L.yaml)):(L.state=o,b.token(F,L.inner));if(L.state==r){var H=F.sol()&&F.match(/(---|\.\.\.)/,!1),ie=E.token(F,L.yaml);return H&&(L.state=o,L.yaml=null),ie}else return b.token(F,L.inner)},innerMode:N,indent:function(F,L,H){var ie=N(F);return ie.mode.indent?ie.mode.indent(ie.state,L,H):e.Pass},blankLine:function(F){var L=N(F);if(L.mode.blankLine)return L.mode.blankLine(L.state)}}})},x9=function(e){e.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],r=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(o,g){var v=o.peek(),E=g.escaped;if(g.escaped=!1,v=="#"&&(o.pos==0||/\s/.test(o.string.charAt(o.pos-1))))return o.skipToEnd(),"comment";if(o.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(g.literal&&o.indentation()>g.keyCol)return o.skipToEnd(),"string";if(g.literal&&(g.literal=!1),o.sol()){if(g.keyCol=0,g.pair=!1,g.pairStart=!1,o.match("---")||o.match("..."))return"def";if(o.match(/\s*-\s+/))return"meta"}if(o.match(/^(\{|\}|\[|\])/))return v=="{"?g.inlinePairs++:v=="}"?g.inlinePairs--:v=="["?g.inlineList++:g.inlineList--,"meta";if(g.inlineList>0&&!E&&v==",")return o.next(),"meta";if(g.inlinePairs>0&&!E&&v==",")return g.keyCol=0,g.pair=!1,g.pairStart=!1,o.next(),"meta";if(g.pairStart){if(o.match(/^\s*(\||\>)\s*/))return g.literal=!0,"meta";if(o.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(g.inlinePairs==0&&o.match(/^\s*-?[0-9\.\,]+\s?$/)||g.inlinePairs>0&&o.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(o.match(r))return"keyword"}return!g.pair&&o.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(g.pair=!0,g.keyCol=o.indentation(),"atom"):g.pair&&o.match(/^:\s*/)?(g.pairStart=!0,"meta"):(g.pairStart=!1,g.escaped=v=="\\",o.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")};var b9=function(e){e===void 0&&(e={});var t=e.accept;t===void 0&&(t="");var r=e.capture;r===void 0&&(r=!1);var o=e.multiple;o===void 0&&(o=!1);var g=document.createElement("input");return g.type="file",g.accept=t,g.capture=r,g.multiple=o,g},Gg=function(e){return new Promise(function(t){var r=b9(e);r.addEventListener("change",function(){return t(r.files||null)}),setTimeout(function(){var o=new MouseEvent("click");r.dispatchEvent(o)},0)})},A9=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,S9=function(e){var t=e.match(A9),r=0;if(!t)return 0;for(var o=0;o=19968?r+=t[o].length:r+=1;return r};const w9=Dc(S9),sd=function(e){if(e==null)return P9;if(typeof e=="string")return F9(e);if(typeof e=="object")return Array.isArray(e)?_9(e):k9(e);if(typeof e=="function")return Sh(e);throw new Error("Expected function, string, or object as test")};function _9(e){const t=[];let r=-1;for(;++r":""))+")"})}return H;function H(){let ie=[],re,Ae,$e;if((!t||g(b,N,F[F.length-1]||null))&&(ie=L9(r(b,F)),ie[0]===Vd))return ie;if(b.children&&ie[0]!==I9)for(Ae=(o?b.children.length:-1)+v,$e=F.concat(b);Ae>-1&&Ae"u")return!1;var t=ya(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},g=t.attributes[r]||{},v=t.elements[r];!qa(v)||!mu(v)||(Object.assign(v.style,o),Object.keys(g).forEach(function(E){var b=g[E];b===!1?v.removeAttribute(E):v.setAttribute(E,b===!0?"":b)}))})}function K9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var g=t.elements[o],v=t.attributes[o]||{},E=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),b=E.reduce(function(N,F){return N[F]="",N},{});!qa(g)||!mu(g)||(Object.assign(g.style,b),Object.keys(v).forEach(function(N){g.removeAttribute(N)}))})}}const Kg={name:"applyStyles",enabled:!0,phase:"write",fn:q9,effect:K9,requires:["computeStyles"]};function fu(e){return e.split("-")[0]}var gc=Math.max,mh=Math.min,Ep=Math.round;function Hf(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yg(){return!/^((?!chrome|android).)*safari/i.test(Hf())}function Dp(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),g=1,v=1;t&&qa(e)&&(g=e.offsetWidth>0&&Ep(o.width)/e.offsetWidth||1,v=e.offsetHeight>0&&Ep(o.height)/e.offsetHeight||1);var E=vc(e)?ya(e):window,b=E.visualViewport,N=!Yg()&&r,F=(o.left+(N&&b?b.offsetLeft:0))/g,L=(o.top+(N&&b?b.offsetTop:0))/v,H=o.width/g,ie=o.height/v;return{width:H,height:ie,top:L,right:F+H,bottom:L+ie,left:F,x:F,y:L}}function ud(e){var t=Dp(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Xg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&od(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Yu(e){return ya(e).getComputedStyle(e)}function Y9(e){return["table","td","th"].indexOf(mu(e))>=0}function Ll(e){return((vc(e)?e.ownerDocument:e.document)||window.document).documentElement}function wh(e){return mu(e)==="html"?e:e.assignedSlot||e.parentNode||(od(e)?e.host:null)||Ll(e)}function Kd(e){return!qa(e)||Yu(e).position==="fixed"?null:e.offsetParent}function X9(e){var t=/firefox/i.test(Hf()),r=/Trident/i.test(Hf());if(r&&qa(e)){var o=Yu(e);if(o.position==="fixed")return null}var g=wh(e);for(od(g)&&(g=g.host);qa(g)&&["html","body"].indexOf(mu(g))<0;){var v=Yu(g);if(v.transform!=="none"||v.perspective!=="none"||v.contain==="paint"||["transform","perspective"].indexOf(v.willChange)!==-1||t&&v.willChange==="filter"||t&&v.filter&&v.filter!=="none")return g;g=g.parentNode}return null}function S1(e){for(var t=ya(e),r=Kd(e);r&&Y9(r)&&Yu(r).position==="static";)r=Kd(r);return r&&(mu(r)==="html"||mu(r)==="body"&&Yu(r).position==="static")?t:r||X9(e)||t}function ld(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function s1(e,t,r){return gc(e,mh(t,r))}function J9(e,t,r){var o=s1(e,t,r);return o>r?r:o}function Jg(){return{top:0,right:0,bottom:0,left:0}}function Qg(e){return Object.assign({},Jg(),e)}function Zg(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Q9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Qg(typeof t!="number"?t:Zg(t,A1))};function Z9(e){var t,r=e.state,o=e.name,g=e.options,v=r.elements.arrow,E=r.modifiersData.popperOffsets,b=fu(r.placement),N=ld(b),F=[Zs,Xa].indexOf(b)>=0,L=F?"height":"width";if(!(!v||!E)){var H=Q9(g.padding,r),ie=ud(v),re=N==="y"?Qs:Zs,Ae=N==="y"?Ya:Xa,$e=r.rects.reference[L]+r.rects.reference[N]-E[N]-r.rects.popper[L],Be=E[N]-r.rects.reference[N],Ne=S1(v),et=Ne?N==="y"?Ne.clientHeight||0:Ne.clientWidth||0:0,Ke=$e/2-Be/2,Re=H[re],$t=et-ie[L]-H[Ae],ze=et/2-ie[L]/2+Ke,ht=s1(Re,ze,$t),rr=N;r.modifiersData[o]=(t={},t[rr]=ht,t.centerOffset=ht-ze,t)}}function eD(e){var t=e.state,r=e.options,o=r.element,g=o===void 0?"[data-popper-arrow]":o;g!=null&&(typeof g=="string"&&(g=t.elements.popper.querySelector(g),!g)||Xg(t.elements.popper,g)&&(t.elements.arrow=g))}const tD={name:"arrow",enabled:!0,phase:"main",fn:Z9,effect:eD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tp(e){return e.split("-")[1]}var rD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nD(e,t){var r=e.x,o=e.y,g=t.devicePixelRatio||1;return{x:Ep(r*g)/g||0,y:Ep(o*g)/g||0}}function Yd(e){var t,r=e.popper,o=e.popperRect,g=e.placement,v=e.variation,E=e.offsets,b=e.position,N=e.gpuAcceleration,F=e.adaptive,L=e.roundOffsets,H=e.isFixed,ie=E.x,re=ie===void 0?0:ie,Ae=E.y,$e=Ae===void 0?0:Ae,Be=typeof L=="function"?L({x:re,y:$e}):{x:re,y:$e};re=Be.x,$e=Be.y;var Ne=E.hasOwnProperty("x"),et=E.hasOwnProperty("y"),Ke=Zs,Re=Qs,$t=window;if(F){var ze=S1(r),ht="clientHeight",rr="clientWidth";if(ze===ya(r)&&(ze=Ll(r),Yu(ze).position!=="static"&&b==="absolute"&&(ht="scrollHeight",rr="scrollWidth")),ze=ze,g===Qs||(g===Zs||g===Xa)&&v===v1){Re=Ya;var Kt=H&&ze===$t&&$t.visualViewport?$t.visualViewport.height:ze[ht];$e-=Kt-o.height,$e*=N?1:-1}if(g===Zs||(g===Qs||g===Ya)&&v===v1){Ke=Xa;var vt=H&&ze===$t&&$t.visualViewport?$t.visualViewport.width:ze[rr];re-=vt-o.width,re*=N?1:-1}}var Yt=Object.assign({position:b},F&&rD),St=L===!0?nD({x:re,y:$e},ya(r)):{x:re,y:$e};if(re=St.x,$e=St.y,N){var ft;return Object.assign({},Yt,(ft={},ft[Re]=et?"0":"",ft[Ke]=Ne?"0":"",ft.transform=($t.devicePixelRatio||1)<=1?"translate("+re+"px, "+$e+"px)":"translate3d("+re+"px, "+$e+"px, 0)",ft))}return Object.assign({},Yt,(t={},t[Re]=et?$e+"px":"",t[Ke]=Ne?re+"px":"",t.transform="",t))}function iD(e){var t=e.state,r=e.options,o=r.gpuAcceleration,g=o===void 0?!0:o,v=r.adaptive,E=v===void 0?!0:v,b=r.roundOffsets,N=b===void 0?!0:b,F={placement:fu(t.placement),variation:Tp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:g,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yd(Object.assign({},F,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:E,roundOffsets:N})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yd(Object.assign({},F,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sD={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iD,data:{}};var O1={passive:!0};function aD(e){var t=e.state,r=e.instance,o=e.options,g=o.scroll,v=g===void 0?!0:g,E=o.resize,b=E===void 0?!0:E,N=ya(t.elements.popper),F=[].concat(t.scrollParents.reference,t.scrollParents.popper);return v&&F.forEach(function(L){L.addEventListener("scroll",r.update,O1)}),b&&N.addEventListener("resize",r.update,O1),function(){v&&F.forEach(function(L){L.removeEventListener("scroll",r.update,O1)}),b&&N.removeEventListener("resize",r.update,O1)}}const oD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aD,data:{}};var uD={left:"right",right:"left",bottom:"top",top:"bottom"};function ih(e){return e.replace(/left|right|bottom|top/g,function(t){return uD[t]})}var lD={start:"end",end:"start"};function Xd(e){return e.replace(/start|end/g,function(t){return lD[t]})}function cd(e){var t=ya(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function pd(e){return Dp(Ll(e)).left+cd(e).scrollLeft}function cD(e,t){var r=ya(e),o=Ll(e),g=r.visualViewport,v=o.clientWidth,E=o.clientHeight,b=0,N=0;if(g){v=g.width,E=g.height;var F=Yg();(F||!F&&t==="fixed")&&(b=g.offsetLeft,N=g.offsetTop)}return{width:v,height:E,x:b+pd(e),y:N}}function pD(e){var t,r=Ll(e),o=cd(e),g=(t=e.ownerDocument)==null?void 0:t.body,v=gc(r.scrollWidth,r.clientWidth,g?g.scrollWidth:0,g?g.clientWidth:0),E=gc(r.scrollHeight,r.clientHeight,g?g.scrollHeight:0,g?g.clientHeight:0),b=-o.scrollLeft+pd(e),N=-o.scrollTop;return Yu(g||r).direction==="rtl"&&(b+=gc(r.clientWidth,g?g.clientWidth:0)-v),{width:v,height:E,x:b,y:N}}function hd(e){var t=Yu(e),r=t.overflow,o=t.overflowX,g=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+g+o)}function ey(e){return["html","body","#document"].indexOf(mu(e))>=0?e.ownerDocument.body:qa(e)&&hd(e)?e:ey(wh(e))}function a1(e,t){var r;t===void 0&&(t=[]);var o=ey(e),g=o===((r=e.ownerDocument)==null?void 0:r.body),v=ya(o),E=g?[v].concat(v.visualViewport||[],hd(o)?o:[]):o,b=t.concat(E);return g?b:b.concat(a1(wh(E)))}function Uf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hD(e,t){var r=Dp(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Jd(e,t,r){return t===Vg?Uf(cD(e,r)):vc(t)?hD(t,r):Uf(pD(Ll(e)))}function fD(e){var t=a1(wh(e)),r=["absolute","fixed"].indexOf(Yu(e).position)>=0,o=r&&qa(e)?S1(e):e;return vc(o)?t.filter(function(g){return vc(g)&&Xg(g,o)&&mu(g)!=="body"}):[]}function dD(e,t,r,o){var g=t==="clippingParents"?fD(e):[].concat(t),v=[].concat(g,[r]),E=v[0],b=v.reduce(function(N,F){var L=Jd(e,F,o);return N.top=gc(L.top,N.top),N.right=mh(L.right,N.right),N.bottom=mh(L.bottom,N.bottom),N.left=gc(L.left,N.left),N},Jd(e,E,o));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function ty(e){var t=e.reference,r=e.element,o=e.placement,g=o?fu(o):null,v=o?Tp(o):null,E=t.x+t.width/2-r.width/2,b=t.y+t.height/2-r.height/2,N;switch(g){case Qs:N={x:E,y:t.y-r.height};break;case Ya:N={x:E,y:t.y+t.height};break;case Xa:N={x:t.x+t.width,y:b};break;case Zs:N={x:t.x-r.width,y:b};break;default:N={x:t.x,y:t.y}}var F=g?ld(g):null;if(F!=null){var L=F==="y"?"height":"width";switch(v){case vp:N[F]=N[F]-(t[L]/2-r[L]/2);break;case v1:N[F]=N[F]+(t[L]/2-r[L]/2);break}}return N}function E1(e,t){t===void 0&&(t={});var r=t,o=r.placement,g=o===void 0?e.placement:o,v=r.strategy,E=v===void 0?e.strategy:v,b=r.boundary,N=b===void 0?O9:b,F=r.rootBoundary,L=F===void 0?Vg:F,H=r.elementContext,ie=H===void 0?Kp:H,re=r.altBoundary,Ae=re===void 0?!1:re,$e=r.padding,Be=$e===void 0?0:$e,Ne=Qg(typeof Be!="number"?Be:Zg(Be,A1)),et=ie===Kp?M9:Kp,Ke=e.rects.popper,Re=e.elements[Ae?et:ie],$t=dD(vc(Re)?Re:Re.contextElement||Ll(e.elements.popper),N,L,E),ze=Dp(e.elements.reference),ht=ty({reference:ze,element:Ke,strategy:"absolute",placement:g}),rr=Uf(Object.assign({},Ke,ht)),Kt=ie===Kp?rr:ze,vt={top:$t.top-Kt.top+Ne.top,bottom:Kt.bottom-$t.bottom+Ne.bottom,left:$t.left-Kt.left+Ne.left,right:Kt.right-$t.right+Ne.right},Yt=e.modifiersData.offset;if(ie===Kp&&Yt){var St=Yt[g];Object.keys(vt).forEach(function(ft){var er=[Xa,Ya].indexOf(ft)>=0?1:-1,jt=[Qs,Ya].indexOf(ft)>=0?"y":"x";vt[ft]+=St[jt]*er})}return vt}function mD(e,t){t===void 0&&(t={});var r=t,o=r.placement,g=r.boundary,v=r.rootBoundary,E=r.padding,b=r.flipVariations,N=r.allowedAutoPlacements,F=N===void 0?qg:N,L=Tp(o),H=L?b?qd:qd.filter(function(Ae){return Tp(Ae)===L}):A1,ie=H.filter(function(Ae){return F.indexOf(Ae)>=0});ie.length===0&&(ie=H);var re=ie.reduce(function(Ae,$e){return Ae[$e]=E1(e,{placement:$e,boundary:g,rootBoundary:v,padding:E})[fu($e)],Ae},{});return Object.keys(re).sort(function(Ae,$e){return re[Ae]-re[$e]})}function gD(e){if(fu(e)===ad)return[];var t=ih(e);return[Xd(e),t,Xd(t)]}function yD(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var g=r.mainAxis,v=g===void 0?!0:g,E=r.altAxis,b=E===void 0?!0:E,N=r.fallbackPlacements,F=r.padding,L=r.boundary,H=r.rootBoundary,ie=r.altBoundary,re=r.flipVariations,Ae=re===void 0?!0:re,$e=r.allowedAutoPlacements,Be=t.options.placement,Ne=fu(Be),et=Ne===Be,Ke=N||(et||!Ae?[ih(Be)]:gD(Be)),Re=[Be].concat(Ke).reduce(function(br,An){return br.concat(fu(An)===ad?mD(t,{placement:An,boundary:L,rootBoundary:H,padding:F,flipVariations:Ae,allowedAutoPlacements:$e}):An)},[]),$t=t.rects.reference,ze=t.rects.popper,ht=new Map,rr=!0,Kt=Re[0],vt=0;vt=0,jt=er?"width":"height",ur=E1(t,{placement:Yt,boundary:L,rootBoundary:H,altBoundary:ie,padding:F}),Ur=er?ft?Xa:Zs:ft?Ya:Qs;$t[jt]>ze[jt]&&(Ur=ih(Ur));var Yr=ih(Ur),Zr=[];if(v&&Zr.push(ur[St]<=0),b&&Zr.push(ur[Ur]<=0,ur[Yr]<=0),Zr.every(function(br){return br})){Kt=Yt,rr=!1;break}ht.set(Yt,Zr)}if(rr)for(var fe=Ae?3:1,Te=function(An){var yn=Re.find(function(Pn){var En=ht.get(Pn);if(En)return En.slice(0,An).every(function(Xr){return Xr})});if(yn)return Kt=yn,"break"},Qt=fe;Qt>0;Qt--){var Ve=Te(Qt);if(Ve==="break")break}t.placement!==Kt&&(t.modifiersData[o]._skip=!0,t.placement=Kt,t.reset=!0)}}const vD={name:"flip",enabled:!0,phase:"main",fn:yD,requiresIfExists:["offset"],data:{_skip:!1}};function Qd(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Zd(e){return[Qs,Xa,Ya,Zs].some(function(t){return e[t]>=0})}function ED(e){var t=e.state,r=e.name,o=t.rects.reference,g=t.rects.popper,v=t.modifiersData.preventOverflow,E=E1(t,{elementContext:"reference"}),b=E1(t,{altBoundary:!0}),N=Qd(E,o),F=Qd(b,g,v),L=Zd(N),H=Zd(F);t.modifiersData[r]={referenceClippingOffsets:N,popperEscapeOffsets:F,isReferenceHidden:L,hasPopperEscaped:H},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":L,"data-popper-escaped":H})}const DD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ED};function TD(e,t,r){var o=fu(e),g=[Zs,Qs].indexOf(o)>=0?-1:1,v=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,E=v[0],b=v[1];return E=E||0,b=(b||0)*g,[Zs,Xa].indexOf(o)>=0?{x:b,y:E}:{x:E,y:b}}function CD(e){var t=e.state,r=e.options,o=e.name,g=r.offset,v=g===void 0?[0,0]:g,E=qg.reduce(function(L,H){return L[H]=TD(H,t.rects,v),L},{}),b=E[t.placement],N=b.x,F=b.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=N,t.modifiersData.popperOffsets.y+=F),t.modifiersData[o]=E}const xD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CD};function bD(e){var t=e.state,r=e.name;t.modifiersData[r]=ty({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const AD={name:"popperOffsets",enabled:!0,phase:"read",fn:bD,data:{}};function SD(e){return e==="x"?"y":"x"}function wD(e){var t=e.state,r=e.options,o=e.name,g=r.mainAxis,v=g===void 0?!0:g,E=r.altAxis,b=E===void 0?!1:E,N=r.boundary,F=r.rootBoundary,L=r.altBoundary,H=r.padding,ie=r.tether,re=ie===void 0?!0:ie,Ae=r.tetherOffset,$e=Ae===void 0?0:Ae,Be=E1(t,{boundary:N,rootBoundary:F,padding:H,altBoundary:L}),Ne=fu(t.placement),et=Tp(t.placement),Ke=!et,Re=ld(Ne),$t=SD(Re),ze=t.modifiersData.popperOffsets,ht=t.rects.reference,rr=t.rects.popper,Kt=typeof $e=="function"?$e(Object.assign({},t.rects,{placement:t.placement})):$e,vt=typeof Kt=="number"?{mainAxis:Kt,altAxis:Kt}:Object.assign({mainAxis:0,altAxis:0},Kt),Yt=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,St={x:0,y:0};if(ze){if(v){var ft,er=Re==="y"?Qs:Zs,jt=Re==="y"?Ya:Xa,ur=Re==="y"?"height":"width",Ur=ze[Re],Yr=Ur+Be[er],Zr=Ur-Be[jt],fe=re?-rr[ur]/2:0,Te=et===vp?ht[ur]:rr[ur],Qt=et===vp?-rr[ur]:-ht[ur],Ve=t.elements.arrow,br=re&&Ve?ud(Ve):{width:0,height:0},An=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jg(),yn=An[er],Pn=An[jt],En=s1(0,ht[ur],br[ur]),Xr=Ke?ht[ur]/2-fe-En-yn-vt.mainAxis:Te-En-yn-vt.mainAxis,Dn=Ke?-ht[ur]/2+fe+En+Pn+vt.mainAxis:Qt+En+Pn+vt.mainAxis,Rn=t.elements.arrow&&S1(t.elements.arrow),mi=Rn?Re==="y"?Rn.clientTop||0:Rn.clientLeft||0:0,bn=(ft=Yt==null?void 0:Yt[Re])!=null?ft:0,gi=Ur+Xr-bn-mi,Di=Ur+Dn-bn,fi=s1(re?mh(Yr,gi):Yr,Ur,re?gc(Zr,Di):Zr);ze[Re]=fi,St[Re]=fi-Ur}if(b){var yi,Li=Re==="x"?Qs:Zs,Ti=Re==="x"?Ya:Xa,gr=ze[$t],jn=$t==="y"?"height":"width",ns=gr+Be[Li],ri=gr-Be[Ti],ni=[Qs,Zs].indexOf(Ne)!==-1,In=(yi=Yt==null?void 0:Yt[$t])!=null?yi:0,Hn=ni?ns:gr-ht[jn]-rr[jn]-In+vt.altAxis,zt=ni?gr+ht[jn]+rr[jn]-In-vt.altAxis:ri,dr=re&&ni?J9(Hn,gr,zt):s1(re?Hn:ns,gr,re?zt:ri);ze[$t]=dr,St[$t]=dr-gr}t.modifiersData[o]=St}}const _D={name:"preventOverflow",enabled:!0,phase:"main",fn:wD,requiresIfExists:["offset"]};function kD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FD(e){return e===ya(e)||!qa(e)?cd(e):kD(e)}function PD(e){var t=e.getBoundingClientRect(),r=Ep(t.width)/e.offsetWidth||1,o=Ep(t.height)/e.offsetHeight||1;return r!==1||o!==1}function ND(e,t,r){r===void 0&&(r=!1);var o=qa(t),g=qa(t)&&PD(t),v=Ll(t),E=Dp(e,g,r),b={scrollLeft:0,scrollTop:0},N={x:0,y:0};return(o||!o&&!r)&&((mu(t)!=="body"||hd(v))&&(b=FD(t)),qa(t)?(N=Dp(t,!0),N.x+=t.clientLeft,N.y+=t.clientTop):v&&(N.x=pd(v))),{x:E.left+b.scrollLeft-N.x,y:E.top+b.scrollTop-N.y,width:E.width,height:E.height}}function ID(e){var t=new Map,r=new Set,o=[];e.forEach(function(v){t.set(v.name,v)});function g(v){r.add(v.name);var E=[].concat(v.requires||[],v.requiresIfExists||[]);E.forEach(function(b){if(!r.has(b)){var N=t.get(b);N&&g(N)}}),o.push(v)}return e.forEach(function(v){r.has(v.name)||g(v)}),o}function LD(e){var t=ID(e);return V9.reduce(function(r,o){return r.concat(t.filter(function(g){return g.phase===o}))},[])}function OD(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function MD(e){var t=e.reduce(function(r,o){var g=r[o.name];return r[o.name]=g?Object.assign({},g,o,{options:Object.assign({},g.options,o.options),data:Object.assign({},g.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var e0={placement:"bottom",modifiers:[],strategy:"absolute"};function t0(){for(var e=arguments.length,t=new Array(e),r=0;r-1}function ay(e,t){return typeof e=="function"?e.apply(void 0,t):e}function r0(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function zD(e,t){var r=Object.assign({},e);return t.forEach(function(o){delete r[o]}),r}function $D(e){return e.split(/\s+/).filter(Boolean)}function fc(e){return[].concat(e)}function n0(e,t){e.indexOf(t)===-1&&e.push(t)}function GD(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function WD(e){return e.split("-")[0]}function gh(e){return[].slice.call(e)}function i0(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function o1(){return document.createElement("div")}function _h(e){return["Element","Fragment"].some(function(t){return fd(e,t)})}function VD(e){return fd(e,"NodeList")}function qD(e){return fd(e,"MouseEvent")}function KD(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function YD(e){return _h(e)?[e]:VD(e)?gh(e):Array.isArray(e)?e:gh(document.querySelectorAll(e))}function Yh(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function s0(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function XD(e){var t,r=fc(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function JD(e,t){var r=t.clientX,o=t.clientY;return e.every(function(g){var v=g.popperRect,E=g.popperState,b=g.props,N=b.interactiveBorder,F=WD(E.placement),L=E.modifiersData.offset;if(!L)return!0;var H=F==="bottom"?L.top.y:0,ie=F==="top"?L.bottom.y:0,re=F==="right"?L.left.x:0,Ae=F==="left"?L.right.x:0,$e=v.top-o+H>N,Be=o-v.bottom-ie>N,Ne=v.left-r+re>N,et=r-v.right-Ae>N;return $e||Be||Ne||et})}function Xh(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(g){e[o](g,r)})}function a0(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var lu={isTouch:!1},o0=0;function QD(){lu.isTouch||(lu.isTouch=!0,window.performance&&document.addEventListener("mousemove",oy))}function oy(){var e=performance.now();e-o0<20&&(lu.isTouch=!1,document.removeEventListener("mousemove",oy)),o0=e}function ZD(){var e=document.activeElement;if(KD(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function e5(){document.addEventListener("touchstart",QD,Nl),window.addEventListener("blur",ZD)}var t5=typeof window<"u"&&typeof document<"u",r5=t5?!!window.msCrypto:!1,n5={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},i5={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},da=Object.assign({appendTo:sy,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},n5,i5),s5=Object.keys(da),a5=function(t){var r=Object.keys(t);r.forEach(function(o){da[o]=t[o]})};function uy(e){var t=e.plugins||[],r=t.reduce(function(o,g){var v=g.name,E=g.defaultValue;if(v){var b;o[v]=e[v]!==void 0?e[v]:(b=da[v])!=null?b:E}return o},{});return Object.assign({},e,r)}function o5(e,t){var r=t?Object.keys(uy(Object.assign({},da,{plugins:t}))):s5,o=r.reduce(function(g,v){var E=(e.getAttribute("data-tippy-"+v)||"").trim();if(!E)return g;if(v==="content")g[v]=E;else try{g[v]=JSON.parse(E)}catch{g[v]=E}return g},{});return o}function u0(e,t){var r=Object.assign({},t,{content:ay(t.content,[e])},t.ignoreAttributes?{}:o5(e,t.plugins));return r.aria=Object.assign({},da.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var u5=function(){return"innerHTML"};function zf(e,t){e[u5()]=t}function l0(e){var t=o1();return e===!0?t.className=ny:(t.className=iy,_h(e)?t.appendChild(e):zf(t,e)),t}function c0(e,t){_h(t.content)?(zf(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?zf(e,t.content):e.textContent=t.content)}function $f(e){var t=e.firstElementChild,r=gh(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(ry)}),arrow:r.find(function(o){return o.classList.contains(ny)||o.classList.contains(iy)}),backdrop:r.find(function(o){return o.classList.contains(UD)})}}function ly(e){var t=o1(),r=o1();r.className=HD,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=o1();o.className=ry,o.setAttribute("data-state","hidden"),c0(o,e.props),t.appendChild(r),r.appendChild(o),g(e.props,e.props);function g(v,E){var b=$f(t),N=b.box,F=b.content,L=b.arrow;E.theme?N.setAttribute("data-theme",E.theme):N.removeAttribute("data-theme"),typeof E.animation=="string"?N.setAttribute("data-animation",E.animation):N.removeAttribute("data-animation"),E.inertia?N.setAttribute("data-inertia",""):N.removeAttribute("data-inertia"),N.style.maxWidth=typeof E.maxWidth=="number"?E.maxWidth+"px":E.maxWidth,E.role?N.setAttribute("role",E.role):N.removeAttribute("role"),(v.content!==E.content||v.allowHTML!==E.allowHTML)&&c0(F,e.props),E.arrow?L?v.arrow!==E.arrow&&(N.removeChild(L),N.appendChild(l0(E.arrow))):N.appendChild(l0(E.arrow)):L&&N.removeChild(L)}return{popper:t,onUpdate:g}}ly.$$tippy=!0;var l5=1,M1=[],Jh=[];function c5(e,t){var r=u0(e,Object.assign({},da,uy(i0(t)))),o,g,v,E=!1,b=!1,N=!1,F=!1,L,H,ie,re=[],Ae=r0(gi,r.interactiveDebounce),$e,Be=l5++,Ne=null,et=GD(r.plugins),Ke={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},Re={id:Be,reference:e,popper:o1(),popperInstance:Ne,props:r,state:Ke,plugins:et,clearDelayTimeouts:Hn,setProps:zt,setContent:dr,show:rn,hide:fn,hideWithInteractivity:nn,enable:ni,disable:In,unmount:Nr,destroy:On};if(!r.render)return Re;var $t=r.render(Re),ze=$t.popper,ht=$t.onUpdate;ze.setAttribute("data-tippy-root",""),ze.id="tippy-"+Re.id,Re.popper=ze,e._tippy=Re,ze._tippy=Re;var rr=et.map(function(Ht){return Ht.fn(Re)}),Kt=e.hasAttribute("aria-expanded");return Rn(),fe(),Ur(),Yr("onCreate",[Re]),r.showOnCreate&&ns(),ze.addEventListener("mouseenter",function(){Re.props.interactive&&Re.state.isVisible&&Re.clearDelayTimeouts()}),ze.addEventListener("mouseleave",function(){Re.props.interactive&&Re.props.trigger.indexOf("mouseenter")>=0&&er().addEventListener("mousemove",Ae)}),Re;function vt(){var Ht=Re.props.touch;return Array.isArray(Ht)?Ht:[Ht,0]}function Yt(){return vt()[0]==="hold"}function St(){var Ht;return!!((Ht=Re.props.render)!=null&&Ht.$$tippy)}function ft(){return $e||e}function er(){var Ht=ft().parentNode;return Ht?XD(Ht):document}function jt(){return $f(ze)}function ur(Ht){return Re.state.isMounted&&!Re.state.isVisible||lu.isTouch||L&&L.type==="focus"?0:Kh(Re.props.delay,Ht?0:1,da.delay)}function Ur(Ht){Ht===void 0&&(Ht=!1),ze.style.pointerEvents=Re.props.interactive&&!Ht?"":"none",ze.style.zIndex=""+Re.props.zIndex}function Yr(Ht,Ar,Rr){if(Rr===void 0&&(Rr=!0),rr.forEach(function(an){an[Ht]&&an[Ht].apply(an,Ar)}),Rr){var jr;(jr=Re.props)[Ht].apply(jr,Ar)}}function Zr(){var Ht=Re.props.aria;if(Ht.content){var Ar="aria-"+Ht.content,Rr=ze.id,jr=fc(Re.props.triggerTarget||e);jr.forEach(function(an){var Mn=an.getAttribute(Ar);if(Re.state.isVisible)an.setAttribute(Ar,Mn?Mn+" "+Rr:Rr);else{var Xn=Mn&&Mn.replace(Rr,"").trim();Xn?an.setAttribute(Ar,Xn):an.removeAttribute(Ar)}})}}function fe(){if(!(Kt||!Re.props.aria.expanded)){var Ht=fc(Re.props.triggerTarget||e);Ht.forEach(function(Ar){Re.props.interactive?Ar.setAttribute("aria-expanded",Re.state.isVisible&&Ar===ft()?"true":"false"):Ar.removeAttribute("aria-expanded")})}}function Te(){er().removeEventListener("mousemove",Ae),M1=M1.filter(function(Ht){return Ht!==Ae})}function Qt(Ht){if(!(lu.isTouch&&(N||Ht.type==="mousedown"))){var Ar=Ht.composedPath&&Ht.composedPath()[0]||Ht.target;if(!(Re.props.interactive&&a0(ze,Ar))){if(fc(Re.props.triggerTarget||e).some(function(Rr){return a0(Rr,Ar)})){if(lu.isTouch||Re.state.isVisible&&Re.props.trigger.indexOf("click")>=0)return}else Yr("onClickOutside",[Re,Ht]);Re.props.hideOnClick===!0&&(Re.clearDelayTimeouts(),Re.hide(),b=!0,setTimeout(function(){b=!1}),Re.state.isMounted||yn())}}}function Ve(){N=!0}function br(){N=!1}function An(){var Ht=er();Ht.addEventListener("mousedown",Qt,!0),Ht.addEventListener("touchend",Qt,Nl),Ht.addEventListener("touchstart",br,Nl),Ht.addEventListener("touchmove",Ve,Nl)}function yn(){var Ht=er();Ht.removeEventListener("mousedown",Qt,!0),Ht.removeEventListener("touchend",Qt,Nl),Ht.removeEventListener("touchstart",br,Nl),Ht.removeEventListener("touchmove",Ve,Nl)}function Pn(Ht,Ar){Xr(Ht,function(){!Re.state.isVisible&&ze.parentNode&&ze.parentNode.contains(ze)&&Ar()})}function En(Ht,Ar){Xr(Ht,Ar)}function Xr(Ht,Ar){var Rr=jt().box;function jr(an){an.target===Rr&&(Xh(Rr,"remove",jr),Ar())}if(Ht===0)return Ar();Xh(Rr,"remove",H),Xh(Rr,"add",jr),H=jr}function Dn(Ht,Ar,Rr){Rr===void 0&&(Rr=!1);var jr=fc(Re.props.triggerTarget||e);jr.forEach(function(an){an.addEventListener(Ht,Ar,Rr),re.push({node:an,eventType:Ht,handler:Ar,options:Rr})})}function Rn(){Yt()&&(Dn("touchstart",bn,{passive:!0}),Dn("touchend",Di,{passive:!0})),$D(Re.props.trigger).forEach(function(Ht){if(Ht!=="manual")switch(Dn(Ht,bn),Ht){case"mouseenter":Dn("mouseleave",Di);break;case"focus":Dn(r5?"focusout":"blur",fi);break;case"focusin":Dn("focusout",fi);break}})}function mi(){re.forEach(function(Ht){var Ar=Ht.node,Rr=Ht.eventType,jr=Ht.handler,an=Ht.options;Ar.removeEventListener(Rr,jr,an)}),re=[]}function bn(Ht){var Ar,Rr=!1;if(!(!Re.state.isEnabled||yi(Ht)||b)){var jr=((Ar=L)==null?void 0:Ar.type)==="focus";L=Ht,$e=Ht.currentTarget,fe(),!Re.state.isVisible&&qD(Ht)&&M1.forEach(function(an){return an(Ht)}),Ht.type==="click"&&(Re.props.trigger.indexOf("mouseenter")<0||E)&&Re.props.hideOnClick!==!1&&Re.state.isVisible?Rr=!0:ns(Ht),Ht.type==="click"&&(E=!Rr),Rr&&!jr&&ri(Ht)}}function gi(Ht){var Ar=Ht.target,Rr=ft().contains(Ar)||ze.contains(Ar);if(!(Ht.type==="mousemove"&&Rr)){var jr=jn().concat(ze).map(function(an){var Mn,Xn=an._tippy,Xi=(Mn=Xn.popperInstance)==null?void 0:Mn.state;return Xi?{popperRect:an.getBoundingClientRect(),popperState:Xi,props:r}:null}).filter(Boolean);JD(jr,Ht)&&(Te(),ri(Ht))}}function Di(Ht){var Ar=yi(Ht)||Re.props.trigger.indexOf("click")>=0&&E;if(!Ar){if(Re.props.interactive){Re.hideWithInteractivity(Ht);return}ri(Ht)}}function fi(Ht){Re.props.trigger.indexOf("focusin")<0&&Ht.target!==ft()||Re.props.interactive&&Ht.relatedTarget&&ze.contains(Ht.relatedTarget)||ri(Ht)}function yi(Ht){return lu.isTouch?Yt()!==Ht.type.indexOf("touch")>=0:!1}function Li(){Ti();var Ht=Re.props,Ar=Ht.popperOptions,Rr=Ht.placement,jr=Ht.offset,an=Ht.getReferenceClientRect,Mn=Ht.moveTransition,Xn=St()?$f(ze).arrow:null,Xi=an?{getBoundingClientRect:an,contextElement:an.contextElement||ft()}:e,is={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(as){var Ji=as.state;if(St()){var ln=jt(),eo=ln.box;["placement","reference-hidden","escaped"].forEach(function(ki){ki==="placement"?eo.setAttribute("data-placement",Ji.placement):Ji.attributes.popper["data-popper-"+ki]?eo.setAttribute("data-"+ki,""):eo.removeAttribute("data-"+ki)}),Ji.attributes.popper={}}}},Ln=[{name:"offset",options:{offset:jr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Mn}},is];St()&&Xn&&Ln.push({name:"arrow",options:{element:Xn,padding:3}}),Ln.push.apply(Ln,(Ar==null?void 0:Ar.modifiers)||[]),Re.popperInstance=jD(Xi,ze,Object.assign({},Ar,{placement:Rr,onFirstUpdate:ie,modifiers:Ln}))}function Ti(){Re.popperInstance&&(Re.popperInstance.destroy(),Re.popperInstance=null)}function gr(){var Ht=Re.props.appendTo,Ar,Rr=ft();Re.props.interactive&&Ht===sy||Ht==="parent"?Ar=Rr.parentNode:Ar=ay(Ht,[Rr]),Ar.contains(ze)||Ar.appendChild(ze),Re.state.isMounted=!0,Li()}function jn(){return gh(ze.querySelectorAll("[data-tippy-root]"))}function ns(Ht){Re.clearDelayTimeouts(),Ht&&Yr("onTrigger",[Re,Ht]),An();var Ar=ur(!0),Rr=vt(),jr=Rr[0],an=Rr[1];lu.isTouch&&jr==="hold"&&an&&(Ar=an),Ar?o=setTimeout(function(){Re.show()},Ar):Re.show()}function ri(Ht){if(Re.clearDelayTimeouts(),Yr("onUntrigger",[Re,Ht]),!Re.state.isVisible){yn();return}if(!(Re.props.trigger.indexOf("mouseenter")>=0&&Re.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Ht.type)>=0&&E)){var Ar=ur(!1);Ar?g=setTimeout(function(){Re.state.isVisible&&Re.hide()},Ar):v=requestAnimationFrame(function(){Re.hide()})}}function ni(){Re.state.isEnabled=!0}function In(){Re.hide(),Re.state.isEnabled=!1}function Hn(){clearTimeout(o),clearTimeout(g),cancelAnimationFrame(v)}function zt(Ht){if(!Re.state.isDestroyed){Yr("onBeforeUpdate",[Re,Ht]),mi();var Ar=Re.props,Rr=u0(e,Object.assign({},Ar,i0(Ht),{ignoreAttributes:!0}));Re.props=Rr,Rn(),Ar.interactiveDebounce!==Rr.interactiveDebounce&&(Te(),Ae=r0(gi,Rr.interactiveDebounce)),Ar.triggerTarget&&!Rr.triggerTarget?fc(Ar.triggerTarget).forEach(function(jr){jr.removeAttribute("aria-expanded")}):Rr.triggerTarget&&e.removeAttribute("aria-expanded"),fe(),Ur(),ht&&ht(Ar,Rr),Re.popperInstance&&(Li(),jn().forEach(function(jr){requestAnimationFrame(jr._tippy.popperInstance.forceUpdate)})),Yr("onAfterUpdate",[Re,Ht])}}function dr(Ht){Re.setProps({content:Ht})}function rn(){var Ht=Re.state.isVisible,Ar=Re.state.isDestroyed,Rr=!Re.state.isEnabled,jr=lu.isTouch&&!Re.props.touch,an=Kh(Re.props.duration,0,da.duration);if(!(Ht||Ar||Rr||jr)&&!ft().hasAttribute("disabled")&&(Yr("onShow",[Re],!1),Re.props.onShow(Re)!==!1)){if(Re.state.isVisible=!0,St()&&(ze.style.visibility="visible"),Ur(),An(),Re.state.isMounted||(ze.style.transition="none"),St()){var Mn=jt(),Xn=Mn.box,Xi=Mn.content;Yh([Xn,Xi],0)}ie=function(){var Ln;if(!(!Re.state.isVisible||F)){if(F=!0,ze.offsetHeight,ze.style.transition=Re.props.moveTransition,St()&&Re.props.animation){var ss=jt(),as=ss.box,Ji=ss.content;Yh([as,Ji],an),s0([as,Ji],"visible")}Zr(),fe(),n0(Jh,Re),(Ln=Re.popperInstance)==null||Ln.forceUpdate(),Yr("onMount",[Re]),Re.props.animation&&St()&&En(an,function(){Re.state.isShown=!0,Yr("onShown",[Re])})}},gr()}}function fn(){var Ht=!Re.state.isVisible,Ar=Re.state.isDestroyed,Rr=!Re.state.isEnabled,jr=Kh(Re.props.duration,1,da.duration);if(!(Ht||Ar||Rr)&&(Yr("onHide",[Re],!1),Re.props.onHide(Re)!==!1)){if(Re.state.isVisible=!1,Re.state.isShown=!1,F=!1,E=!1,St()&&(ze.style.visibility="hidden"),Te(),yn(),Ur(!0),St()){var an=jt(),Mn=an.box,Xn=an.content;Re.props.animation&&(Yh([Mn,Xn],jr),s0([Mn,Xn],"hidden"))}Zr(),fe(),Re.props.animation?St()&&Pn(jr,Re.unmount):Re.unmount()}}function nn(Ht){er().addEventListener("mousemove",Ae),n0(M1,Ae),Ae(Ht)}function Nr(){Re.state.isVisible&&Re.hide(),Re.state.isMounted&&(Ti(),jn().forEach(function(Ht){Ht._tippy.unmount()}),ze.parentNode&&ze.parentNode.removeChild(ze),Jh=Jh.filter(function(Ht){return Ht!==Re}),Re.state.isMounted=!1,Yr("onHidden",[Re]))}function On(){Re.state.isDestroyed||(Re.clearDelayTimeouts(),Re.unmount(),mi(),delete e._tippy,Re.state.isDestroyed=!0,Yr("onDestroy",[Re]))}}function Cp(e,t){t===void 0&&(t={});var r=da.plugins.concat(t.plugins||[]);e5();var o=Object.assign({},t,{plugins:r}),g=YD(e),v=g.reduce(function(E,b){var N=b&&c5(b,o);return N&&E.push(N),E},[]);return _h(e)?v[0]:v}Cp.defaultProps=da;Cp.setDefaultProps=a5;Cp.currentInput=lu;Object.assign({},Kg,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});var p5={mouseover:"mouseenter",focusin:"focus",click:"click"};function h5(e,t){var r=[],o=[],g=!1,v=t.target,E=zD(t,["target"]),b=Object.assign({},E,{trigger:"manual",touch:!1}),N=Object.assign({touch:da.touch},E,{showOnCreate:!0}),F=Cp(e,b),L=fc(F);function H(Be){if(!(!Be.target||g)){var Ne=Be.target.closest(v);if(Ne){var et=Ne.getAttribute("data-tippy-trigger")||t.trigger||da.trigger;if(!Ne._tippy&&!(Be.type==="touchstart"&&typeof N.touch=="boolean")&&!(Be.type!=="touchstart"&&et.indexOf(p5[Be.type])<0)){var Ke=Cp(Ne,N);Ke&&(o=o.concat(Ke))}}}}function ie(Be,Ne,et,Ke){Ke===void 0&&(Ke=!1),Be.addEventListener(Ne,et,Ke),r.push({node:Be,eventType:Ne,handler:et,options:Ke})}function re(Be){var Ne=Be.reference;ie(Ne,"touchstart",H,Nl),ie(Ne,"mouseover",H),ie(Ne,"focusin",H),ie(Ne,"click",H)}function Ae(){r.forEach(function(Be){var Ne=Be.node,et=Be.eventType,Ke=Be.handler,Re=Be.options;Ne.removeEventListener(et,Ke,Re)}),r=[]}function $e(Be){var Ne=Be.destroy,et=Be.enable,Ke=Be.disable;Be.destroy=function(Re){Re===void 0&&(Re=!0),Re&&o.forEach(function($t){$t.destroy()}),o=[],Ae(),Ne()},Be.enable=function(){et(),o.forEach(function(Re){return Re.enable()}),g=!1},Be.disable=function(){Ke(),o.forEach(function(Re){return Re.disable()}),g=!0},re(Be)}return L.forEach($e),F}Cp.setDefaultProps({render:ly});const dd={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},cu={}.hasOwnProperty,Qh={root:{children:p0},doctype:d5,comment:m5,element:{tagName:py,properties:g5,children:p0},text:{value:E5},"*":{data:h0,position:h0}};function f5(e,t){let r={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const o=cy(Object.assign({},dd,t||{}),e,[]);o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o)}return r}function cy(e,t,r){const o=t&&t.type,g={type:t.type};let v;if(cu.call(Qh,o)){let E=Qh[o];if(typeof E=="function"&&(E=E(e,t)),E){const b=Object.assign({},E,Qh["*"]);let N;v=!0;for(N in b)if(cu.call(b,N)){const F=b[N](e,t[N],t,r);F===!1?(v=void 0,g[N]=t[N]):F!=null&&(g[N]=F)}}}return v?g:g.type==="element"&&e.strip&&!e.strip.includes(g.tagName)?g.children:void 0}function p0(e,t,r,o){const g=[];if(Array.isArray(t)){let v=-1;for(r.type==="element"&&o.push(r.tagName);++v");return o<0?r:r.slice(0,o)}function E5(e,t){return typeof t=="string"?t:""}function h0(e,t){return t}function D5(e,t,r,o){let g=-1;const v=[];for(;++gg&&typeof g=="object"&&"flags"in g?g.test(String(t)):g===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(r)?e.clobberPrefix+t:t}function T5(e,t,r){const o=String(t),g=o.indexOf(":"),v=o.indexOf("?"),E=o.indexOf("#"),b=o.indexOf("/"),N=e.protocols&&cu.call(e.protocols,r)?e.protocols[r].concat():[];let F=-1;if(N.length===0||g<0||b>-1&&g>b||v>-1&&g>v||E>-1&&g>E)return!0;for(;++F4&&e.slice(0,4).toLowerCase()==="data"}var Po={};const x5=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Po.REPLACEMENT_CHARACTER="�";Po.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Po.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Po.isSurrogate=function(e){return e>=55296&&e<=57343};Po.isSurrogatePair=function(e){return e>=56320&&e<=57343};Po.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Po.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Po.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||x5.indexOf(e)>-1};var md={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const ap=Po,Zh=md,oc=ap.CODE_POINTS,b5=65536;let A5=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=b5}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const r=this.html.charCodeAt(this.pos+1);if(ap.isSurrogatePair(r))return this.pos++,this._addGap(),ap.getSurrogatePairCodePoint(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,oc.EOF;return this._err(Zh.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,r){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,oc.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===oc.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===oc.CARRIAGE_RETURN?(this.skipNextNewLine=!0,oc.LINE_FEED):(this.skipNextNewLine=!1,ap.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===oc.LINE_FEED||t===oc.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ap.isControlCodePoint(t)?this._err(Zh.controlCharacterInInputStream):ap.isUndefinedCodePoint(t)&&this._err(Zh.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var S5=A5,w5=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const _5=S5,pi=Po,dc=w5,pr=md,ut=pi.CODE_POINTS,uc=pi.CODE_POINT_SEQUENCES,k5={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},fy=1,dy=2,my=4,F5=fy|dy|my,Gn="DATA_STATE",op="RCDATA_STATE",n1="RAWTEXT_STATE",qu="SCRIPT_DATA_STATE",gy="PLAINTEXT_STATE",d0="TAG_OPEN_STATE",m0="END_TAG_OPEN_STATE",ef="TAG_NAME_STATE",g0="RCDATA_LESS_THAN_SIGN_STATE",y0="RCDATA_END_TAG_OPEN_STATE",v0="RCDATA_END_TAG_NAME_STATE",E0="RAWTEXT_LESS_THAN_SIGN_STATE",D0="RAWTEXT_END_TAG_OPEN_STATE",T0="RAWTEXT_END_TAG_NAME_STATE",C0="SCRIPT_DATA_LESS_THAN_SIGN_STATE",x0="SCRIPT_DATA_END_TAG_OPEN_STATE",b0="SCRIPT_DATA_END_TAG_NAME_STATE",A0="SCRIPT_DATA_ESCAPE_START_STATE",S0="SCRIPT_DATA_ESCAPE_START_DASH_STATE",wo="SCRIPT_DATA_ESCAPED_STATE",w0="SCRIPT_DATA_ESCAPED_DASH_STATE",tf="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",B1="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",_0="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",k0="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",F0="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",zu="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",P0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",N0="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",R1="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",I0="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",ou="BEFORE_ATTRIBUTE_NAME_STATE",j1="ATTRIBUTE_NAME_STATE",rf="AFTER_ATTRIBUTE_NAME_STATE",nf="BEFORE_ATTRIBUTE_VALUE_STATE",H1="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",U1="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",z1="ATTRIBUTE_VALUE_UNQUOTED_STATE",sf="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",bl="SELF_CLOSING_START_TAG_STATE",Yp="BOGUS_COMMENT_STATE",L0="MARKUP_DECLARATION_OPEN_STATE",O0="COMMENT_START_STATE",M0="COMMENT_START_DASH_STATE",Al="COMMENT_STATE",B0="COMMENT_LESS_THAN_SIGN_STATE",R0="COMMENT_LESS_THAN_SIGN_BANG_STATE",j0="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",H0="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",$1="COMMENT_END_DASH_STATE",G1="COMMENT_END_STATE",U0="COMMENT_END_BANG_STATE",z0="DOCTYPE_STATE",W1="BEFORE_DOCTYPE_NAME_STATE",V1="DOCTYPE_NAME_STATE",$0="AFTER_DOCTYPE_NAME_STATE",G0="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",W0="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",af="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",of="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",uf="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",V0="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",q0="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",K0="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Xp="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Jp="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",lf="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",$u="BOGUS_DOCTYPE_STATE",q1="CDATA_SECTION_STATE",Y0="CDATA_SECTION_BRACKET_STATE",X0="CDATA_SECTION_END_STATE",rp="CHARACTER_REFERENCE_STATE",J0="NAMED_CHARACTER_REFERENCE_STATE",Q0="AMBIGUOS_AMPERSAND_STATE",Z0="NUMERIC_CHARACTER_REFERENCE_STATE",em="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",tm="DECIMAL_CHARACTER_REFERENCE_START_STATE",rm="HEXADEMICAL_CHARACTER_REFERENCE_STATE",nm="DECIMAL_CHARACTER_REFERENCE_STATE",Qp="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Ai(e){return e===ut.SPACE||e===ut.LINE_FEED||e===ut.TABULATION||e===ut.FORM_FEED}function u1(e){return e>=ut.DIGIT_0&&e<=ut.DIGIT_9}function _o(e){return e>=ut.LATIN_CAPITAL_A&&e<=ut.LATIN_CAPITAL_Z}function pc(e){return e>=ut.LATIN_SMALL_A&&e<=ut.LATIN_SMALL_Z}function Fl(e){return pc(e)||_o(e)}function cf(e){return Fl(e)||u1(e)}function yy(e){return e>=ut.LATIN_CAPITAL_A&&e<=ut.LATIN_CAPITAL_F}function vy(e){return e>=ut.LATIN_SMALL_A&&e<=ut.LATIN_SMALL_F}function P5(e){return u1(e)||yy(e)||vy(e)}function sh(e){return e+32}function Bi(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Sl(e){return String.fromCharCode(sh(e))}function im(e,t){const r=dc[++e];let o=++e,g=o+r-1;for(;o<=g;){const v=o+g>>>1,E=dc[v];if(Et)g=v-1;else return dc[v+r]}return-1}let Ja=class Ys{constructor(){this.preprocessor=new _5,this.tokenQueue=[],this.allowCDATA=!1,this.state=Gn,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,r){this.active=!0,this.preprocessor.write(t,r)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ys.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,r,o){let g=0,v=!0;const E=t.length;let b=0,N=r,F;for(;b0&&(N=this._consume(),g++),N===ut.EOF){v=!1;break}if(F=t[b],N!==F&&(o||N!==sh(F))){v=!1;break}}if(!v)for(;g--;)this._unconsume();return v}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==uc.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(pr.endTagWithAttributes),t.selfClosing&&this._err(pr.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,r){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=r:this._createCharacterToken(t,r)}_emitCodePoint(t){let r=Ys.CHARACTER_TOKEN;Ai(t)?r=Ys.WHITESPACE_CHARACTER_TOKEN:t===ut.NULL&&(r=Ys.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(r,Bi(t))}_emitSeveralCodePoints(t){for(let r=0;r-1;){const v=dc[g],E=v")):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.state=wo,this._emitChars(pi.REPLACEMENT_CHARACTER)):t===ut.EOF?(this._err(pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=wo,this._emitCodePoint(t))}[B1](t){t===ut.SOLIDUS?(this.tempBuff=[],this.state=_0):Fl(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(F0)):(this._emitChars("<"),this._reconsumeInState(wo))}[_0](t){Fl(t)?(this._createEndTagToken(),this._reconsumeInState(k0)):(this._emitChars("")):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.state=zu,this._emitChars(pi.REPLACEMENT_CHARACTER)):t===ut.EOF?(this._err(pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=zu,this._emitCodePoint(t))}[R1](t){t===ut.SOLIDUS?(this.tempBuff=[],this.state=I0,this._emitChars("/")):this._reconsumeInState(zu)}[I0](t){Ai(t)||t===ut.SOLIDUS||t===ut.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?wo:zu,this._emitCodePoint(t)):_o(t)?(this.tempBuff.push(sh(t)),this._emitCodePoint(t)):pc(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(zu)}[ou](t){Ai(t)||(t===ut.SOLIDUS||t===ut.GREATER_THAN_SIGN||t===ut.EOF?this._reconsumeInState(rf):t===ut.EQUALS_SIGN?(this._err(pr.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j1):(this._createAttr(""),this._reconsumeInState(j1)))}[j1](t){Ai(t)||t===ut.SOLIDUS||t===ut.GREATER_THAN_SIGN||t===ut.EOF?(this._leaveAttrName(rf),this._unconsume()):t===ut.EQUALS_SIGN?this._leaveAttrName(nf):_o(t)?this.currentAttr.name+=Sl(t):t===ut.QUOTATION_MARK||t===ut.APOSTROPHE||t===ut.LESS_THAN_SIGN?(this._err(pr.unexpectedCharacterInAttributeName),this.currentAttr.name+=Bi(t)):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentAttr.name+=pi.REPLACEMENT_CHARACTER):this.currentAttr.name+=Bi(t)}[rf](t){Ai(t)||(t===ut.SOLIDUS?this.state=bl:t===ut.EQUALS_SIGN?this.state=nf:t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(j1)))}[nf](t){Ai(t)||(t===ut.QUOTATION_MARK?this.state=H1:t===ut.APOSTROPHE?this.state=U1:t===ut.GREATER_THAN_SIGN?(this._err(pr.missingAttributeValue),this.state=Gn,this._emitCurrentToken()):this._reconsumeInState(z1))}[H1](t){t===ut.QUOTATION_MARK?this.state=sf:t===ut.AMPERSAND?(this.returnState=H1,this.state=rp):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentAttr.value+=pi.REPLACEMENT_CHARACTER):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Bi(t)}[U1](t){t===ut.APOSTROPHE?this.state=sf:t===ut.AMPERSAND?(this.returnState=U1,this.state=rp):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentAttr.value+=pi.REPLACEMENT_CHARACTER):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Bi(t)}[z1](t){Ai(t)?this._leaveAttrValue(ou):t===ut.AMPERSAND?(this.returnState=z1,this.state=rp):t===ut.GREATER_THAN_SIGN?(this._leaveAttrValue(Gn),this._emitCurrentToken()):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentAttr.value+=pi.REPLACEMENT_CHARACTER):t===ut.QUOTATION_MARK||t===ut.APOSTROPHE||t===ut.LESS_THAN_SIGN||t===ut.EQUALS_SIGN||t===ut.GRAVE_ACCENT?(this._err(pr.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Bi(t)):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Bi(t)}[sf](t){Ai(t)?this._leaveAttrValue(ou):t===ut.SOLIDUS?this._leaveAttrValue(bl):t===ut.GREATER_THAN_SIGN?(this._leaveAttrValue(Gn),this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):(this._err(pr.missingWhitespaceBetweenAttributes),this._reconsumeInState(ou))}[bl](t){t===ut.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInTag),this._emitEOFToken()):(this._err(pr.unexpectedSolidusInTag),this._reconsumeInState(ou))}[Yp](t){t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.data+=pi.REPLACEMENT_CHARACTER):this.currentToken.data+=Bi(t)}[L0](t){this._consumeSequenceIfMatch(uc.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=O0):this._consumeSequenceIfMatch(uc.DOCTYPE_STRING,t,!1)?this.state=z0:this._consumeSequenceIfMatch(uc.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=q1:(this._err(pr.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Yp):this._ensureHibernation()||(this._err(pr.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Yp))}[O0](t){t===ut.HYPHEN_MINUS?this.state=M0:t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptClosingOfEmptyComment),this.state=Gn,this._emitCurrentToken()):this._reconsumeInState(Al)}[M0](t){t===ut.HYPHEN_MINUS?this.state=G1:t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptClosingOfEmptyComment),this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Al))}[Al](t){t===ut.HYPHEN_MINUS?this.state=$1:t===ut.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=B0):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.data+=pi.REPLACEMENT_CHARACTER):t===ut.EOF?(this._err(pr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Bi(t)}[B0](t){t===ut.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=R0):t===ut.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Al)}[R0](t){t===ut.HYPHEN_MINUS?this.state=j0:this._reconsumeInState(Al)}[j0](t){t===ut.HYPHEN_MINUS?this.state=H0:this._reconsumeInState($1)}[H0](t){t!==ut.GREATER_THAN_SIGN&&t!==ut.EOF&&this._err(pr.nestedComment),this._reconsumeInState(G1)}[$1](t){t===ut.HYPHEN_MINUS?this.state=G1:t===ut.EOF?(this._err(pr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Al))}[G1](t){t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):t===ut.EXCLAMATION_MARK?this.state=U0:t===ut.HYPHEN_MINUS?this.currentToken.data+="-":t===ut.EOF?(this._err(pr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Al))}[U0](t){t===ut.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=$1):t===ut.GREATER_THAN_SIGN?(this._err(pr.incorrectlyClosedComment),this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Al))}[z0](t){Ai(t)?this.state=W1:t===ut.GREATER_THAN_SIGN?this._reconsumeInState(W1):t===ut.EOF?(this._err(pr.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(W1))}[W1](t){Ai(t)||(_o(t)?(this._createDoctypeToken(Sl(t)),this.state=V1):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this._createDoctypeToken(pi.REPLACEMENT_CHARACTER),this.state=V1):t===ut.GREATER_THAN_SIGN?(this._err(pr.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Bi(t)),this.state=V1))}[V1](t){Ai(t)?this.state=$0:t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):_o(t)?this.currentToken.name+=Sl(t):t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.name+=pi.REPLACEMENT_CHARACTER):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Bi(t)}[$0](t){Ai(t)||(t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(uc.PUBLIC_STRING,t,!1)?this.state=G0:this._consumeSequenceIfMatch(uc.SYSTEM_STRING,t,!1)?this.state=q0:this._ensureHibernation()||(this._err(pr.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState($u)))}[G0](t){Ai(t)?this.state=W0:t===ut.QUOTATION_MARK?(this._err(pr.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=af):t===ut.APOSTROPHE?(this._err(pr.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=of):t===ut.GREATER_THAN_SIGN?(this._err(pr.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u))}[W0](t){Ai(t)||(t===ut.QUOTATION_MARK?(this.currentToken.publicId="",this.state=af):t===ut.APOSTROPHE?(this.currentToken.publicId="",this.state=of):t===ut.GREATER_THAN_SIGN?(this._err(pr.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u)))}[af](t){t===ut.QUOTATION_MARK?this.state=uf:t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.publicId+=pi.REPLACEMENT_CHARACTER):t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Bi(t)}[of](t){t===ut.APOSTROPHE?this.state=uf:t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.publicId+=pi.REPLACEMENT_CHARACTER):t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Bi(t)}[uf](t){Ai(t)?this.state=V0:t===ut.GREATER_THAN_SIGN?(this.state=Gn,this._emitCurrentToken()):t===ut.QUOTATION_MARK?(this._err(pr.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Xp):t===ut.APOSTROPHE?(this._err(pr.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Jp):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u))}[V0](t){Ai(t)||(t===ut.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Gn):t===ut.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Xp):t===ut.APOSTROPHE?(this.currentToken.systemId="",this.state=Jp):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u)))}[q0](t){Ai(t)?this.state=K0:t===ut.QUOTATION_MARK?(this._err(pr.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Xp):t===ut.APOSTROPHE?(this._err(pr.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Jp):t===ut.GREATER_THAN_SIGN?(this._err(pr.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u))}[K0](t){Ai(t)||(t===ut.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Xp):t===ut.APOSTROPHE?(this.currentToken.systemId="",this.state=Jp):t===ut.GREATER_THAN_SIGN?(this._err(pr.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Gn,this._emitCurrentToken()):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState($u)))}[Xp](t){t===ut.QUOTATION_MARK?this.state=lf:t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.systemId+=pi.REPLACEMENT_CHARACTER):t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Bi(t)}[Jp](t){t===ut.APOSTROPHE?this.state=lf:t===ut.NULL?(this._err(pr.unexpectedNullCharacter),this.currentToken.systemId+=pi.REPLACEMENT_CHARACTER):t===ut.GREATER_THAN_SIGN?(this._err(pr.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Bi(t)}[lf](t){Ai(t)||(t===ut.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Gn):t===ut.EOF?(this._err(pr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pr.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState($u)))}[$u](t){t===ut.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Gn):t===ut.NULL?this._err(pr.unexpectedNullCharacter):t===ut.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[q1](t){t===ut.RIGHT_SQUARE_BRACKET?this.state=Y0:t===ut.EOF?(this._err(pr.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Y0](t){t===ut.RIGHT_SQUARE_BRACKET?this.state=X0:(this._emitChars("]"),this._reconsumeInState(q1))}[X0](t){t===ut.GREATER_THAN_SIGN?this.state=Gn:t===ut.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(q1))}[rp](t){this.tempBuff=[ut.AMPERSAND],t===ut.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Z0):cf(t)?this._reconsumeInState(J0):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[J0](t){const r=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[ut.AMPERSAND];else if(r){const o=this.tempBuff[this.tempBuff.length-1]===ut.SEMICOLON;this._isCharacterReferenceAttributeQuirk(o)||(o||this._errOnNextCodePoint(pr.missingSemicolonAfterCharacterReference),this.tempBuff=r),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Q0}[Q0](t){cf(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Bi(t):this._emitCodePoint(t):(t===ut.SEMICOLON&&this._err(pr.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Z0](t){this.charRefCode=0,t===ut.LATIN_SMALL_X||t===ut.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=em):this._reconsumeInState(tm)}[em](t){P5(t)?this._reconsumeInState(rm):(this._err(pr.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[tm](t){u1(t)?this._reconsumeInState(nm):(this._err(pr.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[rm](t){yy(t)?this.charRefCode=this.charRefCode*16+t-55:vy(t)?this.charRefCode=this.charRefCode*16+t-87:u1(t)?this.charRefCode=this.charRefCode*16+t-48:t===ut.SEMICOLON?this.state=Qp:(this._err(pr.missingSemicolonAfterCharacterReference),this._reconsumeInState(Qp))}[nm](t){u1(t)?this.charRefCode=this.charRefCode*10+t-48:t===ut.SEMICOLON?this.state=Qp:(this._err(pr.missingSemicolonAfterCharacterReference),this._reconsumeInState(Qp))}[Qp](){if(this.charRefCode===ut.NULL)this._err(pr.nullCharacterReference),this.charRefCode=ut.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(pr.characterReferenceOutsideUnicodeRange),this.charRefCode=ut.REPLACEMENT_CHARACTER;else if(pi.isSurrogate(this.charRefCode))this._err(pr.surrogateCharacterReference),this.charRefCode=ut.REPLACEMENT_CHARACTER;else if(pi.isUndefinedCodePoint(this.charRefCode))this._err(pr.noncharacterCharacterReference);else if(pi.isControlCodePoint(this.charRefCode)||this.charRefCode===ut.CARRIAGE_RETURN){this._err(pr.controlCharacterReference);const t=k5[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Ja.CHARACTER_TOKEN="CHARACTER_TOKEN";Ja.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Ja.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Ja.START_TAG_TOKEN="START_TAG_TOKEN";Ja.END_TAG_TOKEN="END_TAG_TOKEN";Ja.COMMENT_TOKEN="COMMENT_TOKEN";Ja.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Ja.EOF_TOKEN="EOF_TOKEN";Ja.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Ja.MODE={DATA:Gn,RCDATA:op,RAWTEXT:n1,SCRIPT_DATA:qu,PLAINTEXT:gy};Ja.getTokenAttr=function(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null};var kh=Ja,No={};const pf=No.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};No.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};No.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const kr=No.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};No.SPECIAL_ELEMENTS={[pf.HTML]:{[kr.ADDRESS]:!0,[kr.APPLET]:!0,[kr.AREA]:!0,[kr.ARTICLE]:!0,[kr.ASIDE]:!0,[kr.BASE]:!0,[kr.BASEFONT]:!0,[kr.BGSOUND]:!0,[kr.BLOCKQUOTE]:!0,[kr.BODY]:!0,[kr.BR]:!0,[kr.BUTTON]:!0,[kr.CAPTION]:!0,[kr.CENTER]:!0,[kr.COL]:!0,[kr.COLGROUP]:!0,[kr.DD]:!0,[kr.DETAILS]:!0,[kr.DIR]:!0,[kr.DIV]:!0,[kr.DL]:!0,[kr.DT]:!0,[kr.EMBED]:!0,[kr.FIELDSET]:!0,[kr.FIGCAPTION]:!0,[kr.FIGURE]:!0,[kr.FOOTER]:!0,[kr.FORM]:!0,[kr.FRAME]:!0,[kr.FRAMESET]:!0,[kr.H1]:!0,[kr.H2]:!0,[kr.H3]:!0,[kr.H4]:!0,[kr.H5]:!0,[kr.H6]:!0,[kr.HEAD]:!0,[kr.HEADER]:!0,[kr.HGROUP]:!0,[kr.HR]:!0,[kr.HTML]:!0,[kr.IFRAME]:!0,[kr.IMG]:!0,[kr.INPUT]:!0,[kr.LI]:!0,[kr.LINK]:!0,[kr.LISTING]:!0,[kr.MAIN]:!0,[kr.MARQUEE]:!0,[kr.MENU]:!0,[kr.META]:!0,[kr.NAV]:!0,[kr.NOEMBED]:!0,[kr.NOFRAMES]:!0,[kr.NOSCRIPT]:!0,[kr.OBJECT]:!0,[kr.OL]:!0,[kr.P]:!0,[kr.PARAM]:!0,[kr.PLAINTEXT]:!0,[kr.PRE]:!0,[kr.SCRIPT]:!0,[kr.SECTION]:!0,[kr.SELECT]:!0,[kr.SOURCE]:!0,[kr.STYLE]:!0,[kr.SUMMARY]:!0,[kr.TABLE]:!0,[kr.TBODY]:!0,[kr.TD]:!0,[kr.TEMPLATE]:!0,[kr.TEXTAREA]:!0,[kr.TFOOT]:!0,[kr.TH]:!0,[kr.THEAD]:!0,[kr.TITLE]:!0,[kr.TR]:!0,[kr.TRACK]:!0,[kr.UL]:!0,[kr.WBR]:!0,[kr.XMP]:!0},[pf.MATHML]:{[kr.MI]:!0,[kr.MO]:!0,[kr.MN]:!0,[kr.MS]:!0,[kr.MTEXT]:!0,[kr.ANNOTATION_XML]:!0},[pf.SVG]:{[kr.TITLE]:!0,[kr.FOREIGN_OBJECT]:!0,[kr.DESC]:!0}};const Ey=No,Lr=Ey.TAG_NAMES,hi=Ey.NAMESPACES;function sm(e){switch(e.length){case 1:return e===Lr.P;case 2:return e===Lr.RB||e===Lr.RP||e===Lr.RT||e===Lr.DD||e===Lr.DT||e===Lr.LI;case 3:return e===Lr.RTC;case 6:return e===Lr.OPTION;case 8:return e===Lr.OPTGROUP}return!1}function N5(e){switch(e.length){case 1:return e===Lr.P;case 2:return e===Lr.RB||e===Lr.RP||e===Lr.RT||e===Lr.DD||e===Lr.DT||e===Lr.LI||e===Lr.TD||e===Lr.TH||e===Lr.TR;case 3:return e===Lr.RTC;case 5:return e===Lr.TBODY||e===Lr.TFOOT||e===Lr.THEAD;case 6:return e===Lr.OPTION;case 7:return e===Lr.CAPTION;case 8:return e===Lr.OPTGROUP||e===Lr.COLGROUP}return!1}function K1(e,t){switch(e.length){case 2:if(e===Lr.TD||e===Lr.TH)return t===hi.HTML;if(e===Lr.MI||e===Lr.MO||e===Lr.MN||e===Lr.MS)return t===hi.MATHML;break;case 4:if(e===Lr.HTML)return t===hi.HTML;if(e===Lr.DESC)return t===hi.SVG;break;case 5:if(e===Lr.TABLE)return t===hi.HTML;if(e===Lr.MTEXT)return t===hi.MATHML;if(e===Lr.TITLE)return t===hi.SVG;break;case 6:return(e===Lr.APPLET||e===Lr.OBJECT)&&t===hi.HTML;case 7:return(e===Lr.CAPTION||e===Lr.MARQUEE)&&t===hi.HTML;case 8:return e===Lr.TEMPLATE&&t===hi.HTML;case 13:return e===Lr.FOREIGN_OBJECT&&t===hi.SVG;case 14:return e===Lr.ANNOTATION_XML&&t===hi.MATHML}return!1}let I5=class{constructor(t,r){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=r}_indexOf(t){let r=-1;for(let o=this.stackTop;o>=0;o--)if(this.items[o]===t){r=o;break}return r}_isInTemplate(){return this.currentTagName===Lr.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===hi.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,r){const o=this._indexOf(t);this.items[o]=r,o===this.stackTop&&this._updateCurrentElement()}insertAfter(t,r){const o=this._indexOf(t)+1;this.items.splice(o,0,r),o===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const r=this.currentTagName,o=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),r===t&&o===hi.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const r=this.current;if(this.pop(),r===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Lr.H1||t===Lr.H2||t===Lr.H3||t===Lr.H4||t===Lr.H5||t===Lr.H6&&r===hi.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Lr.TD||t===Lr.TH&&r===hi.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Lr.TABLE&&this.currentTagName!==Lr.TEMPLATE&&this.currentTagName!==Lr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hi.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Lr.TBODY&&this.currentTagName!==Lr.TFOOT&&this.currentTagName!==Lr.THEAD&&this.currentTagName!==Lr.TEMPLATE&&this.currentTagName!==Lr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hi.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Lr.TR&&this.currentTagName!==Lr.TEMPLATE&&this.currentTagName!==Lr.HTML||this.treeAdapter.getNamespaceURI(this.current)!==hi.HTML;)this.pop()}remove(t){for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){this.items.splice(r,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===Lr.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t);return--r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===Lr.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){const o=this.treeAdapter.getTagName(this.items[r]),g=this.treeAdapter.getNamespaceURI(this.items[r]);if(o===t&&g===hi.HTML)return!0;if(K1(o,g))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if((r===Lr.H1||r===Lr.H2||r===Lr.H3||r===Lr.H4||r===Lr.H5||r===Lr.H6)&&o===hi.HTML)return!0;if(K1(r,o))return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){const o=this.treeAdapter.getTagName(this.items[r]),g=this.treeAdapter.getNamespaceURI(this.items[r]);if(o===t&&g===hi.HTML)return!0;if((o===Lr.UL||o===Lr.OL)&&g===hi.HTML||K1(o,g))return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){const o=this.treeAdapter.getTagName(this.items[r]),g=this.treeAdapter.getNamespaceURI(this.items[r]);if(o===t&&g===hi.HTML)return!0;if(o===Lr.BUTTON&&g===hi.HTML||K1(o,g))return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){const o=this.treeAdapter.getTagName(this.items[r]);if(this.treeAdapter.getNamespaceURI(this.items[r])===hi.HTML){if(o===t)return!0;if(o===Lr.TABLE||o===Lr.TEMPLATE||o===Lr.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const r=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===hi.HTML){if(r===Lr.TBODY||r===Lr.THEAD||r===Lr.TFOOT)return!0;if(r===Lr.TABLE||r===Lr.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){const o=this.treeAdapter.getTagName(this.items[r]);if(this.treeAdapter.getNamespaceURI(this.items[r])===hi.HTML){if(o===t)return!0;if(o!==Lr.OPTION&&o!==Lr.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;sm(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;N5(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;sm(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var L5=I5;const Y1=3;let gd=class Pl{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const r=[];if(this.length>=Y1){const o=this.treeAdapter.getAttrList(t).length,g=this.treeAdapter.getTagName(t),v=this.treeAdapter.getNamespaceURI(t);for(let E=this.length-1;E>=0;E--){const b=this.entries[E];if(b.type===Pl.MARKER_ENTRY)break;const N=b.element,F=this.treeAdapter.getAttrList(N);this.treeAdapter.getTagName(N)===g&&this.treeAdapter.getNamespaceURI(N)===v&&F.length===o&&r.push({idx:E,attrs:F})}}return r.length=Y1-1;b--)this.entries.splice(r[b].idx,1),this.length--}}insertMarker(){this.entries.push({type:Pl.MARKER_ENTRY}),this.length++}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.push({type:Pl.ELEMENT_ENTRY,element:t,token:r}),this.length++}insertElementAfterBookmark(t,r){let o=this.length-1;for(;o>=0&&this.entries[o]!==this.bookmark;o--);this.entries.splice(o+1,0,{type:Pl.ELEMENT_ENTRY,element:t,token:r}),this.length++}removeEntry(t){for(let r=this.length-1;r>=0;r--)if(this.entries[r]===t){this.entries.splice(r,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Pl.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let r=this.length-1;r>=0;r--){const o=this.entries[r];if(o.type===Pl.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(o.element)===t)return o}return null}getElementEntry(t){for(let r=this.length-1;r>=0;r--){const o=this.entries[r];if(o.type===Pl.ELEMENT_ENTRY&&o.element===t)return o}return null}};gd.MARKER_ENTRY="MARKER_ENTRY";gd.ELEMENT_ENTRY="ELEMENT_ENTRY";var O5=gd;let Dy=class{constructor(t){const r={},o=this._getOverriddenMethods(this,r);for(const g of Object.keys(o))typeof o[g]=="function"&&(r[g]=t[g],t[g]=o[g])}_getOverriddenMethods(){throw new Error("Not implemented")}};Dy.install=function(e,t,r){e.__mixins||(e.__mixins=[]);for(let g=0;g{const v=hf.MODE[g];o[v]=function(E){t.ctLoc=t._getCurrentLocation(),r[v].call(this,E)}}),o}};var Cy=j5;const H5=Ju;let U5=class extends H5{constructor(t,r){super(t),this.onItemPop=r.onItemPop}_getOverriddenMethods(t,r){return{pop(){t.onItemPop(this.current),r.pop.call(this)},popAllUpToHtmlElement(){for(let o=this.stackTop;o>0;o--)t.onItemPop(this.items[o]);r.popAllUpToHtmlElement.call(this)},remove(o){t.onItemPop(this.current),r.remove.call(this,o)}}}};var z5=U5;const ff=Ju,om=kh,$5=Cy,G5=z5,W5=No,df=W5.TAG_NAMES;let V5=class extends ff{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let r=null;this.lastStartTagToken&&(r=Object.assign({},this.lastStartTagToken.location),r.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,r)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const g=r.location,v=this.treeAdapter.getTagName(t),E=r.type===om.END_TAG_TOKEN&&v===r.tagName,b={};E?(b.endTag=Object.assign({},g),b.endLine=g.endLine,b.endCol=g.endCol,b.endOffset=g.endOffset):(b.endLine=g.startLine,b.endCol=g.startCol,b.endOffset=g.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,b)}}_getOverriddenMethods(t,r){return{_bootstrap(o,g){r._bootstrap.call(this,o,g),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const v=ff.install(this.tokenizer,$5);t.posTracker=v.posTracker,ff.install(this.openElements,G5,{onItemPop:function(E){t._setEndLocation(E,t.currentToken)}})},_runParsingLoop(o){r._runParsingLoop.call(this,o);for(let g=this.openElements.stackTop;g>=0;g--)t._setEndLocation(this.openElements.items[g],t.currentToken)},_processTokenInForeignContent(o){t.currentToken=o,r._processTokenInForeignContent.call(this,o)},_processToken(o){if(t.currentToken=o,r._processToken.call(this,o),o.type===om.END_TAG_TOKEN&&(o.tagName===df.HTML||o.tagName===df.BODY&&this.openElements.hasInScope(df.BODY)))for(let v=this.openElements.stackTop;v>=0;v--){const E=this.openElements.items[v];if(this.treeAdapter.getTagName(E)===o.tagName){t._setEndLocation(E,o);break}}},_setDocumentType(o){r._setDocumentType.call(this,o);const g=this.treeAdapter.getChildNodes(this.document),v=g.length;for(let E=0;E(Object.keys(g).forEach(v=>{o[v]=g[v]}),o),Object.create(null))},Fh={};const{DOCUMENT_MODE:np}=No,Ay="html",d2="about:legacy-compat",m2="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Sy=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],g2=Sy.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),y2=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],wy=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],v2=wy.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function lm(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function cm(e,t){for(let r=0;r-1)return np.QUIRKS;let o=t===null?g2:Sy;if(cm(r,o))return np.QUIRKS;if(o=t===null?wy:v2,cm(r,o))return np.LIMITED_QUIRKS}return np.NO_QUIRKS};Fh.serializeContent=function(e,t,r){let o="!DOCTYPE ";return e&&(o+=e),t?o+=" PUBLIC "+lm(t):r&&(o+=" SYSTEM"),r!==null&&(o+=" "+lm(r)),o};var Ol={};const mf=kh,vd=No,mn=vd.TAG_NAMES,ys=vd.NAMESPACES,ah=vd.ATTRS,pm={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},E2="definitionurl",D2="definitionURL",T2={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},C2={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:ys.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:ys.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:ys.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:ys.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:ys.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:ys.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:ys.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:ys.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:ys.XML},"xml:space":{prefix:"xml",name:"space",namespace:ys.XML},xmlns:{prefix:"",name:"xmlns",namespace:ys.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:ys.XMLNS}},x2=Ol.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},b2={[mn.B]:!0,[mn.BIG]:!0,[mn.BLOCKQUOTE]:!0,[mn.BODY]:!0,[mn.BR]:!0,[mn.CENTER]:!0,[mn.CODE]:!0,[mn.DD]:!0,[mn.DIV]:!0,[mn.DL]:!0,[mn.DT]:!0,[mn.EM]:!0,[mn.EMBED]:!0,[mn.H1]:!0,[mn.H2]:!0,[mn.H3]:!0,[mn.H4]:!0,[mn.H5]:!0,[mn.H6]:!0,[mn.HEAD]:!0,[mn.HR]:!0,[mn.I]:!0,[mn.IMG]:!0,[mn.LI]:!0,[mn.LISTING]:!0,[mn.MENU]:!0,[mn.META]:!0,[mn.NOBR]:!0,[mn.OL]:!0,[mn.P]:!0,[mn.PRE]:!0,[mn.RUBY]:!0,[mn.S]:!0,[mn.SMALL]:!0,[mn.SPAN]:!0,[mn.STRONG]:!0,[mn.STRIKE]:!0,[mn.SUB]:!0,[mn.SUP]:!0,[mn.TABLE]:!0,[mn.TT]:!0,[mn.U]:!0,[mn.UL]:!0,[mn.VAR]:!0};Ol.causesExit=function(e){const t=e.tagName;return t===mn.FONT&&(mf.getTokenAttr(e,ah.COLOR)!==null||mf.getTokenAttr(e,ah.SIZE)!==null||mf.getTokenAttr(e,ah.FACE)!==null)?!0:b2[t]};Ol.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let g=r;g=0;t--){let o=this.openElements.items[t];t===0&&(r=!0,this.fragmentContext&&(o=this.fragmentContext));const g=this.treeAdapter.getTagName(o),v=M2[g];if(v){this.insertionMode=v;break}else if(!r&&(g===J.TD||g===J.TH)){this.insertionMode=Lh;break}else if(!r&&g===J.HEAD){this.insertionMode=bp;break}else if(g===J.SELECT){this._resetInsertionModeForSelect(t);break}else if(g===J.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(g===J.HTML){this.insertionMode=this.headElement?Nh:Ph;break}else if(r){this.insertionMode=du;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const o=this.openElements.items[r],g=this.treeAdapter.getTagName(o);if(g===J.TEMPLATE)break;if(g===J.TABLE){this.insertionMode=Td;return}}this.insertionMode=Dd}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const r=this.treeAdapter.getTagName(t);return r===J.TABLE||r===J.TBODY||r===J.TFOOT||r===J.THEAD||r===J.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let r=this.openElements.stackTop;r>=0;r--){const o=this.openElements.items[r],g=this.treeAdapter.getTagName(o),v=this.treeAdapter.getNamespaceURI(o);if(g===J.TEMPLATE&&v===Qr.HTML){t.parent=this.treeAdapter.getTemplateContent(o);break}else if(g===J.TABLE){t.parent=this.treeAdapter.getParentNode(o),t.parent?t.beforeElement=o:t.parent=this.openElements.items[r-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_fosterParentText(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertTextBefore(r.parent,t,r.beforeElement):this.treeAdapter.insertText(r.parent,t)}_isSpecialElement(t){const r=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);return Tc.SPECIAL_ELEMENTS[o][r]}}var j2=R2;function H2(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagName)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):ko(e,t),r}function U2(e,t){let r=null;for(let o=e.openElements.stackTop;o>=0;o--){const g=e.openElements.items[o];if(g===t.element)break;e._isSpecialElement(g)&&(r=g)}return r||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),r}function z2(e,t,r){let o=t,g=e.openElements.getCommonAncestor(t);for(let v=0,E=g;E!==r;v++,E=g){g=e.openElements.getCommonAncestor(E);const b=e.activeFormattingElements.getElementEntry(E),N=b&&v>=O2;!b||N?(N&&e.activeFormattingElements.removeEntry(b),e.openElements.remove(E)):(E=$2(e,b),o===t&&(e.activeFormattingElements.bookmark=b),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(E,o),o=E)}return o}function $2(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),o=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,o),t.element=o,o}function G2(e,t,r){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(r);else{const o=e.treeAdapter.getTagName(t),g=e.treeAdapter.getNamespaceURI(t);o===J.TEMPLATE&&g===Qr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function W2(e,t,r){const o=e.treeAdapter.getNamespaceURI(r.element),g=r.token,v=e.treeAdapter.createElement(g.tagName,o,g.attrs);e._adoptNodes(t,v),e.treeAdapter.appendChild(t,v),e.activeFormattingElements.insertElementAfterBookmark(v,r.token),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,v)}function Il(e,t){let r;for(let o=0;o0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==J.TEMPLATE&&e._err(Es.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(J.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Es.endTagWithoutMatchingOpenElement)}function p1(e,t){e.openElements.pop(),e.insertionMode=Nh,e._processToken(t)}function Q2(e,t){const r=t.tagName;r===J.HTML?ea(e,t):r===J.BASEFONT||r===J.BGSOUND||r===J.HEAD||r===J.LINK||r===J.META||r===J.NOFRAMES||r===J.STYLE?us(e,t):r===J.NOSCRIPT?e._err(Es.nestedNoscriptInHead):h1(e,t)}function Z2(e,t){const r=t.tagName;r===J.NOSCRIPT?(e.openElements.pop(),e.insertionMode=bp):r===J.BR?h1(e,t):e._err(Es.endTagWithoutMatchingOpenElement)}function h1(e,t){const r=t.type===dt.EOF_TOKEN?Es.openElementsLeftAfterEof:Es.disallowedContentInNoscriptInHead;e._err(r),e.openElements.pop(),e.insertionMode=bp,e._processToken(t)}function eT(e,t){const r=t.tagName;r===J.HTML?ea(e,t):r===J.BODY?(e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=du):r===J.FRAMESET?(e._insertElement(t,Qr.HTML),e.insertionMode=Oh):r===J.BASE||r===J.BASEFONT||r===J.BGSOUND||r===J.LINK||r===J.META||r===J.NOFRAMES||r===J.SCRIPT||r===J.STYLE||r===J.TEMPLATE||r===J.TITLE?(e._err(Es.abandonedHeadElementChild),e.openElements.push(e.headElement),us(e,t),e.openElements.remove(e.headElement)):r===J.HEAD?e._err(Es.misplacedStartTagForHeadElement):f1(e,t)}function tT(e,t){const r=t.tagName;r===J.BODY||r===J.HTML||r===J.BR?f1(e,t):r===J.TEMPLATE?Cc(e,t):e._err(Es.endTagWithoutMatchingOpenElement)}function f1(e,t){e._insertFakeElement(J.BODY),e.insertionMode=du,e._processToken(t)}function lc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function J1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function rT(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function nT(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function iT(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Qr.HTML),e.insertionMode=Oh)}function Gu(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}function sT(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement();const r=e.openElements.currentTagName;(r===J.H1||r===J.H2||r===J.H3||r===J.H4||r===J.H5||r===J.H6)&&e.openElements.pop(),e._insertElement(t,Qr.HTML)}function ym(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function aT(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),r||(e.formElement=e.openElements.current))}function oT(e,t){e.framesetOk=!1;const r=t.tagName;for(let o=e.openElements.stackTop;o>=0;o--){const g=e.openElements.items[o],v=e.treeAdapter.getTagName(g);let E=null;if(r===J.LI&&v===J.LI?E=J.LI:(r===J.DD||r===J.DT)&&(v===J.DD||v===J.DT)&&(E=v),E){e.openElements.generateImpliedEndTagsWithExclusion(E),e.openElements.popUntilTagNamePopped(E);break}if(v!==J.ADDRESS&&v!==J.DIV&&v!==J.P&&e._isSpecialElement(g))break}e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}function uT(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.tokenizer.state=dt.MODE.PLAINTEXT}function lT(e,t){e.openElements.hasInScope(J.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(J.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1}function cT(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);r&&(Il(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ip(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function pT(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(J.NOBR)&&(Il(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function hT(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tc.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=xs}function up(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fT(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML);const r=dt.getTokenAttr(t,_y.TYPE);(!r||r.toLowerCase()!==ky)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Em(e,t){e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0}function dT(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function mT(e,t){t.tagName=J.IMG,up(e,t)}function gT(e,t){e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=dt.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=yh}function yT(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,dt.MODE.RAWTEXT)}function vT(e,t){e.framesetOk=!1,e._switchToTextParsing(t,dt.MODE.RAWTEXT)}function Dm(e,t){e._switchToTextParsing(t,dt.MODE.RAWTEXT)}function ET(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode===xs||e.insertionMode===Ih||e.insertionMode===Ka||e.insertionMode===Xu||e.insertionMode===Lh?e.insertionMode=Td:e.insertionMode=Dd}function Tm(e,t){e.openElements.currentTagName===J.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}function Cm(e,t){e.openElements.hasInScope(J.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Qr.HTML)}function DT(e,t){e.openElements.hasInScope(J.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(J.RTC),e._insertElement(t,Qr.HTML)}function TT(e,t){e.openElements.hasInButtonScope(J.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}function CT(e,t){e._reconstructActiveFormattingElements(),pu.adjustTokenMathMLAttrs(t),pu.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Qr.MATHML):e._insertElement(t,Qr.MATHML),t.ackSelfClosing=!0}function xT(e,t){e._reconstructActiveFormattingElements(),pu.adjustTokenSVGAttrs(t),pu.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Qr.SVG):e._insertElement(t,Qr.SVG),t.ackSelfClosing=!0}function Ga(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}function ea(e,t){const r=t.tagName;switch(r.length){case 1:r===J.I||r===J.S||r===J.B||r===J.U?ip(e,t):r===J.P?Gu(e,t):r===J.A?cT(e,t):Ga(e,t);break;case 2:r===J.DL||r===J.OL||r===J.UL?Gu(e,t):r===J.H1||r===J.H2||r===J.H3||r===J.H4||r===J.H5||r===J.H6?sT(e,t):r===J.LI||r===J.DD||r===J.DT?oT(e,t):r===J.EM||r===J.TT?ip(e,t):r===J.BR?up(e,t):r===J.HR?dT(e,t):r===J.RB?Cm(e,t):r===J.RT||r===J.RP?DT(e,t):r!==J.TH&&r!==J.TD&&r!==J.TR&&Ga(e,t);break;case 3:r===J.DIV||r===J.DIR||r===J.NAV?Gu(e,t):r===J.PRE?ym(e,t):r===J.BIG?ip(e,t):r===J.IMG||r===J.WBR?up(e,t):r===J.XMP?yT(e,t):r===J.SVG?xT(e,t):r===J.RTC?Cm(e,t):r!==J.COL&&Ga(e,t);break;case 4:r===J.HTML?rT(e,t):r===J.BASE||r===J.LINK||r===J.META?us(e,t):r===J.BODY?nT(e,t):r===J.MAIN||r===J.MENU?Gu(e,t):r===J.FORM?aT(e,t):r===J.CODE||r===J.FONT?ip(e,t):r===J.NOBR?pT(e,t):r===J.AREA?up(e,t):r===J.MATH?CT(e,t):r===J.MENU?TT(e,t):r!==J.HEAD&&Ga(e,t);break;case 5:r===J.STYLE||r===J.TITLE?us(e,t):r===J.ASIDE?Gu(e,t):r===J.SMALL?ip(e,t):r===J.TABLE?hT(e,t):r===J.EMBED?up(e,t):r===J.INPUT?fT(e,t):r===J.PARAM||r===J.TRACK?Em(e,t):r===J.IMAGE?mT(e,t):r!==J.FRAME&&r!==J.TBODY&&r!==J.TFOOT&&r!==J.THEAD&&Ga(e,t);break;case 6:r===J.SCRIPT?us(e,t):r===J.CENTER||r===J.FIGURE||r===J.FOOTER||r===J.HEADER||r===J.HGROUP||r===J.DIALOG?Gu(e,t):r===J.BUTTON?lT(e,t):r===J.STRIKE||r===J.STRONG?ip(e,t):r===J.APPLET||r===J.OBJECT?vm(e,t):r===J.KEYGEN?up(e,t):r===J.SOURCE?Em(e,t):r===J.IFRAME?vT(e,t):r===J.SELECT?ET(e,t):r===J.OPTION?Tm(e,t):Ga(e,t);break;case 7:r===J.BGSOUND?us(e,t):r===J.DETAILS||r===J.ADDRESS||r===J.ARTICLE||r===J.SECTION||r===J.SUMMARY?Gu(e,t):r===J.LISTING?ym(e,t):r===J.MARQUEE?vm(e,t):r===J.NOEMBED?Dm(e,t):r!==J.CAPTION&&Ga(e,t);break;case 8:r===J.BASEFONT?us(e,t):r===J.FRAMESET?iT(e,t):r===J.FIELDSET?Gu(e,t):r===J.TEXTAREA?gT(e,t):r===J.TEMPLATE?us(e,t):r===J.NOSCRIPT?e.options.scriptingEnabled?Dm(e,t):Ga(e,t):r===J.OPTGROUP?Tm(e,t):r!==J.COLGROUP&&Ga(e,t);break;case 9:r===J.PLAINTEXT?uT(e,t):Ga(e,t);break;case 10:r===J.BLOCKQUOTE||r===J.FIGCAPTION?Gu(e,t):Ga(e,t);break;default:Ga(e,t)}}function bT(e){e.openElements.hasInScope(J.BODY)&&(e.insertionMode=Cd)}function AT(e,t){e.openElements.hasInScope(J.BODY)&&(e.insertionMode=Cd,e._processToken(t))}function wl(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function ST(e){const t=e.openElements.tmplCount>0,r=e.formElement;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(J.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(J.FORM):e.openElements.remove(r))}function wT(e){e.openElements.hasInButtonScope(J.P)||e._insertFakeElement(J.P),e._closePElement()}function _T(e){e.openElements.hasInListItemScope(J.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(J.LI),e.openElements.popUntilTagNamePopped(J.LI))}function kT(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function FT(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function xm(e,t){const r=t.tagName;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function PT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR),e.openElements.pop(),e.framesetOk=!1}function ko(e,t){const r=t.tagName;for(let o=e.openElements.stackTop;o>0;o--){const g=e.openElements.items[o];if(e.treeAdapter.getTagName(g)===r){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilElementPopped(g);break}if(e._isSpecialElement(g))break}}function xd(e,t){const r=t.tagName;switch(r.length){case 1:r===J.A||r===J.B||r===J.I||r===J.S||r===J.U?Il(e,t):r===J.P?wT(e):ko(e,t);break;case 2:r===J.DL||r===J.UL||r===J.OL?wl(e,t):r===J.LI?_T(e):r===J.DD||r===J.DT?kT(e,t):r===J.H1||r===J.H2||r===J.H3||r===J.H4||r===J.H5||r===J.H6?FT(e):r===J.BR?PT(e):r===J.EM||r===J.TT?Il(e,t):ko(e,t);break;case 3:r===J.BIG?Il(e,t):r===J.DIR||r===J.DIV||r===J.NAV||r===J.PRE?wl(e,t):ko(e,t);break;case 4:r===J.BODY?bT(e):r===J.HTML?AT(e,t):r===J.FORM?ST(e):r===J.CODE||r===J.FONT||r===J.NOBR?Il(e,t):r===J.MAIN||r===J.MENU?wl(e,t):ko(e,t);break;case 5:r===J.ASIDE?wl(e,t):r===J.SMALL?Il(e,t):ko(e,t);break;case 6:r===J.CENTER||r===J.FIGURE||r===J.FOOTER||r===J.HEADER||r===J.HGROUP||r===J.DIALOG?wl(e,t):r===J.APPLET||r===J.OBJECT?xm(e,t):r===J.STRIKE||r===J.STRONG?Il(e,t):ko(e,t);break;case 7:r===J.ADDRESS||r===J.ARTICLE||r===J.DETAILS||r===J.SECTION||r===J.SUMMARY||r===J.LISTING?wl(e,t):r===J.MARQUEE?xm(e,t):ko(e,t);break;case 8:r===J.FIELDSET?wl(e,t):r===J.TEMPLATE?Cc(e,t):ko(e,t);break;case 10:r===J.BLOCKQUOTE||r===J.FIGCAPTION?wl(e,t):ko(e,t);break;default:ko(e,t)}}function Wu(e,t){e.tmplInsertionModeStackTop>-1?Ry(e,t):e.stopped=!0}function NT(e,t){t.tagName===J.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function IT(e,t){e._err(Es.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vu(e,t){const r=e.openElements.currentTagName;r===J.TABLE||r===J.TBODY||r===J.TFOOT||r===J.THEAD||r===J.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ny,e._processToken(t)):Wa(e,t)}function LT(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Qr.HTML),e.insertionMode=Ih}function OT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=w1}function MT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP),e.insertionMode=w1,e._processToken(t)}function BT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=Ka}function RT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY),e.insertionMode=Ka,e._processToken(t)}function jT(e,t){e.openElements.hasInTableScope(J.TABLE)&&(e.openElements.popUntilTagNamePopped(J.TABLE),e._resetInsertionMode(),e._processToken(t))}function HT(e,t){const r=dt.getTokenAttr(t,_y.TYPE);r&&r.toLowerCase()===ky?e._appendElement(t,Qr.HTML):Wa(e,t),t.ackSelfClosing=!0}function UT(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Qr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function bd(e,t){const r=t.tagName;switch(r.length){case 2:r===J.TD||r===J.TH||r===J.TR?RT(e,t):Wa(e,t);break;case 3:r===J.COL?MT(e,t):Wa(e,t);break;case 4:r===J.FORM?UT(e,t):Wa(e,t);break;case 5:r===J.TABLE?jT(e,t):r===J.STYLE?us(e,t):r===J.TBODY||r===J.TFOOT||r===J.THEAD?BT(e,t):r===J.INPUT?HT(e,t):Wa(e,t);break;case 6:r===J.SCRIPT?us(e,t):Wa(e,t);break;case 7:r===J.CAPTION?LT(e,t):Wa(e,t);break;case 8:r===J.COLGROUP?OT(e,t):r===J.TEMPLATE?us(e,t):Wa(e,t);break;default:Wa(e,t)}}function Ad(e,t){const r=t.tagName;r===J.TABLE?e.openElements.hasInTableScope(J.TABLE)&&(e.openElements.popUntilTagNamePopped(J.TABLE),e._resetInsertionMode()):r===J.TEMPLATE?Cc(e,t):r!==J.BODY&&r!==J.CAPTION&&r!==J.COL&&r!==J.COLGROUP&&r!==J.HTML&&r!==J.TBODY&&r!==J.TD&&r!==J.TFOOT&&r!==J.TH&&r!==J.THEAD&&r!==J.TR&&Wa(e,t)}function Wa(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=r}function zT(e,t){e.pendingCharacterTokens.push(t)}function $T(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function t1(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0?(e.openElements.popUntilTagNamePopped(J.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function iC(e,t){t.tagName===J.HTML?ea(e,t):Dh(e,t)}function sC(e,t){t.tagName===J.HTML?e.fragmentContext||(e.insertionMode=Ly):Dh(e,t)}function Dh(e,t){e.insertionMode=du,e._processToken(t)}function aC(e,t){const r=t.tagName;r===J.HTML?ea(e,t):r===J.FRAMESET?e._insertElement(t,Qr.HTML):r===J.FRAME?(e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0):r===J.NOFRAMES&&us(e,t)}function oC(e,t){t.tagName===J.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==J.FRAMESET&&(e.insertionMode=Iy))}function uC(e,t){const r=t.tagName;r===J.HTML?ea(e,t):r===J.NOFRAMES&&us(e,t)}function lC(e,t){t.tagName===J.HTML&&(e.insertionMode=Oy)}function cC(e,t){t.tagName===J.HTML?ea(e,t):oh(e,t)}function oh(e,t){e.insertionMode=du,e._processToken(t)}function pC(e,t){const r=t.tagName;r===J.HTML?ea(e,t):r===J.NOFRAMES&&us(e,t)}function hC(e,t){t.chars=N2.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function fC(e,t){e._insertCharacters(t),e.framesetOk=!1}function dC(e,t){if(pu.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Qr.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const r=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(r);o===Qr.MATHML?pu.adjustTokenMathMLAttrs(t):o===Qr.SVG&&(pu.adjustTokenSVGTagName(t),pu.adjustTokenSVGAttrs(t)),pu.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,o):e._insertElement(t,o),t.ackSelfClosing=!0}}function mC(e,t){for(let r=e.openElements.stackTop;r>0;r--){const o=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(o)===Qr.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(o).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(o);break}}}const gC=Dc(j2),_1=jy("start"),Mh=jy("end");function yC(e){return{start:_1(e),end:Mh(e)}}function jy(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};return{line:o.line||null,column:o.column||null,offset:o.offset>-1?o.offset:null}}}class k1{constructor(t,r,o){this.property=t,this.normal=r,o&&(this.space=o)}}k1.prototype.property={};k1.prototype.normal={};k1.prototype.space=null;function Hy(e,t){const r={},o={};let g=-1;for(;++g4&&r.slice(0,4)==="data"&&CC.test(t)){if(t.charAt(4)==="-"){const v=t.slice(5).replace(Am,AC);o="data"+v.charAt(0).toUpperCase()+v.slice(1)}else{const v=t.slice(4);if(!Am.test(v)){let E=v.replace(xC,bC);E.charAt(0)!=="-"&&(E="-"+E),t="data"+E}}g=Sd}return new g(o,t)}function bC(e){return"-"+e.toLowerCase()}function AC(e){return e.charAt(1).toUpperCase()}const F1=Hy([$y,zy,Vy,qy,DC],"html"),bc=Hy([$y,zy,Vy,qy,TC],"svg"),Sm=/[#.]/g;function SC(e,t){const r=e||"",o={};let g=0,v,E;for(;g-1&&EE)return{line:b+1,column:E-(b>0?r[b-1]:0)+1,offset:E}}return{line:void 0,column:void 0,offset:void 0}}function v(E){const b=E&&E.line,N=E&&E.column;if(typeof b=="number"&&typeof N=="number"&&!Number.isNaN(b)&&!Number.isNaN(N)&&b-1 in r){const F=(r[b-2]||0)+N-1||0;if(F>-1&&F{const vt=ht;if(vt.value.stitch&&Kt!==null&&rr!==null)return Kt.children[rr]=vt.value.stitch,rr}),e.type!=="root"&&H.type==="root"&&H.children.length===1)return H.children[0];return H;function ie(){const ht={nodeName:"template",tagName:"template",attrs:[],namespaceURI:T1.html,childNodes:[]},rr={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:T1.html,childNodes:[]},Kt={nodeName:"#document-fragment",childNodes:[]};if(g._bootstrap(rr,ht),g._pushTmplInsertionMode(XC),g._initTokenizerForFragmentParsing(),g._insertFakeRootElement(),g._resetInsertionMode(),g._findFormInFragmentContext(),b=g.tokenizer,!b)throw new Error("Expected `tokenizer`");return N=b.preprocessor,L=b.__mixins[0],F=L.posTracker,v(e),ze(),g._adoptNodes(rr.childNodes[0],Kt),Kt}function re(){const ht=g.treeAdapter.createDocument();if(g._bootstrap(ht,void 0),b=g.tokenizer,!b)throw new Error("Expected `tokenizer`");return N=b.preprocessor,L=b.__mixins[0],F=L.posTracker,v(e),ze(),ht}function Ae(ht){let rr=-1;if(ht)for(;++rrtv(t,r,e)}function px(e=dd){return t=>f5(t,e)}const hx=/["&'<>`]/g,fx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dx=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,mx=/[|\\{}()[\]^$+*?.]/g,Nm=new WeakMap;function gx(e,t){if(e=e.replace(t.subset?yx(t.subset):hx,o),t.subset||t.escapeOnly)return e;return e.replace(fx,r).replace(dx,o);function r(g,v,E){return t.format((g.charCodeAt(0)-55296)*1024+g.charCodeAt(1)-56320+65536,E.charCodeAt(v+2),t)}function o(g,v,E){return t.format(g.charCodeAt(0),E.charCodeAt(v+1),t)}}function yx(e){let t=Nm.get(e);return t||(t=vx(e),Nm.set(e,t)),t}function vx(e){const t=[];let r=-1;for(;++r",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},bx=["cent","copy","divide","gt","lt","not","para","times"],rv={}.hasOwnProperty,qf={};let Q1;for(Q1 in yf)rv.call(yf,Q1)&&(qf[yf[Q1]]=Q1);const Ax=/[^\dA-Za-z]/;function Sx(e,t,r,o){const g=String.fromCharCode(e);if(rv.call(qf,g)){const v=qf[g],E="&"+v;return r&&xx.includes(v)&&!bx.includes(v)&&(!o||t&&t!==61&&Ax.test(String.fromCharCode(t)))?E:E+";"}return""}function wx(e,t,r){let o=Dx(e,t,r.omitOptionalSemicolons),g;if((r.useNamedReferences||r.useShortestReferences)&&(g=Sx(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!g)&&r.useShortestReferences){const v=Cx(e,t,r.omitOptionalSemicolons);v.length"]}))+">":"|--!>|";function g(v){return gp(v,Object.assign({},o.settings.characterReferences,{subset:["<",">"]}))}}function kx(e,t,r,o){return""}function Th(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,g=r.indexOf(t);for(;g!==-1;)o++,g=r.indexOf(t,g+t.length);return o}function Fd(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const Yi=iv(1),nv=iv(-1);function iv(e){return t;function t(r,o,g){const v=r?r.children:[];let E=(o||0)+e,b=v&&v[E];if(!g)for(;b&&Fd(b);)E+=e,b=v[E];return b}}const Fx={}.hasOwnProperty;function sv(e){return t;function t(r,o,g){return Fx.call(e,r.tagName)&&e[r.tagName](r,o,g)}}const Pd=sv({html:Px,head:vf,body:Nx,p:Ix,li:Lx,dt:Ox,dd:Mx,rt:Im,rp:Im,optgroup:Bx,option:Rx,menuitem:jx,colgroup:vf,caption:vf,thead:Hx,tbody:Ux,tfoot:zx,tr:$x,td:Lm,th:Lm});function vf(e,t,r){const o=Yi(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Fd(o.value.charAt(0)))}function Px(e,t,r){const o=Yi(r,t);return!o||o.type!=="comment"}function Nx(e,t,r){const o=Yi(r,t);return!o||o.type!=="comment"}function Ix(e,t,r){const o=Yi(r,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Lx(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&o.tagName==="li"}function Ox(e,t,r){const o=Yi(r,t);return o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Mx(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Im(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Bx(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Rx(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function jx(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="menuitem"||o.tagName==="hr"||o.tagName==="menu")}function Hx(e,t,r){const o=Yi(r,t);return o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Ux(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function zx(e,t,r){return!Yi(r,t)}function $x(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function Lm(e,t,r){const o=Yi(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Gx=sv({html:Wx,head:Vx,body:qx,colgroup:Kx,tbody:Yx});function Wx(e){const t=Yi(e,-1);return!t||t.type!=="comment"}function Vx(e){const t=e.children,r=[];let o=-1;for(;++o0}function qx(e){const t=Yi(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Fd(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Kx(e,t,r){const o=nv(r,t),g=Yi(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Pd(o,r.children.indexOf(o),r)?!1:g&&g.type==="element"&&g.tagName==="col"}function Yx(e,t,r){const o=nv(r,t),g=Yi(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Pd(o,r.children.indexOf(o),r)?!1:g&&g.type==="element"&&g.tagName==="tr"}const Z1={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Xx(e,t,r,o){const g=o.schema,v=g.space==="svg"?!1:o.settings.omitOptionalTags;let E=g.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const b=[];let N;g.space==="html"&&e.tagName==="svg"&&(o.schema=bc);const F=Jx(o,e.properties),L=o.all(g.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=g,L&&(E=!1),(F||!v||!Gx(e,t,r))&&(b.push("<",e.tagName,F?" "+F:""),E&&(g.space==="svg"||o.settings.closeSelfClosing)&&(N=F.charAt(F.length-1),(!o.settings.tightSelfClosing||N==="/"||N&&N!=='"'&&N!=="'")&&b.push(" "),b.push("/")),b.push(">")),b.push(L),!E&&(!v||!Pd(e,t,r))&&b.push(""),b.join("")}function Jx(e,t){const r=[];let o=-1,g;if(t){for(g in t)if(t[g]!==void 0&&t[g]!==null){const v=Qx(e,g,t[g]);v&&r.push(v)}}for(;++oTh(r,e.alternative)&&(E=e.alternative),b=E+gp(r,Object.assign({},e.settings.characterReferences,{subset:(E==="'"?Z1.single:Z1.double)[g][v],attribute:!0}))+E),N+(b&&"="+b))}function av(e,t,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:gp(e.value,Object.assign({},o.settings.characterReferences,{subset:["<","&"]}))}function Zx(e,t,r,o){return o.settings.allowDangerousHtml?e.value:av(e,t,r,o)}function eb(e,t,r,o){return o.all(e)}const tb=_d("type",{invalid:rb,unknown:nb,handlers:{comment:_x,doctype:kx,element:Xx,raw:Zx,root:eb,text:av}});function rb(e){throw new Error("Expected node, not `"+e+"`")}function nb(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function ib(e,t){const r=t||{},o=r.quote||'"',g=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:sb,all:ab,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||ev,characterReferences:r.characterReferences||r.entities||{},closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?bc:F1,quote:o,alternative:g}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sb(e,t,r){return tb(e,t,r,this)}function ab(e){const t=[],r=e&&e.children||[];let o=-1;for(;++og?0:g+t:t=t>g?g:t,r=r>0?r:0,o.length<1e4)E=Array.from(o),E.unshift(t,r),e.splice(...E);else for(r&&e.splice(t,r);v0?(ga(e,e.length,0,t),e):t}const Mm={}.hasOwnProperty;function uv(e){const t={};let r=-1;for(;++rE))return;const ht=t.events.length;let rr=ht,Kt,vt;for(;rr--;)if(t.events[rr][0]==="exit"&&t.events[rr][1].type==="chunkFlow"){if(Kt){vt=t.events[rr][1].end;break}Kt=!0}for(Ne(o),ze=ht;zeKe;){const $t=r[Re];t.containerState=$t[1],$t[0].exit.call(t,e)}r.length=Ke}function et(){g.write([null]),v=void 0,g=void 0,t.containerState._closeFlow=void 0}}function Tb(e,t,r){return ei(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xh(e){if(e===null||di(e)||Ec(e))return 1;if(Rh(e))return 2}function jh(e,t,r){const o=[];let g=-1;for(;++g1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const H=Object.assign({},e[o][1].end),ie=Object.assign({},e[r][1].start);Rm(H,-N),Rm(ie,N),E={type:N>1?"strongSequence":"emphasisSequence",start:H,end:Object.assign({},e[o][1].end)},b={type:N>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:ie},v={type:N>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[r][1].start)},g={type:N>1?"strong":"emphasis",start:Object.assign({},E.start),end:Object.assign({},b.end)},e[o][1].end=Object.assign({},E.start),e[r][1].start=Object.assign({},b.end),F=[],e[o][1].end.offset-e[o][1].start.offset&&(F=Va(F,[["enter",e[o][1],t],["exit",e[o][1],t]])),F=Va(F,[["enter",g,t],["enter",E,t],["exit",E,t],["enter",v,t]]),F=Va(F,jh(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),F=Va(F,[["exit",v,t],["enter",b,t],["exit",b,t],["exit",g,t]]),e[r][1].end.offset-e[r][1].start.offset?(L=2,F=Va(F,[["enter",e[r][1],t],["exit",e[r][1],t]])):L=0,ga(e,o-1,r-o+3,F),r=o+F.length-L-2;break}}for(r=-1;++r0&&Vn(ze)?ei(e,et,"linePrefix",v+1)(ze):et(ze)}function et(ze){return ze===null||vn(ze)?e.check(Hm,$e,Re)(ze):(e.enter("codeFlowValue"),Ke(ze))}function Ke(ze){return ze===null||vn(ze)?(e.exit("codeFlowValue"),et(ze)):(e.consume(ze),Ke)}function Re(ze){return e.exit("codeFenced"),t(ze)}function $t(ze,ht,rr){let Kt=0;return vt;function vt(jt){return ze.enter("lineEnding"),ze.consume(jt),ze.exit("lineEnding"),Yt}function Yt(jt){return ze.enter("codeFencedFence"),Vn(jt)?ei(ze,St,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(jt):St(jt)}function St(jt){return jt===b?(ze.enter("codeFencedFenceSequence"),ft(jt)):rr(jt)}function ft(jt){return jt===b?(Kt++,ze.consume(jt),ft):Kt>=E?(ze.exit("codeFencedFenceSequence"),Vn(jt)?ei(ze,er,"whitespace")(jt):er(jt)):rr(jt)}function er(jt){return jt===null||vn(jt)?(ze.exit("codeFencedFence"),ht(jt)):rr(jt)}}}function Ib(e,t,r){const o=this;return g;function g(E){return E===null?r(E):(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v)}function v(E){return o.parser.lazy[o.now().line]?r(E):t(E)}}const Ef={name:"codeIndented",tokenize:Ob},Lb={tokenize:Mb,partial:!0};function Ob(e,t,r){const o=this;return g;function g(F){return e.enter("codeIndented"),ei(e,v,"linePrefix",5)(F)}function v(F){const L=o.events[o.events.length-1];return L&&L[1].type==="linePrefix"&&L[2].sliceSerialize(L[1],!0).length>=4?E(F):r(F)}function E(F){return F===null?N(F):vn(F)?e.attempt(Lb,E,N)(F):(e.enter("codeFlowValue"),b(F))}function b(F){return F===null||vn(F)?(e.exit("codeFlowValue"),E(F)):(e.consume(F),b)}function N(F){return e.exit("codeIndented"),t(F)}}function Mb(e,t,r){const o=this;return g;function g(E){return o.parser.lazy[o.now().line]?r(E):vn(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),g):ei(e,v,"linePrefix",5)(E)}function v(E){const b=o.events[o.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?t(E):vn(E)?g(E):r(E)}}const Bb={name:"codeText",tokenize:Hb,resolve:Rb,previous:jb};function Rb(e){let t=e.length-4,r=3,o,g;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o=4?t(E):e.interrupt(o.parser.constructs.flow,r,t)(E)}}function fv(e,t,r,o,g,v,E,b,N){const F=N||Number.POSITIVE_INFINITY;let L=0;return H;function H(Ne){return Ne===60?(e.enter(o),e.enter(g),e.enter(v),e.consume(Ne),e.exit(v),ie):Ne===null||Ne===32||Ne===41||Ch(Ne)?r(Ne):(e.enter(o),e.enter(E),e.enter(b),e.enter("chunkString",{contentType:"string"}),$e(Ne))}function ie(Ne){return Ne===62?(e.enter(v),e.consume(Ne),e.exit(v),e.exit(g),e.exit(o),t):(e.enter(b),e.enter("chunkString",{contentType:"string"}),re(Ne))}function re(Ne){return Ne===62?(e.exit("chunkString"),e.exit(b),ie(Ne)):Ne===null||Ne===60||vn(Ne)?r(Ne):(e.consume(Ne),Ne===92?Ae:re)}function Ae(Ne){return Ne===60||Ne===62||Ne===92?(e.consume(Ne),re):re(Ne)}function $e(Ne){return!L&&(Ne===null||Ne===41||di(Ne))?(e.exit("chunkString"),e.exit(b),e.exit(E),e.exit(o),t(Ne)):L999||re===null||re===91||re===93&&!N||re===94&&!b&&"_hiddenFootnoteSupport"in E.parser.constructs?r(re):re===93?(e.exit(v),e.enter(g),e.consume(re),e.exit(g),e.exit(o),t):vn(re)?(e.enter("lineEnding"),e.consume(re),e.exit("lineEnding"),L):(e.enter("chunkString",{contentType:"string"}),H(re))}function H(re){return re===null||re===91||re===93||vn(re)||b++>999?(e.exit("chunkString"),L(re)):(e.consume(re),N||(N=!Vn(re)),re===92?ie:H)}function ie(re){return re===91||re===92||re===93?(e.consume(re),b++,H):H(re)}}function mv(e,t,r,o,g,v){let E;return b;function b(ie){return ie===34||ie===39||ie===40?(e.enter(o),e.enter(g),e.consume(ie),e.exit(g),E=ie===40?41:ie,N):r(ie)}function N(ie){return ie===E?(e.enter(g),e.consume(ie),e.exit(g),e.exit(o),t):(e.enter(v),F(ie))}function F(ie){return ie===E?(e.exit(v),N(E)):ie===null?r(ie):vn(ie)?(e.enter("lineEnding"),e.consume(ie),e.exit("lineEnding"),ei(e,F,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),L(ie))}function L(ie){return ie===E||ie===null||vn(ie)?(e.exit("chunkString"),F(ie)):(e.consume(ie),ie===92?H:L)}function H(ie){return ie===E||ie===92?(e.consume(ie),L):L(ie)}}function d1(e,t){let r;return o;function o(g){return vn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),r=!0,o):Vn(g)?ei(e,o,r?"linePrefix":"lineSuffix")(g):t(g)}}function Fo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qb={name:"definition",tokenize:Yb},Kb={tokenize:Xb,partial:!0};function Yb(e,t,r){const o=this;let g;return v;function v(re){return e.enter("definition"),E(re)}function E(re){return dv.call(o,e,b,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(re)}function b(re){return g=Fo(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),re===58?(e.enter("definitionMarker"),e.consume(re),e.exit("definitionMarker"),N):r(re)}function N(re){return di(re)?d1(e,F)(re):F(re)}function F(re){return fv(e,L,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(re)}function L(re){return e.attempt(Kb,H,H)(re)}function H(re){return Vn(re)?ei(e,ie,"whitespace")(re):ie(re)}function ie(re){return re===null||vn(re)?(e.exit("definition"),o.parser.defined.push(g),t(re)):r(re)}}function Xb(e,t,r){return o;function o(b){return di(b)?d1(e,g)(b):r(b)}function g(b){return mv(e,v,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(b)}function v(b){return Vn(b)?ei(e,E,"whitespace")(b):E(b)}function E(b){return b===null||vn(b)?t(b):r(b)}}const Jb={name:"hardBreakEscape",tokenize:Qb};function Qb(e,t,r){return o;function o(v){return e.enter("hardBreakEscape"),e.consume(v),g}function g(v){return vn(v)?(e.exit("hardBreakEscape"),t(v)):r(v)}}const Zb={name:"headingAtx",tokenize:tA,resolve:eA};function eA(e,t){let r=e.length-2,o=3,g,v;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(g={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},v={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},ga(e,o,r-o+1,[["enter",g,t],["enter",v,t],["exit",v,t],["exit",g,t]])),e}function tA(e,t,r){let o=0;return g;function g(L){return e.enter("atxHeading"),v(L)}function v(L){return e.enter("atxHeadingSequence"),E(L)}function E(L){return L===35&&o++<6?(e.consume(L),E):L===null||di(L)?(e.exit("atxHeadingSequence"),b(L)):r(L)}function b(L){return L===35?(e.enter("atxHeadingSequence"),N(L)):L===null||vn(L)?(e.exit("atxHeading"),t(L)):Vn(L)?ei(e,b,"whitespace")(L):(e.enter("atxHeadingText"),F(L))}function N(L){return L===35?(e.consume(L),N):(e.exit("atxHeadingSequence"),b(L))}function F(L){return L===null||L===35||di(L)?(e.exit("atxHeadingText"),b(L)):(e.consume(L),F)}}const rA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zm=["pre","script","style","textarea"],nA={name:"htmlFlow",tokenize:oA,resolveTo:aA,concrete:!0},iA={tokenize:lA,partial:!0},sA={tokenize:uA,partial:!0};function aA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function oA(e,t,r){const o=this;let g,v,E,b,N;return F;function F(Ve){return L(Ve)}function L(Ve){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Ve),H}function H(Ve){return Ve===33?(e.consume(Ve),ie):Ve===47?(e.consume(Ve),v=!0,$e):Ve===63?(e.consume(Ve),g=3,o.interrupt?t:fe):Os(Ve)?(e.consume(Ve),E=String.fromCharCode(Ve),Be):r(Ve)}function ie(Ve){return Ve===45?(e.consume(Ve),g=2,re):Ve===91?(e.consume(Ve),g=5,b=0,Ae):Os(Ve)?(e.consume(Ve),g=4,o.interrupt?t:fe):r(Ve)}function re(Ve){return Ve===45?(e.consume(Ve),o.interrupt?t:fe):r(Ve)}function Ae(Ve){const br="CDATA[";return Ve===br.charCodeAt(b++)?(e.consume(Ve),b===br.length?o.interrupt?t:St:Ae):r(Ve)}function $e(Ve){return Os(Ve)?(e.consume(Ve),E=String.fromCharCode(Ve),Be):r(Ve)}function Be(Ve){if(Ve===null||Ve===47||Ve===62||di(Ve)){const br=Ve===47,An=E.toLowerCase();return!br&&!v&&zm.includes(An)?(g=1,o.interrupt?t(Ve):St(Ve)):rA.includes(E.toLowerCase())?(g=6,br?(e.consume(Ve),Ne):o.interrupt?t(Ve):St(Ve)):(g=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(Ve):v?et(Ve):Ke(Ve))}return Ve===45||bs(Ve)?(e.consume(Ve),E+=String.fromCharCode(Ve),Be):r(Ve)}function Ne(Ve){return Ve===62?(e.consume(Ve),o.interrupt?t:St):r(Ve)}function et(Ve){return Vn(Ve)?(e.consume(Ve),et):vt(Ve)}function Ke(Ve){return Ve===47?(e.consume(Ve),vt):Ve===58||Ve===95||Os(Ve)?(e.consume(Ve),Re):Vn(Ve)?(e.consume(Ve),Ke):vt(Ve)}function Re(Ve){return Ve===45||Ve===46||Ve===58||Ve===95||bs(Ve)?(e.consume(Ve),Re):$t(Ve)}function $t(Ve){return Ve===61?(e.consume(Ve),ze):Vn(Ve)?(e.consume(Ve),$t):Ke(Ve)}function ze(Ve){return Ve===null||Ve===60||Ve===61||Ve===62||Ve===96?r(Ve):Ve===34||Ve===39?(e.consume(Ve),N=Ve,ht):Vn(Ve)?(e.consume(Ve),ze):rr(Ve)}function ht(Ve){return Ve===N?(e.consume(Ve),N=null,Kt):Ve===null||vn(Ve)?r(Ve):(e.consume(Ve),ht)}function rr(Ve){return Ve===null||Ve===34||Ve===39||Ve===47||Ve===60||Ve===61||Ve===62||Ve===96||di(Ve)?$t(Ve):(e.consume(Ve),rr)}function Kt(Ve){return Ve===47||Ve===62||Vn(Ve)?Ke(Ve):r(Ve)}function vt(Ve){return Ve===62?(e.consume(Ve),Yt):r(Ve)}function Yt(Ve){return Ve===null||vn(Ve)?St(Ve):Vn(Ve)?(e.consume(Ve),Yt):r(Ve)}function St(Ve){return Ve===45&&g===2?(e.consume(Ve),ur):Ve===60&&g===1?(e.consume(Ve),Ur):Ve===62&&g===4?(e.consume(Ve),Te):Ve===63&&g===3?(e.consume(Ve),fe):Ve===93&&g===5?(e.consume(Ve),Zr):vn(Ve)&&(g===6||g===7)?(e.exit("htmlFlowData"),e.check(iA,Qt,ft)(Ve)):Ve===null||vn(Ve)?(e.exit("htmlFlowData"),ft(Ve)):(e.consume(Ve),St)}function ft(Ve){return e.check(sA,er,Qt)(Ve)}function er(Ve){return e.enter("lineEnding"),e.consume(Ve),e.exit("lineEnding"),jt}function jt(Ve){return Ve===null||vn(Ve)?ft(Ve):(e.enter("htmlFlowData"),St(Ve))}function ur(Ve){return Ve===45?(e.consume(Ve),fe):St(Ve)}function Ur(Ve){return Ve===47?(e.consume(Ve),E="",Yr):St(Ve)}function Yr(Ve){if(Ve===62){const br=E.toLowerCase();return zm.includes(br)?(e.consume(Ve),Te):St(Ve)}return Os(Ve)&&E.length<8?(e.consume(Ve),E+=String.fromCharCode(Ve),Yr):St(Ve)}function Zr(Ve){return Ve===93?(e.consume(Ve),fe):St(Ve)}function fe(Ve){return Ve===62?(e.consume(Ve),Te):Ve===45&&g===2?(e.consume(Ve),fe):St(Ve)}function Te(Ve){return Ve===null||vn(Ve)?(e.exit("htmlFlowData"),Qt(Ve)):(e.consume(Ve),Te)}function Qt(Ve){return e.exit("htmlFlow"),t(Ve)}}function uA(e,t,r){const o=this;return g;function g(E){return vn(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v):r(E)}function v(E){return o.parser.lazy[o.now().line]?r(E):t(E)}}function lA(e,t,r){return o;function o(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),e.attempt(P1,t,r)}}const cA={name:"htmlText",tokenize:pA};function pA(e,t,r){const o=this;let g,v,E;return b;function b(fe){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(fe),N}function N(fe){return fe===33?(e.consume(fe),F):fe===47?(e.consume(fe),$t):fe===63?(e.consume(fe),Ke):Os(fe)?(e.consume(fe),rr):r(fe)}function F(fe){return fe===45?(e.consume(fe),L):fe===91?(e.consume(fe),v=0,Ae):Os(fe)?(e.consume(fe),et):r(fe)}function L(fe){return fe===45?(e.consume(fe),re):r(fe)}function H(fe){return fe===null?r(fe):fe===45?(e.consume(fe),ie):vn(fe)?(E=H,Ur(fe)):(e.consume(fe),H)}function ie(fe){return fe===45?(e.consume(fe),re):H(fe)}function re(fe){return fe===62?ur(fe):fe===45?ie(fe):H(fe)}function Ae(fe){const Te="CDATA[";return fe===Te.charCodeAt(v++)?(e.consume(fe),v===Te.length?$e:Ae):r(fe)}function $e(fe){return fe===null?r(fe):fe===93?(e.consume(fe),Be):vn(fe)?(E=$e,Ur(fe)):(e.consume(fe),$e)}function Be(fe){return fe===93?(e.consume(fe),Ne):$e(fe)}function Ne(fe){return fe===62?ur(fe):fe===93?(e.consume(fe),Ne):$e(fe)}function et(fe){return fe===null||fe===62?ur(fe):vn(fe)?(E=et,Ur(fe)):(e.consume(fe),et)}function Ke(fe){return fe===null?r(fe):fe===63?(e.consume(fe),Re):vn(fe)?(E=Ke,Ur(fe)):(e.consume(fe),Ke)}function Re(fe){return fe===62?ur(fe):Ke(fe)}function $t(fe){return Os(fe)?(e.consume(fe),ze):r(fe)}function ze(fe){return fe===45||bs(fe)?(e.consume(fe),ze):ht(fe)}function ht(fe){return vn(fe)?(E=ht,Ur(fe)):Vn(fe)?(e.consume(fe),ht):ur(fe)}function rr(fe){return fe===45||bs(fe)?(e.consume(fe),rr):fe===47||fe===62||di(fe)?Kt(fe):r(fe)}function Kt(fe){return fe===47?(e.consume(fe),ur):fe===58||fe===95||Os(fe)?(e.consume(fe),vt):vn(fe)?(E=Kt,Ur(fe)):Vn(fe)?(e.consume(fe),Kt):ur(fe)}function vt(fe){return fe===45||fe===46||fe===58||fe===95||bs(fe)?(e.consume(fe),vt):Yt(fe)}function Yt(fe){return fe===61?(e.consume(fe),St):vn(fe)?(E=Yt,Ur(fe)):Vn(fe)?(e.consume(fe),Yt):Kt(fe)}function St(fe){return fe===null||fe===60||fe===61||fe===62||fe===96?r(fe):fe===34||fe===39?(e.consume(fe),g=fe,ft):vn(fe)?(E=St,Ur(fe)):Vn(fe)?(e.consume(fe),St):(e.consume(fe),er)}function ft(fe){return fe===g?(e.consume(fe),g=void 0,jt):fe===null?r(fe):vn(fe)?(E=ft,Ur(fe)):(e.consume(fe),ft)}function er(fe){return fe===null||fe===34||fe===39||fe===60||fe===61||fe===96?r(fe):fe===47||fe===62||di(fe)?Kt(fe):(e.consume(fe),er)}function jt(fe){return fe===47||fe===62||di(fe)?Kt(fe):r(fe)}function ur(fe){return fe===62?(e.consume(fe),e.exit("htmlTextData"),e.exit("htmlText"),t):r(fe)}function Ur(fe){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(fe),e.exit("lineEnding"),Yr}function Yr(fe){return Vn(fe)?ei(e,Zr,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(fe):Zr(fe)}function Zr(fe){return e.enter("htmlTextData"),E(fe)}}const Id={name:"labelEnd",tokenize:yA,resolveTo:gA,resolveAll:mA},hA={tokenize:vA},fA={tokenize:EA},dA={tokenize:DA};function mA(e){let t=-1;for(;++t=3&&(F===null||vn(F))?(e.exit("thematicBreak"),t(F)):r(F)}function N(F){return F===g?(e.consume(F),o++,N):(e.exit("thematicBreakSequence"),Vn(F)?ei(e,b,"whitespace")(F):b(F))}}const Js={name:"list",tokenize:kA,continuation:{tokenize:FA},exit:NA},wA={tokenize:IA,partial:!0},_A={tokenize:PA,partial:!0};function kA(e,t,r){const o=this,g=o.events[o.events.length-1];let v=g&&g[1].type==="linePrefix"?g[2].sliceSerialize(g[1],!0).length:0,E=0;return b;function b(re){const Ae=o.containerState.type||(re===42||re===43||re===45?"listUnordered":"listOrdered");if(Ae==="listUnordered"?!o.containerState.marker||re===o.containerState.marker:Kf(re)){if(o.containerState.type||(o.containerState.type=Ae,e.enter(Ae,{_container:!0})),Ae==="listUnordered")return e.enter("listItemPrefix"),re===42||re===45?e.check(lh,r,F)(re):F(re);if(!o.interrupt||re===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),N(re)}return r(re)}function N(re){return Kf(re)&&++E<10?(e.consume(re),N):(!o.interrupt||E<2)&&(o.containerState.marker?re===o.containerState.marker:re===41||re===46)?(e.exit("listItemValue"),F(re)):r(re)}function F(re){return e.enter("listItemMarker"),e.consume(re),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||re,e.check(P1,o.interrupt?r:L,e.attempt(wA,ie,H))}function L(re){return o.containerState.initialBlankLine=!0,v++,ie(re)}function H(re){return Vn(re)?(e.enter("listItemPrefixWhitespace"),e.consume(re),e.exit("listItemPrefixWhitespace"),ie):r(re)}function ie(re){return o.containerState.size=v+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(re)}}function FA(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(P1,g,v);function g(b){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ei(e,t,"listItemIndent",o.containerState.size+1)(b)}function v(b){return o.containerState.furtherBlankLines||!Vn(b)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,E(b)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(_A,t,E)(b))}function E(b){return o.containerState._closeFlow=!0,o.interrupt=void 0,ei(e,e.attempt(Js,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b)}}function PA(e,t,r){const o=this;return ei(e,g,"listItemIndent",o.containerState.size+1);function g(v){const E=o.events[o.events.length-1];return E&&E[1].type==="listItemIndent"&&E[2].sliceSerialize(E[1],!0).length===o.containerState.size?t(v):r(v)}}function NA(e){e.exit(this.containerState.type)}function IA(e,t,r){const o=this;return ei(e,g,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function g(v){const E=o.events[o.events.length-1];return!Vn(v)&&E&&E[1].type==="listItemPrefixWhitespace"?t(v):r(v)}}const $m={name:"setextUnderline",tokenize:OA,resolveTo:LA};function LA(e,t){let r=e.length,o,g,v;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(g=r)}else e[r][1].type==="content"&&e.splice(r,1),!v&&e[r][1].type==="definition"&&(v=r);const E={type:"setextHeading",start:Object.assign({},e[g][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[g][1].type="setextHeadingText",v?(e.splice(g,0,["enter",E,t]),e.splice(v+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[v][1].end)):e[o][1]=E,e.push(["exit",E,t]),e}function OA(e,t,r){const o=this;let g;return v;function v(F){let L=o.events.length,H;for(;L--;)if(o.events[L][1].type!=="lineEnding"&&o.events[L][1].type!=="linePrefix"&&o.events[L][1].type!=="content"){H=o.events[L][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||H)?(e.enter("setextHeadingLine"),g=F,E(F)):r(F)}function E(F){return e.enter("setextHeadingLineSequence"),b(F)}function b(F){return F===g?(e.consume(F),b):(e.exit("setextHeadingLineSequence"),Vn(F)?ei(e,N,"lineSuffix")(F):N(F))}function N(F){return F===null||vn(F)?(e.exit("setextHeadingLine"),t(F)):r(F)}}const MA={tokenize:BA};function BA(e){const t=this,r=e.attempt(P1,o,e.attempt(this.parser.constructs.flowInitial,g,ei(e,e.attempt(this.parser.constructs.flow,g,e.attempt(zb,g)),"linePrefix")));return r;function o(v){if(v===null){e.consume(v);return}return e.enter("lineEndingBlank"),e.consume(v),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function g(v){if(v===null){e.consume(v);return}return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const RA={resolveAll:yv()},jA=gv("string"),HA=gv("text");function gv(e){return{tokenize:t,resolveAll:yv(e==="text"?UA:void 0)};function t(r){const o=this,g=this.parser.constructs[e],v=r.attempt(g,E,b);return E;function E(L){return F(L)?v(L):b(L)}function b(L){if(L===null){r.consume(L);return}return r.enter("data"),r.consume(L),N}function N(L){return F(L)?(r.exit("data"),v(L)):(r.consume(L),N)}function F(L){if(L===null)return!0;const H=g[L];let ie=-1;if(H)for(;++ie-1){const b=E[0];typeof b=="string"?E[0]=b.slice(o):E.shift()}v>0&&E.push(e[g].slice(0,v))}return E}function GA(e,t){let r=-1;const o=[];let g;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}const i8=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ev(e){return e.replace(i8,s8)}function s8(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const g=r.charCodeAt(1),v=g===120||g===88;return vv(r.slice(v?2:1),v?16:10)}return Nd(r)||e}function m1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wm(e.position):"start"in e||"end"in e?Wm(e):"line"in e||"column"in e?Xf(e):""}function Xf(e){return Vm(e&&e.line)+":"+Vm(e&&e.column)}function Wm(e){return Xf(e&&e.start)+"-"+Xf(e&&e.end)}function Vm(e){return e&&typeof e=="number"?e:1}const Dv={}.hasOwnProperty,a8=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),o8(r)(n8(t8(r).document().write(r8()(e,t,!0))))};function o8(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:b(gr),autolinkProtocol:Yt,autolinkEmail:Yt,atxHeading:b(fi),blockQuote:b(Rn),characterEscape:Yt,characterReference:Yt,codeFenced:b(mi),codeFencedFenceInfo:N,codeFencedFenceMeta:N,codeIndented:b(mi,N),codeText:b(bn,N),codeTextData:Yt,data:Yt,codeFlowValue:Yt,definition:b(gi),definitionDestinationString:N,definitionLabelString:N,definitionTitleString:N,emphasis:b(Di),hardBreakEscape:b(yi),hardBreakTrailing:b(yi),htmlFlow:b(Li,N),htmlFlowData:Yt,htmlText:b(Li,N),htmlTextData:Yt,image:b(Ti),label:N,link:b(gr),listItem:b(ns),listItemValue:Ae,listOrdered:b(jn,re),listUnordered:b(jn),paragraph:b(ri),reference:An,referenceString:N,resourceDestinationString:N,resourceTitleString:N,setextHeading:b(fi),strong:b(ni),thematicBreak:b(Hn)},exit:{atxHeading:L(),atxHeadingSequence:ht,autolink:L(),autolinkEmail:Dn,autolinkProtocol:Xr,blockQuote:L(),characterEscapeValue:St,characterReferenceMarkerHexadecimal:Pn,characterReferenceMarkerNumeric:Pn,characterReferenceValue:En,codeFenced:L(et),codeFencedFence:Ne,codeFencedFenceInfo:$e,codeFencedFenceMeta:Be,codeFlowValue:St,codeIndented:L(Ke),codeText:L(Ur),codeTextData:St,data:St,definition:L(),definitionDestinationString:ze,definitionLabelString:Re,definitionTitleString:$t,emphasis:L(),hardBreakEscape:L(er),hardBreakTrailing:L(er),htmlFlow:L(jt),htmlFlowData:St,htmlText:L(ur),htmlTextData:St,image:L(Zr),label:Te,labelText:fe,lineEnding:ft,link:L(Yr),listItem:L(),listOrdered:L(),listUnordered:L(),paragraph:L(),referenceString:yn,resourceDestinationString:Qt,resourceTitleString:Ve,resource:br,setextHeading:L(vt),setextHeadingLineSequence:Kt,setextHeadingText:rr,strong:L(),thematicBreak:L()}};Tv(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(zt){let dr={type:"root",children:[]};const rn={stack:[dr],tokenStack:[],config:t,enter:F,exit:H,buffer:N,resume:ie,setData:v,getData:E},fn=[];let nn=-1;for(;++nn0){const Nr=rn.tokenStack[rn.tokenStack.length-1];(Nr[1]||qm).call(rn,void 0,Nr[0])}for(dr.position={start:_l(zt.length>0?zt[0][1].start:{line:1,column:1,offset:0}),end:_l(zt.length>0?zt[zt.length-2][1].end:{line:1,column:1,offset:0})},nn=-1;++nn{const o=this.data("settings");return a8(r,Object.assign({},o,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function c8(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function p8(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:` +`}]}function h8(e,t){const r=t.value?t.value+` +`:"",o=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,g={};o&&(g.className=["language-"+o]);let v={type:"element",tagName:"code",properties:g,children:[{type:"text",value:r}]};return t.meta&&(v.data={meta:t.meta}),e.patch(t,v),v=e.applyData(t,v),v={type:"element",tagName:"pre",properties:{},children:[v]},e.patch(t,v),v}function f8(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d8(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wp(e){const t=[];let r=-1,o=0,g=0;for(;++r55295&&v<57344){const b=e.charCodeAt(r+1);v<56320&&b>56319&&b<57344?(E=String.fromCharCode(v,b),g=1):E="�"}else E=String.fromCharCode(v);E&&(t.push(e.slice(o,r),encodeURIComponent(E)),o=r+g+1,E=""),g&&(r+=g,g=0)}return t.join("")+e.slice(o)}function Cv(e,t){const r=String(t.identifier).toUpperCase(),o=wp(r.toLowerCase()),g=e.footnoteOrder.indexOf(r);let v;g===-1?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,v=e.footnoteOrder.length):(e.footnoteCounts[r]++,v=g+1);const E=e.footnoteCounts[r],b={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(E>1?"-"+E:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(v)}]};e.patch(t,b);const N={type:"element",tagName:"sup",properties:{},children:[b]};return e.patch(t,N),e.applyData(t,N)}function m8(e,t){const r=e.footnoteById;let o=1;for(;o in r;)o++;const g=String(o);return r[g]={type:"footnoteDefinition",identifier:g,children:[{type:"paragraph",children:t.children}],position:t.position},Cv(e,{type:"footnoteReference",identifier:g,position:t.position})}function g8(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function y8(e,t){if(e.dangerous){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}return null}function xv(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+o};const g=e.all(t),v=g[0];v&&v.type==="text"?v.value="["+v.value:g.unshift({type:"text",value:"["});const E=g[g.length-1];return E&&E.type==="text"?E.value+=o:g.push({type:"text",value:o}),g}function v8(e,t){const r=e.definition(t.identifier);if(!r)return xv(e,t);const o={src:wp(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const g={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,g),e.applyData(t,g)}function E8(e,t){const r={src:wp(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function D8(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}function T8(e,t){const r=e.definition(t.identifier);if(!r)return xv(e,t);const o={href:wp(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const g={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,g),e.applyData(t,g)}function C8(e,t){const r={href:wp(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function x8(e,t,r){const o=e.all(t),g=r?b8(r):bv(t),v={},E=[];if(typeof t.checked=="boolean"){const L=o[0];let H;L&&L.type==="element"&&L.tagName==="p"?H=L:(H={type:"element",tagName:"p",properties:{},children:[]},o.unshift(H)),H.children.length>0&&H.children.unshift({type:"text",value:" "}),H.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),v.className=["task-list-item"]}let b=-1;for(;++b1}function A8(e,t){const r={},o=e.all(t);let g=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++g0){const E={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},b=_1(t.children[1]),N=Mh(t.children[t.children.length-1]);b.line&&N.line&&(E.position={start:b,end:N}),g.push(E)}const v={type:"element",tagName:"table",properties:{},children:e.wrap(g,!0)};return e.patch(t,v),e.applyData(t,v)}function F8(e,t,r){const o=r?r.children:void 0,v=(o?o.indexOf(t):1)===0?"th":"td",E=r&&r.type==="table"?r.align:void 0,b=E?E.length:t.children.length;let N=-1;const F=[];for(;++N0,!0),o[0]),g=o.index+o[0].length,o=r.exec(t);return v.push(Xm(t.slice(g),g>0,!1)),v.join("")}function Xm(e,t,r){let o=0,g=e.length;if(t){let v=e.codePointAt(o);for(;v===Km||v===Ym;)o++,v=e.codePointAt(o)}if(r){let v=e.codePointAt(g-1);for(;v===Km||v===Ym;)g--,v=e.codePointAt(g-1)}return g>o?e.slice(o,g):""}function I8(e,t){const r={type:"text",value:N8(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function L8(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const O8={blockquote:c8,break:p8,code:h8,delete:f8,emphasis:d8,footnoteReference:Cv,footnote:m8,heading:g8,html:y8,imageReference:v8,image:E8,inlineCode:D8,linkReference:T8,link:C8,listItem:x8,list:A8,paragraph:S8,root:w8,strong:_8,table:k8,tableCell:P8,tableRow:F8,text:I8,thematicBreak:L8,toml:eh,yaml:eh,definition:eh,footnoteDefinition:eh};function eh(){return null}function M8(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const Jm={}.hasOwnProperty;function B8(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return b1(e,"definition",o=>{const g=Qm(o.identifier);g&&!Jm.call(t,g)&&(t[g]=o)}),r;function r(o){const g=Qm(o);return g&&Jm.call(t,g)?t[g]:null}}function Qm(e){return String(e||"").toUpperCase()}const bh={}.hasOwnProperty;function R8(e,t){const r=t||{},o=r.allowDangerousHtml||!1,g={};return E.dangerous=o,E.clobberPrefix=r.clobberPrefix===void 0||r.clobberPrefix===null?"user-content-":r.clobberPrefix,E.footnoteLabel=r.footnoteLabel||"Footnotes",E.footnoteLabelTagName=r.footnoteLabelTagName||"h2",E.footnoteLabelProperties=r.footnoteLabelProperties||{className:["sr-only"]},E.footnoteBackLabel=r.footnoteBackLabel||"Back to content",E.unknownHandler=r.unknownHandler,E.passThrough=r.passThrough,E.handlers={...O8,...r.handlers},E.definition=B8(e),E.footnoteById=g,E.footnoteOrder=[],E.footnoteCounts={},E.patch=j8,E.applyData=H8,E.one=b,E.all=N,E.wrap=z8,E.augment=v,b1(e,"footnoteDefinition",F=>{const L=String(F.identifier).toUpperCase();bh.call(g,L)||(g[L]=F)}),E;function v(F,L){if(F&&"data"in F&&F.data){const H=F.data;H.hName&&(L.type!=="element"&&(L={type:"element",tagName:"",properties:{},children:[]}),L.tagName=H.hName),L.type==="element"&&H.hProperties&&(L.properties={...L.properties,...H.hProperties}),"children"in L&&L.children&&H.hChildren&&(L.children=H.hChildren)}if(F){const H="type"in F?F:{position:F};M8(H)||(L.position={start:_1(H),end:Mh(H)})}return L}function E(F,L,H,ie){return Array.isArray(H)&&(ie=H,H={}),v(F,{type:"element",tagName:L,properties:H||{},children:ie||[]})}function b(F,L){return Av(E,F,L)}function N(F){return Ld(E,F)}}function j8(e,t){e.position&&(t.position=yC(e))}function H8(e,t){let r=t;if(e&&e.data){const o=e.data.hName,g=e.data.hChildren,v=e.data.hProperties;typeof o=="string"&&(r.type==="element"?r.tagName=o:r={type:"element",tagName:o,properties:{},children:[]}),r.type==="element"&&v&&(r.properties={...r.properties,...v}),"children"in r&&r.children&&g!==null&&g!==void 0&&(r.children=g)}return r}function Av(e,t,r){const o=t&&t.type;if(!o)throw new Error("Expected node, got `"+t+"`");return bh.call(e.handlers,o)?e.handlers[o](e,t,r):e.passThrough&&e.passThrough.includes(o)?"children"in t?{...t,children:Ld(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,r):U8(e,t)}function Ld(e,t){const r=[];if("children"in t){const o=t.children;let g=-1;for(;++g0&&r.push({type:"text",value:` +`}),r}function $8(e){const t=[];let r=-1;for(;++r1?"-"+b:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};b>1&&H.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(b)}]}),N.length>0&&N.push({type:"text",value:" "}),N.push(H)}const F=g[g.length-1];if(F&&F.type==="element"&&F.tagName==="p"){const H=F.children[F.children.length-1];H&&H.type==="text"?H.value+=" ":F.children.push({type:"text",value:" "}),F.children.push(...N)}else g.push(...N);const L={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+E},children:e.wrap(g,!0)};e.patch(o,L),t.push(L)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` +`}]}}function Sv(e,t){const r=R8(e,t),o=r.one(e,null),g=$8(r);return g&&o.children.push({type:"text",value:` +`},g),Array.isArray(o)?{type:"root",children:o}:o}const G8=function(e,t){return e&&"run"in e?V8(e,t):q8(e||t)},W8=G8;function V8(e,t){return(r,o,g)=>{e.run(Sv(r,t),o,v=>{g(v)})}}function q8(e){return t=>Sv(t,e)}function Zm(e){if(e)throw e}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var K8=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const wv=Dc(K8);var ch=Object.prototype.hasOwnProperty,_v=Object.prototype.toString,eg=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,rg=function(t){return typeof Array.isArray=="function"?Array.isArray(t):_v.call(t)==="[object Array]"},ng=function(t){if(!t||_v.call(t)!=="[object Object]")return!1;var r=ch.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&ch.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var g;for(g in t);return typeof g>"u"||ch.call(t,g)},ig=function(t,r){eg&&r.name==="__proto__"?eg(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},sg=function(t,r){if(r==="__proto__")if(ch.call(t,r)){if(tg)return tg(t,r).value}else return;return t[r]},Y8=function e(){var t,r,o,g,v,E,b=arguments[0],N=1,F=arguments.length,L=!1;for(typeof b=="boolean"&&(L=b,b=arguments[1]||{},N=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});NE.length;let N;b&&E.push(g);try{N=e.apply(this,E)}catch(F){const L=F;if(b&&r)throw L;return g(L)}b||(N&&N.then&&typeof N.then=="function"?N.then(v,g):N instanceof Error?g(N):v(N))}function g(E,...b){r||(r=!0,t(E,...b))}function v(E){g(null,E)}}class Za extends Error{constructor(t,r,o){const g=[null,null];let v={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof r=="string"&&(o=r,r=void 0),typeof o=="string"){const E=o.indexOf(":");E===-1?g[1]=o:(g[0]=o.slice(0,E),g[1]=o.slice(E+1))}r&&("type"in r||"position"in r?r.position&&(v=r.position):"start"in r||"end"in r?v=r:("line"in r||"column"in r)&&(v.start=r)),this.name=m1(r)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=v.start.line,this.column=v.start.column,this.position=v,this.source=g[0],this.ruleId=g[1],this.file,this.actual,this.expected,this.url,this.note}}Za.prototype.file="";Za.prototype.name="";Za.prototype.reason="";Za.prototype.message="";Za.prototype.stack="";Za.prototype.fatal=null;Za.prototype.column=null;Za.prototype.line=null;Za.prototype.source=null;Za.prototype.ruleId=null;Za.prototype.position=null;const uu={basename:Q8,dirname:Z8,extname:e4,join:t4,sep:"/"};function Q8(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');N1(e);let r=0,o=-1,g=e.length,v;if(t===void 0||t.length===0||t.length>e.length){for(;g--;)if(e.charCodeAt(g)===47){if(v){r=g+1;break}}else o<0&&(v=!0,o=g+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let E=-1,b=t.length-1;for(;g--;)if(e.charCodeAt(g)===47){if(v){r=g+1;break}}else E<0&&(v=!0,E=g+1),b>-1&&(e.charCodeAt(g)===t.charCodeAt(b--)?b<0&&(o=g):(b=-1,o=E));return r===o?o=E:o<0&&(o=e.length),e.slice(r,o)}function Z8(e){if(N1(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.charCodeAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function e4(e){N1(e);let t=e.length,r=-1,o=0,g=-1,v=0,E;for(;t--;){const b=e.charCodeAt(t);if(b===47){if(E){o=t+1;break}continue}r<0&&(E=!0,r=t+1),b===46?g<0?g=t:v!==1&&(v=1):g>-1&&(v=-1)}return g<0||r<0||v===0||v===1&&g===r-1&&g===o+1?"":e.slice(g,r)}function t4(...e){let t=-1,r;for(;++t0&&e.charCodeAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function n4(e,t){let r="",o=0,g=-1,v=0,E=-1,b,N;for(;++E<=e.length;){if(E2){if(N=r.lastIndexOf("/"),N!==r.length-1){N<0?(r="",o=0):(r=r.slice(0,N),o=r.length-1-r.lastIndexOf("/")),g=E,v=0;continue}}else if(r.length>0){r="",o=0,g=E,v=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(g+1,E):r=e.slice(g+1,E),o=E-g-1;g=E,v=0}else b===46&&v>-1?v++:v=-1}return r}function N1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const i4={cwd:s4};function s4(){return"/"}function Qf(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function a4(e){if(typeof e=="string")e=new URL(e);else if(!Qf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return o4(e)}function o4(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r{if(ze||!ht||!rr)$t(ze);else{const Kt=v.stringify(ht,rr);Kt==null||(f4(Kt)?rr.value=Kt:rr.result=Kt),$t(ze,rr)}});function $t(ze,ht){ze||!ht?Ke(ze):et?et(ht):Be(null,ht)}}}function Ae($e){let Be;v.freeze(),bf("processSync",v.Parser),Af("processSync",v.Compiler);const Ne=r1($e);return v.process(Ne,et),cg("processSync","process",Be),Ne;function et(Ke){Be=!0,Zm(Ke)}}}function ug(e,t){return typeof e=="function"&&e.prototype&&(p4(e.prototype)||t in e.prototype)}function p4(e){let t;for(t in e)if(kv.call(e,t))return!0;return!1}function bf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Af(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Sf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lg(e){if(!Jf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function r1(e){return h4(e)?e:new u4(e)}function h4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function f4(e){return typeof e=="string"||wv(e)}function va(){}function Pv(e){return e()}function pg(){return Object.create(null)}function gu(e){e.forEach(Pv)}function Nv(e){return typeof e=="function"}function Iv(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Hh(e,t){return e!=e?t==t:e!==t}function d4(e){return Object.keys(e).length===0}function Sn(e,t){e.appendChild(t)}function Ki(e,t,r){e.insertBefore(t,r||null)}function Hi(e){e.parentNode&&e.parentNode.removeChild(e)}function C1(e,t){for(let r=0;re.removeEventListener(t,r,o)}function xp(e){return function(t){t.target===this&&e.call(this,t)}}function Wn(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function m4(e){return Array.from(e.childNodes)}function vs(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function qi(e,t,r){e.classList[r?"add":"remove"](t)}function g4(e,t,{bubbles:r=!1,cancelable:o=!1}={}){const g=document.createEvent("CustomEvent");return g.initCustomEvent(e,r,o,t),g}let x1;function g1(e){x1=e}function Uh(){if(!x1)throw new Error("Function called outside component initialization");return x1}function Od(e){Uh().$$.on_mount.push(e)}function y4(e){Uh().$$.after_update.push(e)}function Lv(e){Uh().$$.on_destroy.push(e)}function L1(){const e=Uh();return(t,r,{cancelable:o=!1}={})=>{const g=e.$$.callbacks[t];if(g){const v=g4(t,r,{cancelable:o});return g.slice().forEach(E=>{E.call(e,v)}),!v.defaultPrevented}return!0}}const lp=[],yc=[];let yp=[];const hg=[],Ov=Promise.resolve();let Zf=!1;function Mv(){Zf||(Zf=!0,Ov.then(Bv))}function ph(){return Mv(),Ov}function ed(e){yp.push(e)}const wf=new Set;let sp=0;function Bv(){if(sp!==0)return;const e=x1;do{try{for(;spe.indexOf(o)===-1?t.push(o):r.push(o)),r.forEach(o=>o()),yp=t}const hh=new Set;let mc;function D4(){mc={r:0,c:[],p:mc}}function T4(){mc.r||gu(mc.c),mc=mc.p}function Ku(e,t){e&&e.i&&(hh.delete(e),e.i(t))}function hc(e,t,r,o){if(e&&e.o){if(hh.has(e))return;hh.add(e),mc.c.push(()=>{hh.delete(e),o&&(r&&e.d(1),o())}),e.o(t)}else o&&o()}function i1(e){e&&e.c()}function fp(e,t,r,o){const{fragment:g,after_update:v}=e.$$;g&&g.m(t,r),o||ed(()=>{const E=e.$$.on_mount.map(Pv).filter(Nv);e.$$.on_destroy?e.$$.on_destroy.push(...E):gu(E),e.$$.on_mount=[]}),v.forEach(ed)}function dp(e,t){const r=e.$$;r.fragment!==null&&(E4(r.after_update),gu(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function C4(e,t){e.$$.dirty[0]===-1&&(lp.push(e),Mv(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const Ae=re.length?re[0]:ie;return F.ctx&&g(F.ctx[H],F.ctx[H]=Ae)&&(!F.skip_bound&&F.bound[H]&&F.bound[H](Ae),L&&C4(e,H)),ie}):[],F.update(),L=!0,gu(F.before_update),F.fragment=o?o(F.ctx):!1,t.target){if(t.hydrate){const H=m4(t.target);F.fragment&&F.fragment.l(H),H.forEach(Hi)}else F.fragment&&F.fragment.c();t.intro&&Ku(e.$$.fragment),fp(e,t.target,t.anchor,t.customElement),Bv()}g1(N)}class kp{$destroy(){dp(this,1),this.$destroy=va}$on(t,r){if(!Nv(r))return va;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(r),()=>{const g=o.indexOf(r);g!==-1&&o.splice(g,1)}}$set(t){this.$$set&&!d4(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const x4="Bold",b4="bold text",A4="Markdown Cheatsheet",S4="Close help",w4="Close table of contents",_4="Code",k4="Code block",F4="lang",P4="code",N4="Exit fullscreen",I4="Exit preview only",L4="Exit write only",O4="Fullscreen",M4="Heading 1",B4="Heading 2",R4="Heading 3",j4="Heading 4",H4="Heading 5",U4="Heading 6",z4="heading",$4="Help",G4="Horizontal rule",W4="Image",V4="alt",q4="title",K4="Italic",Y4="italic text",X4="The maximum character limit has been reached",J4="Lines",Q4="Link",Z4="link text",eS="Ordered list",tS="item",rS="Preview",nS="Preview only",iS="Quote",sS="quoted text",aS="Shortcuts",oS="Source code",uS="Scroll sync",lS="Table of contents",cS="Scroll to top",pS="Unordered list",hS="item",fS="Words",dS="Write",mS="Write only",gS={bold:x4,boldText:b4,cheatsheet:A4,closeHelp:S4,closeToc:w4,code:_4,codeBlock:k4,codeLang:F4,codeText:P4,exitFullscreen:N4,exitPreviewOnly:I4,exitWriteOnly:L4,fullscreen:O4,h1:M4,h2:B4,h3:R4,h4:j4,h5:H4,h6:U4,headingText:z4,help:$4,hr:G4,image:W4,imageAlt:V4,imageTitle:q4,italic:K4,italicText:Y4,limited:X4,lines:J4,link:Q4,linkText:Z4,ol:eS,olItem:tS,preview:rS,previewOnly:nS,quote:iS,quotedText:sS,shortcuts:aS,source:oS,sync:uS,toc:lS,top:cS,ul:pS,ulItem:hS,words:fS,write:dS,writeOnly:mS},Si={Close:'',H:'',H1:'',H2:'',H3:'',LevelFourTitle:'',LevelFiveTitle:'',LevelSixTitle:'',TextBold:'',TextItalic:'',Quote:'',LinkOne:'',Pic:'',Code:'',CodeBrackets:'',ListTwo:'',OrderedList:'',DividingLine:'',AlignTextLeftOne:'',Helpcenter:'',LeftExpand:'',RightExpand:'',OffScreen:'',FullScreen:'',GithubOne:''};function yS(){const e=m9();return g9(e),v9(e),T9(e),D9(e),E9(e),x9(e),C9(e),y9(e),e}function vS(e,t){return{wrapText(r,o=r){const g=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),v=g.from(),E=g.to(),b=t.getRange(v,E),N=e.Pos(v.line,v.ch-r.length),F=e.Pos(E.line,E.ch+o.length);if(t.getRange(N,v)===r&&t.getRange(E,F)===o)t.replaceRange(b,N,F),t.setSelection(N,e.Pos(N.line,N.ch+b.length));else{t.replaceRange(r+b+o,v,E);const L=t.getCursor();t.setSelection(e.Pos(L.line,L.ch-o.length-b.length),e.Pos(L.line,L.ch-o.length))}},replaceLines(r){const[o]=t.listSelections(),g=[e.Pos(o.from().line,0),e.Pos(o.to().line)],v=t.getRange(...g).split(` +`);t.replaceRange(v.map(r).join(` +`),...g),t.setSelection(...g)},appendBlock(r){const o=t.getCursor();let g=-1;for(let v=o.line;v{const r=t?"Shift-":"",o=typeof navigator<"u"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return r+o+e};async function Rv({editor:e,appendBlock:t,codemirror:r},o,g){const v=await o(g),E=t(v.map(({url:b,alt:N,title:F},L)=>(N=N??g[L].name,`![${N}](${b}${F?` "${F}"`:""})`)).join(` + +`));e.setSelection(E,r.Pos(E.line+v.length*2-2)),e.focus()}function ES(e,t,r){const o=[{icon:Si.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(v=>({title:e[`h${v}`],icon:[Si.H1,Si.H2,Si.H3,Si.LevelFourTitle,Si.LevelFiveTitle,Si.LevelSixTitle][v-1],cheatsheet:v<=3?`${"#".repeat(v)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:E,editor:b}){E(N=>(N=N.trim().replace(/^#*/,"").trim(),N="#".repeat(v)+" "+N,N)),b.focus()}}}))}},{title:e.bold,icon:Si.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:kl("B"),click({wrapText:v,editor:E}){v("**"),E.focus()}}},{title:e.italic,icon:Si.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:kl("I"),click({wrapText:v,editor:E}){v("*"),E.focus()}}},{title:e.quote,icon:Si.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:v,editor:E}){v(b=>"> "+b),E.focus()}}},{title:e.link,icon:Si.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:kl("K"),click({editor:v,wrapText:E,codemirror:b}){E("[","](url)");const N=v.getCursor();v.setSelection(b.Pos(N.line,N.ch+2),b.Pos(N.line,N.ch+5)),v.focus()}}},{title:e.image,icon:Si.Pic,cheatsheet:`![${e.imageAlt}](url "${e.imageTitle}")`,handler:r?{type:"action",shortcut:kl("I",!0),async click(v){const E=await Gg({accept:"image/*",multiple:!0});E!=null&&E.length&&await Rv(v,r,Array.from(E))}}:void 0},{title:e.code,icon:Si.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:kl("K",!0),click({wrapText:v,editor:E}){v("`"),E.focus()}}},{title:e.codeBlock,icon:Si.CodeBrackets,cheatsheet:"```"+e.codeLang+"↵",handler:{type:"action",shortcut:kl("C",!0),click({editor:v,appendBlock:E,codemirror:b}){const N=E("```js\n```");v.setSelection(b.Pos(N.line,3),b.Pos(N.line,5)),v.focus()}}},{title:e.ul,icon:Si.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:kl("U",!0),click({replaceLines:v,editor:E}){v(b=>"- "+b),E.focus()}}},{title:e.ol,icon:Si.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:kl("O",!0),click({replaceLines:v,editor:E}){v((b,N)=>`${N+1}. ${b}`),E.focus()}}},{title:e.hr,icon:Si.DividingLine,cheatsheet:"---"}],g=[];return t.forEach(({actions:v})=>{v&&v.forEach(E=>{!E.position||E.position!=="right"?o.push(E):g.unshift(E)})}),{leftActions:o,rightActions:g}}function fg(e,t,r){const o=e.slice();return o[5]=t[r],o}function dg(e,t,r){const o=e.slice();return o[5]=t[r],o}function mg(e){let t,r,o=e[5].icon+"",g,v=e[5].title+"",E,b,N,F=e[5].cheatsheet+"",L;return{c(){t=kn("li"),r=kn("div"),g=kn("div"),E=Vi(v),b=kn("div"),N=kn("code"),L=Vi(F),Wn(r,"class","bytemd-help-icon"),Wn(g,"class","bytemd-help-title"),Wn(b,"class","bytemd-help-content")},m(H,ie){Ki(H,t,ie),Sn(t,r),r.innerHTML=o,Sn(t,g),Sn(g,E),Sn(t,b),Sn(b,N),Sn(N,L)},p(H,ie){ie&4&&o!==(o=H[5].icon+"")&&(r.innerHTML=o),ie&4&&v!==(v=H[5].title+"")&&vs(E,v),ie&4&&F!==(F=H[5].cheatsheet+"")&&vs(L,F)},d(H){H&&Hi(t)}}}function gg(e){let t,r=e[5].cheatsheet&&mg(e);return{c(){r&&r.c(),t=I1()},m(o,g){r&&r.m(o,g),Ki(o,t,g)},p(o,g){o[5].cheatsheet?r?r.p(o,g):(r=mg(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(o){r&&r.d(o),o&&Hi(t)}}}function yg(e){let t,r,o=e[5].icon+"",g,v=e[5].title+"",E,b,N,F=e[5].handler.shortcut+"",L;return{c(){t=kn("li"),r=kn("div"),g=kn("div"),E=Vi(v),b=kn("div"),N=kn("kbd"),L=Vi(F),Wn(r,"class","bytemd-help-icon"),Wn(g,"class","bytemd-help-title"),Wn(b,"class","bytemd-help-content")},m(H,ie){Ki(H,t,ie),Sn(t,r),r.innerHTML=o,Sn(t,g),Sn(g,E),Sn(t,b),Sn(b,N),Sn(N,L)},p(H,ie){ie&4&&o!==(o=H[5].icon+"")&&(r.innerHTML=o),ie&4&&v!==(v=H[5].title+"")&&vs(E,v),ie&4&&F!==(F=H[5].handler.shortcut+"")&&vs(L,F)},d(H){H&&Hi(t)}}}function vg(e){let t,r=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&yg(e);return{c(){r&&r.c(),t=I1()},m(o,g){r&&r.m(o,g),Ki(o,t,g)},p(o,g){o[5].handler&&o[5].handler.type==="action"&&o[5].handler.shortcut?r?r.p(o,g):(r=yg(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(o){r&&r.d(o),o&&Hi(t)}}}function DS(e){let t,r,o=e[0].cheatsheet+"",g,v,E,b=e[0].shortcuts+"",N,F,L=e[2],H=[];for(let Ae=0;Ae{const{handler:H,cheatsheet:ie}=L;(H==null?void 0:H.type)==="dropdown"&&F.push(...b(H.actions)),ie&&F.push(L)}),F}return e.$$set=N=>{"actions"in N&&r(3,g=N.actions),"locale"in N&&r(0,v=N.locale),"visible"in N&&r(1,E=N.visible)},e.$$.update=()=>{e.$$.dirty&8&&r(2,o=b(g))},[v,E,o,g]}class CS extends kp{constructor(t){super(),_p(this,t,TS,DS,Iv,{actions:3,locale:0,visible:1})}}function Eg(e){let t,r=e[2].limited+"",o;return{c(){t=kn("span"),o=Vi(r),Wn(t,"class","bytemd-status-error")},m(g,v){Ki(g,t,v),Sn(t,o)},p(g,v){v&4&&r!==(r=g[2].limited+"")&&vs(o,r)},d(g){g&&Hi(t)}}}function Dg(e){let t,r,o=e[2].sync+"",g,v,E;return{c(){t=kn("label"),r=kn("input"),g=Vi(o),Wn(r,"type","checkbox"),r.checked=e[1]},m(b,N){Ki(b,t,N),Sn(t,r),Sn(t,g),v||(E=ma(r,"change",e[8]),v=!0)},p(b,N){N&2&&(r.checked=b[1]),N&4&&o!==(o=b[2].sync+"")&&vs(g,o)},d(b){b&&Hi(t),v=!1,E()}}}function xS(e){let t,r,o,g=e[2].words+"",v,E,b,N,F,L=e[2].lines+"",H,ie,re,Ae,$e,Be,Ne=e[2].top+"",et,Ke,Re,$t=e[3]&&Eg(e),ze=e[0]&&Dg(e);return{c(){t=kn("div"),r=kn("div"),o=kn("span"),v=Vi(g),E=Vi(": "),b=kn("strong"),N=Vi(e[5]),F=kn("span"),H=Vi(L),ie=Vi(": "),re=kn("strong"),Ae=Vi(e[4]),$t&&$t.c(),$e=kn("div"),ze&&ze.c(),Be=kn("span"),et=Vi(Ne),Wn(r,"class","bytemd-status-left"),Wn($e,"class","bytemd-status-right"),Wn(t,"class","bytemd-status")},m(ht,rr){Ki(ht,t,rr),Sn(t,r),Sn(r,o),Sn(o,v),Sn(o,E),Sn(o,b),Sn(b,N),Sn(r,F),Sn(F,H),Sn(F,ie),Sn(F,re),Sn(re,Ae),$t&&$t.m(r,null),Sn(t,$e),ze&&ze.m($e,null),Sn($e,Be),Sn(Be,et),Ke||(Re=[ma(Be,"click",e[9]),ma(Be,"keydown",xp(e[10]))],Ke=!0)},p(ht,[rr]){rr&4&&g!==(g=ht[2].words+"")&&vs(v,g),rr&32&&vs(N,ht[5]),rr&4&&L!==(L=ht[2].lines+"")&&vs(H,L),rr&16&&vs(Ae,ht[4]),ht[3]?$t?$t.p(ht,rr):($t=Eg(ht),$t.c(),$t.m(r,null)):$t&&($t.d(1),$t=null),ht[0]?ze?ze.p(ht,rr):(ze=Dg(ht),ze.c(),ze.m($e,Be)):ze&&(ze.d(1),ze=null),rr&4&&Ne!==(Ne=ht[2].top+"")&&vs(et,Ne)},i:va,o:va,d(ht){ht&&Hi(t),$t&&$t.d(),ze&&ze.d(),Ke=!1,gu(Re)}}}function bS(e,t,r){let o,g,{showSync:v}=t,{value:E}=t,{syncEnabled:b}=t,{locale:N}=t,{islimited:F}=t;const L=L1(),H=()=>L("sync",!b),ie=()=>L("top"),re=Ae=>["Enter","Space"].includes(Ae.code)&&L("top");return e.$$set=Ae=>{"showSync"in Ae&&r(0,v=Ae.showSync),"value"in Ae&&r(7,E=Ae.value),"syncEnabled"in Ae&&r(1,b=Ae.syncEnabled),"locale"in Ae&&r(2,N=Ae.locale),"islimited"in Ae&&r(3,F=Ae.islimited)},e.$$.update=()=>{e.$$.dirty&128&&r(5,o=w9(E)),e.$$.dirty&128&&r(4,g=E.split(` +`).length)},[v,b,N,F,g,o,L,E,H,ie,re]}class AS extends kp{constructor(t){super(),_p(this,t,bS,xS,Iv,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function Tg(e,t,r){const o=e.slice();return o[11]=t[r],o[13]=r,o}function Cg(e){let t,r=e[11].text+"",o,g,v,E,b;function N(){return e[8](e[13])}function F(...L){return e[9](e[13],...L)}return{c(){t=kn("li"),o=Vi(r),Wn(t,"class",g=`bytemd-toc-${e[11].level}`),Wn(t,"style",v=`padding-left:${(e[11].level-e[3])*16+8}px`),qi(t,"bytemd-toc-active",e[4]===e[13]),qi(t,"bytemd-toc-first",e[11].level===e[3])},m(L,H){Ki(L,t,H),Sn(t,o),E||(b=[ma(t,"click",N),ma(t,"keydown",xp(F))],E=!0)},p(L,H){e=L,H&4&&r!==(r=e[11].text+"")&&vs(o,r),H&4&&g!==(g=`bytemd-toc-${e[11].level}`)&&Wn(t,"class",g),H&12&&v!==(v=`padding-left:${(e[11].level-e[3])*16+8}px`)&&Wn(t,"style",v),H&20&&qi(t,"bytemd-toc-active",e[4]===e[13]),H&12&&qi(t,"bytemd-toc-first",e[11].level===e[3])},d(L){L&&Hi(t),E=!1,gu(b)}}}function SS(e){let t,r,o=e[0].toc+"",g,v,E=e[2],b=[];for(let N=0;N{Be.type==="text"&&($e+=Be.value)}),$e}const ie=Ae=>{b("click",Ae)},re=(Ae,$e)=>{["Enter","Space"].includes($e.code)&&b("click",Ae)};return e.$$set=Ae=>{"hast"in Ae&&r(6,o=Ae.hast),"currentBlockIndex"in Ae&&r(7,g=Ae.currentBlockIndex),"locale"in Ae&&r(0,v=Ae.locale),"visible"in Ae&&r(1,E=Ae.visible)},e.$$.update=()=>{e.$$.dirty&204&&(r(2,N=[]),r(4,L=0),o.children.filter(Ae=>Ae.type==="element").forEach((Ae,$e)=>{if(Ae.tagName[0]==="h"&&Ae.children.length){const Be=Number(Ae.tagName[1]);r(3,F=Math.min(F,Be)),N.push({level:Be,text:H(Ae)})}g>=$e&&r(4,L=N.length-1)}))},[v,E,N,F,L,b,o,g,ie,re]}class _S extends kp{constructor(t){super(),_p(this,t,wS,SS,Hh,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function xg(e,t,r){const o=e.slice();return o[25]=t[r],o[27]=r,o}function bg(e,t,r){const o=e.slice();return o[25]=t[r],o[27]=r,o}function kS(e){let t,r=e[2].write+"",o,g,v=e[2].preview+"",E,b,N;return{c(){t=kn("div"),o=Vi(r),g=kn("div"),E=Vi(v),Wn(t,"class","bytemd-toolbar-tab"),qi(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),Wn(g,"class","bytemd-toolbar-tab"),qi(g,"bytemd-toolbar-tab-active",e[1]==="preview")},m(F,L){Ki(F,t,L),Sn(t,o),Ki(F,g,L),Sn(g,E),b||(N=[ma(t,"click",e[16]),ma(t,"keydown",xp(e[17])),ma(g,"click",e[18]),ma(g,"keydown",xp(e[19]))],b=!0)},p(F,L){L&4&&r!==(r=F[2].write+"")&&vs(o,r),L&2&&qi(t,"bytemd-toolbar-tab-active",F[1]!=="preview"),L&4&&v!==(v=F[2].preview+"")&&vs(E,v),L&2&&qi(g,"bytemd-toolbar-tab-active",F[1]==="preview")},d(F){F&&Hi(t),F&&Hi(g),b=!1,gu(N)}}}function FS(e){let t,r=e[3],o=[];for(let g=0;gparseInt(Ur,10));if(!jt)return;let ur={title:"",handler:{type:"dropdown",actions:St.classList.contains(fh)?b:Be}};return jt==null||jt.forEach(Ur=>{var Yr;((Yr=ur.handler)==null?void 0:Yr.type)==="dropdown"&&(ur=ur.handler.actions[Ur])}),{paths:jt,item:ur}}let Ke;function Re(){Ke=h5(F,{target:`.${Ah}`,onCreate({setProps:St,reference:ft}){const er=et(ft);if(!er)return;const{item:jt,paths:ur}=er,{handler:Ur}=jt;if(Ur){if(Ur.type==="action")St({content:jt.title,onHidden(Yr){Yr.destroy()}});else if(Ur.type==="dropdown"){const Yr=document.createElement("div");if(Yr.classList.add("bytemd-dropdown"),jt.title){const Zr=document.createElement("div");Zr.classList.add("bytemd-dropdown-title"),Zr.appendChild(document.createTextNode(jt.title)),Yr.appendChild(Zr)}Ur.actions.forEach((Zr,fe)=>{var Te;const Qt=document.createElement("div");Qt.classList.add("bytemd-dropdown-item"),Qt.setAttribute(kf,[...ur,fe].join("-")),((Te=Zr.handler)==null?void 0:Te.type)==="dropdown"&&Qt.classList.add(Ah),ft.classList.contains(fh)&&Qt.classList.add(fh),Qt.innerHTML=`${Zr.icon?`
${Zr.icon}
`:""}
${Zr.title}
`,Yr.appendChild(Qt)}),St({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:Yr.outerHTML,onHidden(Zr){Zr.destroy()},onCreate(Zr){[...Zr.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((fe,Te)=>{var Qt;const Ve=(Qt=Ur.actions[Te])==null?void 0:Qt.handler;if((Ve==null?void 0:Ve.type)==="action"){const{mouseenter:br,mouseleave:An}=Ve;br&&fe.addEventListener("mouseenter",()=>{br(L)}),An&&fe.addEventListener("mouseleave",()=>{An(L)})}})}})}}}})}Od(()=>{Re()});function $t(St){var ft,er;const jt=St.target.closest(`[${kf}]`);if(!jt)return;const ur=(er=(ft=et(jt))==null?void 0:ft.item)==null?void 0:er.handler;(ur==null?void 0:ur.type)==="action"&&ur.click(L),Ke==null||Ke.destroy(),Re()}const ze=()=>N("tab","write"),ht=St=>["Enter","Space"].includes(St.code)&&N("tab","write"),rr=()=>N("tab","preview"),Kt=St=>["Enter","Space"].includes(St.code)&&N("tab","preview");function vt(St){yc[St?"unshift":"push"](()=>{F=St,r(4,F)})}const Yt=St=>["Enter","Space"].includes(St.code)&&$t(St);return e.$$set=St=>{"context"in St&&r(8,L=St.context),"split"in St&&r(0,H=St.split),"activeTab"in St&&r(1,ie=St.activeTab),"fullscreen"in St&&r(9,re=St.fullscreen),"sidebar"in St&&r(10,Ae=St.sidebar),"locale"in St&&r(2,$e=St.locale),"actions"in St&&r(3,Be=St.actions),"rightAfferentActions"in St&&r(11,Ne=St.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&r(15,o=Ae==="toc"),e.$$.dirty&1024&&r(14,g=Ae==="help"),e.$$.dirty&2&&r(13,v=ie==="write"),e.$$.dirty&2&&r(12,E=ie==="preview"),e.$$.dirty&64005&&r(5,b=[{title:o?$e.closeToc:$e.toc,icon:Si.AlignTextLeftOne,handler:{type:"action",click(){N("click","toc")}},active:o},{title:g?$e.closeHelp:$e.help,icon:Si.Helpcenter,handler:{type:"action",click(){N("click","help")}},active:g},{title:v?$e.exitWriteOnly:$e.writeOnly,icon:Si.LeftExpand,handler:{type:"action",click(){N("tab","write")}},active:v,hidden:!H},{title:E?$e.exitPreviewOnly:$e.previewOnly,icon:Si.RightExpand,handler:{type:"action",click(){N("tab","preview")}},active:E,hidden:!H},{title:re?$e.exitFullscreen:$e.fullscreen,icon:re?Si.OffScreen:Si.FullScreen,handler:{type:"action",click(){N("click","fullscreen")}}},{title:$e.source,icon:Si.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...Ne])},[H,ie,$e,Be,F,b,N,$t,L,re,Ae,Ne,E,v,g,o,ze,ht,rr,Kt,vt,Yt]}class IS extends kp{constructor(t){super(),_p(this,t,NS,PS,Hh,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const LS=JSON.stringify(dd);function OS({sanitize:e,plugins:t,remarkRehype:r={}}){let o=c4().use(l8);t==null||t.forEach(({remark:v})=>{v&&(o=v(o))}),o=o.use(W8,{allowDangerousHtml:!0,...r}).use(cx);let g=JSON.parse(LS);return g.attributes["*"].push("className"),typeof e=="function"&&(g=e(g)),o=o.use(px,g),t==null||t.forEach(({rehype:v})=>{v&&(o=v(o))}),o.use(ob)}function MS(e){let t;return{c(){t=kn("div"),Wn(t,"class","markdown-body")},m(r,o){Ki(r,t,o),t.innerHTML=e[1],e[8](t)},p(r,[o]){o&2&&(t.innerHTML=r[1])},i:va,o:va,d(r){r&&Hi(t),e[8](null)}}}function BS(e,t,r){let o;const g=L1();let{value:v=""}=t,{plugins:E=[]}=t,{sanitize:b=void 0}=t,{remarkRehype:N=void 0}=t,F,L=[];function H(){L=E.map(Ne=>{var et;return(et=Ne.viewerEffect)==null?void 0:et.call(Ne,{markdownBody:F,file:re})})}function ie(){L.forEach(Ne=>Ne==null?void 0:Ne())}Od(()=>{F.addEventListener("click",Ne=>{var et;const Ke=Ne.target;if(Ke.tagName!=="A")return;const Re=Ke.getAttribute("href");Re!=null&&Re.startsWith("#")&&((et=F.querySelector("#user-content-"+Re.slice(1)))==null||et.scrollIntoView())})}),Lv(ie);let re,Ae=0;const $e=()=>(Ne,et)=>{ph().then(()=>{g("hast",{hast:Ne,file:et})})};y4(()=>{ie(),H()});function Be(Ne){yc[Ne?"unshift":"push"](()=>{F=Ne,r(0,F)})}return e.$$set=Ne=>{"value"in Ne&&r(2,v=Ne.value),"plugins"in Ne&&r(3,E=Ne.plugins),"sanitize"in Ne&&r(4,b=Ne.sanitize),"remarkRehype"in Ne&&r(5,N=Ne.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{r(6,re=OS({sanitize:b,plugins:[...E,{rehype:Ne=>Ne.use($e)}],remarkRehype:N}).processSync(v)),r(7,Ae++,Ae)}catch(Ne){console.error(Ne)}e.$$.dirty&192&&r(1,o=`${re}`)},[F,o,v,E,b,N,re,Ae,Be]}class RS extends kp{constructor(t){super(),_p(this,t,BS,MS,Hh,{value:2,plugins:3,sanitize:4,remarkRehype:5})}}function kg(e){let t,r;return t=new RS({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){i1(t.$$.fragment)},m(o,g){fp(t,o,g),r=!0},p(o,g){const v={};g[0]&65536&&(v.value=o[16]),g[0]&2&&(v.plugins=o[1]),g[0]&4&&(v.sanitize=o[2]),g[0]&8&&(v.remarkRehype=o[3]),t.$set(v)},i(o){r||(Ku(t.$$.fragment,o),r=!0)},o(o){hc(t.$$.fragment,o),r=!1},d(o){dp(t,o)}}}function jS(e){let t,r,o,g,v,E,b,N,F,L=Si.Close+"",H,ie,re,Ae,$e,Be;r=new IS({props:{context:e[10],split:e[11],activeTab:e[8],sidebar:e[9],fullscreen:e[15],rightAfferentActions:e[21].rightActions,locale:e[12],actions:e[21].leftActions}}),r.$on("key",e[31]),r.$on("tab",e[32]),r.$on("click",e[33]);let Ne=!e[4]&&(e[11]||e[8]==="preview")&&kg(e);return H=new CS({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),ie=new _S({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),ie.$on("click",e[39]),re=new AS({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),re.$on("sync",e[40]),re.$on("top",e[41]),{c(){t=kn("div"),i1(r.$$.fragment),o=kn("div"),g=kn("div"),E=kn("div"),Ne&&Ne.c(),N=kn("div"),F=kn("div"),i1(H.$$.fragment),i1(ie.$$.fragment),i1(re.$$.fragment),Wn(g,"class","bytemd-editor"),Wn(g,"style",v=e[22].edit),Wn(E,"class","bytemd-preview"),Wn(E,"style",b=e[22].preview),Wn(F,"class","bytemd-sidebar-close"),Wn(N,"class","bytemd-sidebar"),qi(N,"bytemd-hidden",e[9]===!1),Wn(o,"class","bytemd-body"),Wn(t,"class","bytemd"),qi(t,"bytemd-split",e[11]&&e[8]===!1),qi(t,"bytemd-fullscreen",e[15])},m(et,Ke){Ki(et,t,Ke),fp(r,t,null),Sn(t,o),Sn(o,g),e[34](g),Sn(o,E),Ne&&Ne.m(E,null),e[36](E),Sn(o,N),Sn(N,F),F.innerHTML=L,fp(H,N,null),fp(ie,N,null),fp(re,t,null),e[42](t),Ae=!0,$e||(Be=[ma(F,"click",e[37]),ma(F,"keydown",xp(e[38]))],$e=!0)},p(et,Ke){const Re={};Ke[0]&1024&&(Re.context=et[10]),Ke[0]&2048&&(Re.split=et[11]),Ke[0]&256&&(Re.activeTab=et[8]),Ke[0]&512&&(Re.sidebar=et[9]),Ke[0]&32768&&(Re.fullscreen=et[15]),Ke[0]&2097152&&(Re.rightAfferentActions=et[21].rightActions),Ke[0]&4096&&(Re.locale=et[12]),Ke[0]&2097152&&(Re.actions=et[21].leftActions),r.$set(Re),(!Ae||Ke[0]&4194304&&v!==(v=et[22].edit))&&Wn(g,"style",v),!et[4]&&(et[11]||et[8]==="preview")?Ne?(Ne.p(et,Ke),Ke[0]&2320&&Ku(Ne,1)):(Ne=kg(et),Ne.c(),Ku(Ne,1),Ne.m(E,null)):Ne&&(D4(),hc(Ne,1,1,()=>{Ne=null}),T4()),(!Ae||Ke[0]&4194304&&b!==(b=et[22].preview))&&Wn(E,"style",b);const $t={};Ke[0]&4096&&($t.locale=et[12]),Ke[0]&2097152&&($t.actions=et[21].leftActions),Ke[0]&512&&($t.visible=et[9]==="help"),H.$set($t);const ze={};Ke[0]&262144&&(ze.hast=et[18]),Ke[0]&4096&&(ze.locale=et[12]),Ke[0]&1048576&&(ze.currentBlockIndex=et[20]),Ke[0]&512&&(ze.visible=et[9]==="toc"),ie.$set(ze),(!Ae||Ke[0]&512)&&qi(N,"bytemd-hidden",et[9]===!1);const ht={};Ke[0]&4096&&(ht.locale=et[12]),Ke[0]&2064&&(ht.showSync=!et[4]&&et[11]),Ke[0]&65536&&(ht.value=et[16]),Ke[0]&131072&&(ht.syncEnabled=et[17]),Ke[0]&33&&(ht.islimited=et[0].length>et[5]),re.$set(ht),(!Ae||Ke[0]&2304)&&qi(t,"bytemd-split",et[11]&&et[8]===!1),(!Ae||Ke[0]&32768)&&qi(t,"bytemd-fullscreen",et[15])},i(et){Ae||(Ku(r.$$.fragment,et),Ku(Ne),Ku(H.$$.fragment,et),Ku(ie.$$.fragment,et),Ku(re.$$.fragment,et),Ae=!0)},o(et){hc(r.$$.fragment,et),hc(Ne),hc(H.$$.fragment,et),hc(ie.$$.fragment,et),hc(re.$$.fragment,et),Ae=!1},d(et){et&&Hi(t),dp(r),e[34](null),Ne&&Ne.d(),e[36](null),dp(H),dp(ie),dp(re),e[42](null),$e=!1,gu(Be)}}}function HS(e,t,r){let o,g,v,E,b,{value:N=""}=t,{plugins:F=[]}=t,{sanitize:L=void 0}=t,{remarkRehype:H=void 0}=t,{mode:ie="auto"}=t,{previewDebounce:re=300}=t,{placeholder:Ae=void 0}=t,{editorConfig:$e=void 0}=t,{locale:Be=void 0}=t,{uploadImages:Ne=void 0}=t,{overridePreview:et=void 0}=t,{maxLength:Ke=1/0}=t;const Re=L1();let $t,ze,ht,rr=1/0,Kt,vt,Yt,St=!1,ft=!1,er=[],jt={};function ur(){er=F.map(gr=>{var jn;return(jn=gr.editorEffect)==null?void 0:jn.call(gr,b)}),jt={},g.leftActions.forEach(({handler:gr})=>{(gr==null?void 0:gr.type)==="action"&&gr.shortcut&&(jt[gr.shortcut]=()=>{gr.click(b)})}),vt.addKeyMap(jt)}function Ur(){er.forEach(gr=>gr&&gr()),vt==null||vt.removeKeyMap(jt)}let Yr=N;const Zr=Hg(gr=>{r(16,Yr=gr),et==null||et(ht,{value:Yr,plugins:F,sanitize:L,remarkRehype:H})},re);let fe=!0,Te=!1,Qt=!1,Ve,br,An={type:"root",children:[]},yn,Pn=0;Od(async()=>{r(30,Kt=yS()),r(7,vt=Kt(ze,{value:N,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...$e,placeholder:Ae})),vt.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),vt.on("change",()=>{Re("change",{value:vt.getValue()})});const gr=NE(()=>{Ve=[],br=[];const ni=vt.getScrollInfo(),In=ht.childNodes[0];if(!(In instanceof HTMLElement))return;const Hn=An.children.filter(dr=>dr.type==="element"),zt=[...In.childNodes].filter(dr=>dr instanceof HTMLElement);for(let dr=0;dr=1||Nr>=1)break;Ve.push(nn),br.push(Nr)}Ve.push(1),br.push(1)},1e3),jn=()=>{if(et||!fe)return;if(Qt){Qt=!1;return}gr();const ni=vt.getScrollInfo(),In=ni.top/(ni.height-ni.clientHeight),Hn=_f(In,Ve),zt=(In-Ve[Hn])*(br[Hn+1]-br[Hn])/(Ve[Hn+1]-Ve[Hn])+br[Hn];ht.scrollTo(0,zt*(ht.scrollHeight-ht.clientHeight)),Te=!0},ns=()=>{if(et||(gr(),r(20,Pn=_f(ht.scrollTop/(ht.scrollHeight-ht.offsetHeight),br)),!fe))return;if(Te){Te=!1;return}const ni=ht.scrollTop/(ht.scrollHeight-ht.clientHeight),In=_f(ni,br),Hn=(ni-br[In])*(Ve[In+1]-Ve[In])/(br[In+1]-br[In])+Ve[In];if(isNaN(Hn))return;const zt=vt.getScrollInfo();vt.scrollTo(0,Hn*(zt.height-zt.clientHeight)),Qt=!0};vt.on("scroll",jn),ht.addEventListener("scroll",ns,{passive:!0});const ri=async(ni,In)=>{if(!Ne)return;const Hn=Array.from(In??[]).map(zt=>{if(zt.type.startsWith("image/"))return zt.getAsFile()}).filter(zt=>zt!=null);Hn.length&&(ni.preventDefault(),await Rv(b,Ne,Hn))};vt.on("drop",async(ni,In)=>{var Hn;ri(In,(Hn=In.dataTransfer)==null?void 0:Hn.items)}),vt.on("paste",async(ni,In)=>{var Hn;ri(In,(Hn=In.clipboardData)==null?void 0:Hn.items)}),new ResizeObserver(ni=>{r(29,rr=ni[0].contentRect.width)}).observe($t,{box:"border-box"})}),Lv(Ur);const En=gr=>{vt.setOption("keyMap",gr.detail),vt.focus()},Xr=gr=>{const jn=gr.detail;v?r(8,Yt=Yt===jn?!1:jn):r(8,Yt=jn),Yt==="write"&&ph().then(()=>{vt&&vt.focus()}),jn==="write"&&ph().then(()=>{vt&&vt.setSize(null,null)})},Dn=gr=>{switch(gr.detail){case"fullscreen":r(15,St=!St);break;case"help":r(9,ft=ft==="help"?!1:"help");break;case"toc":r(9,ft=ft==="toc"?!1:"toc");break}};function Rn(gr){yc[gr?"unshift":"push"](()=>{ze=gr,r(13,ze)})}const mi=gr=>{r(18,An=gr.detail.hast),r(19,yn=gr.detail.file)};function bn(gr){yc[gr?"unshift":"push"](()=>{ht=gr,r(14,ht)})}const gi=()=>{r(9,ft=!1)},Di=gr=>{["Enter","Space"].includes(gr.code)&&r(9,ft=!1)},fi=gr=>{ht.querySelectorAll("h1,h2,h3,h4,h5,h6")[gr.detail].scrollIntoView()},yi=gr=>{r(17,fe=gr.detail)},Li=()=>{vt.scrollTo(null,0),ht.scrollTo({top:0})};function Ti(gr){yc[gr?"unshift":"push"](()=>{$t=gr,r(6,$t)})}return e.$$set=gr=>{"value"in gr&&r(0,N=gr.value),"plugins"in gr&&r(1,F=gr.plugins),"sanitize"in gr&&r(2,L=gr.sanitize),"remarkRehype"in gr&&r(3,H=gr.remarkRehype),"mode"in gr&&r(23,ie=gr.mode),"previewDebounce"in gr&&r(24,re=gr.previewDebounce),"placeholder"in gr&&r(25,Ae=gr.placeholder),"editorConfig"in gr&&r(26,$e=gr.editorConfig),"locale"in gr&&r(27,Be=gr.locale),"uploadImages"in gr&&r(28,Ne=gr.uploadImages),"overridePreview"in gr&&r(4,et=gr.overridePreview),"maxLength"in gr&&r(5,Ke=gr.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&r(12,o={...gS,...Be}),e.$$.dirty[0]&268439554&&r(21,g=ES(o,F,Ne)),e.$$.dirty[0]&545259520&&r(11,v=ie==="split"||ie==="auto"&&rr>=800),e.$$.dirty[0]&2048&&(gr=>{v&&r(8,Yt=!1)})(),e.$$.dirty[0]&2816&&r(22,E=(()=>{let gr,jn;return v&&Yt===!1?ft?(gr=`width:calc(50% - ${ft?140:0}px)`,jn=`width:calc(50% - ${ft?140:0}px)`):(gr="width:50%",jn="width:50%"):Yt==="preview"?(gr="display:none",jn=`width:calc(100% - ${ft?280:0}px)`):(gr=`width:calc(100% - ${ft?280:0}px)`,jn="display:none"),{edit:gr,preview:jn}})()),e.$$.dirty[0]&1073742016&&r(10,b={codemirror:Kt,editor:vt,root:$t,...vS(Kt,vt)}),e.$$.dirty[0]&1&&Zr(N),e.$$.dirty[0]&129&&vt&&N!==vt.getValue()&&vt.setValue(N),e.$$.dirty[0]&130&&vt&&F&&(Ur(),ph().then(()=>{ur()}))},[N,F,L,H,et,Ke,$t,vt,Yt,ft,b,v,o,ze,ht,St,Yr,fe,An,yn,Pn,g,E,ie,re,Ae,$e,Be,Ne,rr,Kt,En,Xr,Dn,Rn,mi,bn,gi,Di,fi,yi,Li,Ti]}let US=class extends kp{constructor(t){super(),_p(this,t,HS,jS,Hh,{value:0,plugins:1,sanitize:2,remarkRehype:3,mode:23,previewDebounce:24,placeholder:25,editorConfig:26,locale:27,uploadImages:28,overridePreview:4,maxLength:5},null,[-1,-1])}};const zS=window.React,Ff=window.React.useRef,Pf=window.React.useEffect;window.React.useMemo;const $S=({onChange:e,...t})=>{const r=Ff(),o=Ff(null),g=Ff();return Pf(()=>{if(!o.current)return;const v=new US({target:o.current,props:t});return v.$on("change",E=>{var b;(b=g.current)==null||b.call(g,E.detail.value)}),r.current=v,()=>{v.$destroy()}},[]),Pf(()=>{g.current=e},[e]),Pf(()=>{var v;(v=r.current)==null||v.$set(t)},[t]),zS.createElement("div",{ref:o})},GS={tokenize:XS,partial:!0},jv={tokenize:JS,partial:!0},Hv={tokenize:QS,partial:!0},Uv={tokenize:ZS,partial:!0},WS={tokenize:e3,partial:!0},zv={tokenize:KS,previous:Gv},$v={tokenize:YS,previous:Wv},Qu={tokenize:qS,previous:Vv},yu={},VS={text:yu};let cc=48;for(;cc<123;)yu[cc]=Qu,cc++,cc===58?cc=65:cc===91&&(cc=97);yu[43]=Qu;yu[45]=Qu;yu[46]=Qu;yu[95]=Qu;yu[72]=[Qu,$v];yu[104]=[Qu,$v];yu[87]=[Qu,zv];yu[119]=[Qu,zv];function qS(e,t,r){const o=this;let g,v;return E;function E(H){return!td(H)||!Vv.call(o,o.previous)||Md(o.events)?r(H):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),b(H))}function b(H){return td(H)?(e.consume(H),b):H===64?(e.consume(H),N):r(H)}function N(H){return H===46?e.check(WS,L,F)(H):H===45||H===95||bs(H)?(v=!0,e.consume(H),N):L(H)}function F(H){return e.consume(H),g=!0,N}function L(H){return v&&g&&Os(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(H)):r(H)}}function KS(e,t,r){const o=this;return g;function g(E){return E!==87&&E!==119||!Gv.call(o,o.previous)||Md(o.events)?r(E):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(GS,e.attempt(jv,e.attempt(Hv,v),r),r)(E))}function v(E){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(E)}}function YS(e,t,r){const o=this;let g="",v=!1;return E;function E(H){return(H===72||H===104)&&Wv.call(o,o.previous)&&!Md(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),g+=String.fromCodePoint(H),e.consume(H),b):r(H)}function b(H){if(Os(H)&&g.length<5)return g+=String.fromCodePoint(H),e.consume(H),b;if(H===58){const ie=g.toLowerCase();if(ie==="http"||ie==="https")return e.consume(H),N}return r(H)}function N(H){return H===47?(e.consume(H),v?F:(v=!0,N)):r(H)}function F(H){return H===null||Ch(H)||di(H)||Ec(H)||Rh(H)?r(H):e.attempt(jv,e.attempt(Hv,L),r)(H)}function L(H){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(H)}}function XS(e,t,r){let o=0;return g;function g(E){return(E===87||E===119)&&o<3?(o++,e.consume(E),g):E===46&&o===3?(e.consume(E),v):r(E)}function v(E){return E===null?r(E):t(E)}}function JS(e,t,r){let o,g,v;return E;function E(F){return F===46||F===95?e.check(Uv,N,b)(F):F===null||di(F)||Ec(F)||F!==45&&Rh(F)?N(F):(v=!0,e.consume(F),E)}function b(F){return F===95?o=!0:(g=o,o=void 0),e.consume(F),E}function N(F){return g||o||!v?r(F):t(F)}}function QS(e,t){let r=0,o=0;return g;function g(E){return E===40?(r++,e.consume(E),g):E===41&&o0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const t3={tokenize:l3,partial:!0};function r3(){return{document:{91:{tokenize:a3,continuation:{tokenize:o3},exit:u3}},text:{91:{tokenize:s3},93:{add:"after",tokenize:n3,resolveTo:i3}}}}function n3(e,t,r){const o=this;let g=o.events.length;const v=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let E;for(;g--;){const N=o.events[g][1];if(N.type==="labelImage"){E=N;break}if(N.type==="gfmFootnoteCall"||N.type==="labelLink"||N.type==="label"||N.type==="image"||N.type==="link")break}return b;function b(N){if(!E||!E._balanced)return r(N);const F=Fo(o.sliceSerialize({start:E.end,end:o.now()}));return F.codePointAt(0)!==94||!v.includes(F.slice(1))?r(N):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(N),e.exit("gfmFootnoteCallLabelMarker"),t(N))}}function i3(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},g={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};g.end.column++,g.end.offset++,g.end._bufferIndex++;const v={type:"gfmFootnoteCallString",start:Object.assign({},g.end),end:Object.assign({},e[e.length-1][1].start)},E={type:"chunkString",contentType:"string",start:Object.assign({},v.start),end:Object.assign({},v.end)},b=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",g,t],["exit",g,t],["enter",v,t],["enter",E,t],["exit",E,t],["exit",v,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...b),e}function s3(e,t,r){const o=this,g=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let v=0,E;return b;function b(H){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(H),e.exit("gfmFootnoteCallLabelMarker"),N}function N(H){return H!==94?r(H):(e.enter("gfmFootnoteCallMarker"),e.consume(H),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",F)}function F(H){if(v>999||H===93&&!E||H===null||H===91||di(H))return r(H);if(H===93){e.exit("chunkString");const ie=e.exit("gfmFootnoteCallString");return g.includes(Fo(o.sliceSerialize(ie)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(H),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(H)}return di(H)||(E=!0),v++,e.consume(H),H===92?L:F}function L(H){return H===91||H===92||H===93?(e.consume(H),v++,F):F(H)}}function a3(e,t,r){const o=this,g=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let v,E=0,b;return N;function N(Ae){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(Ae),e.exit("gfmFootnoteDefinitionLabelMarker"),F}function F(Ae){return Ae===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(Ae),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",L):r(Ae)}function L(Ae){if(E>999||Ae===93&&!b||Ae===null||Ae===91||di(Ae))return r(Ae);if(Ae===93){e.exit("chunkString");const $e=e.exit("gfmFootnoteDefinitionLabelString");return v=Fo(o.sliceSerialize($e)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(Ae),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),ie}return di(Ae)||(b=!0),E++,e.consume(Ae),Ae===92?H:L}function H(Ae){return Ae===91||Ae===92||Ae===93?(e.consume(Ae),E++,L):L(Ae)}function ie(Ae){return Ae===58?(e.enter("definitionMarker"),e.consume(Ae),e.exit("definitionMarker"),g.includes(v)||g.push(v),ei(e,re,"gfmFootnoteDefinitionWhitespace")):r(Ae)}function re(Ae){return t(Ae)}}function o3(e,t,r){return e.check(P1,t,e.attempt(t3,t,r))}function u3(e){e.exit("gfmFootnoteDefinition")}function l3(e,t,r){const o=this;return ei(e,g,"gfmFootnoteDefinitionIndent",5);function g(v){const E=o.events[o.events.length-1];return E&&E[1].type==="gfmFootnoteDefinitionIndent"&&E[2].sliceSerialize(E[1],!0).length===4?t(v):r(v)}}function c3(e){let r=(e||{}).singleTilde;const o={tokenize:v,resolveAll:g};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function g(E,b){let N=-1;for(;++N1?N(Ae):(E.consume(Ae),H++,re);if(H<2&&!r)return N(Ae);const Be=E.exit("strikethroughSequenceTemporary"),Ne=xh(Ae);return Be._open=!Ne||Ne===2&&!!$e,Be._close=!$e||$e===2&&!!Ne,b(Ae)}}}class p3{constructor(){this.map=[]}add(t,r,o){h3(this,t,r,o)}consume(t){if(this.map.sort((v,E)=>v[0]-E[0]),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1])),o.push(this.map[r][2]),t.length=this.map[r][0];o.push([...t]),t.length=0;let g=o.pop();for(;g;)t.push(...g),g=o.pop();this.map.length=0}}function h3(e,t,r,o){let g=0;if(!(r===0&&o.length===0)){for(;g-1;){const er=o.events[Yt][1].type;if(er==="lineEnding"||er==="linePrefix")Yt--;else break}const St=Yt>-1?o.events[Yt][1].type:null,ft=St==="tableHead"||St==="tableRow"?ze:N;return ft===ze&&o.parser.lazy[o.now().line]?r(vt):ft(vt)}function N(vt){return e.enter("tableHead"),e.enter("tableRow"),F(vt)}function F(vt){return vt===124||(E=!0,v+=1),L(vt)}function L(vt){return vt===null?r(vt):vn(vt)?v>1?(v=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(vt),e.exit("lineEnding"),re):r(vt):Vn(vt)?ei(e,L,"whitespace")(vt):(v+=1,E&&(E=!1,g+=1),vt===124?(e.enter("tableCellDivider"),e.consume(vt),e.exit("tableCellDivider"),E=!0,L):(e.enter("data"),H(vt)))}function H(vt){return vt===null||vt===124||di(vt)?(e.exit("data"),L(vt)):(e.consume(vt),vt===92?ie:H)}function ie(vt){return vt===92||vt===124?(e.consume(vt),H):H(vt)}function re(vt){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(vt):(e.enter("tableDelimiterRow"),E=!1,Vn(vt)?ei(e,Ae,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(vt):Ae(vt))}function Ae(vt){return vt===45||vt===58?Be(vt):vt===124?(E=!0,e.enter("tableCellDivider"),e.consume(vt),e.exit("tableCellDivider"),$e):$t(vt)}function $e(vt){return Vn(vt)?ei(e,Be,"whitespace")(vt):Be(vt)}function Be(vt){return vt===58?(v+=1,E=!0,e.enter("tableDelimiterMarker"),e.consume(vt),e.exit("tableDelimiterMarker"),Ne):vt===45?(v+=1,Ne(vt)):vt===null||vn(vt)?Re(vt):$t(vt)}function Ne(vt){return vt===45?(e.enter("tableDelimiterFiller"),et(vt)):$t(vt)}function et(vt){return vt===45?(e.consume(vt),et):vt===58?(E=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(vt),e.exit("tableDelimiterMarker"),Ke):(e.exit("tableDelimiterFiller"),Ke(vt))}function Ke(vt){return Vn(vt)?ei(e,Re,"whitespace")(vt):Re(vt)}function Re(vt){return vt===124?Ae(vt):vt===null||vn(vt)?!E||g!==v?$t(vt):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(vt)):$t(vt)}function $t(vt){return r(vt)}function ze(vt){return e.enter("tableRow"),ht(vt)}function ht(vt){return vt===124?(e.enter("tableCellDivider"),e.consume(vt),e.exit("tableCellDivider"),ht):vt===null||vn(vt)?(e.exit("tableRow"),t(vt)):Vn(vt)?ei(e,ht,"whitespace")(vt):(e.enter("data"),rr(vt))}function rr(vt){return vt===null||vt===124||di(vt)?(e.exit("data"),ht(vt)):(e.consume(vt),vt===92?Kt:rr)}function Kt(vt){return vt===92||vt===124?(e.consume(vt),rr):rr(vt)}}function g3(e,t){let r=-1,o=!0,g=0,v=[0,0,0,0],E=[0,0,0,0],b=!1,N=0,F,L,H;const ie=new p3;for(;++rr[2]+1){const Ae=r[2]+1,$e=r[3]-r[2]-1;e.add(Ae,$e,[])}}e.add(r[3]+1,0,[["exit",H,t]])}return g!==void 0&&(v.end=Object.assign({},cp(t.events,g)),e.add(g,0,[["exit",v,t]]),v=void 0),v}function Fg(e,t,r,o,g){const v=[],E=cp(t.events,r);g&&(g.end=Object.assign({},E),v.push(["exit",g,t])),o.end=Object.assign({},E),v.push(["exit",o,t]),e.add(r+1,0,v)}function cp(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const y3={tokenize:E3},v3={text:{91:y3}};function E3(e,t,r){const o=this;return g;function g(N){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(N):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(N),e.exit("taskListCheckMarker"),v)}function v(N){return di(N)?(e.enter("taskListCheckValueUnchecked"),e.consume(N),e.exit("taskListCheckValueUnchecked"),E):N===88||N===120?(e.enter("taskListCheckValueChecked"),e.consume(N),e.exit("taskListCheckValueChecked"),E):r(N)}function E(N){return N===93?(e.enter("taskListCheckMarker"),e.consume(N),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),b):r(N)}function b(N){return vn(N)?t(N):Vn(N)?e.check({tokenize:D3},t,r)(N):r(N)}}function D3(e,t,r){return ei(e,o,"whitespace");function o(g){return g===null?r(g):t(g)}}function T3(e){return uv([VS,r3(),c3(e),d3,v3])}function C3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const x3={}.hasOwnProperty,b3=function(e,t,r,o){let g,v;typeof t=="string"||t instanceof RegExp?(v=[[t,r]],g=o):(v=t,g=r),g||(g={});const E=sd(g.ignore||[]),b=A3(v);let N=-1;for(;++N0?{type:"text",value:ht}:void 0),ht!==!1&&(Be!==$t&&Ke.push({type:"text",value:H.value.slice(Be,$t)}),Array.isArray(ht)?Ke.push(...ht):ht&&Ke.push(ht),Be=$t+Re[0].length,et=!0),!Ae.global)break;Re=Ae.exec(H.value)}return et?(Bee}const Nf="phrasing",If=["autolink","link","image","label"],S3={transforms:[I3],enter:{literalAutolink:_3,literalAutolinkEmail:Lf,literalAutolinkHttp:Lf,literalAutolinkWww:Lf},exit:{literalAutolink:N3,literalAutolinkEmail:P3,literalAutolinkHttp:k3,literalAutolinkWww:F3}},w3={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Nf,notInConstruct:If},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Nf,notInConstruct:If},{character:":",before:"[ps]",after:"\\/",inConstruct:Nf,notInConstruct:If}]};function _3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lf(e){this.config.enter.autolinkProtocol.call(this,e)}function k3(e){this.config.exit.autolinkProtocol.call(this,e)}function F3(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function P3(e){this.config.exit.autolinkEmail.call(this,e)}function N3(e){this.exit(e)}function I3(e){b3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,L3],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,O3]],{ignore:["link","linkReference"]})}function L3(e,t,r,o,g){let v="";if(!qv(g)||(/^w/i.test(t)&&(r=t+r,t="",v="http://"),!M3(r)))return!1;const E=B3(r+o);if(!E[0])return!1;const b={type:"link",title:null,url:v+t+E[0],children:[{type:"text",value:t+E[0]}]};return E[1]?[b,{type:"text",value:E[1]}]:b}function O3(e,t,r,o){return!qv(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function M3(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function B3(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const g=Th(e,"(");let v=Th(e,")");for(;o!==-1&&g>v;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),v++;return[e,r]}function qv(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ec(r)||Rh(r))&&(!t||r!==47)}function Kv(e){return e.label||!e.identifier?e.label||"":Ev(e.identifier)}function R3(e,t,r){const o=t.indexStack,g=e.children||[],v=t.createTracker(r),E=[];let b=-1;for(o.push(-1);++b + +`}return` + +`}const H3=/\r?\n|\r/g;function U3(e,t){const r=[];let o=0,g=0,v;for(;v=H3.exec(e);)E(e.slice(o,v.index)),r.push(v[0]),o=v.index+v[0].length,g++;return E(e.slice(o)),r.join("");function E(b){r.push(t(b,g,!b))}}function Yv(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function z3(e,t){return Ig(e,t.inConstruct,!0)&&!Ig(e,t.notInConstruct,!1)}function Ig(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let o=-1;for(;++o=F||L+10?" ":"")),g.shift(4),v+=g.move(U3(R3(e,r,g.current()),rw)),E(),v}function rw(e,t,r){return t===0?e:(r?"":" ")+e}function Qv(e,t,r){const o=t.indexStack,g=e.children||[],v=[];let E=-1,b=r.before;o.push(-1);let N=t.createTracker(r);for(;++E0&&(b==="\r"||b===` +`)&&F.type==="html"&&(v[v.length-1]=v[v.length-1].replace(/(\r?\n|\r)$/," "),b=" ",N=t.createTracker(r),N.move(v.join(""))),v.push(N.move(t.handle(F,e,t,{...N.current(),before:b,after:L}))),b=v[v.length-1].slice(-1)}return o.pop(),v.join("")}const nw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zv.peek=uw;const iw={canContainEols:["delete"],enter:{strikethrough:aw},exit:{strikethrough:ow}},sw={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nw}],handlers:{delete:Zv}};function aw(e){this.enter({type:"delete",children:[]},e)}function ow(e){this.exit(e)}function Zv(e,t,r,o){const g=zh(o),v=r.enter("strikethrough");let E=g.move("~~");return E+=Qv(e,r,{...g.current(),before:E,after:"~"}),E+=g.move("~~"),v(),E}function uw(){return"~"}eE.peek=lw;function eE(e,t,r){let o=e.value||"",g="`",v=-1;for(;new RegExp("(^|[^`])"+g+"([^`]|$)").test(o);)g+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++vN&&(N=e[F].length);++Beb[Be])&&(b[Be]=et)}Ae.push(Ne)}v[F]=Ae,E[F]=$e}let L=-1;if(typeof r=="object"&&"length"in r)for(;++Lb[L]&&(b[L]=Ne),ie[L]=Ne),H[L]=et}v.splice(1,0,H),E.splice(1,0,ie),F=-1;const re=[];for(;++Fr==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function mw(e){this.exit(e),this.setData("inTable")}function gw(e){this.enter({type:"tableRow",children:[]},e)}function Of(e){this.exit(e)}function Mg(e){this.enter({type:"tableCell",children:[]},e)}function yw(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,vw));const r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function vw(e,t){return t==="|"?t:e}function Ew(e){const t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,g=t.stringLength,v=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:E,tableRow:b,tableCell:N,inlineCode:ie}};function E(re,Ae,$e,Be){return F(L(re,$e,Be),re.align)}function b(re,Ae,$e,Be){const Ne=H(re,$e,Be),et=F([Ne]);return et.slice(0,et.indexOf(` +`))}function N(re,Ae,$e,Be){const Ne=$e.enter("tableCell"),et=$e.enter("phrasing"),Ke=Qv(re,$e,{...Be,before:v,after:v});return et(),Ne(),Ke}function F(re,Ae){return cw(re,{align:Ae,alignDelimiters:o,padding:r,stringLength:g})}function L(re,Ae,$e){const Be=re.children;let Ne=-1;const et=[],Ke=Ae.enter("table");for(;++Ne-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+v);let E=v.length+1;(g==="tab"||g==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(E=Math.ceil(E/4)*4);const b=r.createTracker(o);b.move(v+" ".repeat(E-v.length)),b.shift(E);const N=r.enter("listItem"),F=r.indentLines(r.containerFlow(e,b.current()),L);return N(),F;function L(H,ie,re){return ie?(re?"":" ".repeat(E))+H:(re?v:v+" ".repeat(E-v.length))+H}}const xw={exit:{taskListCheckValueChecked:Bg,taskListCheckValueUnchecked:Bg,paragraph:Aw}},bw={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Sw}};function Bg(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Aw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){const g=t.children;let v=-1,E;for(;++v',CheckCorrect:'',InsertTable:''},Fw="Strikethrough",Pw="text",Nw="Table",Iw="Heading",Lw="Task list",Ow="todo",Mw={strike:Fw,strikeText:Pw,table:Nw,tableHeading:Iw,task:Lw,taskText:Ow};function Bw({locale:e,...t}={}){const r={...Mw,...e};return{remark:o=>o.use(kw,t),actions:[{title:r.strike,icon:Mf.Strikethrough,cheatsheet:`~~${r.strikeText}~~`,handler:{type:"action",click({wrapText:o,editor:g}){o("~~"),g.focus()}}},{title:r.task,icon:Mf.CheckCorrect,cheatsheet:`- [ ] ${r.taskText}`,handler:{type:"action",click({replaceLines:o,editor:g}){o(v=>"- [ ] "+v),g.focus()}}},{title:r.table,icon:Mf.InsertTable,handler:{type:"action",click({editor:o,appendBlock:g,codemirror:v}){const{line:E}=g(`| ${r.tableHeading} | | +| --- | --- | +| | | +`);o.setSelection(v.Pos(E,2),v.Pos(E,2+r.tableHeading.length)),o.focus()}}}]}}const Rg={100:"💯",1234:"🔢",grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",rofl:"🤣",joy:"😂",slightly_smiling_face:"🙂",upside_down_face:"🙃",wink:"😉",blush:"😊",innocent:"😇",smiling_face_with_three_hearts:"🥰",heart_eyes:"😍",star_struck:"🤩",kissing_heart:"😘",kissing:"😗",relaxed:"☺️",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",smiling_face_with_tear:"🥲",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",zany_face:"🤪",stuck_out_tongue_closed_eyes:"😝",money_mouth_face:"🤑",hugs:"🤗",hand_over_mouth:"🤭",shushing_face:"🤫",thinking:"🤔",zipper_mouth_face:"🤐",raised_eyebrow:"🤨",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",face_in_clouds:"😶‍🌫️",smirk:"😏",unamused:"😒",roll_eyes:"🙄",grimacing:"😬",face_exhaling:"😮‍💨",lying_face:"🤥",relieved:"😌",pensive:"😔",sleepy:"😪",drooling_face:"🤤",sleeping:"😴",mask:"😷",face_with_thermometer:"🤒",face_with_head_bandage:"🤕",nauseated_face:"🤢",vomiting_face:"🤮",sneezing_face:"🤧",hot_face:"🥵",cold_face:"🥶",woozy_face:"🥴",dizzy_face:"😵",face_with_spiral_eyes:"😵‍💫",exploding_head:"🤯",cowboy_hat_face:"🤠",partying_face:"🥳",disguised_face:"🥸",sunglasses:"😎",nerd_face:"🤓",monocle_face:"🧐",confused:"😕",worried:"😟",slightly_frowning_face:"🙁",frowning_face:"☹️",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",pleading_face:"🥺",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",yawning_face:"🥱",triumph:"😤",rage:"😡",pout:"😡",angry:"😠",cursing_face:"🤬",smiling_imp:"😈",imp:"👿",skull:"💀",skull_and_crossbones:"☠️",hankey:"💩",poop:"💩",shit:"💩",clown_face:"🤡",japanese_ogre:"👹",japanese_goblin:"👺",ghost:"👻",alien:"👽",space_invader:"👾",robot:"🤖",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",kiss:"💋",love_letter:"💌",cupid:"💘",gift_heart:"💝",sparkling_heart:"💖",heartpulse:"💗",heartbeat:"💓",revolving_hearts:"💞",two_hearts:"💕",heart_decoration:"💟",heavy_heart_exclamation:"❣️",broken_heart:"💔",heart_on_fire:"❤️‍🔥",mending_heart:"❤️‍🩹",heart:"❤️",orange_heart:"🧡",yellow_heart:"💛",green_heart:"💚",blue_heart:"💙",purple_heart:"💜",brown_heart:"🤎",black_heart:"🖤",white_heart:"🤍",anger:"💢",boom:"💥",collision:"💥",dizzy:"💫",sweat_drops:"💦",dash:"💨",hole:"🕳️",bomb:"💣",speech_balloon:"💬",eye_speech_bubble:"👁️‍🗨️",left_speech_bubble:"🗨️",right_anger_bubble:"🗯️",thought_balloon:"💭",zzz:"💤",wave:"👋",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐️",hand:"✋",raised_hand:"✋",vulcan_salute:"🖖",ok_hand:"👌",pinched_fingers:"🤌",pinching_hand:"🤏",v:"✌️",crossed_fingers:"🤞",love_you_gesture:"🤟",metal:"🤘",call_me_hand:"🤙",point_left:"👈",point_right:"👉",point_up_2:"👆",middle_finger:"🖕",fu:"🖕",point_down:"👇",point_up:"☝️","+1":"👍",thumbsup:"👍","-1":"👎",thumbsdown:"👎",fist_raised:"✊",fist:"✊",fist_oncoming:"👊",facepunch:"👊",punch:"👊",fist_left:"🤛",fist_right:"🤜",clap:"👏",raised_hands:"🙌",open_hands:"👐",palms_up_together:"🤲",handshake:"🤝",pray:"🙏",writing_hand:"✍️",nail_care:"💅",selfie:"🤳",muscle:"💪",mechanical_arm:"🦾",mechanical_leg:"🦿",leg:"🦵",foot:"🦶",ear:"👂",ear_with_hearing_aid:"🦻",nose:"👃",brain:"🧠",anatomical_heart:"🫀",lungs:"🫁",tooth:"🦷",bone:"🦴",eyes:"👀",eye:"👁️",tongue:"👅",lips:"👄",baby:"👶",child:"🧒",boy:"👦",girl:"👧",adult:"🧑",blond_haired_person:"👱",man:"👨",bearded_person:"🧔",man_beard:"🧔‍♂️",woman_beard:"🧔‍♀️",red_haired_man:"👨‍🦰",curly_haired_man:"👨‍🦱",white_haired_man:"👨‍🦳",bald_man:"👨‍🦲",woman:"👩",red_haired_woman:"👩‍🦰",person_red_hair:"🧑‍🦰",curly_haired_woman:"👩‍🦱",person_curly_hair:"🧑‍🦱",white_haired_woman:"👩‍🦳",person_white_hair:"🧑‍🦳",bald_woman:"👩‍🦲",person_bald:"🧑‍🦲",blond_haired_woman:"👱‍♀️",blonde_woman:"👱‍♀️",blond_haired_man:"👱‍♂️",older_adult:"🧓",older_man:"👴",older_woman:"👵",frowning_person:"🙍",frowning_man:"🙍‍♂️",frowning_woman:"🙍‍♀️",pouting_face:"🙎",pouting_man:"🙎‍♂️",pouting_woman:"🙎‍♀️",no_good:"🙅",no_good_man:"🙅‍♂️",ng_man:"🙅‍♂️",no_good_woman:"🙅‍♀️",ng_woman:"🙅‍♀️",ok_person:"🙆",ok_man:"🙆‍♂️",ok_woman:"🙆‍♀️",tipping_hand_person:"💁",information_desk_person:"💁",tipping_hand_man:"💁‍♂️",sassy_man:"💁‍♂️",tipping_hand_woman:"💁‍♀️",sassy_woman:"💁‍♀️",raising_hand:"🙋",raising_hand_man:"🙋‍♂️",raising_hand_woman:"🙋‍♀️",deaf_person:"🧏",deaf_man:"🧏‍♂️",deaf_woman:"🧏‍♀️",bow:"🙇",bowing_man:"🙇‍♂️",bowing_woman:"🙇‍♀️",facepalm:"🤦",man_facepalming:"🤦‍♂️",woman_facepalming:"🤦‍♀️",shrug:"🤷",man_shrugging:"🤷‍♂️",woman_shrugging:"🤷‍♀️",health_worker:"🧑‍⚕️",man_health_worker:"👨‍⚕️",woman_health_worker:"👩‍⚕️",student:"🧑‍🎓",man_student:"👨‍🎓",woman_student:"👩‍🎓",teacher:"🧑‍🏫",man_teacher:"👨‍🏫",woman_teacher:"👩‍🏫",judge:"🧑‍⚖️",man_judge:"👨‍⚖️",woman_judge:"👩‍⚖️",farmer:"🧑‍🌾",man_farmer:"👨‍🌾",woman_farmer:"👩‍🌾",cook:"🧑‍🍳",man_cook:"👨‍🍳",woman_cook:"👩‍🍳",mechanic:"🧑‍🔧",man_mechanic:"👨‍🔧",woman_mechanic:"👩‍🔧",factory_worker:"🧑‍🏭",man_factory_worker:"👨‍🏭",woman_factory_worker:"👩‍🏭",office_worker:"🧑‍💼",man_office_worker:"👨‍💼",woman_office_worker:"👩‍💼",scientist:"🧑‍🔬",man_scientist:"👨‍🔬",woman_scientist:"👩‍🔬",technologist:"🧑‍💻",man_technologist:"👨‍💻",woman_technologist:"👩‍💻",singer:"🧑‍🎤",man_singer:"👨‍🎤",woman_singer:"👩‍🎤",artist:"🧑‍🎨",man_artist:"👨‍🎨",woman_artist:"👩‍🎨",pilot:"🧑‍✈️",man_pilot:"👨‍✈️",woman_pilot:"👩‍✈️",astronaut:"🧑‍🚀",man_astronaut:"👨‍🚀",woman_astronaut:"👩‍🚀",firefighter:"🧑‍🚒",man_firefighter:"👨‍🚒",woman_firefighter:"👩‍🚒",police_officer:"👮",cop:"👮",policeman:"👮‍♂️",policewoman:"👮‍♀️",detective:"🕵️",male_detective:"🕵️‍♂️",female_detective:"🕵️‍♀️",guard:"💂",guardsman:"💂‍♂️",guardswoman:"💂‍♀️",ninja:"🥷",construction_worker:"👷",construction_worker_man:"👷‍♂️",construction_worker_woman:"👷‍♀️",prince:"🤴",princess:"👸",person_with_turban:"👳",man_with_turban:"👳‍♂️",woman_with_turban:"👳‍♀️",man_with_gua_pi_mao:"👲",woman_with_headscarf:"🧕",person_in_tuxedo:"🤵",man_in_tuxedo:"🤵‍♂️",woman_in_tuxedo:"🤵‍♀️",person_with_veil:"👰",man_with_veil:"👰‍♂️",woman_with_veil:"👰‍♀️",bride_with_veil:"👰‍♀️",pregnant_woman:"🤰",breast_feeding:"🤱",woman_feeding_baby:"👩‍🍼",man_feeding_baby:"👨‍🍼",person_feeding_baby:"🧑‍🍼",angel:"👼",santa:"🎅",mrs_claus:"🤶",mx_claus:"🧑‍🎄",superhero:"🦸",superhero_man:"🦸‍♂️",superhero_woman:"🦸‍♀️",supervillain:"🦹",supervillain_man:"🦹‍♂️",supervillain_woman:"🦹‍♀️",mage:"🧙",mage_man:"🧙‍♂️",mage_woman:"🧙‍♀️",fairy:"🧚",fairy_man:"🧚‍♂️",fairy_woman:"🧚‍♀️",vampire:"🧛",vampire_man:"🧛‍♂️",vampire_woman:"🧛‍♀️",merperson:"🧜",merman:"🧜‍♂️",mermaid:"🧜‍♀️",elf:"🧝",elf_man:"🧝‍♂️",elf_woman:"🧝‍♀️",genie:"🧞",genie_man:"🧞‍♂️",genie_woman:"🧞‍♀️",zombie:"🧟",zombie_man:"🧟‍♂️",zombie_woman:"🧟‍♀️",massage:"💆",massage_man:"💆‍♂️",massage_woman:"💆‍♀️",haircut:"💇",haircut_man:"💇‍♂️",haircut_woman:"💇‍♀️",walking:"🚶",walking_man:"🚶‍♂️",walking_woman:"🚶‍♀️",standing_person:"🧍",standing_man:"🧍‍♂️",standing_woman:"🧍‍♀️",kneeling_person:"🧎",kneeling_man:"🧎‍♂️",kneeling_woman:"🧎‍♀️",person_with_probing_cane:"🧑‍🦯",man_with_probing_cane:"👨‍🦯",woman_with_probing_cane:"👩‍🦯",person_in_motorized_wheelchair:"🧑‍🦼",man_in_motorized_wheelchair:"👨‍🦼",woman_in_motorized_wheelchair:"👩‍🦼",person_in_manual_wheelchair:"🧑‍🦽",man_in_manual_wheelchair:"👨‍🦽",woman_in_manual_wheelchair:"👩‍🦽",runner:"🏃",running:"🏃",running_man:"🏃‍♂️",running_woman:"🏃‍♀️",woman_dancing:"💃",dancer:"💃",man_dancing:"🕺",business_suit_levitating:"🕴️",dancers:"👯",dancing_men:"👯‍♂️",dancing_women:"👯‍♀️",sauna_person:"🧖",sauna_man:"🧖‍♂️",sauna_woman:"🧖‍♀️",climbing:"🧗",climbing_man:"🧗‍♂️",climbing_woman:"🧗‍♀️",person_fencing:"🤺",horse_racing:"🏇",skier:"⛷️",snowboarder:"🏂",golfing:"🏌️",golfing_man:"🏌️‍♂️",golfing_woman:"🏌️‍♀️",surfer:"🏄",surfing_man:"🏄‍♂️",surfing_woman:"🏄‍♀️",rowboat:"🚣",rowing_man:"🚣‍♂️",rowing_woman:"🚣‍♀️",swimmer:"🏊",swimming_man:"🏊‍♂️",swimming_woman:"🏊‍♀️",bouncing_ball_person:"⛹️",bouncing_ball_man:"⛹️‍♂️",basketball_man:"⛹️‍♂️",bouncing_ball_woman:"⛹️‍♀️",basketball_woman:"⛹️‍♀️",weight_lifting:"🏋️",weight_lifting_man:"🏋️‍♂️",weight_lifting_woman:"🏋️‍♀️",bicyclist:"🚴",biking_man:"🚴‍♂️",biking_woman:"🚴‍♀️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵‍♂️",mountain_biking_woman:"🚵‍♀️",cartwheeling:"🤸",man_cartwheeling:"🤸‍♂️",woman_cartwheeling:"🤸‍♀️",wrestling:"🤼",men_wrestling:"🤼‍♂️",women_wrestling:"🤼‍♀️",water_polo:"🤽",man_playing_water_polo:"🤽‍♂️",woman_playing_water_polo:"🤽‍♀️",handball_person:"🤾",man_playing_handball:"🤾‍♂️",woman_playing_handball:"🤾‍♀️",juggling_person:"🤹",man_juggling:"🤹‍♂️",woman_juggling:"🤹‍♀️",lotus_position:"🧘",lotus_position_man:"🧘‍♂️",lotus_position_woman:"🧘‍♀️",bath:"🛀",sleeping_bed:"🛌",people_holding_hands:"🧑‍🤝‍🧑",two_women_holding_hands:"👭",couple:"👫",two_men_holding_hands:"👬",couplekiss:"💏",couplekiss_man_woman:"👩‍❤️‍💋‍👨",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",couple_with_heart:"💑",couple_with_heart_woman_man:"👩‍❤️‍👨",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",family:"👪",family_man_woman_boy:"👨‍👩‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",speaking_head:"🗣️",bust_in_silhouette:"👤",busts_in_silhouette:"👥",people_hugging:"🫂",footprints:"👣",monkey_face:"🐵",monkey:"🐒",gorilla:"🦍",orangutan:"🦧",dog:"🐶",dog2:"🐕",guide_dog:"🦮",service_dog:"🐕‍🦺",poodle:"🐩",wolf:"🐺",fox_face:"🦊",raccoon:"🦝",cat:"🐱",cat2:"🐈",black_cat:"🐈‍⬛",lion:"🦁",tiger:"🐯",tiger2:"🐅",leopard:"🐆",horse:"🐴",racehorse:"🐎",unicorn:"🦄",zebra:"🦓",deer:"🦌",bison:"🦬",cow:"🐮",ox:"🐂",water_buffalo:"🐃",cow2:"🐄",pig:"🐷",pig2:"🐖",boar:"🐗",pig_nose:"🐽",ram:"🐏",sheep:"🐑",goat:"🐐",dromedary_camel:"🐪",camel:"🐫",llama:"🦙",giraffe:"🦒",elephant:"🐘",mammoth:"🦣",rhinoceros:"🦏",hippopotamus:"🦛",mouse:"🐭",mouse2:"🐁",rat:"🐀",hamster:"🐹",rabbit:"🐰",rabbit2:"🐇",chipmunk:"🐿️",beaver:"🦫",hedgehog:"🦔",bat:"🦇",bear:"🐻",polar_bear:"🐻‍❄️",koala:"🐨",panda_face:"🐼",sloth:"🦥",otter:"🦦",skunk:"🦨",kangaroo:"🦘",badger:"🦡",feet:"🐾",paw_prints:"🐾",turkey:"🦃",chicken:"🐔",rooster:"🐓",hatching_chick:"🐣",baby_chick:"🐤",hatched_chick:"🐥",bird:"🐦",penguin:"🐧",dove:"🕊️",eagle:"🦅",duck:"🦆",swan:"🦢",owl:"🦉",dodo:"🦤",feather:"🪶",flamingo:"🦩",peacock:"🦚",parrot:"🦜",frog:"🐸",crocodile:"🐊",turtle:"🐢",lizard:"🦎",snake:"🐍",dragon_face:"🐲",dragon:"🐉",sauropod:"🦕","t-rex":"🦖",whale:"🐳",whale2:"🐋",dolphin:"🐬",flipper:"🐬",seal:"🦭",fish:"🐟",tropical_fish:"🐠",blowfish:"🐡",shark:"🦈",octopus:"🐙",shell:"🐚",snail:"🐌",butterfly:"🦋",bug:"🐛",ant:"🐜",bee:"🐝",honeybee:"🐝",beetle:"🪲",lady_beetle:"🐞",cricket:"🦗",cockroach:"🪳",spider:"🕷️",spider_web:"🕸️",scorpion:"🦂",mosquito:"🦟",fly:"🪰",worm:"🪱",microbe:"🦠",bouquet:"💐",cherry_blossom:"🌸",white_flower:"💮",rosette:"🏵️",rose:"🌹",wilted_flower:"🥀",hibiscus:"🌺",sunflower:"🌻",blossom:"🌼",tulip:"🌷",seedling:"🌱",potted_plant:"🪴",evergreen_tree:"🌲",deciduous_tree:"🌳",palm_tree:"🌴",cactus:"🌵",ear_of_rice:"🌾",herb:"🌿",shamrock:"☘️",four_leaf_clover:"🍀",maple_leaf:"🍁",fallen_leaf:"🍂",leaves:"🍃",grapes:"🍇",melon:"🍈",watermelon:"🍉",tangerine:"🍊",orange:"🍊",mandarin:"🍊",lemon:"🍋",banana:"🍌",pineapple:"🍍",mango:"🥭",apple:"🍎",green_apple:"🍏",pear:"🍐",peach:"🍑",cherries:"🍒",strawberry:"🍓",blueberries:"🫐",kiwi_fruit:"🥝",tomato:"🍅",olive:"🫒",coconut:"🥥",avocado:"🥑",eggplant:"🍆",potato:"🥔",carrot:"🥕",corn:"🌽",hot_pepper:"🌶️",bell_pepper:"🫑",cucumber:"🥒",leafy_green:"🥬",broccoli:"🥦",garlic:"🧄",onion:"🧅",mushroom:"🍄",peanuts:"🥜",chestnut:"🌰",bread:"🍞",croissant:"🥐",baguette_bread:"🥖",flatbread:"🫓",pretzel:"🥨",bagel:"🥯",pancakes:"🥞",waffle:"🧇",cheese:"🧀",meat_on_bone:"🍖",poultry_leg:"🍗",cut_of_meat:"🥩",bacon:"🥓",hamburger:"🍔",fries:"🍟",pizza:"🍕",hotdog:"🌭",sandwich:"🥪",taco:"🌮",burrito:"🌯",tamale:"🫔",stuffed_flatbread:"🥙",falafel:"🧆",egg:"🥚",fried_egg:"🍳",shallow_pan_of_food:"🥘",stew:"🍲",fondue:"🫕",bowl_with_spoon:"🥣",green_salad:"🥗",popcorn:"🍿",butter:"🧈",salt:"🧂",canned_food:"🥫",bento:"🍱",rice_cracker:"🍘",rice_ball:"🍙",rice:"🍚",curry:"🍛",ramen:"🍜",spaghetti:"🍝",sweet_potato:"🍠",oden:"🍢",sushi:"🍣",fried_shrimp:"🍤",fish_cake:"🍥",moon_cake:"🥮",dango:"🍡",dumpling:"🥟",fortune_cookie:"🥠",takeout_box:"🥡",crab:"🦀",lobster:"🦞",shrimp:"🦐",squid:"🦑",oyster:"🦪",icecream:"🍦",shaved_ice:"🍧",ice_cream:"🍨",doughnut:"🍩",cookie:"🍪",birthday:"🎂",cake:"🍰",cupcake:"🧁",pie:"🥧",chocolate_bar:"🍫",candy:"🍬",lollipop:"🍭",custard:"🍮",honey_pot:"🍯",baby_bottle:"🍼",milk_glass:"🥛",coffee:"☕",teapot:"🫖",tea:"🍵",sake:"🍶",champagne:"🍾",wine_glass:"🍷",cocktail:"🍸",tropical_drink:"🍹",beer:"🍺",beers:"🍻",clinking_glasses:"🥂",tumbler_glass:"🥃",cup_with_straw:"🥤",bubble_tea:"🧋",beverage_box:"🧃",mate:"🧉",ice_cube:"🧊",chopsticks:"🥢",plate_with_cutlery:"🍽️",fork_and_knife:"🍴",spoon:"🥄",hocho:"🔪",knife:"🔪",amphora:"🏺",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",globe_with_meridians:"🌐",world_map:"🗺️",japan:"🗾",compass:"🧭",mountain_snow:"🏔️",mountain:"⛰️",volcano:"🌋",mount_fuji:"🗻",camping:"🏕️",beach_umbrella:"🏖️",desert:"🏜️",desert_island:"🏝️",national_park:"🏞️",stadium:"🏟️",classical_building:"🏛️",building_construction:"🏗️",bricks:"🧱",rock:"🪨",wood:"🪵",hut:"🛖",houses:"🏘️",derelict_house:"🏚️",house:"🏠",house_with_garden:"🏡",office:"🏢",post_office:"🏣",european_post_office:"🏤",hospital:"🏥",bank:"🏦",hotel:"🏨",love_hotel:"🏩",convenience_store:"🏪",school:"🏫",department_store:"🏬",factory:"🏭",japanese_castle:"🏯",european_castle:"🏰",wedding:"💒",tokyo_tower:"🗼",statue_of_liberty:"🗽",church:"⛪",mosque:"🕌",hindu_temple:"🛕",synagogue:"🕍",shinto_shrine:"⛩️",kaaba:"🕋",fountain:"⛲",tent:"⛺",foggy:"🌁",night_with_stars:"🌃",cityscape:"🏙️",sunrise_over_mountains:"🌄",sunrise:"🌅",city_sunset:"🌆",city_sunrise:"🌇",bridge_at_night:"🌉",hotsprings:"♨️",carousel_horse:"🎠",ferris_wheel:"🎡",roller_coaster:"🎢",barber:"💈",circus_tent:"🎪",steam_locomotive:"🚂",railway_car:"🚃",bullettrain_side:"🚄",bullettrain_front:"🚅",train2:"🚆",metro:"🚇",light_rail:"🚈",station:"🚉",tram:"🚊",monorail:"🚝",mountain_railway:"🚞",train:"🚋",bus:"🚌",oncoming_bus:"🚍",trolleybus:"🚎",minibus:"🚐",ambulance:"🚑",fire_engine:"🚒",police_car:"🚓",oncoming_police_car:"🚔",taxi:"🚕",oncoming_taxi:"🚖",car:"🚗",red_car:"🚗",oncoming_automobile:"🚘",blue_car:"🚙",pickup_truck:"🛻",truck:"🚚",articulated_lorry:"🚛",tractor:"🚜",racing_car:"🏎️",motorcycle:"🏍️",motor_scooter:"🛵",manual_wheelchair:"🦽",motorized_wheelchair:"🦼",auto_rickshaw:"🛺",bike:"🚲",kick_scooter:"🛴",skateboard:"🛹",roller_skate:"🛼",busstop:"🚏",motorway:"🛣️",railway_track:"🛤️",oil_drum:"🛢️",fuelpump:"⛽",rotating_light:"🚨",traffic_light:"🚥",vertical_traffic_light:"🚦",stop_sign:"🛑",construction:"🚧",anchor:"⚓",boat:"⛵",sailboat:"⛵",canoe:"🛶",speedboat:"🚤",passenger_ship:"🛳️",ferry:"⛴️",motor_boat:"🛥️",ship:"🚢",airplane:"✈️",small_airplane:"🛩️",flight_departure:"🛫",flight_arrival:"🛬",parachute:"🪂",seat:"💺",helicopter:"🚁",suspension_railway:"🚟",mountain_cableway:"🚠",aerial_tramway:"🚡",artificial_satellite:"🛰️",rocket:"🚀",flying_saucer:"🛸",bellhop_bell:"🛎️",luggage:"🧳",hourglass:"⌛",hourglass_flowing_sand:"⏳",watch:"⌚",alarm_clock:"⏰",stopwatch:"⏱️",timer_clock:"⏲️",mantelpiece_clock:"🕰️",clock12:"🕛",clock1230:"🕧",clock1:"🕐",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",new_moon:"🌑",waxing_crescent_moon:"🌒",first_quarter_moon:"🌓",moon:"🌔",waxing_gibbous_moon:"🌔",full_moon:"🌕",waning_gibbous_moon:"🌖",last_quarter_moon:"🌗",waning_crescent_moon:"🌘",crescent_moon:"🌙",new_moon_with_face:"🌚",first_quarter_moon_with_face:"🌛",last_quarter_moon_with_face:"🌜",thermometer:"🌡️",sunny:"☀️",full_moon_with_face:"🌝",sun_with_face:"🌞",ringed_planet:"🪐",star:"⭐",star2:"🌟",stars:"🌠",milky_way:"🌌",cloud:"☁️",partly_sunny:"⛅",cloud_with_lightning_and_rain:"⛈️",sun_behind_small_cloud:"🌤️",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",cloud_with_lightning:"🌩️",tornado:"🌪️",fog:"🌫️",wind_face:"🌬️",cyclone:"🌀",rainbow:"🌈",closed_umbrella:"🌂",open_umbrella:"☂️",umbrella:"☔",parasol_on_ground:"⛱️",zap:"⚡",snowflake:"❄️",snowman_with_snow:"☃️",snowman:"⛄",comet:"☄️",fire:"🔥",droplet:"💧",ocean:"🌊",jack_o_lantern:"🎃",christmas_tree:"🎄",fireworks:"🎆",sparkler:"🎇",firecracker:"🧨",sparkles:"✨",balloon:"🎈",tada:"🎉",confetti_ball:"🎊",tanabata_tree:"🎋",bamboo:"🎍",dolls:"🎎",flags:"🎏",wind_chime:"🎐",rice_scene:"🎑",red_envelope:"🧧",ribbon:"🎀",gift:"🎁",reminder_ribbon:"🎗️",tickets:"🎟️",ticket:"🎫",medal_military:"🎖️",trophy:"🏆",medal_sports:"🏅","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:"⚽",baseball:"⚾",softball:"🥎",basketball:"🏀",volleyball:"🏐",football:"🏈",rugby_football:"🏉",tennis:"🎾",flying_disc:"🥏",bowling:"🎳",cricket_game:"🏏",field_hockey:"🏑",ice_hockey:"🏒",lacrosse:"🥍",ping_pong:"🏓",badminton:"🏸",boxing_glove:"🥊",martial_arts_uniform:"🥋",goal_net:"🥅",golf:"⛳",ice_skate:"⛸️",fishing_pole_and_fish:"🎣",diving_mask:"🤿",running_shirt_with_sash:"🎽",ski:"🎿",sled:"🛷",curling_stone:"🥌",dart:"🎯",yo_yo:"🪀",kite:"🪁","8ball":"🎱",crystal_ball:"🔮",magic_wand:"🪄",nazar_amulet:"🧿",video_game:"🎮",joystick:"🕹️",slot_machine:"🎰",game_die:"🎲",jigsaw:"🧩",teddy_bear:"🧸",pinata:"🪅",nesting_dolls:"🪆",spades:"♠️",hearts:"♥️",diamonds:"♦️",clubs:"♣️",chess_pawn:"♟️",black_joker:"🃏",mahjong:"🀄",flower_playing_cards:"🎴",performing_arts:"🎭",framed_picture:"🖼️",art:"🎨",thread:"🧵",sewing_needle:"🪡",yarn:"🧶",knot:"🪢",eyeglasses:"👓",dark_sunglasses:"🕶️",goggles:"🥽",lab_coat:"🥼",safety_vest:"🦺",necktie:"👔",shirt:"👕",tshirt:"👕",jeans:"👖",scarf:"🧣",gloves:"🧤",coat:"🧥",socks:"🧦",dress:"👗",kimono:"👘",sari:"🥻",one_piece_swimsuit:"🩱",swim_brief:"🩲",shorts:"🩳",bikini:"👙",womans_clothes:"👚",purse:"👛",handbag:"👜",pouch:"👝",shopping:"🛍️",school_satchel:"🎒",thong_sandal:"🩴",mans_shoe:"👞",shoe:"👞",athletic_shoe:"👟",hiking_boot:"🥾",flat_shoe:"🥿",high_heel:"👠",sandal:"👡",ballet_shoes:"🩰",boot:"👢",crown:"👑",womans_hat:"👒",tophat:"🎩",mortar_board:"🎓",billed_cap:"🧢",military_helmet:"🪖",rescue_worker_helmet:"⛑️",prayer_beads:"📿",lipstick:"💄",ring:"💍",gem:"💎",mute:"🔇",speaker:"🔈",sound:"🔉",loud_sound:"🔊",loudspeaker:"📢",mega:"📣",postal_horn:"📯",bell:"🔔",no_bell:"🔕",musical_score:"🎼",musical_note:"🎵",notes:"🎶",studio_microphone:"🎙️",level_slider:"🎚️",control_knobs:"🎛️",microphone:"🎤",headphones:"🎧",radio:"📻",saxophone:"🎷",accordion:"🪗",guitar:"🎸",musical_keyboard:"🎹",trumpet:"🎺",violin:"🎻",banjo:"🪕",drum:"🥁",long_drum:"🪘",iphone:"📱",calling:"📲",phone:"☎️",telephone:"☎️",telephone_receiver:"📞",pager:"📟",fax:"📠",battery:"🔋",electric_plug:"🔌",computer:"💻",desktop_computer:"🖥️",printer:"🖨️",keyboard:"⌨️",computer_mouse:"🖱️",trackball:"🖲️",minidisc:"💽",floppy_disk:"💾",cd:"💿",dvd:"📀",abacus:"🧮",movie_camera:"🎥",film_strip:"🎞️",film_projector:"📽️",clapper:"🎬",tv:"📺",camera:"📷",camera_flash:"📸",video_camera:"📹",vhs:"📼",mag:"🔍",mag_right:"🔎",candle:"🕯️",bulb:"💡",flashlight:"🔦",izakaya_lantern:"🏮",lantern:"🏮",diya_lamp:"🪔",notebook_with_decorative_cover:"📔",closed_book:"📕",book:"📖",open_book:"📖",green_book:"📗",blue_book:"📘",orange_book:"📙",books:"📚",notebook:"📓",ledger:"📒",page_with_curl:"📃",scroll:"📜",page_facing_up:"📄",newspaper:"📰",newspaper_roll:"🗞️",bookmark_tabs:"📑",bookmark:"🔖",label:"🏷️",moneybag:"💰",coin:"🪙",yen:"💴",dollar:"💵",euro:"💶",pound:"💷",money_with_wings:"💸",credit_card:"💳",receipt:"🧾",chart:"💹",envelope:"✉️",email:"📧","e-mail":"📧",incoming_envelope:"📨",envelope_with_arrow:"📩",outbox_tray:"📤",inbox_tray:"📥",package:"📦",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",postbox:"📮",ballot_box:"🗳️",pencil2:"✏️",black_nib:"✒️",fountain_pen:"🖋️",pen:"🖊️",paintbrush:"🖌️",crayon:"🖍️",memo:"📝",pencil:"📝",briefcase:"💼",file_folder:"📁",open_file_folder:"📂",card_index_dividers:"🗂️",date:"📅",calendar:"📆",spiral_notepad:"🗒️",spiral_calendar:"🗓️",card_index:"📇",chart_with_upwards_trend:"📈",chart_with_downwards_trend:"📉",bar_chart:"📊",clipboard:"📋",pushpin:"📌",round_pushpin:"📍",paperclip:"📎",paperclips:"🖇️",straight_ruler:"📏",triangular_ruler:"📐",scissors:"✂️",card_file_box:"🗃️",file_cabinet:"🗄️",wastebasket:"🗑️",lock:"🔒",unlock:"🔓",lock_with_ink_pen:"🔏",closed_lock_with_key:"🔐",key:"🔑",old_key:"🗝️",hammer:"🔨",axe:"🪓",pick:"⛏️",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",dagger:"🗡️",crossed_swords:"⚔️",gun:"🔫",boomerang:"🪃",bow_and_arrow:"🏹",shield:"🛡️",carpentry_saw:"🪚",wrench:"🔧",screwdriver:"🪛",nut_and_bolt:"🔩",gear:"⚙️",clamp:"🗜️",balance_scale:"⚖️",probing_cane:"🦯",link:"🔗",chains:"⛓️",hook:"🪝",toolbox:"🧰",magnet:"🧲",ladder:"🪜",alembic:"⚗️",test_tube:"🧪",petri_dish:"🧫",dna:"🧬",microscope:"🔬",telescope:"🔭",satellite:"📡",syringe:"💉",drop_of_blood:"🩸",pill:"💊",adhesive_bandage:"🩹",stethoscope:"🩺",door:"🚪",elevator:"🛗",mirror:"🪞",window:"🪟",bed:"🛏️",couch_and_lamp:"🛋️",chair:"🪑",toilet:"🚽",plunger:"🪠",shower:"🚿",bathtub:"🛁",mouse_trap:"🪤",razor:"🪒",lotion_bottle:"🧴",safety_pin:"🧷",broom:"🧹",basket:"🧺",roll_of_paper:"🧻",bucket:"🪣",soap:"🧼",toothbrush:"🪥",sponge:"🧽",fire_extinguisher:"🧯",shopping_cart:"🛒",smoking:"🚬",coffin:"⚰️",headstone:"🪦",funeral_urn:"⚱️",moyai:"🗿",placard:"🪧",atm:"🏧",put_litter_in_its_place:"🚮",potable_water:"🚰",wheelchair:"♿",mens:"🚹",womens:"🚺",restroom:"🚻",baby_symbol:"🚼",wc:"🚾",passport_control:"🛂",customs:"🛃",baggage_claim:"🛄",left_luggage:"🛅",warning:"⚠️",children_crossing:"🚸",no_entry:"⛔",no_entry_sign:"🚫",no_bicycles:"🚳",no_smoking:"🚭",do_not_litter:"🚯","non-potable_water":"🚱",no_pedestrians:"🚷",no_mobile_phones:"📵",underage:"🔞",radioactive:"☢️",biohazard:"☣️",arrow_up:"⬆️",arrow_upper_right:"↗️",arrow_right:"➡️",arrow_lower_right:"↘️",arrow_down:"⬇️",arrow_lower_left:"↙️",arrow_left:"⬅️",arrow_upper_left:"↖️",arrow_up_down:"↕️",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",arrow_right_hook:"↪️",arrow_heading_up:"⤴️",arrow_heading_down:"⤵️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",back:"🔙",end:"🔚",on:"🔛",soon:"🔜",top:"🔝",place_of_worship:"🛐",atom_symbol:"⚛️",om:"🕉️",star_of_david:"✡️",wheel_of_dharma:"☸️",yin_yang:"☯️",latin_cross:"✝️",orthodox_cross:"☦️",star_and_crescent:"☪️",peace_symbol:"☮️",menorah:"🕎",six_pointed_star:"🔯",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",ophiuchus:"⛎",twisted_rightwards_arrows:"🔀",repeat:"🔁",repeat_one:"🔂",arrow_forward:"▶️",fast_forward:"⏩",next_track_button:"⏭️",play_or_pause_button:"⏯️",arrow_backward:"◀️",rewind:"⏪",previous_track_button:"⏮️",arrow_up_small:"🔼",arrow_double_up:"⏫",arrow_down_small:"🔽",arrow_double_down:"⏬",pause_button:"⏸️",stop_button:"⏹️",record_button:"⏺️",eject_button:"⏏️",cinema:"🎦",low_brightness:"🔅",high_brightness:"🔆",signal_strength:"📶",vibration_mode:"📳",mobile_phone_off:"📴",female_sign:"♀️",male_sign:"♂️",transgender_symbol:"⚧️",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",heavy_minus_sign:"➖",heavy_division_sign:"➗",infinity:"♾️",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",currency_exchange:"💱",heavy_dollar_sign:"💲",medical_symbol:"⚕️",recycle:"♻️",fleur_de_lis:"⚜️",trident:"🔱",name_badge:"📛",beginner:"🔰",o:"⭕",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",hash:"#️⃣",asterisk:"*️⃣",zero:"0️⃣",one:"1️⃣",two:"2️⃣",three:"3️⃣",four:"4️⃣",five:"5️⃣",six:"6️⃣",seven:"7️⃣",eight:"8️⃣",nine:"9️⃣",keycap_ten:"🔟",capital_abcd:"🔠",abcd:"🔡",symbols:"🔣",abc:"🔤",a:"🅰️",ab:"🆎",b:"🅱️",cl:"🆑",cool:"🆒",free:"🆓",information_source:"ℹ️",id:"🆔",m:"Ⓜ️",new:"🆕",ng:"🆖",o2:"🅾️",ok:"🆗",parking:"🅿️",sos:"🆘",up:"🆙",vs:"🆚",koko:"🈁",sa:"🈂️",u6708:"🈷️",u6709:"🈶",u6307:"🈯",ideograph_advantage:"🉐",u5272:"🈹",u7121:"🈚",u7981:"🈲",accept:"🉑",u7533:"🈸",u5408:"🈴",u7a7a:"🈳",congratulations:"㊗️",secret:"㊙️",u55b6:"🈺",u6e80:"🈵",red_circle:"🔴",orange_circle:"🟠",yellow_circle:"🟡",green_circle:"🟢",large_blue_circle:"🔵",purple_circle:"🟣",brown_circle:"🟤",black_circle:"⚫",white_circle:"⚪",red_square:"🟥",orange_square:"🟧",yellow_square:"🟨",green_square:"🟩",blue_square:"🟦",purple_square:"🟪",brown_square:"🟫",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️",large_orange_diamond:"🔶",large_blue_diamond:"🔷",small_orange_diamond:"🔸",small_blue_diamond:"🔹",small_red_triangle:"🔺",small_red_triangle_down:"🔻",diamond_shape_with_a_dot_inside:"💠",radio_button:"🔘",white_square_button:"🔳",black_square_button:"🔲",checkered_flag:"🏁",triangular_flag_on_post:"🚩",crossed_flags:"🎌",black_flag:"🏴",white_flag:"🏳️",rainbow_flag:"🏳️‍🌈",transgender_flag:"🏳️‍⚧️",pirate_flag:"🏴‍☠️",ascension_island:"🇦🇨",andorra:"🇦🇩",united_arab_emirates:"🇦🇪",afghanistan:"🇦🇫",antigua_barbuda:"🇦🇬",anguilla:"🇦🇮",albania:"🇦🇱",armenia:"🇦🇲",angola:"🇦🇴",antarctica:"🇦🇶",argentina:"🇦🇷",american_samoa:"🇦🇸",austria:"🇦🇹",australia:"🇦🇺",aruba:"🇦🇼",aland_islands:"🇦🇽",azerbaijan:"🇦🇿",bosnia_herzegovina:"🇧🇦",barbados:"🇧🇧",bangladesh:"🇧🇩",belgium:"🇧🇪",burkina_faso:"🇧🇫",bulgaria:"🇧🇬",bahrain:"🇧🇭",burundi:"🇧🇮",benin:"🇧🇯",st_barthelemy:"🇧🇱",bermuda:"🇧🇲",brunei:"🇧🇳",bolivia:"🇧🇴",caribbean_netherlands:"🇧🇶",brazil:"🇧🇷",bahamas:"🇧🇸",bhutan:"🇧🇹",bouvet_island:"🇧🇻",botswana:"🇧🇼",belarus:"🇧🇾",belize:"🇧🇿",canada:"🇨🇦",cocos_islands:"🇨🇨",congo_kinshasa:"🇨🇩",central_african_republic:"🇨🇫",congo_brazzaville:"🇨🇬",switzerland:"🇨🇭",cote_divoire:"🇨🇮",cook_islands:"🇨🇰",chile:"🇨🇱",cameroon:"🇨🇲",cn:"🇨🇳",colombia:"🇨🇴",clipperton_island:"🇨🇵",costa_rica:"🇨🇷",cuba:"🇨🇺",cape_verde:"🇨🇻",curacao:"🇨🇼",christmas_island:"🇨🇽",cyprus:"🇨🇾",czech_republic:"🇨🇿",de:"🇩🇪",diego_garcia:"🇩🇬",djibouti:"🇩🇯",denmark:"🇩🇰",dominica:"🇩🇲",dominican_republic:"🇩🇴",algeria:"🇩🇿",ceuta_melilla:"🇪🇦",ecuador:"🇪🇨",estonia:"🇪🇪",egypt:"🇪🇬",western_sahara:"🇪🇭",eritrea:"🇪🇷",es:"🇪🇸",ethiopia:"🇪🇹",eu:"🇪🇺",european_union:"🇪🇺",finland:"🇫🇮",fiji:"🇫🇯",falkland_islands:"🇫🇰",micronesia:"🇫🇲",faroe_islands:"🇫🇴",fr:"🇫🇷",gabon:"🇬🇦",gb:"🇬🇧",uk:"🇬🇧",grenada:"🇬🇩",georgia:"🇬🇪",french_guiana:"🇬🇫",guernsey:"🇬🇬",ghana:"🇬🇭",gibraltar:"🇬🇮",greenland:"🇬🇱",gambia:"🇬🇲",guinea:"🇬🇳",guadeloupe:"🇬🇵",equatorial_guinea:"🇬🇶",greece:"🇬🇷",south_georgia_south_sandwich_islands:"🇬🇸",guatemala:"🇬🇹",guam:"🇬🇺",guinea_bissau:"🇬🇼",guyana:"🇬🇾",hong_kong:"🇭🇰",heard_mcdonald_islands:"🇭🇲",honduras:"🇭🇳",croatia:"🇭🇷",haiti:"🇭🇹",hungary:"🇭🇺",canary_islands:"🇮🇨",indonesia:"🇮🇩",ireland:"🇮🇪",israel:"🇮🇱",isle_of_man:"🇮🇲",india:"🇮🇳",british_indian_ocean_territory:"🇮🇴",iraq:"🇮🇶",iran:"🇮🇷",iceland:"🇮🇸",it:"🇮🇹",jersey:"🇯🇪",jamaica:"🇯🇲",jordan:"🇯🇴",jp:"🇯🇵",kenya:"🇰🇪",kyrgyzstan:"🇰🇬",cambodia:"🇰🇭",kiribati:"🇰🇮",comoros:"🇰🇲",st_kitts_nevis:"🇰🇳",north_korea:"🇰🇵",kr:"🇰🇷",kuwait:"🇰🇼",cayman_islands:"🇰🇾",kazakhstan:"🇰🇿",laos:"🇱🇦",lebanon:"🇱🇧",st_lucia:"🇱🇨",liechtenstein:"🇱🇮",sri_lanka:"🇱🇰",liberia:"🇱🇷",lesotho:"🇱🇸",lithuania:"🇱🇹",luxembourg:"🇱🇺",latvia:"🇱🇻",libya:"🇱🇾",morocco:"🇲🇦",monaco:"🇲🇨",moldova:"🇲🇩",montenegro:"🇲🇪",st_martin:"🇲🇫",madagascar:"🇲🇬",marshall_islands:"🇲🇭",macedonia:"🇲🇰",mali:"🇲🇱",myanmar:"🇲🇲",mongolia:"🇲🇳",macau:"🇲🇴",northern_mariana_islands:"🇲🇵",martinique:"🇲🇶",mauritania:"🇲🇷",montserrat:"🇲🇸",malta:"🇲🇹",mauritius:"🇲🇺",maldives:"🇲🇻",malawi:"🇲🇼",mexico:"🇲🇽",malaysia:"🇲🇾",mozambique:"🇲🇿",namibia:"🇳🇦",new_caledonia:"🇳🇨",niger:"🇳🇪",norfolk_island:"🇳🇫",nigeria:"🇳🇬",nicaragua:"🇳🇮",netherlands:"🇳🇱",norway:"🇳🇴",nepal:"🇳🇵",nauru:"🇳🇷",niue:"🇳🇺",new_zealand:"🇳🇿",oman:"🇴🇲",panama:"🇵🇦",peru:"🇵🇪",french_polynesia:"🇵🇫",papua_new_guinea:"🇵🇬",philippines:"🇵🇭",pakistan:"🇵🇰",poland:"🇵🇱",st_pierre_miquelon:"🇵🇲",pitcairn_islands:"🇵🇳",puerto_rico:"🇵🇷",palestinian_territories:"🇵🇸",portugal:"🇵🇹",palau:"🇵🇼",paraguay:"🇵🇾",qatar:"🇶🇦",reunion:"🇷🇪",romania:"🇷🇴",serbia:"🇷🇸",ru:"🇷🇺",rwanda:"🇷🇼",saudi_arabia:"🇸🇦",solomon_islands:"🇸🇧",seychelles:"🇸🇨",sudan:"🇸🇩",sweden:"🇸🇪",singapore:"🇸🇬",st_helena:"🇸🇭",slovenia:"🇸🇮",svalbard_jan_mayen:"🇸🇯",slovakia:"🇸🇰",sierra_leone:"🇸🇱",san_marino:"🇸🇲",senegal:"🇸🇳",somalia:"🇸🇴",suriname:"🇸🇷",south_sudan:"🇸🇸",sao_tome_principe:"🇸🇹",el_salvador:"🇸🇻",sint_maarten:"🇸🇽",syria:"🇸🇾",swaziland:"🇸🇿",tristan_da_cunha:"🇹🇦",turks_caicos_islands:"🇹🇨",chad:"🇹🇩",french_southern_territories:"🇹🇫",togo:"🇹🇬",thailand:"🇹🇭",tajikistan:"🇹🇯",tokelau:"🇹🇰",timor_leste:"🇹🇱",turkmenistan:"🇹🇲",tunisia:"🇹🇳",tonga:"🇹🇴",tr:"🇹🇷",trinidad_tobago:"🇹🇹",tuvalu:"🇹🇻",taiwan:"🇹🇼",tanzania:"🇹🇿",ukraine:"🇺🇦",uganda:"🇺🇬",us_outlying_islands:"🇺🇲",united_nations:"🇺🇳",us:"🇺🇸",uruguay:"🇺🇾",uzbekistan:"🇺🇿",vatican_city:"🇻🇦",st_vincent_grenadines:"🇻🇨",venezuela:"🇻🇪",british_virgin_islands:"🇻🇬",us_virgin_islands:"🇻🇮",vietnam:"🇻🇳",vanuatu:"🇻🇺",wallis_futuna:"🇼🇫",samoa:"🇼🇸",kosovo:"🇽🇰",yemen:"🇾🇪",mayotte:"🇾🇹",south_africa:"🇿🇦",zambia:"🇿🇲",zimbabwe:"🇿🇼",england:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",scotland:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",wales:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},rh=/:(\+1|[-\w]+):/g,Rw={}.hasOwnProperty;function jw(){return e=>{b1(e,"text",t=>{const r=t.value,o=[];rh.lastIndex=0;let g=rh.exec(r),v=0;for(;g;){const E=g[1],b=g.index;Rw.call(Rg,E)?(v!==b&&o.push(r.slice(v,b)),o.push(Rg[E]),v=b+g[0].length):rh.lastIndex=b+1,g=rh.exec(r)}o.length>0&&(o.push(r.slice(v)),t.value=o.join(""))})}}function Hw(){return{remark:e=>e.use(jw)}}function Uw({init:e}={}){let t;return{viewerEffect({markdownBody:r}){(async()=>{const o=r.querySelectorAll("pre>code");o.length!==0&&(t||(t=await oE(()=>import("./index-Bj2Qo4Z7.js"),__vite__mapDeps([0,1,2])).then(g=>g.default),e&&await e(t)),o.forEach(g=>{t.highlightElement(g)}))})()}}}const zw=window.React.forwardRef,$w=window.React.useImperativeHandle,Gw=window.React.useState;function Ww(e,t){const[r,o]=Gw(localStorage.getItem("md-code")||"");return $w(t,()=>({getCode(){return r}})),wn.jsx("div",{className:"code-editor",children:wn.jsx($S,{value:r,plugins:[Bw(),Hw(),Uw()],onChange:g=>{localStorage.setItem("md-code",g),o(g)}})})}const Vw=zw(Ww);var tE={exports:{}},rE={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,o){return r<>>32-o},rotr:function(r,o){return r<<32-o|r>>>o},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var o=0;o0;r--)o.push(Math.floor(Math.random()*256));return o},bytesToWords:function(r){for(var o=[],g=0,v=0;g>>5]|=r[g]<<24-v%32;return o},wordsToBytes:function(r){for(var o=[],g=0;g>>5]>>>24-g%32&255);return o},bytesToHex:function(r){for(var o=[],g=0;g>>4).toString(16)),o.push((r[g]&15).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],g=0;g>>6*(3-E)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var o=[],g=0,v=0;g>>6-v*2);return o}};rE.exports=t})();var qw=rE.exports,rd={utf8:{stringToBytes:function(e){return rd.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(rd.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r + * @license MIT + */var Kw=function(e){return e!=null&&(nE(e)||Yw(e)||!!e._isBuffer)};function nE(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Yw(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&nE(e.slice(0,0))}(function(){var e=qw,t=jg.utf8,r=Kw,o=jg.bin,g=function(v,E){v.constructor==String?E&&E.encoding==="binary"?v=o.stringToBytes(v):v=t.stringToBytes(v):r(v)?v=Array.prototype.slice.call(v,0):!Array.isArray(v)&&v.constructor!==Uint8Array&&(v=v.toString());for(var b=e.bytesToWords(v),N=v.length*8,F=1732584193,L=-271733879,H=-1732584194,ie=271733878,re=0;re>>24)&16711935|(b[re]<<24|b[re]>>>8)&4278255360;b[N>>>5]|=128<>>9<<4)+14]=N;for(var Ae=g._ff,$e=g._gg,Be=g._hh,Ne=g._ii,re=0;re>>0,L=L+Ke>>>0,H=H+Re>>>0,ie=ie+$t>>>0}return e.endian([F,L,H,ie])};g._ff=function(v,E,b,N,F,L,H){var ie=v+(E&b|~E&N)+(F>>>0)+H;return(ie<>>32-L)+E},g._gg=function(v,E,b,N,F,L,H){var ie=v+(E&N|b&~N)+(F>>>0)+H;return(ie<>>32-L)+E},g._hh=function(v,E,b,N,F,L,H){var ie=v+(E^b^N)+(F>>>0)+H;return(ie<>>32-L)+E},g._ii=function(v,E,b,N,F,L,H){var ie=v+(b^(E|~N))+(F>>>0)+H;return(ie<>>32-L)+E},g._blocksize=16,g._digestsize=16,tE.exports=function(v,E){if(v==null)throw new Error("Illegal argument "+v);var b=e.wordsToBytes(g(v,E));return E&&E.asBytes?b:E&&E.asString?o.bytesToString(b):e.bytesToHex(b)}})();var Xw=tE.exports;const Bf=Dc(Xw),Jw=`/** +* 支持React、Antd、dayjs 等插件使用,需要从window对象中导入: +* eg: const { Button } = window.antd; +*/ +export default ({ id, type, config }, ref) => { + const { Button } = window.antd; + const format = () => { + return dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); + }; + return ( +
+ +

{format()}

+
+ ); +}; +`,Qw=`.bgColor{ + background-color: coral; + height: 150px; + padding: 50px; + text-align: center; + p{ + color: #fff; + line-height: 30px; + } +}`,Zw=`/** +* 组件配置和属性值,默认需要导出一个模块 +*/ + +export default { + // 组件属性配置JSON + attrs: [ + { + type: 'Title', + label: '基础设置', + key: 'basic', + }, + { + type: 'Variable', + label: '按钮名称', + name: ['text'], + }, + { + type: 'Select', + label: '按钮类型', + name: ['type'], + props: { + options: [ + { value: 'primary', label: 'primary' }, + { value: 'default', label: 'default' }, + { value: 'ghost', label: 'ghost' }, + { value: 'dashed', label: 'dashed' }, + { value: 'text', label: 'text' }, + { value: 'link', label: 'link' }, + ], + }, + }, + { + type: 'Switch', + label: '块状按钮', + name: ['block'], + } + ], + config: { + // 组件默认属性值 + props: { + type: 'primary', + text: '按钮', + }, + // 组件样式 + style: {}, + // 事件 + events: [], + }, + // 组件事件 + events: [ + { + value: 'onClick', + name: '点击事件', + }, + ], + methods: [ + { + name: 'startLoading', + title: '开始loading', + }, + { + name: 'endLoading', + title: '结束loading', + }, + ], +}; +`,e6=`# 自定义组件 + +## 介绍 + +这是一个自定义组件功能,支持属性配置,在线编译,在线预览,通过自定义组件可以满足更多个性化需求。 + +## 功能介绍 +1. 在线开发 +2. 代码格式化 +3. 在线编译 +4. 在线预览 +5. 支持样式配置、属性配置 + +> 开发的过程中如果遇到任何问题,可以查阅开发文档或者联系开发人员。 + + +## 使用介绍 + +**一、index.jsx** +\`index.jsx\` 为自定义组件源码,支持 \`React 18\` \`Antd\` \`dayjs\` 等插件,无需导入,直接使用即可。 + +**二、index.less** +\`index.less\` 为自定义组件样式,支持 \`Less\` 语法,编写的过程中尽量使用独有class,不要和全局样式冲突,比如:btn + +**三、config.js** + +\`config.js\` 为自定义组件配置,目前只支持以json的形式配置组件属性,暂不支持源码开发。同时,配置的格式均为固定模式,具体可以参考开发文档。 + +**四、index.md** + +\`index.md\` 为自定义组件文档,支持 \`Markdown\` 语法,此文档方便其他开发者查看,后续会在组件详情中展示。 + +## 源码展示 + +下面展示的是 \`index.jsx\` 源码,id、type、config 三个参数是固定写法,具体可以参考开发文档。 + +\`\`\`js +/** +* 支持React、Antd、dayjs 等插件使用,不用导入,直接用即可。 +*/ +export default ({ id, type, config },ref) => { + const format = () => { + return dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); + }; + return ( +
+ +

{format()}

+
+ ); +}; +\`\`\` +`,t6=window.React.useEffect,nh=window.React.useRef,Rf=window.React.useState,jf=window.antd.Button,r6=window.antd.Space,n6=window.antd.Spin,i6=window.antd.Tabs,x6=()=>{const e=nh(),t=nh(),r=nh(),o=nh(),[g,v]=Rf([]),[E,b]=Rf(),[N,F]=Rf(!1),L=uE(),{id:H}=lE();cE(Ke=>Ke.userInfo),dE.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/loader.js"}});const ie=[{key:"react",label:"index.jsx",children:wn.jsx(e9,{ref:e})},{key:"less",label:"index.less",forceRender:!0,children:wn.jsx(o9,{ref:t})},{key:"config",label:"config.js",forceRender:!0,children:wn.jsx(d9,{ref:r})},{key:"readme.md",label:"readme.md",forceRender:!0,children:wn.jsx(Vw,{ref:o})}],re=async()=>{try{F(!0),F(!1),v(ie)}catch{So.error("加载wasm失败,请刷新重试"),F(!1)}};t6(()=>{H&&gE(parseInt(H)).then(Ke=>{localStorage.setItem("react-code",Ke.hash?Ke.react_source:Jw),localStorage.setItem("less-code",Ke.hash?Ke.less_source:Qw),localStorage.setItem("config-code",Ke.hash?Ke.config_source:Zw),localStorage.setItem("md-code",Ke.hash?Ke.md_source:e6),re(),b(Ke)}).catch(()=>{F(!1)})},[H]);const Ae=Ke=>{var Re,$t,ze;switch(Ke){case"react":(Re=e.current)==null||Re.refresh();break;case"less":($t=t.current)==null||$t.refresh();break;case"config":(ze=r.current)==null||ze.refresh();break}},$e=()=>{L("/libs")},Be=async()=>{var ht,rr,Kt,vt;const Ke=(ht=e.current)==null?void 0:ht.getCode(),Re=(rr=t.current)==null?void 0:rr.getCode(),$t=(Kt=r.current)==null?void 0:Kt.getCode(),ze=(vt=o.current)==null?void 0:vt.getCode();if(!H)return So.success("组件id不存在");if(!Ke||!$t)return So.success("组件代码和组件配置不能为空");await yE({react_source:Ke,less_source:Re,config_source:$t,md_source:ze,id:H,hash:Bf(Ke+Re+$t)}),So.success("保存成功")},Ne=async()=>{var Kt,vt,Yt;const Ke=(Kt=e.current)==null?void 0:Kt.getCompileCode(),Re=(vt=t.current)==null?void 0:vt.getCompileCode(),$t=(Yt=r.current)==null?void 0:Yt.getCode();if(!H)return So.success("组件id不存在");if(!Ke||!$t)return So.success("组件代码和组件配置不能为空");if((E==null?void 0:E.release_hash)===Bf(Ke+Re+$t))return So.success("系统未检测到当前组件代码有变化");const ze=await et(Ke,"index.js");if(!ze)return So.error("react文件上传失败,请重新保存");let ht="";if(Re&&(ht=await et(Re,"index.css"),!ht))return So.error("css文件上传失败,请重新保存");const rr=await et($t,"config.js");if(!rr)return So.error("配置文件上传失败,请重新保存");pE.confirm({title:"确认",content:"确认发布吗?",okText:"确认",cancelText:"取消",onOk:async()=>{await vE({lib_id:parseInt(H),release_id:hE(),react_url:ze,css_url:ht,config_url:rr,release_hash:Bf(Ke+Re+$t)}),So.success("发布成功")}})},et=async(Ke,Re)=>{try{if(!Ke)return"";const $t=new Blob([Ke],{type:"application/javascript"}),ze=new File([$t],Re,{type:"application/javascript"});return""}catch($t){return console.error("文件上传失败",$t),""}};return wn.jsx(n6,{spinning:N,tip:"正在编译中...",children:wn.jsx(i6,{items:g,tabBarStyle:{paddingLeft:65,paddingRight:30},onChange:Ae,tabBarExtraContent:wn.jsxs(r6,{size:20,children:[wn.jsxs("a",{href:"javascript:;",target:"_blank",children:[wn.jsx(EE,{}),wn.jsx("span",{style:{marginLeft:3},children:"开发文档"})]}),wn.jsx(jf,{type:"default",onClick:$e,children:"返回"}),wn.jsx(jf,{type:"primary",onClick:Be,children:"保存"}),wn.jsx(jf,{type:"primary",danger:!0,onClick:Ne,children:"发布"})]})})})};export{x6 as default}; diff --git a/dist/editor/assets/LibList-CjwxWvL0.js b/dist/editor/assets/LibList-CjwxWvL0.js new file mode 100644 index 0000000..26398d3 --- /dev/null +++ b/dist/editor/assets/LibList-CjwxWvL0.js @@ -0,0 +1 @@ +import{a as v,u as C,j as t,P as I,m as P}from"./index-BBkS68sv.js";import{g as k}from"./lib-BFfozajJ.js";import{s as e}from"./index.module-DFRKY25f.js";import{C as z}from"./CodeOutlined-EqGcmDkC.js";import{U}from"./UserOutlined-BbJ58T22.js";const d=window.antd.Button,b=window.antd.Input,E=window.antd.Skeleton,R=window.antd.Space,B=window.antd.Pagination,O=window.React.useEffect,a=window.React.useState,D=()=>{const[u,p]=a([]),[h,n]=a(!1),[g,r]=a(1),[m,T]=a(10),[f,x]=a(0),{userInfo:w,isUpdateList:j}=v(s=>({userInfo:s.userInfo,isUpdateList:s.isUpdateList})),S=C();O(()=>{i(1,"")},[j]);const i=async(s,o)=>{try{n(!0);const{list:l,total:N}=await k({pageNum:s,pageSize:m,keyword:o});p(l),x(N),n(!1)}catch{n(!1)}},y=s=>{r(1),i(1,s)},L=s=>{r(s),i(s)},c=(s,o)=>{s==="edit"?S(`/lib/${o}`):P.info("暂未开放")};return t.jsxs("div",{className:e.libWrap,children:[t.jsx("div",{className:e.search,children:t.jsx(b.Search,{placeholder:"输入组件名称或标识",allowClear:!0,enterButton:"Search",style:{width:500},size:"large",onSearch:y})}),t.jsx(E,{loading:h,active:!0,paragraph:{rows:3},children:u.map(s=>t.jsxs("div",{className:e.item,children:[t.jsxs("div",{className:e.itemInfo,children:[t.jsx("h2",{children:s.name}),t.jsx("p",{className:e.remark,children:s.description}),t.jsxs("p",{children:[t.jsx(U,{style:{fontSize:14,marginRight:5}}),s.sso_name," ",s.created_at]})]}),t.jsx(R,{children:w.userId===s.user_id?t.jsx(d,{type:"primary",icon:t.jsx(z,{}),onClick:()=>c("edit",s.id),children:"开发"}):t.jsx(d,{type:"primary",icon:t.jsx(I,{}),onClick:()=>c("install",s.id),children:"安装"})})]},s.id))}),t.jsx(B,{style:{textAlign:"right",marginTop:16},total:f,current:g,pageSize:12,showTotal:s=>`总共 ${s} 条`,onChange:L})]})};export{D as default}; diff --git a/dist/editor/assets/LockOutlined-Ds8QM0LA.js b/dist/editor/assets/LockOutlined-Ds8QM0LA.js new file mode 100644 index 0000000..ef83a09 --- /dev/null +++ b/dist/editor/assets/LockOutlined-Ds8QM0LA.js @@ -0,0 +1 @@ +import{av as e,aw as n}from"./index-BBkS68sv.js";var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const r=i,a=window.React;var d=function(c,t){return a.createElement(e,n({},c,{ref:t,icon:r}))};const h=a.forwardRef(d);var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const u=s,l=window.React;var v=function(c,t){return l.createElement(e,n({},c,{ref:t,icon:u}))};const k=l.forwardRef(v);export{h as L,k as a}; diff --git a/dist/editor/assets/Login-C7AxXgvl.js b/dist/editor/assets/Login-C7AxXgvl.js new file mode 100644 index 0000000..4e2c142 --- /dev/null +++ b/dist/editor/assets/Login-C7AxXgvl.js @@ -0,0 +1 @@ +import{u as c,a as u,j as e,l as m,s as d}from"./index-BBkS68sv.js";const j="_container_l0quo_1",p="_login_l0quo_8",x="_form_l0quo_13",f="_title_l0quo_17",s={container:j,login:p,form:x,title:f},g=window.antd.Button,t=window.antd.Form,a=window.antd.Input;function _(){const r=c(),i=u(n=>n.saveUserInfo),l=async n=>{const o=await m(n);o.token&&(d.set("token",o.token),i(o),r("/projects"))};return e.jsx("div",{className:s.container,children:e.jsxs("div",{className:s.login,children:[e.jsx("div",{className:s.title,children:"Mars低代码"}),e.jsxs(t,{name:"basic",layout:"vertical",className:s.form,onFinish:l,initialValues:{userName:"admin@marsview.cc",userPwd:"123456"},autoComplete:"off",children:[e.jsx(t.Item,{label:"用户名",name:"userName",rules:[{required:!0,message:"Please input your username!"}],children:e.jsx(a,{})}),e.jsx(t.Item,{label:"密码",name:"userPwd",rules:[{required:!0,message:"Please input your password!"}],children:e.jsx(a.Password,{})}),e.jsx(t.Item,{children:e.jsx(g,{type:"primary",block:!0,htmlType:"submit",children:"登录"})})]})]})})}export{_ as default}; diff --git a/dist/editor/assets/MemberSetting-Ch9IUWbG.js b/dist/editor/assets/MemberSetting-Ch9IUWbG.js new file mode 100644 index 0000000..57e458b --- /dev/null +++ b/dist/editor/assets/MemberSetting-Ch9IUWbG.js @@ -0,0 +1 @@ +import{a as I,o as b,j as e}from"./index-BBkS68sv.js";import{a as v}from"./pageMember-Dpti6EYv.js";const R=window.React.useImperativeHandle,l=window.React.useState,F=window.React.forwardRef,M=window.antd.Modal,n=window.antd.Form,i=window.antd.Radio,C=window.antd.Input,S=(s,u)=>{const[m,d]=l(!1),[p,o]=l(!1),[r,w]=l(1),{pageId:f}=I(t=>({pageId:t.page.pageId})),[a]=n.useForm(),g=b().id;R(u,()=>({open(t){w(t),d(!0)}}));const x=async()=>{if(!await a.validateFields())return;const{role:h,user_name:j}=a.getFieldsValue();try{o(!0),await v.addPageMember({type:r,page_id:r==1?parseInt(g):f,role:h,user_name:j}),o(!1),c(),s==null||s.update()}catch{o(!1)}},c=()=>{a.resetFields(),d(!1)};return e.jsx(M,{title:r===1?"添加开发者":"添加页面成员",open:m,confirmLoading:p,onOk:x,onCancel:c,okText:"提交",cancelText:"取消",children:e.jsxs(n,{form:a,labelCol:{span:6},wrapperCol:{span:16},initialValues:{role:1},children:[e.jsx(n.Item,{label:"用户",name:"user_name",rules:[{required:!0,message:"请输入用户邮箱"}],children:e.jsx(C,{placeholder:"请输入用户邮箱"})}),e.jsx(n.Item,{label:"角色",name:"role",rules:[{required:!0,message:"请选择角色"}],children:e.jsxs(i.Group,{children:[e.jsx(i,{value:1,children:"开发者"}),e.jsx(i,{value:2,children:"体验者"})]})})]})})},T=F(S);export{T as M}; diff --git a/dist/editor/assets/PageList-JOLwI-VY.js b/dist/editor/assets/PageList-JOLwI-VY.js new file mode 100644 index 0000000..7280630 --- /dev/null +++ b/dist/editor/assets/PageList-JOLwI-VY.js @@ -0,0 +1 @@ +import{a as E,u as L,b as O,j as e,C as U,m as u,c as I,M as D,e as z,f as w}from"./index-BBkS68sv.js";import{s as l}from"./index.module-DFRKY25f.js";import{E as A,C as F,S as $,a,b as d}from"./SendOutlined-B7Eu_wmm.js";import{U as B}from"./UserOutlined-BbJ58T22.js";import{D as M}from"./DeleteOutlined-B6bglta-.js";const G=window.React.useEffect,H=window.React.useRef,p=window.React.useState,V=window.antd.Button,W=window.antd.Col,q=window.antd.Empty,J=window.antd.Image,K=window.antd.Layout,Q=window.antd.Pagination,X=window.antd.Row,Y=window.antd.Spin,j=window.antd.Tag,r=window.antd.Tooltip,Z=window.dayjs;function le(){const[s,n]=p(!0),[i,c]=p([]),[h,_]=p(0),[f,v]=p(1),[m,C]=p(!1),[R,T]=p(""),y=H(),{userInfo:te,isUpdateList:k}=E(t=>({userInfo:t.userInfo,isUpdateList:t.isUpdateList})),P=L();G(()=>{x()},[k]);const x=async(t=f)=>{n(!0);try{const o=await O({pageNum:t,pageSize:12});_((o==null?void 0:o.total)||0),c((o==null?void 0:o.list)||[]),n(!1)}catch{n(!1)}},S=t=>{v(t),x(t)},b=()=>{var t;(t=y.current)==null||t.open()},g=async(t,o,N)=>{if(t==="preview"){if(!o.preview_img)return u.warning("该页面未生成预览图");T(o.preview_img),C(!0);return}if(!N)return u.warning("该页面未授权,无法访问");if(t==="edit")return P(`/editor/${o==null?void 0:o.id}/edit`);t==="copy"&&(await I({id:o.id}),u.success("复制成功"),x()),t==="delete"&&D.confirm({title:"确认",content:"确认删除吗?",okText:"确认",cancelText:"取消",onOk:async()=>{await z({id:o.id}),u.success("删除成功"),x()}})};return e.jsx(e.Fragment,{children:e.jsxs(K.Content,{className:l.pageList,children:[e.jsx(Y,{spinning:s,size:"large",children:e.jsx(X,{gutter:[20,20],children:i.map(t=>{const o=!!t.id;return e.jsx(W,{span:6,children:e.jsxs("section",{className:l.card,style:{borderRadius:8,opacity:o?1:.6,background:o?"none":"url('/imgs/cross-bg.png')",overflow:"hidden"},children:[e.jsxs("div",{className:l.itemContent,onClick:()=>g("edit",t,o),children:[e.jsx("div",{className:l.itemHeader,children:e.jsx(ee,{item:t})}),e.jsx("div",{className:l.itemTitle,children:t.name}),e.jsx("div",{className:l.itemRemark,children:t.remark||"暂无描述"}),e.jsxs("div",{className:l.updateUser,children:[e.jsxs("span",{style:{marginRight:10},children:[e.jsx(B,{style:{fontSize:15,marginRight:5}}),t.user_name]}),e.jsxs("span",{children:["更新时间:",Z(t.updated_at).fromNow()]})]})]}),e.jsxs("div",{className:l.itemFooter,children:[e.jsx(r,{title:"效果图预览",children:e.jsx(A,{onClick:()=>g("preview",t,o)})}),e.jsx(r,{title:"页面复制",children:e.jsx(F,{onClick:()=>g("copy",t,o)})}),e.jsx(r,{title:"页面删除",children:e.jsx(M,{onClick:()=>g("delete",t,o)})}),e.jsx(r,{title:"页面访问",children:e.jsx($,{onClick:()=>{window.open(`http://admin.marsview.cc/page/prd/${t.id}`,"_blank")}})})]})]},t.id)},t.id)})})}),e.jsx(J,{style:{display:"none"},src:R,preview:{visible:m,onVisibleChange:t=>{C(t)}}}),h>0?e.jsx(Q,{style:{textAlign:"right",marginTop:16},total:h,current:f,pageSize:12,showTotal:t=>`总共 ${t} 条`,onChange:S}):!s&&e.jsx(q,{style:{marginTop:100},children:e.jsx(V,{type:"primary",onClick:b,children:"创建页面"})}),e.jsx(U,{createRef:y})]})})}const ee=({item:s})=>{if(s.stg_state===1&&s.pre_state===1&&s.prd_state===1)return e.jsx(j,{children:e.jsx(r,{title:"待开发",children:"NEW"})});let n={color:"",icon:e.jsx(a,{}),tooltip:"已发布"},i={color:"",icon:e.jsx(a,{}),tooltip:"已发布"},c={color:"",icon:e.jsx(a,{}),tooltip:"已发布"};return s.stg_state===4?n={color:"red",icon:e.jsx(d,{}),tooltip:"版本已回滚"}:s.stg_state===3?n={color:"success",icon:e.jsx(a,{}),tooltip:"版本已发布"}:s.stg_state===2&&s.stg_publish_id?n={color:"warning",icon:e.jsx(d,{}),tooltip:"版本已落后"}:n={color:"",icon:e.jsx(w,{}),tooltip:"版本未发布"},s.pre_state===4?i={color:"red",icon:e.jsx(d,{}),tooltip:"版本已回滚"}:s.pre_state===3?i={color:"success",icon:e.jsx(a,{}),tooltip:"版本已发布"}:s.pre_state===2&&s.pre_publish_id?i={color:"warning",icon:e.jsx(d,{}),tooltip:"版本已落后"}:i={color:"",icon:e.jsx(w,{}),tooltip:"版本未发布"},s.prd_state===4?c={color:"red",icon:e.jsx(d,{}),tooltip:"版本已回滚"}:s.prd_state===3?c={color:"success",icon:e.jsx(a,{}),tooltip:"版本已发布"}:s.prd_state===2&&s.prd_publish_id?c={color:"warning",icon:e.jsx(d,{}),tooltip:"版本已落后"}:c={color:"",icon:e.jsx(w,{}),tooltip:"版本未发布"},e.jsxs(e.Fragment,{children:[e.jsx(r,{title:n.tooltip,children:e.jsx(j,{color:n.color,icon:n.icon,children:"STG"})}),e.jsx(r,{title:i.tooltip,children:e.jsx(j,{color:i.color,icon:i.icon,children:"PRE"})}),e.jsx(r,{title:c.tooltip,children:e.jsx(j,{color:c.color,icon:c.icon,children:"PRD"})})]})};export{le as default}; diff --git a/dist/editor/assets/ProjectList-BGRw_eqt.js b/dist/editor/assets/ProjectList-BGRw_eqt.js new file mode 100644 index 0000000..73b1243 --- /dev/null +++ b/dist/editor/assets/ProjectList-BGRw_eqt.js @@ -0,0 +1 @@ +import{a as v,u as P,g as S,j as t,m as o,M as R,d as T}from"./index-BBkS68sv.js";import{s as l}from"./index.module-DFRKY25f.js";import{L as $,a as E}from"./LockOutlined-Ds8QM0LA.js";import{D}from"./DeleteOutlined-B6bglta-.js";import{U as I}from"./UserOutlined-BbJ58T22.js";const u=window.antd.Card,O=window.antd.Col,_=window.antd.Dropdown,z=window.antd.Layout,N=window.antd.Row,A=window.antd.Pagination,M=window.antd.Spin,B=window.antd.Empty,F=window.antd.Button,U=window.React.useEffect,a=window.React.useState;function K(){const[d,r]=a(!0),[h,w]=a([]),[i,x]=a(-1),[g,m]=a(0),[p,f]=a(1);v(n=>n.userInfo.userId);const j=P();U(()=>{c()},[]);const c=async(n=p)=>{try{r(!0);const e=await S({pageNum:n,pageSize:12});r(!1),w((e==null?void 0:e.list)||[]),m((e==null?void 0:e.total)||0)}catch{r(!1)}},y=(n,e)=>{if(!e)return o.warning("该项目未授权,无法删除"),!1;R.confirm({title:"确认",content:"确认删除该项目吗?",okText:"确认",cancelText:"取消",onOk:async()=>{await T({id:n}),o.success("删除成功"),c()}})},k=[{key:"stg",label:t.jsx("a",{href:`http://admin.marsview.cc/project/stg/${i}`,target:"_blank",children:"STG"})},{key:"pre",label:t.jsx("a",{href:`http://admin.marsview.cc/project/pre/${i}`,target:"_blank",children:"PRE"})},{key:"prod",label:t.jsx("a",{href:`http://admin.marsview.cc/project/prd/${i}`,target:"_blank",children:"PRD"})}],b=n=>{f(n),c(n)},C=async(n,e)=>{if(!e)return o.warning("该项目未授权,无法访问"),!1;j(`/project/${n}/config`)},L=(n,e)=>{if(!e)return o.warning("该项目未授权,无法访问");x(n)};return t.jsx(t.Fragment,{children:t.jsxs(z.Content,{className:l.project,children:[t.jsx(M,{spinning:d,size:"large",children:t.jsx(N,{gutter:[20,20],children:h.map((n,e)=>{const s=!!n.id;return t.jsx(O,{span:6,children:t.jsx(u,{hoverable:!0,style:{opacity:s?1:.6,background:s?"none":"url('/imgs/cross-bg.png')"},actions:[t.jsx(_,{menu:{items:s?k:[]},trigger:["click"],children:t.jsxs("div",{onClick:()=>L(n.id,s),children:[t.jsx($,{}),t.jsx("span",{className:l.gabLeft,children:"访问地址"})]})},"link"),t.jsxs("div",{onClick:()=>y(n.id,s),children:[t.jsx(D,{}),t.jsx("span",{className:l.gabLeft,children:"删除项目"})]})],children:t.jsx("div",{onClick:()=>C(n.id,s),children:t.jsx(u.Meta,{style:{cursor:"pointer"},avatar:t.jsx("img",{src:n.logo,style:{width:32}}),title:n.name,description:t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{position:"absolute",top:15,right:15},children:s?null:t.jsx(E,{})}),t.jsx("p",{style:{color:"rgba(0, 0, 0, 0.88)"},children:n.remark||"暂无描述"}),t.jsxs("p",{style:{marginTop:10},children:[t.jsx(I,{style:{fontSize:14,marginRight:5}}),n.user_name,"  ",n.updated_at]})]})})})})},n.id||e)})})}),g>0?t.jsx(A,{style:{textAlign:"right",marginTop:16},total:g,current:p,pageSize:12,showTotal:n=>`总共 ${n} 条`,onChange:b}):!d&&t.jsx(B,{style:{marginTop:100},children:t.jsx(F,{type:"primary",onClick:()=>j("/project/0/config"),children:"创建项目"})})]})})}export{K as default}; diff --git a/dist/editor/assets/SaveOutlined-BQ_jcTgK.js b/dist/editor/assets/SaveOutlined-BQ_jcTgK.js new file mode 100644 index 0000000..0de90c1 --- /dev/null +++ b/dist/editor/assets/SaveOutlined-BQ_jcTgK.js @@ -0,0 +1 @@ +import{av as a,aw as c}from"./index-BBkS68sv.js";var d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const r=d,l=window.React;var s=function(t,e){return l.createElement(a,c({},t,{ref:e,icon:r}))};const w=l.forwardRef(s);var v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"};const u=v,i=window.React;var f=function(t,e){return i.createElement(a,c({},t,{ref:e,icon:u}))};const g=i.forwardRef(f);var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const O=h,o=window.React;var R=function(t,e){return o.createElement(a,c({},t,{ref:e,icon:O}))};const b=o.forwardRef(R);export{w as E,g as R,b as S}; diff --git a/dist/editor/assets/SearchForm-B1iYemKz.js b/dist/editor/assets/SearchForm-B1iYemKz.js new file mode 100644 index 0000000..9075fc0 --- /dev/null +++ b/dist/editor/assets/SearchForm-B1iYemKz.js @@ -0,0 +1 @@ +import{j as n}from"./index-BBkS68sv.js";const d="_searchForm_thbpy_1",h={searchForm:d},c=window.antd.Form,p=window.antd.Space,e=window.antd.Button;function x({form:s,initialValues:o,style:a,submit:i,reset:t,children:r}){const l=()=>{s==null||s.resetFields(),t==null||t()};return n.jsxs(c,{className:h.searchForm,style:a||{},form:s,layout:"inline",initialValues:o,children:[r,n.jsx(c.Item,{children:n.jsxs(p,{children:[n.jsx(e,{type:"primary",onClick:()=>i(),children:"搜索"}),n.jsx(e,{type:"default",onClick:l,children:"重置"})]})})]})}export{x as S}; diff --git a/dist/editor/assets/SendOutlined-B7Eu_wmm.js b/dist/editor/assets/SendOutlined-B7Eu_wmm.js new file mode 100644 index 0000000..b8e4870 --- /dev/null +++ b/dist/editor/assets/SendOutlined-B7Eu_wmm.js @@ -0,0 +1 @@ +import{av as c,aw as a}from"./index-BBkS68sv.js";var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const u=s,i=window.React;var v=function(e,t){return i.createElement(c,a({},e,{ref:t,icon:u}))};const y=i.forwardRef(v);var h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const m=h,l=window.React;var f=function(e,t){return l.createElement(c,a({},e,{ref:t,icon:m}))};const S=l.forwardRef(f);var C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const O=C,o=window.React;var g=function(e,t){return o.createElement(c,a({},e,{ref:t,icon:O}))};const M=o.forwardRef(g);var w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const z=w,r=window.React;var E=function(e,t){return r.createElement(c,a({},e,{ref:t,icon:z}))};const H=r.forwardRef(E);var p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};const R=p,d=window.React;var $=function(e,t){return d.createElement(c,a({},e,{ref:t,icon:R}))};const b=d.forwardRef($);export{S as C,H as E,b as S,y as a,M as b}; diff --git a/dist/editor/assets/SetterRender-CNqvv3GD.js b/dist/editor/assets/SetterRender-CNqvv3GD.js new file mode 100644 index 0000000..d637cfd --- /dev/null +++ b/dist/editor/assets/SetterRender-CNqvv3GD.js @@ -0,0 +1,59 @@ +import{$ as hI,a0 as bI,a1 as H6,j as U}from"./index-BBkS68sv.js";import{r as mI}from"./index-DsdcxFhl.js";import{M as MI}from"./ColorPicker-Dw8Os0Zn.js";import{a as DI}from"./VariableBind-O5QUcdA4.js";function bt(){return bt=Object.assign?Object.assign.bind():function(l){for(var u=1;u=O?d:O)),d}(hr(l),u,p)}),Wr={exports:{}};(function(l,u){var p="__lodash_hash_undefined__",d=1,O=2,f=9007199254740991,o="[object Arguments]",s="[object Array]",_="[object AsyncFunction]",v="[object Boolean]",y="[object Date]",w="[object Error]",g="[object Function]",e="[object GeneratorFunction]",t="[object Map]",r="[object Number]",n="[object Null]",a="[object Object]",c="[object Promise]",i="[object Proxy]",S="[object RegExp]",z="[object Set]",H="[object String]",M="[object Symbol]",R="[object Undefined]",D="[object WeakMap]",j="[object ArrayBuffer]",q="[object DataView]",C=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[s]=E[j]=E[v]=E[q]=E[y]=E[w]=E[g]=E[t]=E[r]=E[a]=E[S]=E[z]=E[H]=E[D]=!1;var I=typeof Ve=="object"&&Ve&&Ve.Object===Object&&Ve,Q=typeof self=="object"&&self&&self.Object===Object&&self,A=I||Q||Function("return this")(),te=u&&!u.nodeType&&u,ne=te&&l&&!l.nodeType&&l,ae=ne&&ne.exports===te,N=ae&&I.process,ce=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),Y=ce&&ce.isTypedArray;function le(b,m){for(var W=-1,F=b==null?0:b.length;++WK))return!1;var k=$.get(b);if(k&&$.get(m))return k==m;var ee=-1,Oe=!0,ge=W&O?new Ze:void 0;for($.set(b,m),$.set(m,b);++ee-1},we.prototype.set=function(b,m){var W=this.__data__,F=Je(W,b);return F<0?(++this.size,W.push([b,m])):W[F][1]=m,this},We.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new($e||we),string:new ze}},We.prototype.delete=function(b){var m=Xe(this,b).delete(b);return this.size-=m?1:0,m},We.prototype.get=function(b){return Xe(this,b).get(b)},We.prototype.has=function(b){return Xe(this,b).has(b)},We.prototype.set=function(b,m){var W=Xe(this,b),F=W.size;return W.set(b,m),this.size+=W.size==F?0:1,this},Ze.prototype.add=Ze.prototype.push=function(b){return this.__data__.set(b,p),this},Ze.prototype.has=function(b){return this.__data__.has(b)},me.prototype.clear=function(){this.__data__=new we,this.size=0},me.prototype.delete=function(b){var m=this.__data__,W=m.delete(b);return this.size=m.size,W},me.prototype.get=function(b){return this.__data__.get(b)},me.prototype.has=function(b){return this.__data__.has(b)},me.prototype.set=function(b,m){var W=this.__data__;if(W instanceof we){var F=W.__data__;if(!$e||F.length<199)return F.push([b,m]),this.size=++W.size,this;W=this.__data__=new We(F)}return W.set(b,m),this.size=W.size,this};var _r=Et?function(b){return b==null?[]:(b=Object(b),function(m,W){for(var F=-1,G=m==null?0:m.length,$=0,J=[];++F-1&&b%1==0&&b-1&&b%1==0&&b<=f}function Lt(b){var m=typeof b;return b!=null&&(m=="object"||m=="function")}function Ne(b){return b!=null&&typeof b=="object"}var Nt=Y?function(b){return function(m){return b(m)}}(Y):function(b){return Ne(b)&&At(b.length)&&!!E[Le(b)]};function yr(b){return(m=b)!=null&&At(m.length)&&!$t(m)?pr(b):Or(b);var m}l.exports=function(b,m){return Ht(b,m)}})(Wr,Wr.exports);var FI=mt(Wr.exports);function g6(l,u,p){return l[u]?l[u][0]?l[u][0][p]:l[u][p]:u==="contentBoxSize"?l.contentRect[p==="inlineSize"?"width":"height"]:void 0}function HI(l){l===void 0&&(l={});var u=l.onResize,p=ue(void 0);p.current=u;var d=l.round||Math.round,O=ue(),f=I6({width:void 0,height:void 0}),o=f[0],s=f[1],_=ue(!1);Be(function(){return _.current=!1,function(){_.current=!0}},[]);var v=ue({width:void 0,height:void 0}),y=function(w,g){var e=ue(null),t=ue(null);t.current=g;var r=ue(null);Be(function(){n()});var n=Zt(function(){var a=r.current,c=t.current,i=a||(c?c instanceof Element?c:c.current:null);e.current&&e.current.element===i&&e.current.subscriber===w||(e.current&&e.current.cleanup&&e.current.cleanup(),e.current={element:i,subscriber:w,cleanup:i?w(i):void 0})},[w]);return Be(function(){return function(){e.current&&e.current.cleanup&&(e.current.cleanup(),e.current=null)}},[]),Zt(function(a){r.current=a,n()},[n])}(Zt(function(w){return O.current&&O.current.box===l.box&&O.current.round===d||(O.current={box:l.box,round:d,instance:new ResizeObserver(function(g){var e=g[0],t=l.box==="border-box"?"borderBoxSize":l.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",r=g6(e,t,"inlineSize"),n=g6(e,t,"blockSize"),a=r?d(r):void 0,c=n?d(n):void 0;if(v.current.width!==a||v.current.height!==c){var i={width:a,height:c};v.current.width=a,v.current.height=c,p.current?p.current(i):_.current||s(i)}})}),O.current.instance.observe(w,{box:l.box}),function(){O.current&&O.current.instance.unobserve(w)}},[l.box,d]),l.ref);return B6(function(){return{ref:y,width:o.width,height:o.height}},[y,o.width,o.height])}var II="allotment-module_splitView__L-yRc",BI="allotment-module_sashContainer__fzwJF",VI="allotment-module_splitViewContainer__rQnVa",A6="allotment-module_splitViewView__MGZ6O",$I="allotment-module_vertical__WSwwa",AI="allotment-module_horizontal__7doS8",LI="allotment-module_separatorBorder__x-rDS";let ht,L6=!1,N6=!1;typeof navigator=="object"&&(ht=navigator.userAgent,N6=ht.indexOf("Macintosh")>=0,L6=(ht.indexOf("Macintosh")>=0||ht.indexOf("iPad")>=0||ht.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const x6=L6,NI=N6,br=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?SI:Be;class xI{constructor(){this._size=void 0}getSize(){return this._size}setSize(u){this._size=u}}function Qt(l,u){const p=l.length,d=p-u.length;return d>=0&&l.slice(d,p)===u}var U6={exports:{}};(function(l){var u=Object.prototype.hasOwnProperty,p="~";function d(){}function O(_,v,y){this.fn=_,this.context=v,this.once=y||!1}function f(_,v,y,w,g){if(typeof y!="function")throw new TypeError("The listener must be a function");var e=new O(y,w||_,g),t=p?p+v:v;return _._events[t]?_._events[t].fn?_._events[t]=[_._events[t],e]:_._events[t].push(e):(_._events[t]=e,_._eventsCount++),_}function o(_,v){--_._eventsCount==0?_._events=new d:delete _._events[v]}function s(){this._events=new d,this._eventsCount=0}Object.create&&(d.prototype=Object.create(null),new d().__proto__||(p=!1)),s.prototype.eventNames=function(){var _,v,y=[];if(this._eventsCount===0)return y;for(v in _=this._events)u.call(_,v)&&y.push(p?v.slice(1):v);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(_)):y},s.prototype.listeners=function(_){var v=p?p+_:_,y=this._events[v];if(!y)return[];if(y.fn)return[y.fn];for(var w=0,g=y.length,e=new Array(g);w-1&&(l.splice(p,1),l.unshift(u))}function mr(l,u){const p=l.indexOf(u);p>-1&&(l.splice(p,1),l.push(u))}function _e(l,u,p=1){const d=Math.max(0,Math.ceil((u-l)/p)),O=new Array(d);let f=-1;for(;++f=u||i<0||w&&c-v>=f}function r(){var c=Mr();if(t(c))return n(c);s=setTimeout(r,function(i){var S=u-(i-_);return w?rB(S,f-(i-v)):S}(c))}function n(c){return s=void 0,g&&d?e(c):(d=O=void 0,o)}function a(){var c=Mr(),i=t(c);if(d=arguments,O=this,_=c,i){if(s===void 0)return function(S){return v=S,s=setTimeout(r,u),y?e(S):o}(_);if(w)return s=setTimeout(r,u),e(_)}return s===void 0&&(s=setTimeout(r,u)),o}return u=b6(u)||0,Cr(p)&&(y=!!p.leading,f=(w="maxWait"in p)?tB(b6(p.maxWait)||0,u):f,g="trailing"in p?!!p.trailing:g),a.cancel=function(){s!==void 0&&clearTimeout(s),v=0,d=_=O=s=void 0},a.flush=function(){return s===void 0?o:n(Mr())},a}),aB="sash-module_sash__K-9lB",cB="sash-module_disabled__Hm-wx",iB="sash-module_mac__Jf6OJ",m6="sash-module_vertical__pB-rs",uB="sash-module_minimum__-UKxp",lB="sash-module_maximum__TCWxD",M6="sash-module_horizontal__kFbiw",Dr="sash-module_hover__80W6I",Sr="sash-module_active__bJspD";let se=function(l){return l.Vertical="VERTICAL",l.Horizontal="HORIZONTAL",l}({}),oe=function(l){return l.Disabled="DISABLED",l.Minimum="MINIMUM",l.Maximum="MAXIMUM",l.Enabled="ENABLED",l}({}),G6=x6?20:8;const Q6=new Er;class D6 extends Er{get state(){return this._state}set state(u){this._state!==u&&(this.el.classList.toggle(cB,u===oe.Disabled),this.el.classList.toggle("sash-disabled",u===oe.Disabled),this.el.classList.toggle(uB,u===oe.Minimum),this.el.classList.toggle("sash-minimum",u===oe.Minimum),this.el.classList.toggle(lB,u===oe.Maximum),this.el.classList.toggle("sash-maximum",u===oe.Maximum),this._state=u,this.emit("enablementChange",u))}constructor(u,p,d){var O;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=nB(f=>f.classList.add("sash-hover",Dr),this.hoverDelay),this._state=oe.Enabled,this.onPointerStart=f=>{const o=f.pageX,s=f.pageY,_={startX:o,currentX:o,startY:s,currentY:s};this.el.classList.add("sash-active",Sr),this.emit("start",_),this.el.setPointerCapture(f.pointerId);const v=w=>{w.preventDefault();const g={startX:o,currentX:w.pageX,startY:s,currentY:w.pageY};this.emit("change",g)},y=w=>{w.preventDefault(),this.el.classList.remove("sash-active",Sr),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(w.pointerId),window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",y)};window.addEventListener("pointermove",v),window.addEventListener("pointerup",y)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(Sr)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",Dr)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",Dr)},this.el=document.createElement("div"),this.el.classList.add("sash",aB),this.el.dataset.testid="sash",u.append(this.el),NI&&this.el.classList.add("sash-mac",iB),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof d.size=="number"?(this.size=d.size,d.orientation===se.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=G6,Q6.on("onDidChangeGlobalSize",f=>{this.size=f,this.layout()})),this.layoutProvider=p,this.orientation=(O=d.orientation)!=null?O:se.Vertical,this.orientation===se.Horizontal?(this.el.classList.add("sash-horizontal",M6),this.el.classList.remove("sash-vertical",m6)):(this.el.classList.remove("sash-horizontal",M6),this.el.classList.add("sash-vertical",m6)),this.layout()}layout(){if(this.orientation===se.Vertical){const u=this.layoutProvider;this.el.style.left=u.getVerticalSashLeft(this)-this.size/2+"px",u.getVerticalSashTop&&(this.el.style.top=u.getVerticalSashTop(this)+"px"),u.getVerticalSashHeight&&(this.el.style.height=u.getVerticalSashHeight(this)+"px")}else{const u=this.layoutProvider;this.el.style.top=u.getHorizontalSashTop(this)-this.size/2+"px",u.getHorizontalSashLeft&&(this.el.style.left=u.getHorizontalSashLeft(this)+"px"),u.getHorizontalSashWidth&&(this.el.style.width=u.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}let Xt;var jr;(jr=Xt||(Xt={})).Distribute={type:"distribute"},jr.Split=function(l){return{type:"split",index:l}},jr.Invisible=function(l){return{type:"invisible",cachedVisibleSize:l}};let Ee=function(l){return l.Normal="NORMAL",l.Low="LOW",l.High="HIGH",l}({});class Y6{constructor(u,p,d){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=u,this.view=p,this.container.classList.add("split-view-view",A6),this.container.dataset.testid="split-view-view",typeof d=="number"?(this._size=d,this._cachedVisibleSize=void 0,u.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=d.cachedVisibleSize)}set size(u){this._size=u}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(u,p){u!==this.visible&&(u?(this.size=be(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof p=="number"?p:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",u),this.view.setVisible&&this.view.setVisible(u))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(u){this.container.style.pointerEvents=u?"":"none"}layout(u){this.layoutContainer(u),this.view.layout(this.size,u)}}class fB extends Y6{layoutContainer(u){this.container.style.left=`${u}px`,this.container.style.width=`${this.size}px`}}class oB extends Y6{layoutContainer(u){this.container.style.top=`${u}px`,this.container.style.height=`${this.size}px`}}class pB extends Er{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(u){this._startSnappingEnabled!==u&&(this._startSnappingEnabled=u,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(u){this._endSnappingEnabled!==u&&(this._endSnappingEnabled=u,this.updateSashEnablement())}constructor(u,p={},d,O,f){var o,s;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=_=>{this.emit("sashchange",_),this.saveProportions();for(const v of this.viewItems)v.enabled=!0},this.orientation=(o=p.orientation)!=null?o:se.Vertical,this.proportionalLayout=(s=p.proportionalLayout)!=null?s:!0,this.getSashOrthogonalSize=p.getSashOrthogonalSize,d&&(this.onDidChange=d),O&&(this.onDidDragStart=O),f&&(this.onDidDragEnd=f),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",BI),u.prepend(this.sashContainer),p.descriptor){this.size=p.descriptor.size;for(const[_,v]of p.descriptor.views.entries()){const y=v.size,w=v.container,g=v.view;this.addView(w,g,y,_,!0)}this.contentSize=this.viewItems.reduce((_,v)=>_+v.size,0),this.saveProportions()}}addView(u,p,d,O=this.viewItems.length,f){let o;o=typeof d=="number"?d:d.type==="split"?this.getViewSize(d.index)/2:d.type==="invisible"?{cachedVisibleSize:d.cachedVisibleSize}:p.minimumSize;const s=this.orientation===se.Vertical?new oB(u,p,o):new fB(u,p,o);if(this.viewItems.splice(O,0,s),this.viewItems.length>1){const _=this.orientation===se.Vertical?new D6(this.sashContainer,{getHorizontalSashTop:w=>this.getSashPosition(w),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:se.Horizontal}):new D6(this.sashContainer,{getVerticalSashLeft:w=>this.getSashPosition(w),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:se.Vertical}),v=this.orientation===se.Vertical?w=>({sash:_,start:w.startY,current:w.currentY}):w=>({sash:_,start:w.startX,current:w.currentX});_.on("start",w=>{var g;this.emit("sashDragStart"),this.onSashStart(v(w));const e=this.viewItems.map(t=>t.size);(g=this.onDidDragStart)==null||g.call(this,e)}),_.on("change",w=>this.onSashChange(v(w))),_.on("end",()=>{var w;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(e=>e.sash===_));const g=this.viewItems.map(e=>e.size);(w=this.onDidDragEnd)==null||w.call(this,g)}),_.on("reset",()=>{const w=this.sashItems.findIndex(n=>n.sash===_),g=_e(w,-1,-1),e=_e(w+1,this.viewItems.length),t=this.findFirstSnapIndex(g),r=this.findFirstSnapIndex(e);(typeof t!="number"||this.viewItems[t].visible)&&(typeof r!="number"||this.viewItems[r].visible)&&this.emit("sashreset",w)});const y={sash:_};this.sashItems.splice(O-1,0,y)}f||this.relayout(),f||typeof d=="number"||d.type!=="distribute"||this.distributeViewSizes()}removeView(u,p){if(u<0||u>=this.viewItems.length)throw new Error("Index out of bounds");const d=this.viewItems.splice(u,1)[0].view;if(this.viewItems.length>=1){const O=Math.max(u-1,0);this.sashItems.splice(O,1)[0].sash.dispose()}return this.relayout(),p&&p.type==="distribute"&&this.distributeViewSizes(),d}moveView(u,p,d){const O=this.getViewCachedVisibleSize(p),f=O===void 0?this.getViewSize(p):Xt.Invisible(O),o=this.removeView(p);this.addView(u,o,f,d)}getViewCachedVisibleSize(u){if(u<0||u>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[u].cachedVisibleSize}layout(u=this.size){const p=Math.max(this.size,this.contentSize);if(this.size=u,this.proportions)for(let d=0;dthis.viewItems[o].priority===Ee.Low),f=d.filter(o=>this.viewItems[o].priority===Ee.High);this.resize(this.viewItems.length-1,u-p,void 0,O,f)}this.distributeEmptySpace(),this.layoutViews()}resizeView(u,p){if(u<0||u>=this.viewItems.length)return;const d=_e(0,this.viewItems.length).filter(s=>s!==u),O=[...d.filter(s=>this.viewItems[s].priority===Ee.Low),u],f=d.filter(s=>this.viewItems[s].priority===Ee.High),o=this.viewItems[u];p=Math.round(p),p=be(p,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=p,this.relayout(O,f)}resizeViews(u){for(let p=0;pp+d.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(u){return u<0||u>=this.viewItems.length?-1:this.viewItems[u].size}isViewVisible(u){if(u<0||u>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[u].visible}setViewVisible(u,p){if(u<0||u>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[u].setVisible(p),this.distributeEmptySpace(u),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const u=[];let p=0;for(const s of this.viewItems)s.maximumSize-s.minimumSize>0&&(u.push(s),p+=s.size);const d=Math.floor(p/u.length);for(const s of u)s.size=be(d,s.minimumSize,s.maximumSize);const O=_e(0,this.viewItems.length),f=O.filter(s=>this.viewItems[s].priority===Ee.Low),o=O.filter(s=>this.viewItems[s].priority===Ee.High);this.relayout(f,o)}dispose(){this.sashItems.forEach(u=>u.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(u,p){const d=this.viewItems.reduce((O,f)=>O+f.size,0);this.resize(this.viewItems.length-1,this.size-d,void 0,u,p),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:u,start:p}){const d=this.sashItems.findIndex(O=>O.sash===u);(O=>{const f=this.viewItems.map(c=>c.size);let o,s,_=Number.NEGATIVE_INFINITY,v=Number.POSITIVE_INFINITY;const y=_e(d,-1,-1),w=_e(d+1,this.viewItems.length),g=y.reduce((c,i)=>c+(this.viewItems[i].minimumSize-f[i]),0),e=y.reduce((c,i)=>c+(this.viewItems[i].viewMaximumSize-f[i]),0),t=w.length===0?Number.POSITIVE_INFINITY:w.reduce((c,i)=>c+(f[i]-this.viewItems[i].minimumSize),0),r=w.length===0?Number.NEGATIVE_INFINITY:w.reduce((c,i)=>c+(f[i]-this.viewItems[i].viewMaximumSize),0);_=Math.max(g,r),v=Math.min(t,e);const n=this.findFirstSnapIndex(y),a=this.findFirstSnapIndex(w);if(typeof n=="number"){const c=this.viewItems[n],i=Math.floor(c.viewMinimumSize/2);o={index:n,limitDelta:c.visible?_-i:_+i,size:c.size}}if(typeof a=="number"){const c=this.viewItems[a],i=Math.floor(c.viewMinimumSize/2);s={index:a,limitDelta:c.visible?v+i:v-i,size:c.size}}this.sashDragState={start:O,current:O,index:d,sizes:f,minDelta:_,maxDelta:v,snapBefore:o,snapAfter:s}})(p)}onSashChange({current:u}){const{index:p,start:d,sizes:O,minDelta:f,maxDelta:o,snapBefore:s,snapAfter:_}=this.sashDragState;this.sashDragState.current=u;const v=u-d;this.resize(p,v,O,void 0,void 0,f,o,s,_),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(u){let p=0;for(let d=0;dy.size),O,f,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,_,v){if(u<0||u>=this.viewItems.length)return 0;const y=_e(u,-1,-1),w=_e(u+1,this.viewItems.length);if(f)for(const M of f)P6(y,M),P6(w,M);if(O)for(const M of O)mr(y,M),mr(w,M);const g=y.map(M=>this.viewItems[M]),e=y.map(M=>d[M]),t=w.map(M=>this.viewItems[M]),r=w.map(M=>d[M]),n=y.reduce((M,R)=>M+(this.viewItems[R].minimumSize-d[R]),0),a=y.reduce((M,R)=>M+(this.viewItems[R].maximumSize-d[R]),0),c=w.length===0?Number.POSITIVE_INFINITY:w.reduce((M,R)=>M+(d[R]-this.viewItems[R].minimumSize),0),i=w.length===0?Number.NEGATIVE_INFINITY:w.reduce((M,R)=>M+(d[R]-this.viewItems[R].maximumSize),0),S=Math.max(n,i,o),z=Math.min(c,a,s);let H=!1;if(_){const M=this.viewItems[_.index],R=p>=_.limitDelta;H=R!==M.visible,M.setVisible(R,_.size)}if(!H&&v){const M=this.viewItems[v.index],R=pf+o.size,0);let d=this.size-p;const O=_e(this.viewItems.length-1,-1,-1);typeof u=="number"&&mr(O,u);for(let f=0;d!==0&&fd+O.size,0);let p=0;for(const d of this.viewItems)d.layout(p),p+=d.size;(u=this.onDidChange)!=null&&u.call(this,this.viewItems.map(d=>d.size)),this.sashItems.forEach(d=>d.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(u=>u.size/this.contentSize))}updateSashEnablement(){let u=!1;const p=this.viewItems.map(_=>u=_.size-_.minimumSize>0||u);u=!1;const d=this.viewItems.map(_=>u=_.maximumSize-_.size>0||u),O=[...this.viewItems].reverse();u=!1;const f=O.map(_=>u=_.size-_.minimumSize>0||u).reverse();u=!1;const o=O.map(_=>u=_.maximumSize-_.size>0||u).reverse();let s=0;for(let _=0;_0||this.startSnappingEnabled)?v.state=oe.Minimum:a&&p[_]&&(s0)return;if(!d.visible&&d.snap)return p}}}class ft{constructor(u){this.size=void 0,this.size=u}getPreferredSize(){return this.size}}class S6{constructor(u,p){this.proportion=void 0,this.layoutService=void 0,this.proportion=u,this.layoutService=p}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class Yt{getPreferredSize(){}}class j6{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(u){if(typeof u=="number")this.layoutStrategy=new ft(u);else if(typeof u=="string"){const p=u.trim();if(Qt(p,"%")){const d=Number(p.slice(0,-1))/100;this.layoutStrategy=new S6(d,this.layoutService)}else if(Qt(p,"px")){const d=Number(p.slice(0,-2))/100;this.layoutStrategy=new ft(d)}else if(typeof Number.parseFloat(p)=="number"){const d=Number.parseFloat(p);this.layoutStrategy=new ft(d)}else this.layoutStrategy=new Yt}else this.layoutStrategy=new Yt}constructor(u,p){var d;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=u,this.element=p.element,this.minimumSize=typeof p.minimumSize=="number"?p.minimumSize:30,this.maximumSize=typeof p.maximumSize=="number"?p.maximumSize:Number.POSITIVE_INFINITY,typeof p.preferredSize=="number")this.layoutStrategy=new ft(p.preferredSize);else if(typeof p.preferredSize=="string"){const O=p.preferredSize.trim();if(Qt(O,"%")){const f=Number(O.slice(0,-1))/100;this.layoutStrategy=new S6(f,this.layoutService)}else if(Qt(O,"px")){const f=Number(O.slice(0,-2));this.layoutStrategy=new ft(f)}else if(typeof Number.parseFloat(O)=="number"){const f=Number.parseFloat(O);this.layoutStrategy=new ft(f)}else this.layoutStrategy=new Yt}else this.layoutStrategy=new Yt;this.priority=(d=p.priority)!=null?d:Ee.Normal,this.snap=typeof p.snap=="boolean"&&p.snap}layout(u){}}function z6(l){return l.minSize!==void 0||l.maxSize!==void 0||l.preferredSize!==void 0||l.priority!==void 0||l.visible!==void 0}const Tr=V6(({className:l,children:u},p)=>Re.createElement("div",{ref:p,className:zr("split-view-view",A6,l)},u));Tr.displayName="Allotment.Pane";const Z6=V6(({children:l,className:u,id:p,maxSize:d=1/0,minSize:O=30,proportionalLayout:f=!0,separator:o=!0,sizes:s,defaultSizes:_=s,snap:v=!1,vertical:y=!1,onChange:w,onReset:g,onVisibleChange:e,onDragStart:t,onDragEnd:r},n)=>{const a=ue(null),c=ue([]),i=ue(new Map),S=ue(null),z=ue(new Map),H=ue(new xI),M=ue([]),[R,D]=I6(!1),j=B6(()=>Re.Children.toArray(l).filter(Re.isValidElement),[l]),q=Zt(C=>{var T,E;const I=(T=M.current)==null?void 0:T[C];return typeof(I==null?void 0:I.preferredSize)=="number"&&((E=S.current)!=null&&E.resizeView(C,Math.round(I.preferredSize)),!0)},[]);return jI(n,()=>({reset:()=>{if(g)g();else{var C;(C=S.current)==null||C.distributeViewSizes();for(let T=0;T{var T;(T=S.current)==null||T.resizeViews(C)}})),br(()=>{let C=!0;_&&z.current.size!==_.length&&(C=!1,console.warn(`Expected ${_.length} children based on defaultSizes but found ${z.current.size}`)),C&&_&&(c.current=j.map(I=>I.key));const T=bt({orientation:y?se.Vertical:se.Horizontal,proportionalLayout:f},C&&_&&{descriptor:{size:_.reduce((I,Q)=>I+Q,0),views:_.map((I,Q)=>{var A,te,ne,ae;const N=i.current.get(c.current[Q]),ce=new j6(H.current,bt({element:document.createElement("div"),minimumSize:(A=N==null?void 0:N.minSize)!=null?A:O,maximumSize:(te=N==null?void 0:N.maxSize)!=null?te:d,priority:(ne=N==null?void 0:N.priority)!=null?ne:Ee.Normal},(N==null?void 0:N.preferredSize)&&{preferredSize:N==null?void 0:N.preferredSize},{snap:(ae=N==null?void 0:N.snap)!=null?ae:v}));return M.current.push(ce),{container:[...z.current.values()][Q],size:I,view:ce}})}});S.current=new pB(a.current,T,w,t,r),S.current.on("sashDragStart",()=>{var I;(I=a.current)==null||I.classList.add("split-view-sash-dragging")}),S.current.on("sashDragEnd",()=>{var I;(I=a.current)==null||I.classList.remove("split-view-sash-dragging")}),S.current.on("sashchange",I=>{if(e&&S.current){const Q=j.map(A=>A.key);for(let A=0;A{if(g)g();else{var Q;if(q(I)||q(I+1))return;(Q=S.current)==null||Q.distributeViewSizes()}});const E=S.current;return()=>{E.dispose()}},[]),br(()=>{if(R){const Y=j.map(V=>V.key),le=[...c.current],pe=Y.filter(V=>!c.current.includes(V)),Te=Y.filter(V=>c.current.includes(V)),ye=c.current.map(V=>!Y.includes(V));for(let V=ye.length-1;V>=0;V--){var C;ye[V]&&((C=S.current)!=null&&C.removeView(V),le.splice(V,1),M.current.splice(V,1))}for(const V of pe){var T,E,I,Q,A;const B=i.current.get(V),Z=new j6(H.current,bt({element:document.createElement("div"),minimumSize:(T=B==null?void 0:B.minSize)!=null?T:O,maximumSize:(E=B==null?void 0:B.maxSize)!=null?E:d,priority:(I=B==null?void 0:B.priority)!=null?I:Ee.Normal},(B==null?void 0:B.preferredSize)&&{preferredSize:B==null?void 0:B.preferredSize},{snap:(Q=B==null?void 0:B.snap)!=null?Q:v}));(A=S.current)!=null&&A.addView(z.current.get(V),Z,Xt.Distribute,Y.findIndex(X=>X===V)),le.splice(Y.findIndex(X=>X===V),0,V),M.current.splice(Y.findIndex(X=>X===V),0,Z)}for(;!FI(Y,le);)for(const[V,B]of Y.entries()){const Z=le.findIndex(X=>X===B);if(Z!==V){var te;(te=S.current)==null||te.moveView(z.current.get(B),Z,V);const X=le[Z];le.splice(Z,1),le.splice(V,0,X);break}}for(const V of pe){var ne;const B=Y.findIndex(X=>X===V),Z=M.current[B].preferredSize;Z!==void 0&&((ne=S.current)==null||ne.resizeView(B,Z))}for(const V of[...pe,...Te]){var ae,N;const B=i.current.get(V),Z=Y.findIndex(X=>X===V);B&&z6(B)&&B.visible!==void 0&&((ae=S.current)==null?void 0:ae.isViewVisible(Z))!==B.visible&&((N=S.current)==null||N.setViewVisible(Z,B.visible))}for(const V of Te){const B=i.current.get(V),Z=Y.findIndex(X=>X===V);if(B&&z6(B)){var ce;B.preferredSize!==void 0&&M.current[Z].preferredSize!==B.preferredSize&&(M.current[Z].preferredSize=B.preferredSize);let X=!1;B.minSize!==void 0&&M.current[Z].minimumSize!==B.minSize&&(M.current[Z].minimumSize=B.minSize,X=!0),B.maxSize!==void 0&&M.current[Z].maximumSize!==B.maxSize&&(M.current[Z].maximumSize=B.maxSize,X=!0),X&&((ce=S.current)==null||ce.layout())}}(pe.length>0||ye.length>0)&&(c.current=Y)}},[j,R,d,O,v]),Be(()=>{S.current&&(S.current.onDidChange=w)},[w]),Be(()=>{S.current&&(S.current.onDidDragStart=t)},[t]),Be(()=>{S.current&&(S.current.onDidDragEnd=r)},[r]),HI({ref:a,onResize:({width:C,height:T})=>{var E;C&&T&&((E=S.current)!=null&&E.layout(y?T:C),H.current.setSize(y?T:C),D(!0))}}),br(()=>{if(!R){var C;const{height:T,width:E}=a.current.getBoundingClientRect();(C=S.current)!=null&&C.layout(y?T:E),H.current.setSize(y?T:E),D(!0)}},[R,y]),Be(()=>{x6&&dB(20)},[]),Re.createElement("div",{ref:a,className:zr("split-view",y?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":o},II,y?$I:AI,{[LI]:o},u),id:p},Re.createElement("div",{className:zr("split-view-container",VI)},Re.Children.toArray(l).map(C=>{if(!Re.isValidElement(C))return null;const T=C.key;return C.type.displayName==="Allotment.Pane"?(i.current.set(T,C.props),Re.cloneElement(C,{key:T,ref:E=>{const I=C.ref;I&&(I.current=E),E?z.current.set(T,E):z.current.delete(T)}})):Re.createElement(Tr,{key:T,ref:E=>{E?z.current.set(T,E):z.current.delete(T)}},C)})))});function dB(l){const u=be(l,4,20),p=be(l,1,8);document.documentElement.style.setProperty("--sash-size",u+"px"),document.documentElement.style.setProperty("--sash-hover-size",p+"px"),function(d){G6=d,Q6.emit("onDidChangeGlobalSize",d)}(u)}Z6.displayName="Allotment";var Mee=Object.assign(Z6,{Pane:Tr}),qr={},Mt={};(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return d}});var u=window.React,p=(0,u.createContext)({}),d=p})(Mt);var J6={},X6={},Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});var OB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"account-book",theme:"filled"};Fr.default=OB;var P={};const K6=hI(bI);var Hr={},Dt={},ot={},k6={exports:{}};(function(l){function u(p){return p&&p.__esModule?p:{default:p}}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(k6);var eO=k6.exports,tO={exports:{}},rO={exports:{}},nO={exports:{}},aO={exports:{}};(function(l){function u(p){"@babel/helpers - typeof";return l.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},l.exports.__esModule=!0,l.exports.default=l.exports,u(p)}l.exports=u,l.exports.__esModule=!0,l.exports.default=l.exports})(aO);var kt=aO.exports,cO={exports:{}};(function(l){var u=kt.default;function p(d,O){if(u(d)!="object"||!d)return d;var f=d[Symbol.toPrimitive];if(f!==void 0){var o=f.call(d,O||"default");if(u(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(d)}l.exports=p,l.exports.__esModule=!0,l.exports.default=l.exports})(cO);var _B=cO.exports;(function(l){var u=kt.default,p=_B;function d(O){var f=p(O,"string");return u(f)=="symbol"?f:f+""}l.exports=d,l.exports.__esModule=!0,l.exports.default=l.exports})(nO);var sB=nO.exports;(function(l){var u=sB;function p(d,O,f){return O=u(O),O in d?Object.defineProperty(d,O,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[O]=f,d}l.exports=p,l.exports.__esModule=!0,l.exports.default=l.exports})(rO);var vB=rO.exports;(function(l){var u=vB;function p(O,f){var o=Object.keys(O);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(O);f&&(s=s.filter(function(_){return Object.getOwnPropertyDescriptor(O,_).enumerable})),o.push.apply(o,s)}return o}function d(O){for(var f=1;f0&&arguments[0]!==void 0?arguments[0]:{},u=l.mark;return u?u.startsWith("data-")?u:"data-".concat(u):bB}function er(l){if(l.attachTo)return l.attachTo;var u=document.querySelector("head");return u||document.body}function mB(l){return l==="queue"?"prependQueue":l?"prepend":"append"}function $r(l){return Array.from((Kt.get(l)||l).children).filter(function(u){return u.tagName==="STYLE"})}function Ar(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,PB.default)())return null;var p=u.csp,d=u.prepend,O=u.priority,f=O===void 0?0:O,o=mB(d),s=o==="prependQueue",_=document.createElement("style");_.setAttribute(C6,o),s&&f&&_.setAttribute(q6,"".concat(f)),p!=null&&p.nonce&&(_.nonce=p==null?void 0:p.nonce),_.innerHTML=l;var v=er(u),y=v.firstChild;if(d){if(s){var w=(u.styles||$r(v)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(C6)))return!1;var e=Number(g.getAttribute(q6)||0);return f>=e});if(w.length)return v.insertBefore(_,w[w.length-1].nextSibling),_}v.insertBefore(_,y)}else v.appendChild(_);return _}function uO(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=er(u);return(u.styles||$r(p)).find(function(d){return d.getAttribute(iO(u))===l})}function MB(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=uO(l,u);if(p){var d=er(u);d.removeChild(p)}}function DB(l,u){var p=Kt.get(l);if(!p||!(0,hB.default)(document,p)){var d=Ar("",u),O=d.parentNode;Kt.set(l,O),l.removeChild(d)}}function SB(){Kt.clear()}function jB(l,u){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=er(p),O=$r(d),f=(0,W6.default)((0,W6.default)({},p),{},{styles:O});DB(d,f);var o=uO(u,f);if(o){var s,_;if((s=f.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((_=f.csp)===null||_===void 0?void 0:_.nonce)){var v;o.nonce=(v=f.csp)===null||v===void 0?void 0:v.nonce}return o.innerHTML!==l&&(o.innerHTML=l),o}var y=Ar(l,f);return y.setAttribute(iO(f),u),y}var tr={};Object.defineProperty(tr,"__esModule",{value:!0});tr.getShadowRoot=zB;tr.inShadow=fO;function lO(l){var u;return l==null||(u=l.getRootNode)===null||u===void 0?void 0:u.call(l)}function fO(l){return lO(l)instanceof ShadowRoot}function zB(l){return fO(l)?lO(l):null}var ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.call=Lr;ve.default=void 0;ve.note=pO;ve.noteOnce=OO;ve.preMessage=void 0;ve.resetWarned=dO;ve.warning=oO;ve.warningOnce=St;var Rr={},WB=ve.preMessage=function(u){};function oO(l,u){}function pO(l,u){}function dO(){Rr={}}function Lr(l,u,p){!u&&!Rr[p]&&(l(!1,p),Rr[p]=!0)}function St(l,u){Lr(oO,l,u)}function OO(l,u){Lr(pO,l,u)}St.preMessage=WB;St.resetWarned=dO;St.noteOnce=OO;ve.default=St;(function(l){Object.defineProperty(l,"__esModule",{value:!0});function u(M,R){for(var D in R)Object.defineProperty(M,D,{enumerable:!0,get:R[D]})}u(l,{generate:function(){return a},getSecondaryColor:function(){return c},iconStyles:function(){return z},isIconDefinition:function(){return r},normalizeAttrs:function(){return n},normalizeTwoToneColors:function(){return i},svgBaseProps:function(){return S},useInsertStyles:function(){return H},warning:function(){return t}});var p=K6,d=ot,O=tr,f=v(ve),o=w(window.React),s=v(Mt);function _(M,R,D){return R in M?Object.defineProperty(M,R,{value:D,enumerable:!0,configurable:!0,writable:!0}):M[R]=D,M}function v(M){return M&&M.__esModule?M:{default:M}}function y(M){if(typeof WeakMap!="function")return null;var R=new WeakMap,D=new WeakMap;return(y=function(j){return j?D:R})(M)}function w(M,R){if(!R&&M&&M.__esModule)return M;if(M===null||typeof M!="object"&&typeof M!="function")return{default:M};var D=y(R);if(D&&D.has(M))return D.get(M);var j={__proto__:null},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in M)if(C!=="default"&&Object.prototype.hasOwnProperty.call(M,C)){var T=q?Object.getOwnPropertyDescriptor(M,C):null;T&&(T.get||T.set)?Object.defineProperty(j,C,T):j[C]=M[C]}return j.default=M,D&&D.set(M,j),j}function g(M){for(var R=1;R0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(M).reduce(function(R,D){var j=M[D];switch(D){case"class":R.className=j,delete R.class;break;default:delete R[D],R[e(D)]=j}return R},{})}function a(M,R,D){return D?o.default.createElement(M.tag,g({key:R},n(M.attrs),D),(M.children||[]).map(function(j,q){return a(j,"".concat(R,"-").concat(M.tag,"-").concat(q))})):o.default.createElement(M.tag,g({key:R},n(M.attrs)),(M.children||[]).map(function(j,q){return a(j,"".concat(R,"-").concat(M.tag,"-").concat(q))}))}function c(M){return(0,p.generate)(M)[0]}function i(M){return M?Array.isArray(M)?M:[M]:[]}var S={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},z=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,H=function(M){var R=(0,o.useContext)(s.default),D=R.csp,j=R.prefixCls,q=z;j&&(q=q.replace(/anticon/g,j)),(0,o.useEffect)(function(){var C=M.current,T=(0,O.getShadowRoot)(C);(0,d.updateCSS)(q,"@ant-design-icons",{prepend:!0,csp:D,attachTo:T})},[])}})(Dt);(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return r}});var u=f(window.React),p=Dt;function d(n,a,c){return a in n?Object.defineProperty(n,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[a]=c,n}function O(n){if(typeof WeakMap!="function")return null;var a=new WeakMap,c=new WeakMap;return(O=function(i){return i?c:a})(n)}function f(n,a){if(!a&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var c=O(a);if(c&&c.has(n))return c.get(n);var i={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in n)if(z!=="default"&&Object.prototype.hasOwnProperty.call(n,z)){var H=S?Object.getOwnPropertyDescriptor(n,z):null;H&&(H.get||H.set)?Object.defineProperty(i,z,H):i[z]=n[z]}return i.default=n,c&&c.set(n,i),i}function o(n){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(c[i]=n[i])}return c}function y(n,a){if(n==null)return{};var c={},i=Object.keys(n),S,z;for(z=0;z=0)&&(c[S]=n[S]);return c}var w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function g(n){var a=n.primaryColor,c=n.secondaryColor;w.primaryColor=a,w.secondaryColor=c||(0,p.getSecondaryColor)(a),w.calculated=!!c}function e(){return o({},w)}var t=function(n){var a=n.icon,c=n.className,i=n.onClick,S=n.style,z=n.primaryColor,H=n.secondaryColor,M=v(n,["icon","className","onClick","style","primaryColor","secondaryColor"]),R=u.useRef(),D=w;if(z&&(D={primaryColor:z,secondaryColor:H||(0,p.getSecondaryColor)(z)}),(0,p.useInsertStyles)(R),(0,p.warning)((0,p.isIconDefinition)(a),"icon should be icon definiton, but got ".concat(a)),!(0,p.isIconDefinition)(a))return null;var j=a;return j&&typeof j.icon=="function"&&(j=_(o({},j),{icon:j.icon(D.primaryColor,D.secondaryColor)})),(0,p.generate)(j.icon,"svg-".concat(j.name),_(o({className:c,onClick:i,style:S,"data-icon":j.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},M),{ref:R}))};t.displayName="IconReact",t.getTwoToneColors=e,t.setTwoToneColors=g;var r=t})(Hr);var Nr={};(function(l){Object.defineProperty(l,"__esModule",{value:!0});function u(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}u(l,{getTwoToneColor:function(){return g},setTwoToneColor:function(){return w}});var p=o(Hr),d=Dt;function O(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rD.length)&&(j=D.length);for(var q=0,C=new Array(j);q=0)&&Object.prototype.propertyIsEnumerable.call(D,C)&&(q[C]=D[C])}return q}function S(D,j){if(D==null)return{};var q={},C=Object.keys(D),T,E;for(E=0;E=0)&&(q[T]=D[T]);return q}function z(D,j){return v(D)||t(D,j)||H(D,j)||r()}function H(D,j){if(D){if(typeof D=="string")return _(D,j);var q=Object.prototype.toString.call(D).slice(8,-1);if(q==="Object"&&D.constructor&&(q=D.constructor.name),q==="Map"||q==="Set")return Array.from(q);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return _(D,j)}}(0,o.setTwoToneColor)(d.blue.primary);var M=u.forwardRef(function(D,j){var q=D.className,C=D.icon,T=D.spin,E=D.rotate,I=D.tabIndex,Q=D.onClick,A=D.twoToneColor,te=i(D,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),ne=u.useContext(O.default),ae=ne.prefixCls,N=ae===void 0?"anticon":ae,ce=ne.rootClassName,Y,le=(0,p.default)(ce,N,(Y={},y(Y,"".concat(N,"-").concat(C.name),!!C.name),y(Y,"".concat(N,"-spin"),!!T||C.name==="loading"),Y),q),pe=I;pe===void 0&&Q&&(pe=-1);var Te=E?{msTransform:"rotate(".concat(E,"deg)"),transform:"rotate(".concat(E,"deg)")}:void 0,ye=z((0,s.normalizeTwoToneColors)(A),2),V=ye[0],B=ye[1];return u.createElement("span",c(n({role:"img","aria-label":C.name},te),{ref:j,tabIndex:pe,onClick:Q,className:le}),u.createElement(f.default,{icon:C,primaryColor:V,secondaryColor:B,style:Te}))});M.displayName="AntdIcon",M.getTwoToneColor=o.getTwoToneColor,M.setTwoToneColor=o.setTwoToneColor;var R=M})(P);(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return g}});var u=s(window.React),p=f(Fr),d=f(P);function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return e&&e.__esModule?e:{default:e}}function o(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(o=function(n){return n?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(c!=="default"&&Object.prototype.hasOwnProperty.call(e,c)){var i=a?Object.getOwnPropertyDescriptor(e,c):null;i&&(i.get||i.set)?Object.defineProperty(n,c,i):n[c]=e[c]}return n.default=e,r&&r.set(e,n),n}function _(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(a,S)&&(i[S]=a[S])}return i}function t(a,c){if(a==null)return{};var i={},S=Object.keys(a),z,H;for(H=0;H=0)&&(i[z]=a[z]);return i}var r=u.forwardRef(function(a,c){var i=a.className,S=a.component,z=a.viewBox,H=a.spin,M=a.rotate,R=a.tabIndex,D=a.onClick,j=a.children,q=e(a,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]),C=u.useRef(),T=(0,d.useComposeRef)(C,c);(0,f.warning)(!!(S||j),"Should have `component` prop or `children`."),(0,f.useInsertStyles)(C);var E=u.useContext(O.default),I=E.prefixCls,Q=I===void 0?"anticon":I,A=E.rootClassName,te=(0,p.default)(A,Q,i),ne=(0,p.default)(o({},"".concat(Q,"-spin"),!!H)),ae=M?{msTransform:"rotate(".concat(M,"deg)"),transform:"rotate(".concat(M,"deg)")}:void 0,N=g(y({},f.svgBaseProps),{className:ne,style:ae,viewBox:z});z||delete N.viewBox;var ce=function(){return S?u.createElement(S,N,j):j?((0,f.warning)(!!z||u.Children.count(j)===1&&u.isValidElement(j)&&u.Children.only(j).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),u.createElement("svg",g(y({},N),{viewBox:z}),j)):null},Y=R;return Y===void 0&&D&&(Y=-1),u.createElement("span",g(y({role:"img"},q),{ref:T,tabIndex:Y,onClick:D,className:te}),ce())});r.displayName="AntdIcon";var n=r})(O6);(function(l){Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return r}});var u=o(window.React),p=O(O6);function d(n,a,c){return a in n?Object.defineProperty(n,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[a]=c,n}function O(n){return n&&n.__esModule?n:{default:n}}function f(n){if(typeof WeakMap!="function")return null;var a=new WeakMap,c=new WeakMap;return(f=function(i){return i?c:a})(n)}function o(n,a){if(!a&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var c=f(a);if(c&&c.has(n))return c.get(n);var i={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in n)if(z!=="default"&&Object.prototype.hasOwnProperty.call(n,z)){var H=S?Object.getOwnPropertyDescriptor(n,z):null;H&&(H.get||H.set)?Object.defineProperty(i,z,H):i[z]=n[z]}return i.default=n,c&&c.set(n,i),i}function s(n){for(var a=1;a=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(c[i]=n[i])}return c}function w(n,a){if(n==null)return{};var c={},i=Object.keys(n),S,z;for(z=0;z=0)&&(c[S]=n[S]);return c}var g=new Set;function e(n){return!!(typeof n=="string"&&n.length&&!g.has(n))}function t(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=n[a];if(e(c)){var i=document.createElement("script");i.setAttribute("src",c),i.setAttribute("data-namespace",c),n.length>a+1&&(i.onload=function(){t(n,a+1)},i.onerror=function(){t(n,a+1)}),g.add(c),document.body.appendChild(i)}}function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=n.scriptUrl,c=n.extraCommonProps,i=c===void 0?{}:c;a&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(a)?t(a.reverse()):t([a]));var S=u.forwardRef(function(z,H){var M=z.type,R=z.children,D=y(z,["type","children"]),j=null;return z.type&&(j=u.createElement("use",{xlinkHref:"#".concat(M)})),R&&(j=R),u.createElement(p.default,v(s({},i,D),{ref:H}),j)});return S.displayName="Iconfont",S}})(TM);(function(l){Object.defineProperty(l,"__esModule",{value:!0});function u(_,v){for(var y in v)Object.defineProperty(_,y,{enumerable:!0,get:v[y]})}u(l,{IconProvider:function(){return s},createFromIconfontCN:function(){return d.default},default:function(){return O.default}});var p=o(Mt);f(J6,l),f(Nr,l);var d=o(TM),O=o(O6);function f(_,v){return Object.keys(_).forEach(function(y){y!=="default"&&!Object.prototype.hasOwnProperty.call(v,y)&&Object.defineProperty(v,y,{enumerable:!0,get:function(){return _[y]}})}),_}function o(_){return _&&_.__esModule?_:{default:_}}var s=p.default.Provider})(qr);const cee="_title_1mew4_1",iee={title:cee},uee=window.React.useRef,R6=window.React.useState,lee=window.antd.Button,fee=window.antd.Divider,oee=window.antd.Input,pee=window.antd.Select,dee=window.antd.Space,Oee=({value:l,onChange:u,...p})=>{const[d,O]=R6(p.options||[]),[f,o]=R6(""),s=uee(null),_=y=>{o(y.target.value)},v=y=>{y.preventDefault(),f.trim()!==""&&(O([...d,{label:f,value:f}]),o(""),setTimeout(()=>{var w;(w=s.current)==null||w.focus()},0))};return U.jsx(pee,{placeholder:"请选择或者输入",allowClear:!0,...p,value:l,onChange:u,dropdownRender:y=>U.jsxs(U.Fragment,{children:[y,U.jsx(fee,{style:{margin:"8px 0"}}),U.jsxs(dee,{style:{padding:"0 8px 4px"},children:[U.jsx(oee,{placeholder:"输入",ref:s,value:f,onChange:_,onKeyDown:w=>w.stopPropagation()}),U.jsx(lee,{type:"link",onClick:v,children:"添加"})]})]}),options:d})},E6=window.antd.Form,T6=window.antd.Input,_ee=window.antd.InputNumber,F6=window.antd.Radio,see=window.antd.Select,vee=window.antd.Switch,yee=window.antd.Slider,wee=window.React.memo,gee={labelCol:{span:0},wrapperCol:{span:24}},Dee=wee(({attrs:l,form:u})=>l.length===0?U.jsx(U.Fragment,{}):U.jsx(U.Fragment,{children:l.map((p,d)=>{var o,s,_;if(!p)return;const O=p.key||((o=p.name)==null?void 0:o.toString())||((s=p.label)==null?void 0:s.toString())+d.toString();let f=U.jsx(U.Fragment,{});if(p.type=="Title")return U.jsx("h2",{className:iee.title,children:p.label},O);if(p.type=="Input")f=U.jsx(T6,{...p.props});else if(p.type=="TextArea")f=U.jsx(T6.TextArea,{rows:3,cols:8,...p.props});else if(p.type=="InputSelect")f=U.jsx(Oee,{...p.props});else{if(p.type=="Switch")return U.jsx(E6.Item,{name:p.name,label:p.label,tooltip:p.tooltip,valuePropName:"checked",children:U.jsx(vee,{})},O);if(p.type=="Select")f=U.jsx(see,{...p.props,suffixIcon:U.jsx(qr.CaretDownOutlined,{})});else if(p.type=="Radio")f=U.jsx(F6.Group,{...p.props,suffixIcon:U.jsx(qr.CaretDownOutlined,{})});else if(p.type=="InputNumber")f=U.jsx(_ee,{...p.props,style:{width:"100%"}});else if(p.type=="RadioGroup")f=U.jsx(F6.Group,{...p.props});else if(p.type=="ColorPicker")f=U.jsx(MI,{...p.props,format:"hex"});else if(p.type=="Slider")f=U.jsx(yee,{...p.props});else if(p.type==="Variable")f=U.jsx(DI,{...p.props});else if(p.type==="function")return(_=p.render)==null?void 0:_.call(p,u)}return U.jsx(E6.Item,{name:p.name,label:p.label,tooltip:p.tooltip,...p.label?null:gee,children:f},O)})}));export{Mee as H,Dee as S}; diff --git a/dist/editor/assets/TeamOutlined-D9jTqjd3.js b/dist/editor/assets/TeamOutlined-D9jTqjd3.js new file mode 100644 index 0000000..be9d2a6 --- /dev/null +++ b/dist/editor/assets/TeamOutlined-D9jTqjd3.js @@ -0,0 +1 @@ +import{av as a,aw as c}from"./index-BBkS68sv.js";var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const r=u,n=window.React;var d=function(e,t){return n.createElement(a,c({},e,{ref:t,icon:r}))};const h=n.forwardRef(d);var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};const l=s,o=window.React;var m=function(e,t){return o.createElement(a,c({},e,{ref:t,icon:l}))};const f=o.forwardRef(m);export{h as M,f as T}; diff --git a/dist/editor/assets/UserOutlined-BbJ58T22.js b/dist/editor/assets/UserOutlined-BbJ58T22.js new file mode 100644 index 0000000..430c804 --- /dev/null +++ b/dist/editor/assets/UserOutlined-BbJ58T22.js @@ -0,0 +1 @@ +import{av as c,aw as n}from"./index-BBkS68sv.js";var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const r=s,e=window.React;var o=function(t,a){return e.createElement(c,n({},t,{ref:a,icon:r}))};const l=e.forwardRef(o);export{l as U}; diff --git a/dist/editor/assets/VariableBind-O5QUcdA4.js b/dist/editor/assets/VariableBind-O5QUcdA4.js new file mode 100644 index 0000000..53d3c86 --- /dev/null +++ b/dist/editor/assets/VariableBind-O5QUcdA4.js @@ -0,0 +1,15 @@ +import{x as Ye,y as We,a6 as we,G as pe,a5 as Ie,a as ie,j as d,a4 as ze,ah as He,W as Be}from"./index-BBkS68sv.js";import{N as Ue,Q as qe,F as Ke}from"./index-DsdcxFhl.js";var Ge="[object Symbol]";function me(e){return typeof e=="symbol"||Ye(e)&&We(e)==Ge}function Qe(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n=0)&&(n[o]=e[o]);return n}function gt(e,t){if(e==null)return{};var n=mt(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ht(e,t){return wt(e)||yt(e,t)||vt(e,t)||bt()}function wt(e){if(Array.isArray(e))return e}function yt(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){o=!0,i=f}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function vt(e,t){if(e){if(typeof e=="string")return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(e,t)}}function Me(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,o):function(){for(var a=arguments.length,c=new Array(a),f=0;f1&&arguments[1]!==void 0?arguments[1]:{};ee.initial(e),ee.handler(t);var n={current:e},r=q(kt)(n,t),o=q(Ct)(n),i=q(ee.changes)(e),a=q(Tt)(n);function c(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(O){return O};return ee.selector(w),w(n.current)}function f(w){Mt(r,o,i,a)(w)}return[c,f]}function Tt(e,t){return G(t)?t(e.current):t}function Ct(e,t){return e.current=Oe(Oe({},e.current),t),t}function kt(e,t,n){return G(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var Nt={create:It},$t={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Vt(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i=e.length?e.apply(this,o):function(){for(var a=arguments.length,c=new Array(a),f=0;f{r.current=!1}:e,t)}var F=wn;function K(){}function W(e,t,n,r){return yn(e,r)||vn(e,t,n,r)}function yn(e,t){return e.editor.getModel(Ae(e,t))}function vn(e,t,n,r){return e.editor.createModel(t,n,r?Ae(e,r):void 0)}function Ae(e,t){return e.Uri.parse(t)}function bn({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:f=!1,theme:w="light",loading:O="Loading...",options:b={},height:E="100%",width:S="100%",className:P,wrapperProps:I={},beforeMount:T=K,onMount:z=K}){let[p,s]=Pe(!1),[x,m]=Pe(!0),h=Y(null),l=Y(null),N=Y(null),M=Y(z),y=Y(T),A=Y(!1);he(()=>{let u=Q.init();return u.then(v=>(l.current=v)&&m(!1)).catch(v=>(v==null?void 0:v.type)!=="cancelation"&&console.error("Monaco initialization: error:",v)),()=>h.current?H():u.cancel()}),F(()=>{if(h.current&&l.current){let u=h.current.getOriginalEditor(),v=W(l.current,e||"",r||n||"text",i||"");v!==u.getModel()&&u.setModel(v)}},[i],p),F(()=>{if(h.current&&l.current){let u=h.current.getModifiedEditor(),v=W(l.current,t||"",o||n||"text",a||"");v!==u.getModel()&&u.setModel(v)}},[a],p),F(()=>{let u=h.current.getModifiedEditor();u.getOption(l.current.editor.EditorOption.readOnly)?u.setValue(t||""):t!==u.getValue()&&(u.executeEdits("",[{range:u.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),u.pushUndoStop())},[t],p),F(()=>{var u,v;(v=(u=h.current)==null?void 0:u.getModel())==null||v.original.setValue(e||"")},[e],p),F(()=>{let{original:u,modified:v}=h.current.getModel();l.current.editor.setModelLanguage(u,r||n||"text"),l.current.editor.setModelLanguage(v,o||n||"text")},[n,r,o],p),F(()=>{var u;(u=l.current)==null||u.editor.setTheme(w)},[w],p),F(()=>{var u;(u=h.current)==null||u.updateOptions(b)},[b],p);let X=Ee(()=>{var $;if(!l.current)return;y.current(l.current);let u=W(l.current,e||"",r||n||"text",i||""),v=W(l.current,t||"",o||n||"text",a||"");($=h.current)==null||$.setModel({original:u,modified:v})},[n,t,o,e,r,i,a]),J=Ee(()=>{var u;!A.current&&N.current&&(h.current=l.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...b}),X(),(u=l.current)==null||u.editor.setTheme(w),s(!0),A.current=!0)},[b,w,X]);Re(()=>{p&&M.current(h.current,l.current)},[p]),Re(()=>{!x&&!p&&J()},[x,p,J]);function H(){var v,$,L,B;let u=(v=h.current)==null?void 0:v.getModel();c||(($=u==null?void 0:u.original)==null||$.dispose()),f||((L=u==null?void 0:u.modified)==null||L.dispose()),(B=h.current)==null||B.dispose()}return tn.createElement(Ve,{width:S,height:E,isEditorReady:p,loading:O,_ref:N,className:P,wrapperProps:I})}var jn=bn;en(jn);const Mn=window.React.useState;function xn(){let[e,t]=Mn(Q.__getMonacoInstance());return he(()=>{let n;return e||(n=Q.init(),n.then(r=>{t(r)})),()=>n==null?void 0:n.cancel()}),e}var On=xn;const Sn=window.React.memo,Pn=window.React,Fe=window.React.useState,te=window.React.useEffect,C=window.React.useRef,En=window.React.useCallback,Rn=window.React.useEffect,Fn=window.React.useRef;function Dn(e){let t=Fn();return Rn(()=>{t.current=e},[e]),t.current}var In=Dn,ne=new Map;function Tn({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:o,path:i,theme:a="light",line:c,loading:f="Loading...",options:w={},overrideServices:O={},saveViewState:b=!0,keepCurrentModel:E=!1,width:S="100%",height:P="100%",className:I,wrapperProps:T={},beforeMount:z=K,onMount:p=K,onChange:s,onValidate:x=K}){let[m,h]=Fe(!1),[l,N]=Fe(!0),M=C(null),y=C(null),A=C(null),X=C(p),J=C(z),H=C(),u=C(r),v=In(i),$=C(!1),L=C(!1);he(()=>{let g=Q.init();return g.then(j=>(M.current=j)&&N(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>y.current?_e():g.cancel()}),F(()=>{var j,R,U,_;let g=W(M.current,e||r||"",t||o||"",i||n||"");g!==((j=y.current)==null?void 0:j.getModel())&&(b&&ne.set(v,(R=y.current)==null?void 0:R.saveViewState()),(U=y.current)==null||U.setModel(g),b&&((_=y.current)==null||_.restoreViewState(ne.get(i))))},[i],m),F(()=>{var g;(g=y.current)==null||g.updateOptions(w)},[w],m),F(()=>{!y.current||r===void 0||(y.current.getOption(M.current.editor.EditorOption.readOnly)?y.current.setValue(r):r!==y.current.getValue()&&(L.current=!0,y.current.executeEdits("",[{range:y.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),y.current.pushUndoStop(),L.current=!1))},[r],m),F(()=>{var j,R;let g=(j=y.current)==null?void 0:j.getModel();g&&o&&((R=M.current)==null||R.editor.setModelLanguage(g,o))},[o],m),F(()=>{var g;c!==void 0&&((g=y.current)==null||g.revealLine(c))},[c],m),F(()=>{var g;(g=M.current)==null||g.editor.setTheme(a)},[a],m);let B=En(()=>{var g;if(!(!A.current||!M.current)&&!$.current){J.current(M.current);let j=i||n,R=W(M.current,r||e||"",t||o||"",j||"");y.current=(g=M.current)==null?void 0:g.editor.create(A.current,{model:R,automaticLayout:!0,...w},O),b&&y.current.restoreViewState(ne.get(j)),M.current.editor.setTheme(a),c!==void 0&&y.current.revealLine(c),h(!0),$.current=!0}},[e,t,n,r,o,i,w,O,b,a,c]);te(()=>{m&&X.current(y.current,M.current)},[m]),te(()=>{!l&&!m&&B()},[l,m,B]),u.current=r,te(()=>{var g,j;m&&s&&((g=H.current)==null||g.dispose(),H.current=(j=y.current)==null?void 0:j.onDidChangeModelContent(R=>{L.current||s(y.current.getValue(),R)}))},[m,s]),te(()=>{if(m){let g=M.current.editor.onDidChangeMarkers(j=>{var U;let R=(U=y.current.getModel())==null?void 0:U.uri;if(R&&j.find(_=>_.path===R.path)){let _=M.current.editor.getModelMarkers({resource:R});x==null||x(_)}});return()=>{g==null||g.dispose()}}return()=>{}},[m,x]);function _e(){var g,j;(g=H.current)==null||g.dispose(),E?b&&ne.set(i,y.current.saveViewState()):(j=y.current.getModel())==null||j.dispose(),y.current.dispose()}return Pn.createElement(Ve,{width:S,height:P,isEditorReady:m,loading:f,_ref:A,className:I,wrapperProps:T})}var Cn=Tn,kn=Sn(Cn),Nn=kn;const D=window.dayjs,cr=(e="mars",t=11)=>e+"_"+Number(Math.random().toString().substring(2,12)+Date.now()).toString(36).slice(0,t),sr=(e,t)=>{if(!e)return"0.00";const n=parseFloat(e.toString());return isNaN(n)?e:t?n.toLocaleString("zh-CN",{style:t,currency:"CNY"}):n.toLocaleString()},lr=(e,t="YYYY-MM-DD HH:mm:ss")=>e?D(e).format(t):"",ur=e=>{const t=new Date;if(e)return e=="today"||(e=="yestoday"&&t.setDate(t.getDate()-1),e=="last7"&&t.setDate(t.getDate()-7),e=="last30"&&t.setMonth(t.getMonth()-1),e=="last90"&&t.setMonth(t.getMonth()-3)),D(t.toLocaleString())},dr=e=>{const t=new Date,n=new Date;if(!e)return[void 0,void 0];if(["today","curWeek","curMonth","curYear","curQuarter"].includes(e)){if(e!="today"){if(e=="curWeek")t.setDate(t.getDate()-t.getDay()+1);else if(e=="curMonth")t.setDate(1);else if(e=="curYear")t.setDate(1),t.setMonth(0);else if(e=="curQuarter"){t.setDate(1);const r=t.getMonth();t.setMonth(Math.floor(r/3)*3)}}return[D(t.toLocaleString()),D(n.toLocaleString())]}if(["yestoday","lastWeek","lastMonth","last3Month","lastYear"].includes(e))return e=="yestoday"?t.setDate(t.getDate()-1):e=="lastWeek"?t.setDate(t.getDate()-7):e=="lastMonth"?t.setMonth(t.getMonth()-1):e=="last3Month"?t.setMonth(t.getMonth()-3):e=="lastYear"&&t.setFullYear(t.getFullYear()-1),[D(t.toLocaleString()),D(n.toLocaleString())]},fr=e=>e==null,re=e=>!(e===""||e===void 0||e===null);function pr(e){return navigator.clipboard.writeText(e)}function De(e,t){return e==null?void 0:e.replace(/\$\{([^}]+)\}/g,(n,r)=>{if(r.includes("?"))try{return new Function("param",`return param.${r}`)(t)}catch{return r}return ft(t,r)})}function $n(e){const t=ie.getState().page,n={};return t.variables.forEach(r=>{n[r.name]=t.variableData[r.name]??r.defaultValue}),e?n[e]:n}function Vn(e,t){const n=t.replace(/^\s*\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").trim(),r=Array.isArray(e)?e.join(", "):e;if(n.startsWith("function"))return new Function(r,`return ${n};`);const o=n.indexOf("return")>-1?n:`return ${n};`;return new Function(r,o)}function Le(e,t={}){try{if(!e)return"";const n=e.match(/([A-Za-z]+_\w+)\.[\w\.]*/g)||[],r=[...new Set(n.map(b=>b.split(".")[0]))],o=["context","variable","eventParams","FORMAT"],i=[];r.forEach(b=>{var P;o.push(b);const S=((P=ie.getState().page.formData)==null?void 0:P[b])||{};i.push(S)});const a=$n(),c=Vn(o,e),f=(b,E="YYYY-MM-DD HH:mm:ss")=>D(b).format(E),w={variable:a,eventParams:t,FORMAT:f,...i},O=c(w,a,t||{},f,...i);return typeof O=="function"?O(w,a,t||{},f,...i):O}catch(n){console.error("表达式解析失败:",n)}return""}const mr=(e,t)=>{const n=ie.getState().page.elementsMap;return e.filter(r=>["DatePicker","TimePicker","DatePickerRange","TimePickerRange","EditTable"].includes(r.type)).map(r=>{var w,O,b,E;const{startField:o,endField:i,formItem:{name:a},formWrap:{format:c,columns:f}}=n[r.id].config.props;if(["DatePicker","TimePicker"].includes(r.type)){if(!t[a])return;t[a]=((O=(w=t[a])==null?void 0:w.format)==null?void 0:O.call(w,c))||D(t[a])}else if(["DatePickerRange","TimePickerRange"].includes(r.type))if(((b=t[a])==null?void 0:b.length)==2){const[S,P]=((E=t[a])==null?void 0:E.map(I=>{var T;return((T=I==null?void 0:I.format)==null?void 0:T.call(I,c))||D(t[I])}))||[void 0,void 0];o&&i&&(t[o]=S,t[i]=P,delete t[a])}else t[o]&&t[i]&&(t[a]=[D(t[o]),D(t[i])]);else r.type==="EditTable"&&f.filter(S=>S.type==="date").map(({dataIndex:S})=>{t[a].map(P=>{P[S]&&(P[S]=D(P[S]))})})}),t},gr=(e={},t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return typeof o=="object"?(o==null?void 0:o.type)==="static"?n[r]=o.value:(o==null?void 0:o.type)==="variable"?n[r]=Le(o.value,t):n[r]=o:n[r]=o,n},{}),hr=(e=[],t={})=>e.reduce((n,r)=>{if(r.key)if(typeof r.value=="string")if(re(r.value)){const o=De(r.value,t);n[r.key]=isNaN(o)?o:Number(o)}else n[r.key]=void 0;else if(r.value.type==="static")if(re(r.value)){const o=De(r.value.value,t);n[r.key]=isNaN(o)?o:Number(o)}else n[r.key]=void 0;else{const o=Le(r.value.value);n[r.key]=re(o)?o:void 0}return n},{}),wr=(e,t)=>{if(t)return new Promise((n,r)=>{if(document.getElementById(e))return;const o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.href=t,o.id=e,o.onload=n,o.onerror=r,document.getElementsByTagName("HEAD")[0].appendChild(o)})},yr=()=>{var c;const e=(c=document.documentElement.dataset)==null?void 0:c.vanEnv,t=/^\/editor\/\d+\/edit/.test(location.pathname),n=/^\/page\/(stg|pre|prd)\/\d+/.test(location.pathname),r=/^\/project\/(stg|pre|prd)\/\d+/.test(location.pathname),o=location.pathname.match(/^\/page\/(stg|pre|prd)\/\d+/),i=location.pathname.match(/^\/project\/(stg|pre|prd)\/\d+/),a=o?o[1]:i?i[1]:"stg";return{vanEnv:e,isDev:t,isPage:n,isProject:r,env:a}},An=window.React.useEffect,Ln=window.React.useRef;function _n({height:e,language:t,value:n,onChange:r}){const o=On(),i=Ln(null);An(()=>{o==null||o.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(c,f){const w=c.getWordUntilPosition(f),O={startLineNumber:f.lineNumber,endLineNumber:f.lineNumber,startColumn:w.startColumn,endColumn:w.endColumn};return{suggestions:a(O)}}})},[o]);function a(c){return o?[{label:"context",kind:o.languages.CompletionItemKind.Function,documentation:"context是一个全局上下文变量",insertText:"context",range:c},{label:"variable",kind:o.languages.CompletionItemKind.Function,documentation:"variable是一个系统变量",insertText:"variable",range:c},{label:"eventParams",kind:o.languages.CompletionItemKind.Function,documentation:"eventParams是事件流参数",insertText:"eventParams",range:c}]:[]}return Q.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/loader.js"}}),d.jsx(Nn,{height:e||"150px",language:t||"javascript",value:re(n)?typeof n=="string"?n:JSON.stringify(n,null,2):"",onChange:r,onMount:(c,f)=>{i.current={editor:c,monaco:f}},options:{lineNumbers:"on",minimap:{enabled:!1}}})}const Yn="_container_j8mf6_1",Wn="_leftFn_j8mf6_6",zn="_box_j8mf6_23",Hn="_content_j8mf6_27",Bn="_title_j8mf6_30",Un="_variable_j8mf6_38",k={container:Yn,leftFn:Wn,box:zn,content:Hn,title:Bn,variable:Un},de=window.antd.Button,qn=window.antd.Collapse,fe=window.antd.Form,Kn=window.antd.Modal,Gn=window.antd.Popover,Qn=window.antd.Tree,Zn=window.React.forwardRef,Xn=window.React.useCallback,Jn=window.React.useImperativeHandle,er=window.React.useState,tr=({onSelect:e},t)=>{const[n,r]=er(!1),[o]=fe.useForm(),{variables:i,pageName:a,elements:c,elementsMap:f}=ie(p=>({variables:p.page.variables,pageName:p.page.pageName,elements:p.page.elements,elementsMap:p.page.elementsMap})),w=Xn(()=>{const p=[];return Object.keys(f).map(s=>{var x;if(s.startsWith("SearchForm_")||s.startsWith("Form_")||s.startsWith("MarsTable_")){const m=ze(He(c),s);(x=m.elements)==null||x.map(h=>{const l=f[h.id].config.props.formItem;l?h.name=`${l.label}(${l.name})`:h.name=""}),m.elements&&(m.elements=m.elements.filter(h=>h.name)),m&&p.push(m)}}),p},[f]),O=[{name:`页面【${a}】`,id:"page",elements:[{name:"全局变量",id:"PageVariable",type:"PageVariable",elements:b(i)},...w()]}];function b(p){return p.map(s=>{const{name:x,type:m,defaultValue:h}=s,l={name:x,value:h,elements:[]};return m==="array"?(l.type="Variable",l.id=s.name,l.name=`Array<${s.name}>${s.remark?"("+s.remark+")":""}`):m==="object"?(l.id=s.name,l.name=`${s.name}${s.remark?"("+s.remark+")":""}`,l.type="Variable",l.elements=b(Object.entries(h).map(([N,M])=>({type:Array.isArray(M)?"array":typeof M,id:s.name+"."+N,name:s.name+"."+N,defaultValue:M})))):(l.type="Variable",l.id=s.name,l.name=`${s.name}${s.remark?"("+s.remark+")":""}`),l})}Jn(t,()=>({open(p){o.setFieldValue("expression",p),r(!0)}}));const E=p=>{p==="table"?o.setFieldValue("expression",`function render(text, record, index) { + return text; +}`):p==="expression"?o.setFieldValue("expression","status === 1 ? '启用' : '禁用'"):p==="function"&&o.setFieldValue("expression",`function run(eventParams) { + return ''; +}`)},S=(p,{node:s})=>{var m,h;if(!s.type)return;const x=o.getFieldValue("expression")??"";if(s.type==="Variable"){o.setFieldValue("expression",`${x} variable.${s.id}`.trimStart());return}if(s.type==="PageVariable")o.setFieldValue("expression",`${x} variable`);else if(s.type==="EditTable"){const l=(m=f[s.id])==null?void 0:m.config.props.field;l&&o.setFieldValue("expression",`${x} ${s.parentId}.${l}`.trimStart())}else if(s.type==="Form")o.setFieldValue("expression",`${x} ${s.id}`);else{const l=(h=f[s.id])==null?void 0:h.config.props.formItem;o.setFieldValue("expression",`${x} ${s.parentId}.${l.name}`.trimStart())}},P=p=>{const s=o.getFieldValue("expression")??"";o.setFieldValue("expression",`${s} ${p}()`.trimStart())},I=()=>{const p=o.getFieldValue("expression");e({value:p}),T()},T=()=>{r(!1)},z=[{key:"1",label:"逻辑函数",children:null},{key:"2",label:"数学函数",children:null},{key:"3",label:"日期函数",children:d.jsx("ul",{children:d.jsx("li",{onClick:()=>P("FORMAT"),children:"FORMAT"})})},{key:"4",label:"数组函数",children:null}];return d.jsxs(Kn,{open:n,onCancel:T,title:"逻辑编辑器",width:1100,onOk:I,okText:"确认",cancelText:"取消",children:[d.jsxs("div",{style:{marginBlock:10},children:[d.jsx(Ue,{style:{color:"#7D33FF"}}),d.jsx("span",{style:{marginLeft:5},children:"下表为页面定义的全局变量,选择时,直接鼠标点击对应的行即可。"})]}),d.jsxs("div",{className:k.container,children:[d.jsxs("div",{className:k.leftFn,children:[d.jsx("div",{className:k.title,children:"计算函数"}),d.jsx("div",{className:k.box,children:d.jsx(qn,{ghost:!0,items:z,style:{marginTop:-13}})})]}),d.jsxs("div",{className:k.content,children:[d.jsxs("div",{className:k.title,children:["表达式",d.jsx(Gn,{content:d.jsxs("div",{children:[d.jsx("p",{children:"1. 默认支持普通变量定义,最终会返回该解析后的变量值:variable.current "}),d.jsx("p",{children:"2. 支持三元表达式:userName === 'jack' ? 1 : 2 "}),d.jsxs("p",{children:["3. 支持逻辑判断:if( a ",">"," 1 ) return 1; return 2 "]}),d.jsxs("p",{children:["4. 支持函数function定义:function getName()",'{ return "jack" } ']}),d.jsx("p",{children:"5. 定义函数的时候,不支持自定义参数,参数只能是从右侧选择的变量或者表单对象,系统会自动解析。"}),d.jsxs("p",{children:["6. 表格自定义渲染时,需要手工定义渲染函数:function render(text, record, index) ","{ return text; }"]})]}),children:d.jsx(qe,{style:{marginLeft:10,cursor:"pointer"}})}),d.jsx(de,{type:"link",onClick:()=>E("expression"),children:"三元表达式模板"}),d.jsx(de,{type:"link",onClick:()=>E("function"),children:"函数模板"}),d.jsx(de,{type:"link",onClick:()=>E("table"),children:"表格自定义渲染模板"})]}),d.jsx("div",{className:k.formula,children:d.jsx(fe,{form:o,children:d.jsx(fe.Item,{noStyle:!0,name:"expression",children:d.jsx(_n,{height:"440px",language:"javascript"})})})})]}),d.jsxs("div",{className:k.variable,children:[d.jsx("div",{className:k.title,children:"参数和变量"}),d.jsx(Qn,{showLine:!0,defaultExpandAll:!0,switcherIcon:d.jsx(Be,{}),fieldNames:{title:"name",key:"id",children:"elements"},treeData:O,onSelect:S})]})]})]})},nr=Zn(tr),rr=window.antd.Input,or=window.React.useRef,vr=({value:e,onChange:t,...n})=>{const r=or();function o(c){var f;t({type:"static",value:(f=c==null?void 0:c.target)==null?void 0:f.value})}function i(c){t({type:"variable",...c})}const a=typeof e=="string"?{type:"static",value:e}:e;return d.jsxs(d.Fragment,{children:[d.jsx(rr,{readOnly:(a==null?void 0:a.type)==="variable"&&a.value,allowClear:!0,value:a==null?void 0:a.value,onChange:o,addonAfter:d.jsx(Ke,{onClick:()=>{var c;(c=r.current)==null||c.open(a==null?void 0:a.value)},style:{color:(e==null?void 0:e.type)==="variable"?"#7D33FF":""}}),placeholder:"请选择变量",...n}),d.jsx(nr,{ref:r,onSelect:i})]})};export{Nn as F,_n as V,vr as a,et as b,st as c,dt as d,Qe as e,yr as f,ft as g,hr as h,me as i,Le as j,gr as k,Q as l,re as m,pr as n,wr as o,fr as p,sr as q,De as r,lr as s,ut as t,cr as u,mr as v,ur as w,dr as x}; diff --git a/dist/editor/assets/Welcome-evczL0yC.js b/dist/editor/assets/Welcome-evczL0yC.js new file mode 100644 index 0000000..971963e --- /dev/null +++ b/dist/editor/assets/Welcome-evczL0yC.js @@ -0,0 +1 @@ +import{j as i,L as j,m as b}from"./index-BBkS68sv.js";const M=()=>{const y="canvasBox",z=document.querySelector(`#${y}`);let d=window.innerWidth,m=window.innerHeight;z.width=d,z.height=m;const g=0,v=0,f=600,o=function(s){return s*Math.PI/180},x=function(){return Math.sin(Math.floor(Math.random()*360)*Math.PI/180)},t={obj:{x:g,y:v,z:f},dest:{x:0,y:0,z:1},dist:{x:0,y:0,z:200},ang:{cplane:0,splane:0,ctheta:0,stheta:0},zoom:1,disp:{x:d/2,y:m/2,z:0},upd(){t.dist.x=t.dest.x-t.obj.x,t.dist.y=t.dest.y-t.obj.y,t.dist.z=t.dest.z-t.obj.z,t.ang.cplane=-t.dist.z/Math.sqrt(t.dist.x*t.dist.x+t.dist.z*t.dist.z),t.ang.splane=t.dist.x/Math.sqrt(t.dist.x*t.dist.x+t.dist.z*t.dist.z),t.ang.ctheta=Math.sqrt(t.dist.x*t.dist.x+t.dist.z*t.dist.z)/Math.sqrt(t.dist.x*t.dist.x+t.dist.y*t.dist.y+t.dist.z*t.dist.z),t.ang.stheta=-t.dist.y/Math.sqrt(t.dist.x*t.dist.x+t.dist.y*t.dist.y+t.dist.z*t.dist.z)}},c={parts:{sz(s,e){return{x:s.x*e.x,y:s.y*e.y,z:s.z*e.z}},rot:{x(s,e){return{x:s.x,y:s.y*Math.cos(o(e.x))-s.z*Math.sin(o(e.x)),z:s.y*Math.sin(o(e.x))+s.z*Math.cos(o(e.x))}},y(s,e){return{x:s.x*Math.cos(o(e.y))+s.z*Math.sin(o(e.y)),y:s.y,z:-s.x*Math.sin(o(e.y))+s.z*Math.cos(o(e.y))}},z(s,e){return{x:s.x*Math.cos(o(e.z))-s.y*Math.sin(o(e.z)),y:s.x*Math.sin(o(e.z))+s.y*Math.cos(o(e.z)),z:s.z}}},pos(s,e){return{x:s.x+e.x,y:s.y+e.y,z:s.z+e.z}}},pov:{plane(s){return{x:s.x*t.ang.cplane+s.z*t.ang.splane,y:s.y,z:s.x*-t.ang.splane+s.z*t.ang.cplane}},theta(s){return{x:s.x,y:s.y*t.ang.ctheta-s.z*t.ang.stheta,z:s.y*t.ang.stheta+s.z*t.ang.ctheta}},set(s){return{x:s.x-t.obj.x,y:s.y-t.obj.y,z:s.z-t.obj.z}}},persp(s){return{x:s.x*t.dist.z/s.z*t.zoom,y:s.y*t.dist.z/s.z*t.zoom,z:s.z*t.zoom,p:t.dist.z/s.z}},disp(s,e){return{x:s.x+e.x,y:-s.y+e.y,z:s.z+e.z,p:s.p}},steps(s,e,l,n,h){let a=c.parts.sz(s,e);return a=c.parts.rot.x(a,l),a=c.parts.rot.y(a,l),a=c.parts.rot.z(a,l),a=c.parts.pos(a,n),a=c.pov.plane(a),a=c.pov.theta(a),a=c.pov.set(a),a=c.persp(a),a=c.disp(a,h),a}};(function(){const s=function(n){this.transIn={},this.transOut={},this.transIn.vtx=n.vtx,this.transIn.sz=n.sz,this.transIn.rot=n.rot,this.transIn.pos=n.pos};s.prototype.vupd=function(){this.transOut=c.steps(this.transIn.vtx,this.transIn.sz,this.transIn.rot,this.transIn.pos,t.disp)};const e=function(){this.vel=.04,this.lim=360,this.diff=300,this.initPos=100,this.toX=g,this.toY=v,this.go()};e.prototype.go=function(){this.canvas=document.getElementById(y),this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight,this.$=this.canvas.getContext("2d"),this.$.globalCompositeOperation="source-over",this.varr=[],this.dist=[],this.calc=[];for(let n=0,h=300;nthis.lim&&(this.calc[n][a]=0));if(this.varr[n].transIn.pos={x:this.diff*Math.cos(this.calc[n].x*Math.PI/180),y:this.diff*Math.sin(this.calc[n].y*Math.PI/180),z:this.diff*Math.sin(this.calc[n].z*Math.PI/180)},this.varr[n].transIn.rot=this.rotObj,this.varr[n].transIn.sz=this.objSz,this.varr[n].vupd(),this.varr[n].transOut.p<0)continue;const h=this.$.createRadialGradient(this.varr[n].transOut.x,this.varr[n].transOut.y,this.varr[n].transOut.p,this.varr[n].transOut.x,this.varr[n].transOut.y,this.varr[n].transOut.p*2);this.$.globalCompositeOperation="lighter",h.addColorStop(0,"hsla(255, 255%, 255%, 1)"),h.addColorStop(.5,`hsla(${n+2}, 79%, 50%, 1)`),h.addColorStop(1,`hsla(${n}, 79%, 50%, .5)`),this.$.fillStyle=h,this.$.beginPath(),this.$.arc(this.varr[n].transOut.x,this.varr[n].transOut.y,this.varr[n].transOut.p*2,0,Math.PI*2,!1),this.$.fill(),this.$.closePath()}},e.prototype.anim=function(){window.requestAnimationFrame=function(){return window.requestAnimationFrame||function(h,a){window.setTimeout(h,1e3/30)}}();const n=(function(){this.upd(),this.draw(),window.requestAnimationFrame(n)}).bind(this);window.requestAnimationFrame(n)},e.prototype.run=function(){this.anim()},new e().run()})()},_="_welcome_lrpv6_1",w="_bg_lrpv6_5",I="_canvas_lrpv6_13",N="_content_lrpv6_19",O="_title_lrpv6_24",P="_desc_lrpv6_29",$="_btnGroup_lrpv6_35",C="_cube_lrpv6_39",q="_module_lrpv6_61",B="_moduleList_lrpv6_70",L="_moduleItem_lrpv6_76",S="_footer_lrpv6_94",k="_beian_lrpv6_110",r={welcome:_,bg:w,canvas:I,content:N,title:O,desc:P,btnGroup:$,cube:C,"img1-anim":"_img1-anim_lrpv6_1",module:q,moduleList:B,moduleItem:L,footer:S,beian:k},G=window.React.useEffect,u=window.antd.Button;function E(){G(()=>{M()},[]);const p=()=>{b.info("敬请期待")};return i.jsxs("div",{className:r.welcome,children:[i.jsxs("section",{className:r.bg,children:[i.jsx("canvas",{id:"canvasBox",className:r.canvas}),i.jsxs("div",{className:r.content,children:[i.jsx("h1",{className:r.title,children:"Mars零代码搭建平台"}),i.jsx("p",{className:r.desc,children:"让搭建更简单,让开发更高效"}),i.jsxs("div",{className:r.btnGroup,children:[i.jsx(u,{type:"primary",ghost:!0,size:"large",onClick:p,children:"产品文档"}),i.jsx(j,{to:"/projects",children:i.jsx(u,{type:"primary",size:"large",children:"快速开始"})})]})]}),i.jsx("div",{className:r.cube})]}),i.jsxs("section",{className:r.module,style:{backgroundColor:"#fff"},children:[i.jsx("h1",{children:"模块介绍"}),i.jsxs("div",{className:r.moduleList,children:[i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/m1.png"}),i.jsx("span",{children:"项目配置"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/m2.png"}),i.jsx("span",{children:"权限管理"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/m3.png"}),i.jsx("span",{children:"编辑器"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/m4.png"}),i.jsx("span",{children:"用户访问"})]})]})]}),i.jsxs("section",{className:r.module,style:{backgroundColor:"#fafafa"},children:[i.jsx("h1",{children:"平台特色"}),i.jsxs("div",{className:r.moduleList,children:[i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/p1.png",style:{width:90}}),i.jsx("span",{children:"逻辑编排"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/p2.png",style:{width:90}}),i.jsx("span",{children:"权限分配"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/p3.png",style:{width:90}}),i.jsx("span",{children:"源码生成"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/p4.png",style:{width:90}}),i.jsx("span",{children:"接口配置"})]}),i.jsxs("div",{className:r.moduleItem,children:[i.jsx("img",{src:"/imgs/p5.png",style:{width:90}}),i.jsx("span",{children:"发布、回滚"})]})]})]}),i.jsxs("section",{className:r.footer,children:[i.jsx("img",{src:"/imgs/mars-logo-light.png"}),i.jsx("h1",{children:"欢迎使用Mars零代码搭建平台"}),i.jsx(j,{to:"/projects",children:i.jsx(u,{type:"primary",size:"large",children:"快速开始"})}),i.jsx("p",{className:r.beian,children:i.jsx("a",{href:"https://beian.miit.gov.cn/#/Integrated/index",children:"京ICP备14041985号-2"})})]})]})}export{E as default}; diff --git a/dist/editor/assets/admin-BRppOO-j.js b/dist/editor/assets/admin-BRppOO-j.js new file mode 100644 index 0000000..2c2b64a --- /dev/null +++ b/dist/editor/assets/admin-BRppOO-j.js @@ -0,0 +1 @@ +import{u as f,o as g,al as v,j as e,Y as a,Z as w}from"./index-BBkS68sv.js";import{M as S,T as M}from"./TeamOutlined-D9jTqjd3.js";import{U as y}from"./UserOutlined-BbJ58T22.js";const _="_navSide_44l9u_1",$="_logo_44l9u_6",L={navSide:_,logo:$},N=window.antd.Menu,O=window.React.useEffect,l=window.React.useState,C=()=>{const[u,i]=l([]),[d,c]=l([]),r=f();function s(n,x,h,p){return{label:n,key:x,icon:h,children:p}}const{id:t}=g(),m=v();O(()=>{if(!t||t=="0"){i([s("项目配置",`/project/${t}/config`,e.jsx(a,{}))]);return}i([s("项目配置",`/project/${t}/config`,e.jsx(a,{})),s("菜单列表",`/project/${t}/menu`,e.jsx(S,{})),s("角色列表",`/project/${t}/role`,e.jsx(M,{})),s("用户列表",`/project/${t}/user`,e.jsx(y,{}))]),c([m.pathname])},[]);const j=({key:n})=>{c([n]),r(n)};return e.jsx("div",{className:L.navSide,children:e.jsx(N,{mode:"inline",theme:"light",style:{width:200,height:"calc(100vh - 64px)",flex:1,minWidth:0},selectedKeys:d,onClick:j,items:u})})},E=C,o=window.antd.Layout;function T(){return e.jsxs(o,{className:"admin",children:[e.jsx(o.Sider,{style:{height:"calc(100vh - 64px)"},children:e.jsx(E,{})}),e.jsx(o.Content,{className:"content",children:e.jsx("div",{className:"wrapper",children:e.jsx(w,{})})})]})}export{T as default}; diff --git a/dist/editor/assets/editor-DSFJQPLb.js b/dist/editor/assets/editor-DSFJQPLb.js new file mode 100644 index 0000000..11438cf --- /dev/null +++ b/dist/editor/assets/editor-DSFJQPLb.js @@ -0,0 +1 @@ +import{a as z,a2 as D,j as o,o as V,a3 as Y,m as F,s as L,a4 as X,n as T}from"./index-BBkS68sv.js";import{P as $,b as Z,c as ee,C as B}from"./index-BZrXSPkn.js";import{k as te,l as ne}from"./index-D9JUB6hU.js";import{C as oe}from"./SendOutlined-B7Eu_wmm.js";import{D as se}from"./DeleteOutlined-B6bglta-.js";import"./VariableBind-O5QUcdA4.js";import"./index-DsdcxFhl.js";import"./SaveOutlined-BQ_jcTgK.js";import"./ColorPicker-Dw8Os0Zn.js";import"./CodeOutlined-EqGcmDkC.js";import"./LockOutlined-Ds8QM0LA.js";import"./TeamOutlined-D9jTqjd3.js";import"./UserOutlined-BbJ58T22.js";const ae=window.antd.Space,R=window.antd.Tooltip,ie=window.React.memo,H=window.React.useEffect,K=window.React.useState,de=ie(({hoverTarget:m,copyElement:b,pastElement:E,delElement:a})=>{var h,N,I,P,S,x;const{selectedElement:l,elements:j,isFirstNode:g,nodeNav:c,isUpdateToolbar:_,setSelectedElement:C,moveElements:v}=z(t=>{var i,s;const d=(i=t.selectedElement)==null?void 0:i.id,p=d?t.page.elementsMap[d]:null,e={};if(p){if(p.parentId){const{id:r,type:O,name:A}=t.page.elementsMap[p.parentId];e.parent={id:r,type:O,name:A}}e.current={id:p.id,type:p.type,name:p.name};const n=Object.values(t.page.elementsMap).find(r=>r.parentId===p.id);n&&(e.child={id:n.id,type:n.type,name:n.name})}return{selectedElement:t.selectedElement,elements:t.page.elements,isFirstNode:((s=t.page.elements[0])==null?void 0:s.id)===d,nodeNav:e,isUpdateToolbar:t.isUpdateToolbar,setSelectedElement:t.setSelectedElement,moveElements:t.moveElements}}),[W,M]=K({}),[u,f]=K({});H(()=>{l&&setTimeout(()=>{const t=document.querySelector(`[data-id=${l==null?void 0:l.id}]`),d=D(t);M(d)})},[l,j,_]),H(()=>{if(m){const t=D(m);f({...t})}else f({...u,visibility:"hidden"})},[m]);const w=(t,{id:d,type:p})=>{!d||!p||(C({id:d,type:p}),t.stopPropagation())},y=(t,d)=>{v({componentId:l==null?void 0:l.id,direction:d}),t.stopPropagation()};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:l?"toolbar-box selected":"toolbar-box",style:W,id:"editorToolbar",children:o.jsxs("div",{className:g?"tool-bar first":"tool-bar",children:[o.jsxs("div",{className:"node-nav",children:[c.parent&&o.jsx("span",{className:"node-tip parent",onClick:t=>w(t,c.parent),children:((h=c.parent)==null?void 0:h.name)||((N=c.parent)==null?void 0:N.type)}),o.jsx("span",{className:"node-tip current",onClick:t=>w(t,c.current),children:((I=c.current)==null?void 0:I.name)||((P=c.current)==null?void 0:P.type)}),c.child&&o.jsx("span",{className:"node-tip child",onClick:t=>w(t,c.child),children:((S=c.child)==null?void 0:S.name)||((x=c.child)==null?void 0:x.type)})]}),o.jsxs(ae,{className:"actions",children:[o.jsx(R,{title:"上移动",children:o.jsx(te,{onClick:t=>y(t,"up")})}),o.jsx(R,{title:"下移动",children:o.jsx(ne,{onClick:t=>y(t,"down")})}),o.jsx(R,{title:"复制",children:o.jsx(oe,{onClick:t=>{b(),E(),t.stopPropagation()}})}),o.jsx(R,{title:"删除",children:o.jsx(se,{onClick:t=>{a(),t.stopPropagation()}})})]})]})}),o.jsx("div",{className:m?"toolbar-box hover":"toolbar-box",style:u})]})}),re=window.React,q=window.React.useState,le=window.React.useEffect,ce=window.antd.ConfigProvider,pe=window.antd.InputNumber,me=window.ahooks.useDebounceFn,U=window.ahooks.useKeyPress,Ne=()=>{const{mode:m,canvasWidth:b,setCanvasWidth:E,selectedElement:a,theme:l,elements:j,elementsMap:g,savePageInfo:c,addElement:_,addChildElements:C,setSelectedElement:v,removeElements:W,clearPageInfo:M}=z(e=>({mode:e.mode,canvasWidth:e.page.canvasWidth,setCanvasWidth:e.setCanvasWidth,selectedElement:e.selectedElement,theme:e.page.config.props.theme,pageStyle:e.page.config.style,elements:e.page.elements,elementsMap:e.page.elementsMap,savePageInfo:e.savePageInfo,addElement:e.addElement,addChildElements:e.addChildElements,setSelectedElement:e.setSelectedElement,removeElements:e.removeElements,clearPageInfo:e.clearPageInfo})),[u,f]=q(null),[w,y]=q(!1),{id:h}=V();le(()=>{if(h)return y(!1),Y(parseInt(h)).then(e=>{let i={};try{i=JSON.parse(e.page_data||"{}")}catch(s){console.error(s),console.info("【json数据】",e.page_data),F.error("页面数据格式错误,请检查")}c({config:$.config,events:$.events,...i,pageId:e.id,pageName:e.name,remark:e.remark,is_public:e.is_public,preview_img:e.preview_img,state:void 0,stg_publish_id:e.stg_publish_id,pre_publish_id:e.pre_publish_id,prd_publish_id:e.prd_publish_id,stg_state:e.stg_state,pre_state:e.pre_state,prd_state:e.prd_state,user_id:e.user_id}),y(!0),E(Math.max(window.innerWidth-660,i.canvasWidth||0))}),()=>{M(),f(null),v(void 0)}},[h]);const[,N]=Z({accept:"MENU_ITEM",drop(e,i){if(i.didDrop())return;const{config:s,events:n,methods:r=[],elements:O=[]}=B[e.type+"Config"]||{},A=O.map(k=>{const{config:J,events:G,methods:Q=[]}=B[k.type+"Config"]||{};return{id:T(k.type),name:k.name,type:k.type,parentId:e.id,config:J,events:G,methods:Q}})||[];_({type:e.type,name:e.name,id:e.id,config:s,events:n,methods:r,elements:A})},collect:e=>({isOver:e.isOver(),canDrop:e.canDrop()})}),I=e=>{if(e.stopPropagation(),m==="preview")return;const s=e.target.closest("[data-id]");if(s){const n=s==null?void 0:s.dataset.id;if(n===(a==null?void 0:a.id))return;v({id:n,type:s==null?void 0:s.dataset.type}),f(null)}else a!=null&&a.id&&v(void 0)},P=e=>{const i=e.target;if(m==="preview")return;const s=i.closest("[data-id]");if(s){const n=s==null?void 0:s.dataset.id;if(n===(a==null?void 0:a.id)||n===(u==null?void 0:u.dataset.id))return;f(s)}else u&&f(null);e.stopPropagation()},{run:S}=me(P,{wait:150});U(["ctrl.c","meta.c"],e=>{["INPUT","TEXTAREA"].includes(e.target.tagName)||x()}),U(["ctrl.v","meta.v"],e=>{["INPUT","TEXTAREA"].includes(e.target.tagName)||t()}),U(["delete","backspace"],e=>{["INPUT","TEXTAREA"].includes(e.target.tagName)||e.target.contentEditable==="true"||p()});const x=()=>{L.set("copy_component",a==null?void 0:a.id)},t=()=>{var s;const e=L.get("copy_component");if(!e)return F.info("暂无复制内容");const i=(s=g[e])==null?void 0:s.parentId;if(i){const n=X(j,e),r=T(e.split("-")[0]);C({...g[e],elements:[],parentId:i,id:r}),d((n==null?void 0:n.elements)||[],r)}else{const n=X(j,e),r=T(e.split("-")[0]);_({...g[e],elements:[],id:r}),d((n==null?void 0:n.elements)||[],r)}};function d(e,i){var s;for(let n=0;n0&&d(e[n].elements,r)}}const p=()=>{a&&W(a.id)};return o.jsxs(ce,{theme:{token:{colorPrimary:l||"#1677ff",colorLink:l||"#1677ff",colorInfo:l||"#1677ff"}},children:[m==="edit"&&o.jsx("div",{className:"canvas-size",children:o.jsx(pe,{addonBefore:"画布宽度:",variant:"borderless",value:b,onChange:e=>e&&E(e),style:{width:150}})}),o.jsx("div",{ref:N,className:m==="edit"?"mars-editor":"mars-preview",onClick:I,onMouseOver:S,children:o.jsxs("div",{id:"editor",className:"pageWrapper",style:m==="preview"?{height:"calc(100vh - 64px)",overflow:"auto"}:{minWidth:window.innerWidth-660,width:b||"auto",height:"100%"},children:[m==="edit"&&o.jsx(de,{copyElement:x,pastElement:t,delElement:p,hoverTarget:u}),o.jsx(re.Suspense,{fallback:o.jsx("div",{children:"Loading..."}),children:w&&o.jsx(ee,{})})]})})]})};export{Ne as default}; diff --git a/dist/editor/assets/index-7phewKWI.js b/dist/editor/assets/index-7phewKWI.js new file mode 100644 index 0000000..caa1ccd --- /dev/null +++ b/dist/editor/assets/index-7phewKWI.js @@ -0,0 +1 @@ +import{o as L,j as e,aK as E,aL as K,m as M,ap as O,aq as A,aM as V,aN as H,M as P,aO as B}from"./index-BBkS68sv.js";import{S as D}from"./SearchForm-B1iYemKz.js";const q=window.React.useImperativeHandle,S=window.React.useState,z=window.antd.Modal,g=window.antd.Form,F=window.antd.Input;function G(h){const[R,p]=S(!1),[w,f]=S("create"),[I,o]=S(!1),[n]=g.useForm(),{id:m}=L();q(h.mRef,()=>({open:d}));const d=(a,r)=>{f(a),p(!0),o(!1),r&&n.setFieldsValue(r)},l=async()=>{if(await n.validateFields()&&m)try{o(!0);const{id:r,name:x,remark:j=""}=n.getFieldsValue();w==="create"?await E({name:x,remark:j,project_id:m}):await K({name:x,remark:j,id:r,project_id:m}),o(!1),M.success("操作成功"),c(),h.update()}catch{o(!1)}},c=()=>{n.resetFields(),p(!1)};return e.jsx(z,{title:w==="create"?"新增角色":"编辑角色",width:600,open:R,okText:"确定",cancelText:"取消",confirmLoading:I,onOk:l,onCancel:c,children:e.jsxs(g,{form:n,labelAlign:"right",labelCol:{span:4},children:[e.jsx(g.Item,{name:"id",hidden:!0,children:e.jsx(F,{})}),e.jsx(g.Item,{name:"name",label:"角色名称",rules:[{required:!0,message:"请输入角色名称"}],children:e.jsx(F,{placeholder:"请输入角色名称"})}),e.jsx(g.Item,{name:"remark",label:"备注",children:e.jsx(F.TextArea,{placeholder:"请输入备注"})})]})})}const J=window.antd.Modal,T=window.antd.Form,Q=window.antd.Tree,U=window.React.useEffect,W=window.React.useImperativeHandle,b=window.React.useState;function X(h){const[R,p]=b(!1),[w,f]=b([]),[I,o]=b([]),[n,m]=b(),[d,l]=b(),c=L().id;U(()=>{a()},[]);const a=async()=>{if(!c)return;const i=await O({project_id:parseInt(c)}),u=A(i.list);f(u||[])};W(h.mRef,()=>({open:r}));const r=i=>{var u;p(!0),m(i),l({id:(n==null?void 0:n.id)||0,project_id:parseInt(c),checked:i.checked,half_checked:i.half_checked}),o(((u=i.checked)==null?void 0:u.split(",").map(k=>parseInt(k)))||[])},x=(i,u)=>{o(i);const k=[],t=[];u.checkedNodes.map(s=>{s.type===2||s.type===1&&!s.children?k.push(s.id):t.push(s.id)}),l({id:(n==null?void 0:n.id)||0,project_id:parseInt(c),checked:k.join(","),half_checked:t.concat(u.halfCheckedKeys).join(",")})},j=async()=>{d&&(await V(d),M.success("权限设置成功"),C(),h.update())},C=()=>{p(!1),l(void 0)};return e.jsx(J,{title:"设置权限",width:600,open:R,okText:"确定",cancelText:"取消",onOk:j,onCancel:C,children:e.jsxs(T,{labelAlign:"right",labelCol:{span:4},children:[e.jsx(T.Item,{label:"角色名称",children:n==null?void 0:n.name}),e.jsx(T.Item,{label:"权限",children:e.jsx(Q,{checkable:!0,defaultExpandAll:!0,fieldNames:{title:"name",key:"id",children:"children"},onCheck:x,checkedKeys:I,treeData:w})})]})})}const Y=window.React.useEffect,$=window.React.useRef,_=window.React.useState,v=window.antd.Button,Z=window.antd.Table,N=window.antd.Form,ee=window.antd.Input,te=window.antd.Space;function ae(){const[h,R]=_([]),[p,w]=_(0),[f,I]=_(1),[o,n]=_(!1),[m]=N.useForm(),{id:d}=L(),l=$(),c=$();Y(()=>{a()},[]);const a=async(t=f)=>{if(!d)return;n(!0);const{name:s}=m.getFieldsValue(),y=await H({pageNum:t,pageSize:10,project_id:parseInt(d),name:s});n(!1),w((y==null?void 0:y.total)||0),R((y==null?void 0:y.list)||[])},r=t=>{I(t),a(t)},x=()=>{var t;(t=l.current)==null||t.open("create")},j=t=>{var s;(s=l.current)==null||s.open("edit",t)},C=t=>{d&&P.confirm({title:"确认",content:e.jsx("span",{children:"确认删除该角色吗?"}),async onOk(){M.success("删除成功"),await B({id:t,project_id:parseInt(d)}),a()}})},i=t=>{var s;(s=c.current)==null||s.open(t)},u=[{title:"角色名称",dataIndex:"name",key:"name"},{title:"备注",dataIndex:"remark",key:"remark"},{title:"创建人",dataIndex:"sso_name",key:"sso_name"},{title:"更新时间",dataIndex:"updated_at",key:"updated_at"},{title:"创建时间",dataIndex:"created_at",key:"created_at"},{title:"操作",key:"action",render(t,s){return e.jsxs(te,{children:[e.jsx(v,{type:"text",onClick:()=>j(s),children:"编辑"}),e.jsx(v,{type:"text",onClick:()=>i(s),children:"设置权限"}),e.jsx(v,{type:"text",onClick:()=>C(s.id),danger:!0,children:"删除"})]})}}],k={current:f,total:p,pageSize:10,showTotal:t=>`共 ${t} 条`,onChange:r};return e.jsxs("div",{className:"role-wrap",children:[e.jsx(D,{form:m,submit:a,reset:a,children:e.jsx(N.Item,{name:"name",label:"角色名称",children:e.jsx(ee,{placeholder:"请输入角色名称"})})}),e.jsxs("div",{className:"base-table",children:[e.jsxs("div",{className:"header-wrapper",children:[e.jsx("div",{className:"title",children:"角色列表"}),e.jsx("div",{className:"action",children:e.jsx(v,{type:"primary",onClick:x,children:"新增"})})]}),e.jsx(Z,{bordered:!0,rowKey:"id",loading:o,columns:u,dataSource:h,pagination:k})]}),e.jsx(G,{mRef:l,update:a}),e.jsx(X,{mRef:c,update:a})]})}export{ae as default}; diff --git a/dist/editor/assets/index-BBkS68sv.js b/dist/editor/assets/index-BBkS68sv.js new file mode 100644 index 0000000..f1840d5 --- /dev/null +++ b/dist/editor/assets/index-BBkS68sv.js @@ -0,0 +1,115 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Welcome-evczL0yC.js","assets/Welcome-CrsPeZF6.css","assets/Login-C7AxXgvl.js","assets/Login-D_wvv5CA.css","assets/ProjectList-BGRw_eqt.js","assets/index.module-DFRKY25f.js","assets/index-cgTMgXNw.css","assets/LockOutlined-Ds8QM0LA.js","assets/DeleteOutlined-B6bglta-.js","assets/UserOutlined-BbJ58T22.js","assets/PageList-JOLwI-VY.js","assets/SendOutlined-B7Eu_wmm.js","assets/LibList-CjwxWvL0.js","assets/lib-BFfozajJ.js","assets/CodeOutlined-EqGcmDkC.js","assets/LibEditor-i9a3iLBJ.js","assets/VariableBind-O5QUcdA4.js","assets/index-DsdcxFhl.js","assets/VariableBind-CdAGYxhS.css","assets/SetterRender-CNqvv3GD.js","assets/ColorPicker-Dw8Os0Zn.js","assets/SetterRender-CexyKONq.css","assets/LibEditor-O-GHr2fR.css","assets/EditLayout-BxvD9TZ_.js","assets/index-D9JUB6hU.js","assets/SaveOutlined-BQ_jcTgK.js","assets/TeamOutlined-D9jTqjd3.js","assets/index-BZrXSPkn.js","assets/index-B0EPUSlK.css","assets/pageMember-Dpti6EYv.js","assets/MemberSetting-Ch9IUWbG.js","assets/EditLayout-D9o9WfE2.css","assets/editor-DSFJQPLb.js","assets/editor-CbeDG5UX.css","assets/index-BD5KK_AR.js","assets/SearchForm-B1iYemKz.js","assets/SearchForm-BgyIIGY0.css","assets/index-29RcA9ed.css","assets/admin-BRppOO-j.js","assets/admin-CISnlGsQ.css","assets/index-DHuhm04f.js","assets/index-BcyM6gr2.css","assets/index-gGNTS4mE.js","assets/index-7phewKWI.js","assets/index-BYATrNnY.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var ri={exports:{}},Ar={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var tl=window.React,rl=Symbol.for("react.element"),nl=Symbol.for("react.fragment"),al=Object.prototype.hasOwnProperty,ol=tl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,il={key:!0,ref:!0,__self:!0,__source:!0};function ni(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)al.call(t,n)&&!il.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:rl,type:e,key:o,ref:i,props:a,_owner:ol.current}}Ar.Fragment=nl;Ar.jsx=ni;Ar.jsxs=ni;ri.exports=Ar;var w=ri.exports,Rn={},xa=window.ReactDOM;Rn.createRoot=xa.createRoot,Rn.hydrateRoot=xa.hydrateRoot;/** + * @remix-run/router v1.15.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function wt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ll(){return Math.random().toString(36).substr(2,8)}function Ea(e,t){return{usr:e.state,key:e.key,idx:t}}function Kt(e,t,r,n){return r===void 0&&(r=null),X({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ke(t):t,{state:r,key:t&&t.key||n||ll()})}function ot(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ke(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function cl(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=Z.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(X({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){s=Z.Pop;let g=u(),S=g==null?null:g-c;c=g,l&&l({action:s,location:m.location,delta:S})}function v(g,S){s=Z.Push;let C=Kt(m.location,g,S);r&&r(C,g),c=u()+1;let D=Ea(C,c),z=m.createHref(C);try{i.pushState(D,"",z)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;a.location.assign(z)}o&&l&&l({action:s,location:m.location,delta:1})}function _(g,S){s=Z.Replace;let C=Kt(m.location,g,S);r&&r(C,g),c=u();let D=Ea(C,c),z=m.createHref(C);i.replaceState(D,"",z),o&&l&&l({action:s,location:m.location,delta:0})}function b(g){let S=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof g=="string"?g:ot(g);return C=C.replace(/ $/,"%20"),F(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let m={get action(){return s},get location(){return e(a,i)},listen(g){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Sa,d),l=g,()=>{a.removeEventListener(Sa,d),l=null}},createHref(g){return t(a,g)},createURL:b,encodeLocation(g){let S=b(g);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:_,go(g){return i.go(g)}};return m}var J;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(J||(J={}));const ul=new Set(["lazy","caseSensitive","path","id","index","children"]);function fl(e){return e.index===!0}function Tn(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,o],s=typeof a.id=="string"?a.id:i.join("-");if(F(a.index!==!0||!a.children,"Cannot specify children on an index route"),F(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),fl(a)){let l=X({},a,t(a),{id:s});return n[s]=l,l}else{let l=X({},a,t(a),{id:s,children:void 0});return n[s]=l,a.children&&(l.children=Tn(a.children,t,i,n)),l}})}function vt(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ke(t):t,a=Rt(n.pathname||"/",r);if(a==null)return null;let o=ai(e);hl(o);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(F(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ie([n,l.relativePath]),u=r.concat(l);o.children&&o.children.length>0&&(F(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),ai(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:wl(c,o.index),routesMeta:u})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of oi(o.path))a(o,i,l)}),t}function oi(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=oi(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hl(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_l(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const pl=/^:[\w-]+$/,ml=3,gl=2,yl=1,vl=10,bl=-2,Pa=e=>e==="*";function wl(e,t){let r=e.split("/"),n=r.length;return r.some(Pa)&&(n+=bl),t&&(n+=gl),r.filter(a=>!Pa(a)).reduce((a,o)=>a+(pl.test(o)?ml:o===""?yl:vl),n)}function _l(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function xl(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i{let{paramName:v,isOptional:_}=u;if(v==="*"){let m=s[d]||"";i=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const b=s[d];return _&&!b?c[v]=void 0:c[v]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function El(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),wt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Pl(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Rt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Cl(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?ke(e):e;return{pathname:r?r.startsWith("/")?r:Rl(r,t):t,search:jl(n),hash:Ol(a)}}function Rl(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function on(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ii(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lr(e,t){let r=ii(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function $r(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=ke(e):(a=X({},e),F(!a.pathname||!a.pathname.includes("?"),on("?","pathname","search",a)),F(!a.pathname||!a.pathname.includes("#"),on("#","pathname","hash",a)),F(!a.search||!a.search.includes("#"),on("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),d-=1;a.pathname=v.join("/")}s=d>=0?t[d]:"/"}let l=Cl(a,s),c=i&&i!=="/"&&i.endsWith("/"),u=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ie=e=>e.join("/").replace(/\/\/+/g,"/"),Tl=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jl=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ol=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Dl extends Error{}class Yn{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function si(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const li=["post","put","patch","delete"],Al=new Set(li),Ll=["get",...li],$l=new Set(Ll),Ml=new Set([301,302,303,307,308]),Il=new Set([307,308]),sn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Fl={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ft={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ci=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kl=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ui="remix-router-transitions";function Ul(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;F(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let f=e.detectErrorBoundary;a=h=>({hasErrorBoundary:f(h)})}else a=kl;let o={},i=Tn(e.routes,a,void 0,o),s,l=e.basename||"/",c=X({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),u=null,d=new Set,v=null,_=null,b=null,m=e.hydrationData!=null,g=vt(i,e.history.location,l),S=null;if(g==null){let f=_e(404,{pathname:e.history.location.pathname}),{matches:h,route:y}=La(i);g=h,S={[y.id]:f}}let C,D=g.some(f=>f.route.lazy),z=g.some(f=>f.route.loader);if(D)C=!1;else if(!z)C=!0;else if(c.v7_partialHydration){let f=e.hydrationData?e.hydrationData.loaderData:null,h=e.hydrationData?e.hydrationData.errors:null,y=x=>x.route.loader?x.route.loader.hydrate===!0?!1:f&&f[x.route.id]!==void 0||h&&h[x.route.id]!==void 0:!0;if(h){let x=g.findIndex(P=>h[P.route.id]!==void 0);C=g.slice(0,x+1).every(y)}else C=g.every(y)}else C=e.hydrationData!=null;let L,p={historyAction:e.history.action,location:e.history.location,matches:g,initialized:C,navigation:sn,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},T=Z.Pop,U=!1,$,le=!1,G=new Map,ce=null,ee=!1,Se=!1,Ne=[],dt=[],K=new Map,ht=0,De=-1,ze=new Map,A=new Set,be=new Map,Ae=new Map,Ee=new Set,Je=new Map,Xe=new Map,Zr=!1;function Ns(){if(u=e.history.listen(f=>{let{action:h,location:y,delta:x}=f;if(Zr){Zr=!1;return}wt(Xe.size===0||x!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let P=ba({currentLocation:p.location,nextLocation:y,historyAction:h});if(P&&x!=null){Zr=!0,e.history.go(x*-1),cr(P,{state:"blocked",location:y,proceed(){cr(P,{state:"proceeding",proceed:void 0,reset:void 0,location:y}),e.history.go(x)},reset(){let I=new Map(p.blockers);I.set(P,Ft),de({blockers:I})}});return}return Qe(h,y)}),r){Jl(t,G);let f=()=>Xl(t,G);t.addEventListener("pagehide",f),ce=()=>t.removeEventListener("pagehide",f)}return p.initialized||Qe(Z.Pop,p.location,{initialHydration:!0}),L}function zs(){u&&u(),ce&&ce(),d.clear(),$&&$.abort(),p.fetchers.forEach((f,h)=>lr(h)),p.blockers.forEach((f,h)=>va(h))}function Bs(f){return d.add(f),()=>d.delete(f)}function de(f,h){h===void 0&&(h={}),p=X({},p,f);let y=[],x=[];c.v7_fetcherPersist&&p.fetchers.forEach((P,I)=>{P.state==="idle"&&(Ee.has(I)?x.push(I):y.push(I))}),[...d].forEach(P=>P(p,{deletedFetchers:x,unstable_viewTransitionOpts:h.viewTransitionOpts,unstable_flushSync:h.flushSync===!0})),c.v7_fetcherPersist&&(y.forEach(P=>p.fetchers.delete(P)),x.forEach(P=>lr(P)))}function Lt(f,h,y){var x,P;let{flushSync:I}=y===void 0?{}:y,O=p.actionData!=null&&p.navigation.formMethod!=null&&Re(p.navigation.formMethod)&&p.navigation.state==="loading"&&((x=f.state)==null?void 0:x._isRedirect)!==!0,j;h.actionData?Object.keys(h.actionData).length>0?j=h.actionData:j=null:O?j=p.actionData:j=null;let R=h.loaderData?Aa(p.loaderData,h.loaderData,h.matches||[],h.errors):p.loaderData,k=p.blockers;k.size>0&&(k=new Map(k),k.forEach((W,ae)=>k.set(ae,Ft)));let te=U===!0||p.navigation.formMethod!=null&&Re(p.navigation.formMethod)&&((P=f.state)==null?void 0:P._isRedirect)!==!0;s&&(i=s,s=void 0),ee||T===Z.Pop||(T===Z.Push?e.history.push(f,f.state):T===Z.Replace&&e.history.replace(f,f.state));let M;if(T===Z.Pop){let W=G.get(p.location.pathname);W&&W.has(f.pathname)?M={currentLocation:p.location,nextLocation:f}:G.has(f.pathname)&&(M={currentLocation:f,nextLocation:p.location})}else if(le){let W=G.get(p.location.pathname);W?W.add(f.pathname):(W=new Set([f.pathname]),G.set(p.location.pathname,W)),M={currentLocation:p.location,nextLocation:f}}de(X({},h,{actionData:j,loaderData:R,historyAction:T,location:f,initialized:!0,navigation:sn,revalidation:"idle",restoreScrollPosition:_a(f,h.matches||p.matches),preventScrollReset:te,blockers:k}),{viewTransitionOpts:M,flushSync:I===!0}),T=Z.Pop,U=!1,le=!1,ee=!1,Se=!1,Ne=[],dt=[]}async function da(f,h){if(typeof f=="number"){e.history.go(f);return}let y=jn(p.location,p.matches,l,c.v7_prependBasename,f,c.v7_relativeSplatPath,h==null?void 0:h.fromRouteId,h==null?void 0:h.relative),{path:x,submission:P,error:I}=Ca(c.v7_normalizeFormMethod,!1,y,h),O=p.location,j=Kt(p.location,x,h&&h.state);j=X({},j,e.history.encodeLocation(j));let R=h&&h.replace!=null?h.replace:void 0,k=Z.Push;R===!0?k=Z.Replace:R===!1||P!=null&&Re(P.formMethod)&&P.formAction===p.location.pathname+p.location.search&&(k=Z.Replace);let te=h&&"preventScrollReset"in h?h.preventScrollReset===!0:void 0,M=(h&&h.unstable_flushSync)===!0,W=ba({currentLocation:O,nextLocation:j,historyAction:k});if(W){cr(W,{state:"blocked",location:j,proceed(){cr(W,{state:"proceeding",proceed:void 0,reset:void 0,location:j}),da(f,h)},reset(){let ae=new Map(p.blockers);ae.set(W,Ft),de({blockers:ae})}});return}return await Qe(k,j,{submission:P,pendingError:I,preventScrollReset:te,replace:h&&h.replace,enableViewTransition:h&&h.unstable_viewTransition,flushSync:M})}function Hs(){if(en(),de({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){Qe(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}Qe(T||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function Qe(f,h,y){$&&$.abort(),$=null,T=f,ee=(y&&y.startUninterruptedRevalidation)===!0,Qs(p.location,p.matches),U=(y&&y.preventScrollReset)===!0,le=(y&&y.enableViewTransition)===!0;let x=s||i,P=y&&y.overrideNavigation,I=vt(x,h,l),O=(y&&y.flushSync)===!0;if(!I){let ae=_e(404,{pathname:h.pathname}),{matches:he,route:re}=La(x);tn(),Lt(h,{matches:he,loaderData:{},errors:{[re.id]:ae}},{flushSync:O});return}if(p.initialized&&!Se&&Vl(p.location,h)&&!(y&&y.submission&&Re(y.submission.formMethod))){Lt(h,{matches:I},{flushSync:O});return}$=new AbortController;let j=Ut(e.history,h,$.signal,y&&y.submission),R,k;if(y&&y.pendingError)k={[Wt(I).route.id]:y.pendingError};else if(y&&y.submission&&Re(y.submission.formMethod)){let ae=await Vs(j,h,y.submission,I,{replace:y.replace,flushSync:O});if(ae.shortCircuited)return;R=ae.pendingActionData,k=ae.pendingActionError,P=ln(h,y.submission),O=!1,j=new Request(j.url,{signal:j.signal})}let{shortCircuited:te,loaderData:M,errors:W}=await Ws(j,h,I,P,y&&y.submission,y&&y.fetcherSubmission,y&&y.replace,y&&y.initialHydration===!0,O,R,k);te||($=null,Lt(h,X({matches:I},R?{actionData:R}:{},{loaderData:M,errors:W})))}async function Vs(f,h,y,x,P){P===void 0&&(P={}),en();let I=Kl(h,y);de({navigation:I},{flushSync:P.flushSync===!0});let O,j=Dn(x,h);if(!j.route.action&&!j.route.lazy)O={type:J.error,error:_e(405,{method:f.method,pathname:h.pathname,routeId:j.route.id})};else if(O=await kt("action",f,j,x,o,a,l,c.v7_relativeSplatPath),f.signal.aborted)return{shortCircuited:!0};if(at(O)){let R;return P&&P.replace!=null?R=P.replace:R=O.location===p.location.pathname+p.location.search,await $t(p,O,{submission:y,replace:R}),{shortCircuited:!0}}if(bt(O)){let R=Wt(x,j.route.id);return(P&&P.replace)!==!0&&(T=Z.Push),{pendingActionData:{},pendingActionError:{[R.route.id]:O.error}}}if(nt(O))throw _e(400,{type:"defer-action"});return{pendingActionData:{[j.route.id]:O.data}}}async function Ws(f,h,y,x,P,I,O,j,R,k,te){let M=x||ln(h,P),W=P||I||Ia(M),ae=s||i,[he,re]=Ra(e.history,p,y,W,h,c.v7_partialHydration&&j===!0,Se,Ne,dt,Ee,be,A,ae,l,k,te);if(tn(H=>!(y&&y.some(V=>V.route.id===H))||he&&he.some(V=>V.route.id===H)),De=++ht,he.length===0&&re.length===0){let H=ga();return Lt(h,X({matches:y,loaderData:{},errors:te||null},k?{actionData:k}:{},H?{fetchers:new Map(p.fetchers)}:{}),{flushSync:R}),{shortCircuited:!0}}if(!ee&&(!c.v7_partialHydration||!j)){re.forEach(V=>{let ue=p.fetchers.get(V.key),fr=Nt(void 0,ue?ue.data:void 0);p.fetchers.set(V.key,fr)});let H=k||p.actionData;de(X({navigation:M},H?Object.keys(H).length===0?{actionData:null}:{actionData:H}:{},re.length>0?{fetchers:new Map(p.fetchers)}:{}),{flushSync:R})}re.forEach(H=>{K.has(H.key)&&He(H.key),H.controller&&K.set(H.key,H.controller)});let pt=()=>re.forEach(H=>He(H.key));$&&$.signal.addEventListener("abort",pt);let{results:rn,loaderResults:mt,fetcherResults:Ve}=await ha(p.matches,y,he,re,f);if(f.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",pt),re.forEach(H=>K.delete(H.key));let Ze=$a(rn);if(Ze){if(Ze.idx>=he.length){let H=re[Ze.idx-he.length].key;A.add(H)}return await $t(p,Ze.result,{replace:O}),{shortCircuited:!0}}let{loaderData:nn,errors:It}=Da(p,y,he,mt,te,re,Ve,Je);Je.forEach((H,V)=>{H.subscribe(ue=>{(ue||H.done)&&Je.delete(V)})}),c.v7_partialHydration&&j&&p.errors&&Object.entries(p.errors).filter(H=>{let[V]=H;return!he.some(ue=>ue.route.id===V)}).forEach(H=>{let[V,ue]=H;It=Object.assign(It||{},{[V]:ue})});let an=ga(),gt=ya(De),ur=an||gt||re.length>0;return X({loaderData:nn,errors:It},ur?{fetchers:new Map(p.fetchers)}:{})}function qs(f,h,y,x){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(f)&&He(f);let P=(x&&x.unstable_flushSync)===!0,I=s||i,O=jn(p.location,p.matches,l,c.v7_prependBasename,y,c.v7_relativeSplatPath,h,x==null?void 0:x.relative),j=vt(I,O,l);if(!j){Mt(f,h,_e(404,{pathname:O}),{flushSync:P});return}let{path:R,submission:k,error:te}=Ca(c.v7_normalizeFormMethod,!0,O,x);if(te){Mt(f,h,te,{flushSync:P});return}let M=Dn(j,R);if(U=(x&&x.preventScrollReset)===!0,k&&Re(k.formMethod)){Ys(f,h,R,M,j,P,k);return}be.set(f,{routeId:h,path:R}),Ks(f,h,R,M,j,P,k)}async function Ys(f,h,y,x,P,I,O){if(en(),be.delete(f),!x.route.action&&!x.route.lazy){let V=_e(405,{method:O.formMethod,pathname:y,routeId:h});Mt(f,h,V,{flushSync:I});return}let j=p.fetchers.get(f);Be(f,Gl(O,j),{flushSync:I});let R=new AbortController,k=Ut(e.history,y,R.signal,O);K.set(f,R);let te=ht,M=await kt("action",k,x,P,o,a,l,c.v7_relativeSplatPath);if(k.signal.aborted){K.get(f)===R&&K.delete(f);return}if(c.v7_fetcherPersist&&Ee.has(f)){if(at(M)||bt(M)){Be(f,We(void 0));return}}else{if(at(M))if(K.delete(f),De>te){Be(f,We(void 0));return}else return A.add(f),Be(f,Nt(O)),$t(p,M,{fetcherSubmission:O});if(bt(M)){Mt(f,h,M.error);return}}if(nt(M))throw _e(400,{type:"defer-action"});let W=p.navigation.location||p.location,ae=Ut(e.history,W,R.signal),he=s||i,re=p.navigation.state!=="idle"?vt(he,p.navigation.location,l):p.matches;F(re,"Didn't find any matches after fetcher action");let pt=++ht;ze.set(f,pt);let rn=Nt(O,M.data);p.fetchers.set(f,rn);let[mt,Ve]=Ra(e.history,p,re,O,W,!1,Se,Ne,dt,Ee,be,A,he,l,{[x.route.id]:M.data},void 0);Ve.filter(V=>V.key!==f).forEach(V=>{let ue=V.key,fr=p.fetchers.get(ue),el=Nt(void 0,fr?fr.data:void 0);p.fetchers.set(ue,el),K.has(ue)&&He(ue),V.controller&&K.set(ue,V.controller)}),de({fetchers:new Map(p.fetchers)});let Ze=()=>Ve.forEach(V=>He(V.key));R.signal.addEventListener("abort",Ze);let{results:nn,loaderResults:It,fetcherResults:an}=await ha(p.matches,re,mt,Ve,ae);if(R.signal.aborted)return;R.signal.removeEventListener("abort",Ze),ze.delete(f),K.delete(f),Ve.forEach(V=>K.delete(V.key));let gt=$a(nn);if(gt){if(gt.idx>=mt.length){let V=Ve[gt.idx-mt.length].key;A.add(V)}return $t(p,gt.result)}let{loaderData:ur,errors:H}=Da(p,p.matches,mt,It,void 0,Ve,an,Je);if(p.fetchers.has(f)){let V=We(M.data);p.fetchers.set(f,V)}ya(pt),p.navigation.state==="loading"&&pt>De?(F(T,"Expected pending action"),$&&$.abort(),Lt(p.navigation.location,{matches:re,loaderData:ur,errors:H,fetchers:new Map(p.fetchers)})):(de({errors:H,loaderData:Aa(p.loaderData,ur,re,H),fetchers:new Map(p.fetchers)}),Se=!1)}async function Ks(f,h,y,x,P,I,O){let j=p.fetchers.get(f);Be(f,Nt(O,j?j.data:void 0),{flushSync:I});let R=new AbortController,k=Ut(e.history,y,R.signal);K.set(f,R);let te=ht,M=await kt("loader",k,x,P,o,a,l,c.v7_relativeSplatPath);if(nt(M)&&(M=await hi(M,k.signal,!0)||M),K.get(f)===R&&K.delete(f),!k.signal.aborted){if(Ee.has(f)){Be(f,We(void 0));return}if(at(M))if(De>te){Be(f,We(void 0));return}else{A.add(f),await $t(p,M);return}if(bt(M)){Mt(f,h,M.error);return}F(!nt(M),"Unhandled fetcher deferred data"),Be(f,We(M.data))}}async function $t(f,h,y){let{submission:x,fetcherSubmission:P,replace:I}=y===void 0?{}:y;h.revalidate&&(Se=!0);let O=Kt(f.location,h.location,{_isRedirect:!0});if(F(O,"Expected a location on the redirect navigation"),r){let W=!1;if(h.reloadDocument)W=!0;else if(ci.test(h.location)){const ae=e.history.createURL(h.location);W=ae.origin!==t.location.origin||Rt(ae.pathname,l)==null}if(W){I?t.location.replace(h.location):t.location.assign(h.location);return}}$=null;let j=I===!0?Z.Replace:Z.Push,{formMethod:R,formAction:k,formEncType:te}=f.navigation;!x&&!P&&R&&k&&te&&(x=Ia(f.navigation));let M=x||P;if(Il.has(h.status)&&M&&Re(M.formMethod))await Qe(j,O,{submission:X({},M,{formAction:h.location}),preventScrollReset:U});else{let W=ln(O,x);await Qe(j,O,{overrideNavigation:W,fetcherSubmission:P,preventScrollReset:U})}}async function ha(f,h,y,x,P){let I=await Promise.all([...y.map(R=>kt("loader",P,R,h,o,a,l,c.v7_relativeSplatPath)),...x.map(R=>R.matches&&R.match&&R.controller?kt("loader",Ut(e.history,R.path,R.controller.signal),R.match,R.matches,o,a,l,c.v7_relativeSplatPath):{type:J.error,error:_e(404,{pathname:R.path})})]),O=I.slice(0,y.length),j=I.slice(y.length);return await Promise.all([Ma(f,y,O,O.map(()=>P.signal),!1,p.loaderData),Ma(f,x.map(R=>R.match),j,x.map(R=>R.controller?R.controller.signal:null),!0)]),{results:I,loaderResults:O,fetcherResults:j}}function en(){Se=!0,Ne.push(...tn()),be.forEach((f,h)=>{K.has(h)&&(dt.push(h),He(h))})}function Be(f,h,y){y===void 0&&(y={}),p.fetchers.set(f,h),de({fetchers:new Map(p.fetchers)},{flushSync:(y&&y.flushSync)===!0})}function Mt(f,h,y,x){x===void 0&&(x={});let P=Wt(p.matches,h);lr(f),de({errors:{[P.route.id]:y},fetchers:new Map(p.fetchers)},{flushSync:(x&&x.flushSync)===!0})}function pa(f){return c.v7_fetcherPersist&&(Ae.set(f,(Ae.get(f)||0)+1),Ee.has(f)&&Ee.delete(f)),p.fetchers.get(f)||Fl}function lr(f){let h=p.fetchers.get(f);K.has(f)&&!(h&&h.state==="loading"&&ze.has(f))&&He(f),be.delete(f),ze.delete(f),A.delete(f),Ee.delete(f),p.fetchers.delete(f)}function Gs(f){if(c.v7_fetcherPersist){let h=(Ae.get(f)||0)-1;h<=0?(Ae.delete(f),Ee.add(f)):Ae.set(f,h)}else lr(f);de({fetchers:new Map(p.fetchers)})}function He(f){let h=K.get(f);F(h,"Expected fetch controller: "+f),h.abort(),K.delete(f)}function ma(f){for(let h of f){let y=pa(h),x=We(y.data);p.fetchers.set(h,x)}}function ga(){let f=[],h=!1;for(let y of A){let x=p.fetchers.get(y);F(x,"Expected fetcher: "+y),x.state==="loading"&&(A.delete(y),f.push(y),h=!0)}return ma(f),h}function ya(f){let h=[];for(let[y,x]of ze)if(x0}function Js(f,h){let y=p.blockers.get(f)||Ft;return Xe.get(f)!==h&&Xe.set(f,h),y}function va(f){p.blockers.delete(f),Xe.delete(f)}function cr(f,h){let y=p.blockers.get(f)||Ft;F(y.state==="unblocked"&&h.state==="blocked"||y.state==="blocked"&&h.state==="blocked"||y.state==="blocked"&&h.state==="proceeding"||y.state==="blocked"&&h.state==="unblocked"||y.state==="proceeding"&&h.state==="unblocked","Invalid blocker state transition: "+y.state+" -> "+h.state);let x=new Map(p.blockers);x.set(f,h),de({blockers:x})}function ba(f){let{currentLocation:h,nextLocation:y,historyAction:x}=f;if(Xe.size===0)return;Xe.size>1&&wt(!1,"A router only supports one blocker at a time");let P=Array.from(Xe.entries()),[I,O]=P[P.length-1],j=p.blockers.get(I);if(!(j&&j.state==="proceeding")&&O({currentLocation:h,nextLocation:y,historyAction:x}))return I}function tn(f){let h=[];return Je.forEach((y,x)=>{(!f||f(x))&&(y.cancel(),h.push(x),Je.delete(x))}),h}function Xs(f,h,y){if(v=f,b=h,_=y||null,!m&&p.navigation===sn){m=!0;let x=_a(p.location,p.matches);x!=null&&de({restoreScrollPosition:x})}return()=>{v=null,b=null,_=null}}function wa(f,h){return _&&_(f,h.map(x=>dl(x,p.loaderData)))||f.key}function Qs(f,h){if(v&&b){let y=wa(f,h);v[y]=b()}}function _a(f,h){if(v){let y=wa(f,h),x=v[y];if(typeof x=="number")return x}return null}function Zs(f){o={},s=Tn(f,a,void 0,o)}return L={get basename(){return l},get future(){return c},get state(){return p},get routes(){return i},get window(){return t},initialize:Ns,subscribe:Bs,enableScrollRestoration:Xs,navigate:da,fetch:qs,revalidate:Hs,createHref:f=>e.history.createHref(f),encodeLocation:f=>e.history.encodeLocation(f),getFetcher:pa,deleteFetcher:Gs,dispose:zs,getBlocker:Js,deleteBlocker:va,_internalFetchControllers:K,_internalActiveDeferreds:Je,_internalSetRoutes:Zs},L}function Nl(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jn(e,t,r,n,a,o,i,s){let l,c;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){c=d;break}}else l=t,c=t[t.length-1];let u=$r(a||".",Lr(l,o),Rt(e.pathname,r)||e.pathname,s==="path");return a==null&&(u.search=e.search,u.hash=e.hash),(a==null||a===""||a===".")&&c&&c.route.index&&!Kn(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:Ie([r,u.pathname])),ot(u)}function Ca(e,t,r,n){if(!n||!Nl(n))return{path:r};if(n.formMethod&&!Yl(n.formMethod))return{path:r,error:_e(405,{method:n.formMethod})};let a=()=>({path:r,error:_e(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=di(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Re(i))return a();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,b)=>{let[m,g]=b;return""+_+m+"="+g+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Re(i))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}F(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=On(n.formData),c=n.formData;else if(n.body instanceof FormData)l=On(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=Oa(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=Oa(l)}catch{return a()}let u={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Re(u.formMethod))return{path:r,submission:u};let d=ke(r);return t&&d.search&&Kn(d.search)&&l.append("index",""),d.search="?"+l,{path:ot(d),submission:u}}function zl(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function Ra(e,t,r,n,a,o,i,s,l,c,u,d,v,_,b,m){let g=m?Object.values(m)[0]:b?Object.values(b)[0]:void 0,S=e.createURL(t.location),C=e.createURL(a),D=m?Object.keys(m)[0]:void 0,L=zl(r,D).filter((T,U)=>{let{route:$}=T;if($.lazy)return!0;if($.loader==null)return!1;if(o)return $.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if(Bl(t.loaderData,t.matches[U],T)||s.some(ce=>ce===T.route.id))return!0;let le=t.matches[U],G=T;return Ta(T,X({currentUrl:S,currentParams:le.params,nextUrl:C,nextParams:G.params},n,{actionResult:g,defaultShouldRevalidate:i||S.pathname+S.search===C.pathname+C.search||S.search!==C.search||fi(le,G)}))}),p=[];return u.forEach((T,U)=>{if(o||!r.some(ee=>ee.route.id===T.routeId)||c.has(U))return;let $=vt(v,T.path,_);if(!$){p.push({key:U,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let le=t.fetchers.get(U),G=Dn($,T.path),ce=!1;d.has(U)?ce=!1:l.includes(U)?ce=!0:le&&le.state!=="idle"&&le.data===void 0?ce=i:ce=Ta(G,X({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:r[r.length-1].params},n,{actionResult:g,defaultShouldRevalidate:i})),ce&&p.push({key:U,routeId:T.routeId,path:T.path,matches:$,match:G,controller:new AbortController})}),[L,p]}function Bl(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function fi(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ta(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function ja(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];F(a,"No route found in manifest");let o={};for(let i in n){let l=a[i]!==void 0&&i!=="hasErrorBoundary";wt(!l,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!ul.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,X({},t(a),{lazy:void 0}))}async function kt(e,t,r,n,a,o,i,s,l){l===void 0&&(l={});let c,u,d,v=m=>{let g,S=new Promise((C,D)=>g=D);return d=()=>g(),t.signal.addEventListener("abort",d),Promise.race([m({request:t,params:r.params,context:l.requestContext}),S])};try{let m=r.route[e];if(r.route.lazy)if(m){let g,S=await Promise.all([v(m).catch(C=>{g=C}),ja(r.route,o,a)]);if(g)throw g;u=S[0]}else if(await ja(r.route,o,a),m=r.route[e],m)u=await v(m);else if(e==="action"){let g=new URL(t.url),S=g.pathname+g.search;throw _e(405,{method:t.method,pathname:S,routeId:r.route.id})}else return{type:J.data,data:void 0};else if(m)u=await v(m);else{let g=new URL(t.url),S=g.pathname+g.search;throw _e(404,{pathname:S})}F(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){c=J.error,u=m}finally{d&&t.signal.removeEventListener("abort",d)}if(ql(u)){let m=u.status;if(Ml.has(m)){let S=u.headers.get("Location");if(F(S,"Redirects returned/thrown from loaders/actions must have a Location header"),!ci.test(S))S=jn(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,S,s);else if(!l.isStaticRequest){let C=new URL(t.url),D=S.startsWith("//")?new URL(C.protocol+S):new URL(S),z=Rt(D.pathname,i)!=null;D.origin===C.origin&&z&&(S=D.pathname+D.search+D.hash)}if(l.isStaticRequest)throw u.headers.set("Location",S),u;return{type:J.redirect,status:m,location:S,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:c===J.error?J.error:J.data,response:u};let g;try{let S=u.headers.get("Content-Type");S&&/\bapplication\/json\b/.test(S)?u.body==null?g=null:g=await u.json():g=await u.text()}catch(S){return{type:J.error,error:S}}return c===J.error?{type:c,error:new Yn(m,u.statusText,g),headers:u.headers}:{type:J.data,data:g,statusCode:u.status,headers:u.headers}}if(c===J.error)return{type:c,error:u};if(Wl(u)){var _,b;return{type:J.deferred,deferredData:u,statusCode:(_=u.init)==null?void 0:_.status,headers:((b=u.init)==null?void 0:b.headers)&&new Headers(u.init.headers)}}return{type:J.data,data:u}}function Ut(e,t,r,n){let a=e.createURL(di(t)).toString(),o={signal:r};if(n&&Re(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=On(n.formData):o.body=n.formData}return new Request(a,o)}function On(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Oa(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Hl(e,t,r,n,a){let o={},i=null,s,l=!1,c={};return r.forEach((u,d)=>{let v=t[d].route.id;if(F(!at(u),"Cannot handle redirect results in processLoaderData"),bt(u)){let _=Wt(e,v),b=u.error;n&&(b=Object.values(n)[0],n=void 0),i=i||{},i[_.route.id]==null&&(i[_.route.id]=b),o[v]=void 0,l||(l=!0,s=si(u.error)?u.error.status:500),u.headers&&(c[v]=u.headers)}else nt(u)?(a.set(v,u.deferredData),o[v]=u.deferredData.data):o[v]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[v]=u.headers)}),n&&(i=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:c}}function Da(e,t,r,n,a,o,i,s){let{loaderData:l,errors:c}=Hl(t,r,n,a,s);for(let u=0;un.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function La(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function _e(e,t){let{pathname:r,routeId:n,method:a,type:o}=t===void 0?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",s='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new Yn(e||500,i,new Error(s),!0)}function $a(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(at(r))return{result:r,idx:t}}}function di(e){let t=typeof e=="string"?ke(e):e;return ot(X({},t,{hash:""}))}function Vl(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function nt(e){return e.type===J.deferred}function bt(e){return e.type===J.error}function at(e){return(e&&e.type)===J.redirect}function Wl(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ql(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Yl(e){return $l.has(e.toLowerCase())}function Re(e){return Al.has(e.toLowerCase())}async function Ma(e,t,r,n,a,o){for(let i=0;id.route.id===l.route.id),u=c!=null&&!fi(c,l)&&(o&&o[l.route.id])!==void 0;if(nt(s)&&(a||u)){let d=n[i];F(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await hi(s,d,a).then(v=>{v&&(r[i]=v||r[i])})}}}async function hi(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:J.data,data:e.deferredData.unwrappedData}}catch(a){return{type:J.error,error:a}}return{type:J.data,data:e.deferredData.data}}}function Kn(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Dn(e,t){let r=typeof t=="string"?ke(t).search:t.search;if(e[e.length-1].route.index&&Kn(r||""))return e[e.length-1];let n=ii(e);return n[n.length-1]}function Ia(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ln(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Kl(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Nt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Gl(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function We(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Jl(e,t){try{let r=e.sessionStorage.getItem(ui);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function Xl(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(ui,JSON.stringify(r))}catch(n){wt(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const E=window.React;function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=$r(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ie([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}const ec=E.createContext(null);function tc(e){let t=E.useContext(Le).outlet;return t&&E.createElement(ec.Provider,{value:e},t)}function rc(){let{matches:e}=E.useContext(Le),t=e[e.length-1];return t?t.params:{}}function yi(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=E.useContext(Ke),{matches:a}=E.useContext(Le),{pathname:o}=jt(),i=JSON.stringify(Lr(a,n.v7_relativeSplatPath));return E.useMemo(()=>$r(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function nc(e,t,r,n){Tt()||F(!1);let{navigator:a}=E.useContext(Ke),{matches:o}=E.useContext(Le),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=jt(),u;if(t){var d;let g=typeof t=="string"?ke(t):t;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||F(!1),u=g}else u=c;let v=u.pathname||"/",_=v;if(l!=="/"){let g=l.replace(/^\//,"").split("/");_="/"+v.replace(/^\//,"").split("/").slice(g.length).join("/")}let b=vt(e,{pathname:_}),m=lc(b&&b.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Ie([l,a.encodeLocation?a.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Ie([l,a.encodeLocation?a.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n);return t&&m?E.createElement(Ir.Provider,{value:{location:Gt({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Z.Pop}},m):m}function ac(){let e=wi(),t=si(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),r?E.createElement("pre",{style:a},r):null,null)}const oc=E.createElement(ac,null);class ic extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(Le.Provider,{value:this.props.routeContext},E.createElement(mi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sc(e){let{routeContext:t,match:r,children:n}=e,a=E.useContext(Mr);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(Le.Provider,{value:t},n)}function lc(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));u>=0||F(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,v)=>{let _,b=!1,m=null,g=null;r&&(_=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||oc,l&&(c<0&&v===0?(hc("route-fallback",!1),b=!0,g=null):c===v&&(b=!0,g=d.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,v+1)),C=()=>{let D;return _?D=m:b?D=g:d.route.Component?D=E.createElement(d.route.Component,null):d.route.element?D=d.route.element:D=u,E.createElement(sc,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:r!=null},children:D})};return r&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?E.createElement(ic,{location:r.location,revalidation:r.revalidation,component:m,error:_,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var vi=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vi||{}),_t=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(_t||{});function cc(e){let t=E.useContext(Mr);return t||F(!1),t}function bi(e){let t=E.useContext(pi);return t||F(!1),t}function uc(e){let t=E.useContext(Le);return t||F(!1),t}function Jn(e){let t=uc(),r=t.matches[t.matches.length-1];return r.route.id||F(!1),r.route.id}function fc(){let e=bi(_t.UseLoaderData),t=Jn(_t.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function wi(){var e;let t=E.useContext(mi),r=bi(_t.UseRouteError),n=Jn(_t.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function dc(){let{router:e}=cc(vi.UseNavigateStable),t=Jn(_t.UseNavigateStable),r=E.useRef(!1);return gi(()=>{r.current=!0}),E.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Gt({fromRouteId:t},o)))},[e,t])}const ka={};function hc(e,t,r){!t&&!ka[e]&&(ka[e]=!0)}const pc="startTransition";E[pc];function mc(e){let{to:t,replace:r,state:n,relative:a}=e;Tt()||F(!1);let{future:o,static:i}=E.useContext(Ke),{matches:s}=E.useContext(Le),{pathname:l}=jt(),c=Gn(),u=$r(t,Lr(s,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(u);return E.useEffect(()=>c(JSON.parse(d),{replace:r,state:n,relative:a}),[c,d,a,r,n]),null}function gc(e){return tc(e.context)}function yc(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Z.Pop,navigator:o,static:i=!1,future:s}=e;Tt()&&F(!1);let l=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:l,navigator:o,static:i,future:Gt({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=ke(n));let{pathname:u="/",search:d="",hash:v="",state:_=null,key:b="default"}=n,m=E.useMemo(()=>{let g=Rt(u,l);return g==null?null:{location:{pathname:g,search:d,hash:v,state:_,key:b},navigationType:a}},[l,u,d,v,_,b,a]);return m==null?null:E.createElement(Ke.Provider,{value:c},E.createElement(Ir.Provider,{children:r,value:m}))}var we=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(we||{});const vc=new Promise(()=>{});class uv extends E.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error(" caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=we.pending;if(!(n instanceof Promise))o=we.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=we.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o=a._error!==void 0?we.error:a._data!==void 0?we.success:we.pending):(o=we.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===we.error&&a._error instanceof Dl)throw vc;if(o===we.error&&!r)throw a._error;if(o===we.error)return E.createElement(Fa.Provider,{value:a,children:r});if(o===we.success)return E.createElement(Fa.Provider,{value:a,children:t});throw a}}function bc(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:E.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.22.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const N=window.React,wc=window.ReactDOM;function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function xc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sc(e,t){return e.button===0&&(!t||t==="_self")&&!xc(e)}const Ec=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Pc="6";try{window.__reactRouterVersion=Pc}catch{}function Cc(e,t){return Ul({basename:t==null?void 0:t.basename,future:Jt({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:sl({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Rc(),routes:e,mapRouteProperties:bc,window:t==null?void 0:t.window}).initialize()}function Rc(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jt({},t,{errors:Tc(t.errors)})),t}function Tc(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Yn(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const jc=N.createContext({isTransitioning:!1}),Oc=N.createContext(new Map),Dc="startTransition",Ua=N[Dc],Ac="flushSync",Na=wc[Ac],Lc="useId";N[Lc];function $c(e){Ua?Ua(e):e()}function zt(e){Na?Na(e):e()}class Mc{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function Ic(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=N.useState(r.state),[i,s]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[u,d]=N.useState(),[v,_]=N.useState(),[b,m]=N.useState(),g=N.useRef(new Map),{v7_startTransition:S}=n||{},C=N.useCallback(T=>{S?$c(T):T()},[S]),D=N.useCallback((T,U)=>{let{deletedFetchers:$,unstable_flushSync:le,unstable_viewTransitionOpts:G}=U;$.forEach(ee=>g.current.delete(ee)),T.fetchers.forEach((ee,Se)=>{ee.data!==void 0&&g.current.set(Se,ee.data)});let ce=r.window==null||typeof r.window.document.startViewTransition!="function";if(!G||ce){le?zt(()=>o(T)):C(()=>o(T));return}if(le){zt(()=>{v&&(u&&u.resolve(),v.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:G.currentLocation,nextLocation:G.nextLocation})});let ee=r.window.document.startViewTransition(()=>{zt(()=>o(T))});ee.finished.finally(()=>{zt(()=>{d(void 0),_(void 0),s(void 0),c({isTransitioning:!1})})}),zt(()=>_(ee));return}v?(u&&u.resolve(),v.skipTransition(),m({state:T,currentLocation:G.currentLocation,nextLocation:G.nextLocation})):(s(T),c({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}))},[r.window,v,u,g,C]);N.useLayoutEffect(()=>r.subscribe(D),[r,D]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new Mc)},[l]),N.useEffect(()=>{if(u&&i&&r.window){let T=i,U=u.promise,$=r.window.document.startViewTransition(async()=>{C(()=>o(T)),await U});$.finished.finally(()=>{d(void 0),_(void 0),s(void 0),c({isTransitioning:!1})}),_($)}},[C,i,u,r.window]),N.useEffect(()=>{u&&i&&a.location.key===i.location.key&&u.resolve()},[u,v,a.location,i]),N.useEffect(()=>{!l.isTransitioning&&b&&(s(b.state),c({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),m(void 0))},[l.isTransitioning,b]),N.useEffect(()=>{},[]);let z=N.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:T=>r.navigate(T),push:(T,U,$)=>r.navigate(T,{state:U,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(T,U,$)=>r.navigate(T,{replace:!0,state:U,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[r]),L=r.basename||"/",p=N.useMemo(()=>({router:r,navigator:z,static:!1,basename:L}),[r,z,L]);return N.createElement(N.Fragment,null,N.createElement(Mr.Provider,{value:p},N.createElement(pi.Provider,{value:a},N.createElement(Oc.Provider,{value:g.current},N.createElement(jc.Provider,{value:l},N.createElement(yc,{basename:L,location:a.location,navigationType:a.historyAction,navigator:z,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?N.createElement(Fc,{routes:r.routes,future:r.future,state:a}):t))))),null)}function Fc(e){let{routes:t,future:r,state:n}=e;return nc(t,void 0,n,r)}const kc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fv=N.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=t,v=_c(t,Ec),{basename:_}=N.useContext(Ke),b,m=!1;if(typeof c=="string"&&Uc.test(c)&&(b=c,kc))try{let D=new URL(window.location.href),z=c.startsWith("//")?new URL(D.protocol+c):new URL(c),L=Rt(z.pathname,_);z.origin===D.origin&&L!=null?c=L+z.search+z.hash:m=!0}catch{}let g=Ql(c,{relative:a}),S=Nc(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:a,unstable_viewTransition:d});function C(D){n&&n(D),D.defaultPrevented||S(D)}return N.createElement("a",Jt({},v,{href:b||g,onClick:m||o?n:C,ref:r,target:l}))});var za;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(za||(za={}));var Ba;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ba||(Ba={}));function Nc(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,l=Gn(),c=jt(),u=yi(e,{relative:i});return N.useCallback(d=>{if(Sc(d,r)){d.preventDefault();let v=n!==void 0?n:ot(c)===ot(u);l(e,{replace:v,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[c,l,u,n,a,r,e,o,i,s])}const zc="modulepreload",Bc=function(e){return"/"+e},Ha={},oe=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.all(r.map(l=>{if(l=Bc(l),l in Ha)return;Ha[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!n)for(let _=o.length-1;_>=0;_--){const b=o[_];if(b.href===l&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const v=document.createElement("link");if(v.rel=c?"stylesheet":zc,c||(v.as="script",v.crossOrigin=""),v.href=l,s&&v.setAttribute("nonce",s),document.head.appendChild(v),c)return new Promise((_,b)=>{v.addEventListener("load",_),v.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}return a.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Hc=window.React.Suspense,Vc=window.antd.Spin,ie=e=>w.jsx(Hc,{fallback:w.jsx(Vc,{size:"large",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}}),children:w.jsx(e,{})}),Wc=window.antd.App;let je,qc,Yc;const Kc=()=>{const e=Wc.useApp();return je=e.message,Yc=e.modal,qc=e.notification,null};let Sr=0;const Gc=()=>{if(Sr===0){const e=document.getElementById("loading");e==null||e.style.setProperty("display","flex")}Sr++},Va=()=>{if(Sr--,Sr===0){const e=document.getElementById("loading");e==null||e.style.setProperty("display","none")}},_i={set(e,t){localStorage.setItem(e,JSON.stringify(t))},get(e){const t=localStorage.getItem(e);if(!t)return"";try{return JSON.parse(t)}catch{return""}},remove(e){localStorage.removeItem(e)},clear(){localStorage.clear()}},Jc=window.axios,cn="服务异常,请稍后再试",Er=Jc.create({timeout:8e3,timeoutErrorMessage:"请求超时,请稍后再试",withCredentials:!0,headers:{}});Er.interceptors.request.use(e=>{e.showLoading===!1||Gc(),e.baseURL="http://mars-api.marsview.cc/api";const t=_i.get("token");return t&&(e.headers={Authorization:`Bearer ${t}`}),e},e=>Promise.reject(e));Er.interceptors.response.use(async e=>{e.config.showLoading===!1||Va();const t=await e.data;return t?t.ret===0?t.data:t.ret===10018?(je.error("登录已过期,请重新登录"),setTimeout(()=>(window.location.replace(`/login?callback=${window.location.href}`),null),1500),Promise.reject(t.message)):t.ret!=0?(je.error(t.message),Promise.reject(t.message)):t:(je.error(cn),Promise.reject(cn))},e=>(Va(),e.response&&e.response.status===403?$s.navigate("/403"):je.error(e.message||cn),Promise.reject(e.message)));const B={get(e,t={},r={showLoading:!0,showError:!0}){return Er.get(e,{params:t,...r})},post(e,t={},r={showLoading:!0,showError:!0}){return Er.post(e,t,r)}},dv=async e=>B.post("/user/login",e,{showLoading:!1}),Xc=async()=>B.get("/user/info",{},{showLoading:!1}),Qc=()=>Promise.resolve({avatar:""}),hv=e=>B.get("/page/list",e,{showLoading:!1}),pv=e=>B.get(`/page/detail/${e}`),mv=e=>B.post("/page/copy",e),gv=e=>B.post("/page/delete",e),Zc=e=>B.post("/page/create",e),xi=e=>B.post("/page/update",e,{showLoading:!1}),eu=e=>B.post("/publish/create",e,{showLoading:!1}),yv=e=>B.post("/publish/list",e,{showLoading:!1}),vv=e=>B.post("/page/rollback",e),bv=e=>B.post("/user/search",{keyword:e},{showLoading:!1}),wv=e=>B.get("/project/list",e,{showLoading:!1}),_v=e=>B.post("/project/create",e,{showLoading:!1}),xv=e=>B.post("/project/delete",e,{showLoading:!1}),Sv=e=>B.get(`/project/detail/${e}`,{},{showLoading:!1}),Ev=e=>B.post("/project/update",e,{showLoading:!1}),Pv=e=>B.post("/menu/list",e,{showLoading:!1}),Cv=e=>B.post("/menu/create",e,{showLoading:!1}),Rv=e=>B.post("/menu/delete",e,{showLoading:!1}),Tv=e=>B.post("/menu/update",e,{showLoading:!1}),jv=e=>B.post("/menu/copy",e,{showLoading:!1}),Ov=e=>B.get("/user/list",e,{showLoading:!1}),Dv=e=>B.post("/user/create",e,{showLoading:!1}),Av=e=>B.post("/user/delete",e,{showLoading:!1}),Lv=e=>B.post("/user/update",e,{showLoading:!1}),$v=e=>B.get("/role/list",e,{showLoading:!1}),Mv=e=>B.get("/role/listAll",{project_id:e},{showLoading:!1}),Iv=e=>B.post("/role/create",e,{showLoading:!1}),Fv=e=>B.post("/role/delete",e,{showLoading:!1}),kv=e=>B.post("/role/updateLimits",e,{showLoading:!1}),Uv=e=>B.post("/role/update",e,{showLoading:!1});async function tu(){try{if(!_i.get("token"))return window.location.replace(`/login?callback=${window.location.href}`),"";const e=await Xc();return{userId:e.userId,userName:e.userName}}catch{return""}}const ru=window.React.createContext;var nu=ru({});const Si=nu;function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&(r[a]=e[a]);return r}function Pi(e,t){if(e==null)return{};var r=uu(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Ci={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i1)&&(e=1),e}function dr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function un(e){return e.length===1?"0"+e:String(e)}function gu(e,t,r){return{r:xe(e,255)*255,g:xe(t,255)*255,b:xe(r,255)*255}}function fn(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function yu(e,t,r){var n,a,o;if(e=xe(e,360),t=xe(t,100),r=xe(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=fn(s,i,e+1/3),a=fn(s,i,e),o=fn(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function vu(e,t,r){e=xe(e,255),t=xe(t,255),r=xe(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-hr*t:Math.round(e.h)+hr*t:n=r?Math.round(e.h)+hr*t:Math.round(e.h)-hr*t,n<0?n+=360:n>=360&&(n-=360),n}function Xa(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ka*t:t===Ti?n=e.s+Ka:n=e.s+Eu*t,n>1&&(n=1),r&&t===Ri&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Qa(e,t,r){var n;return r?n=e.v+Pu*t:n=e.v-Cu*t,n>1&&(n=1),Number(n.toFixed(2))}function Pr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Bt(e),a=Ri;a>0;a-=1){var o=Ga(n),i=pr(Bt({h:Ja(o,a,!0),s:Xa(o,a,!0),v:Qa(o,a,!0)}));r.push(i)}r.push(pr(n));for(var s=1;s<=Ti;s+=1){var l=Ga(n),c=pr(Bt({h:Ja(l,s),s:Xa(l,s),v:Qa(l,s)}));r.push(c)}return t.theme==="dark"?Ru.map(function(u){var d=u.index,v=u.opacity,_=pr(Tu(Bt(t.backgroundColor||"#141414"),Bt(r[d]),v*100));return _}):r}var vr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ne={},br={};Object.keys(vr).forEach(function(e){ne[e]=Pr(vr[e]),ne[e].primary=ne[e][5],br[e]=Pr(vr[e],{theme:"dark",backgroundColor:"#141414"}),br[e].primary=br[e][5]});var ju=ne.red,Ou=ne.volcano,Du=ne.gold,Au=ne.orange,Lu=ne.yellow,$u=ne.lime,Mu=ne.green,Iu=ne.cyan,ji=ne.blue,Fu=ne.geekblue,ku=ne.purple,Uu=ne.magenta,Nu=ne.grey,zu=ne.grey;const Nv=Object.freeze(Object.defineProperty({__proto__:null,blue:ji,cyan:Iu,geekblue:Fu,generate:Pr,gold:Du,gray:zu,green:Mu,grey:Nu,lime:$u,magenta:Uu,orange:Au,presetDarkPalettes:br,presetPalettes:ne,presetPrimaryColors:vr,purple:ku,red:ju,volcano:Ou,yellow:Lu},Symbol.toStringTag,{value:"Module"}));function Za(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Yu}function Xn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Ku(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Qn(e){return Array.from((Ln.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Di(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Wu())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=Ku(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(ro,i),s&&o&&l.setAttribute(no,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=Xn(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Qn(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(ro)))return!1;var _=Number(v.getAttribute(no)||0);return o>=_});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Xn(t);return(t.styles||Qn(r)).find(function(n){return n.getAttribute(Oi(t))===e})}function Ju(e,t){var r=Ln.get(e);if(!r||!qu(document,r)){var n=Di("",t),a=n.parentNode;Ln.set(e,a),e.removeChild(n)}}function Xu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Xn(r),a=Qn(n),o=to(to({},r),{},{styles:a});Ju(n,o);var i=Gu(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Di(e,o);return u.setAttribute(Oi(o),t),u}function Ai(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Qu(e){return Ai(e)instanceof ShadowRoot}function Zu(e){return Qu(e)?Ai(e):null}var $n={},ef=function(t){};function tf(e,t){}function rf(e,t){}function nf(){$n={}}function Li(e,t,r){!t&&!$n[r]&&(e(!1,r),$n[r]=!0)}function Fr(e,t){Li(tf,e,t)}function af(e,t){Li(rf,e,t)}Fr.preMessage=ef;Fr.resetWarned=nf;Fr.noteOnce=af;const ao=window.React,of=window.React.useContext,sf=window.React.useEffect;function lf(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function cf(e,t){Fr(e,"[@ant-design/icons] ".concat(t))}function oo(e){return it(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(it(e.icon)==="object"||typeof e.icon=="function")}function io(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[lf(r)]=n}return t},{})}function Mn(e,t,r){return r?ao.createElement(e.tag,Ye(Ye({key:t},io(e.attrs)),r),(e.children||[]).map(function(n,a){return Mn(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ao.createElement(e.tag,Ye({key:t},io(e.attrs)),(e.children||[]).map(function(n,a){return Mn(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function $i(e){return Pr(e)[0]}function Mi(e){return e?Array.isArray(e)?e:[e]:[]}var zv={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},uf=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ff=function(t){var r=of(Si),n=r.csp,a=r.prefixCls,o=uf;a&&(o=o.replace(/anticon/g,a)),sf(function(){var i=t.current,s=Zu(i);Xu(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},df=["icon","className","onClick","style","primaryColor","secondaryColor"];const hf=window.React;var qt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function pf(e){var t=e.primaryColor,r=e.secondaryColor;qt.primaryColor=t,qt.secondaryColor=r||$i(t),qt.calculated=!!r}function mf(){return Ye({},qt)}var Ot=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Pi(t,df),c=hf.useRef(),u=qt;if(i&&(u={primaryColor:i,secondaryColor:s||$i(i)}),ff(c),cf(oo(r),"icon should be icon definiton, but got ".concat(r)),!oo(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=Ye(Ye({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Mn(d.icon,"svg-".concat(d.name),Ye(Ye({className:n,onClick:a,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ot.displayName="IconReact";Ot.getTwoToneColors=mf;Ot.setTwoToneColors=pf;function Ii(e){var t=Mi(e),r=Ei(t,2),n=r[0],a=r[1];return Ot.setTwoToneColors({primaryColor:n,secondaryColor:a})}function gf(){var e=Ot.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var yf=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];const mr=window.React;Ii(ji.primary);var kr=mr.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Pi(e,yf),u=mr.useContext(Si),d=u.prefixCls,v=d===void 0?"anticon":d,_=u.rootClassName,b=du(_,v,An(An({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),m=i;m===void 0&&s&&(m=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=Mi(l),C=Ei(S,2),D=C[0],z=C[1];return mr.createElement("span",Oe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:b}),mr.createElement(Ot,{icon:n,primaryColor:D,secondaryColor:z,style:g}))});kr.displayName="AntdIcon";kr.getTwoToneColor=gf;kr.setTwoToneColor=Ii;const Ge=kr;var vf={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const bf=vf,Fi=window.React;var wf=function(t,r){return Fi.createElement(Ge,Oe({},t,{ref:r,icon:bf}))};const _f=Fi.forwardRef(wf);var xf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const Sf=xf,ki=window.React;var Ef=function(t,r){return ki.createElement(Ge,Oe({},t,{ref:r,icon:Sf}))};const pn=ki.forwardRef(Ef);var Pf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Cf=Pf,Ui=window.React;var Rf=function(t,r){return Ui.createElement(Ge,Oe({},t,{ref:r,icon:Cf}))};const mn=Ui.forwardRef(Rf);var Tf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const jf=Tf,Ni=window.React;var Of=function(t,r){return Ni.createElement(Ge,Oe({},t,{ref:r,icon:jf}))};const Df=Ni.forwardRef(Of);var Af={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Lf=Af,zi=window.React;var $f=function(t,r){return zi.createElement(Ge,Oe({},t,{ref:r,icon:Lf}))};const wr=zi.forwardRef($f);var Mf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M316 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8zm196-50c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39zm0-140c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}},{tag:"path",attrs:{d:"M648 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8z"}}]},name:"one-to-one",theme:"outlined"};const If=Mf,Bi=window.React;var Ff=function(t,r){return Bi.createElement(Ge,Oe({},t,{ref:r,icon:If}))};const kf=Bi.forwardRef(Ff);var Uf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Nf=Uf,Hi=window.React;var zf=function(t,r){return Hi.createElement(Ge,Oe({},t,{ref:r,icon:Nf}))};const gn=Hi.forwardRef(zf);var Bf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};const Hf=Bf,Vi=window.React;var Vf=function(t,r){return Vi.createElement(Ge,Oe({},t,{ref:r,icon:Hf}))};const Wf=Vi.forwardRef(Vf);function qf(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),a=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(a),t&&(n.href=t),a.href=e,a.href}const Yf=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Fe(e){const t=[];for(let r=0,n=e.length;rpe||e.height>pe)&&(e.width>pe&&e.height>pe?e.width>e.height?(e.height*=pe/e.width,e.width=pe):(e.width*=pe/e.height,e.height=pe):e.width>pe?(e.height*=pe/e.width,e.width=pe):(e.width*=pe/e.height,e.height=pe))}function Qf(e,t={}){return e.toBlob?new Promise(r=>{e.toBlob(r,t.type?t.type:"image/png",t.quality?t.quality:1)}):new Promise(r=>{const n=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),a=n.length,o=new Uint8Array(a);for(let i=0;i{const n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Zf(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function ed(e,t,r){const n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${r}`),a.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),a.appendChild(o),o.appendChild(e),Zf(a)}const fe=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||fe(r,t)};function td(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function rd(e){return Fe(e).map(t=>{const r=e.getPropertyValue(t),n=e.getPropertyPriority(t);return`${t}: ${r}${n?" !important":""};`}).join(" ")}function nd(e,t,r){const n=`.${e}:${t}`,a=r.cssText?td(r):rd(r);return document.createTextNode(`${n}{${a}}`)}function so(e,t,r){const n=window.getComputedStyle(e,r),a=n.getPropertyValue("content");if(a===""||a==="none")return;const o=Yf();try{t.className=`${t.className} ${o}`}catch{return}const i=document.createElement("style");i.appendChild(nd(o,r,n)),t.appendChild(i)}function ad(e,t){so(e,t,":before"),so(e,t,":after")}const lo="application/font-woff",co="image/jpeg",od={woff:lo,woff2:lo,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:co,jpeg:co,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function id(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Zn(e){const t=id(e).toLowerCase();return od[t]||""}function sd(e){return e.split(/,/)[1]}function In(e){return e.search(/^(data:)/)!==-1}function qi(e,t){return`data:${t};base64,${e}`}async function Yi(e,t,r){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const a=await n.blob();return new Promise((o,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{o(r({res:n,result:s.result}))}catch(l){i(l)}},s.readAsDataURL(a)})}const yn={};function ld(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function ea(e,t,r){const n=ld(e,t,r.includeQueryParams);if(yn[n]!=null)return yn[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{const o=await Yi(e,r.fetchRequestInit,({res:i,result:s})=>(t||(t=i.headers.get("Content-Type")||""),sd(s)));a=qi(o,t)}catch(o){a=r.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return yn[n]=a,a}async function cd(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Rr(t)}async function ud(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i==null||i.drawImage(e,0,0,o.width,o.height);const s=o.toDataURL();return Rr(s)}const r=e.poster,n=Zn(r),a=await ea(r,n,t);return Rr(a)}async function fd(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Ur(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function dd(e,t){return fe(e,HTMLCanvasElement)?cd(e):fe(e,HTMLVideoElement)?ud(e,t):fe(e,HTMLIFrameElement)?fd(e):e.cloneNode(!1)}const hd=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function pd(e,t,r){var n,a;let o=[];return hd(e)&&e.assignedNodes?o=Fe(e.assignedNodes()):fe(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=Fe(e.contentDocument.body.childNodes):o=Fe(((a=e.shadowRoot)!==null&&a!==void 0?a:e).childNodes),o.length===0||fe(e,HTMLVideoElement)||await o.reduce((i,s)=>i.then(()=>Ur(s,r)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function md(e,t){const r=t.style;if(!r)return;const n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Fe(n).forEach(a=>{let o=n.getPropertyValue(a);a==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),fe(e,HTMLIFrameElement)&&a==="display"&&o==="inline"&&(o="block"),a==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(a,o,n.getPropertyPriority(a))})}function gd(e,t){fe(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),fe(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function yd(e,t){if(fe(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(a=>e.value===a.getAttribute("value"));n&&n.setAttribute("selected","")}}function vd(e,t){return fe(t,Element)&&(md(e,t),ad(e,t),gd(e,t),yd(e,t)),t}async function bd(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;const n={};for(let o=0;odd(n,t)).then(n=>pd(e,n,t)).then(n=>vd(e,n)).then(n=>bd(n,t))}const Ki=/url\((['"]?)([^'"]+?)\1\)/g,wd=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,_d=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function xd(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Sd(e){const t=[];return e.replace(Ki,(r,n,a)=>(t.push(a),r)),t.filter(r=>!In(r))}async function Ed(e,t,r,n,a){try{const o=r?qf(t,r):t,i=Zn(t);let s;if(a){const l=await a(o);s=qi(l,i)}else s=await ea(o,i,n);return e.replace(xd(t),`$1${s}$3`)}catch{}return e}function Pd(e,{preferredFontFormat:t}){return t?e.replace(_d,r=>{for(;;){const[n,,a]=wd.exec(r)||[];if(!a)return"";if(a===t)return`src: ${n};`}}):e}function Gi(e){return e.search(Ki)!==-1}async function Ji(e,t,r){if(!Gi(e))return e;const n=Pd(e,r);return Sd(n).reduce((o,i)=>o.then(s=>Ed(s,i,t,r)),Promise.resolve(n))}async function gr(e,t,r){var n;const a=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(a){const o=await Ji(a,null,r);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Cd(e,t){await gr("background",e,t)||await gr("background-image",e,t),await gr("mask",e,t)||await gr("mask-image",e,t)}async function Rd(e,t){const r=fe(e,HTMLImageElement);if(!(r&&!In(e.src))&&!(fe(e,SVGImageElement)&&!In(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,a=await ea(n,Zn(n),t);await new Promise((o,i)=>{e.onload=o,e.onerror=i;const s=e;s.decode&&(s.decode=o),s.loading==="lazy"&&(s.loading="eager"),r?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Td(e,t){const n=Fe(e.childNodes).map(a=>Xi(a,t));await Promise.all(n).then(()=>e)}async function Xi(e,t){fe(e,Element)&&(await Cd(e,t),await Rd(e,t),await Td(e,t))}function jd(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(a=>{r[a]=n[a]}),e}const uo={};async function fo(e){let t=uo[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},uo[e]=t,t}async function ho(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(r.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Yi(s,t.fetchRequestInit,({result:l})=>(r=r.replace(i,`url(${l})`),[i,l]))});return Promise.all(o).then(()=>r)}function po(e){if(e==null)return[];const t=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(r,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=a.exec(n);if(l===null)break;t.push(l[0])}n=n.replace(a,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let l=o.exec(n);if(l===null){if(l=s.exec(n),l===null)break;o.lastIndex=s.lastIndex}else s.lastIndex=o.lastIndex;t.push(l[0])}return t}async function Od(e,t){const r=[],n=[];return e.forEach(a=>{if("cssRules"in a)try{Fe(a.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let s=i+1;const l=o.href,c=fo(l).then(u=>ho(u,t)).then(u=>po(u).forEach(d=>{try{a.insertRule(d,d.startsWith("@import")?s+=1:a.cssRules.length)}catch(v){console.error("Error inserting rule from remote css",{rule:d,error:v})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(c)}})}catch(o){const i=e.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&n.push(fo(a.href).then(s=>ho(s,t)).then(s=>po(s).forEach(l=>{i.insertRule(l,a.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(a=>{if("cssRules"in a)try{Fe(a.cssRules||[]).forEach(o=>{r.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${a.href}`,o)}}),r))}function Dd(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Gi(t.style.getPropertyValue("src")))}async function Ad(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=Fe(e.ownerDocument.styleSheets),n=await Od(r,t);return Dd(n)}async function Ld(e,t){const r=await Ad(e,t);return(await Promise.all(r.map(a=>{const o=a.parentStyleSheet?a.parentStyleSheet.href:null;return Ji(a.cssText,o,t)}))).join(` +`)}async function $d(e,t){const r=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Ld(e,t);if(r){const n=document.createElement("style"),a=document.createTextNode(r);n.appendChild(a),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function Md(e,t={}){const{width:r,height:n}=Wi(e,t),a=await Ur(e,t,!0);return await $d(a,t),await Xi(a,t),jd(a,t),await ed(a,r,n)}async function Id(e,t={}){const{width:r,height:n}=Wi(e,t),a=await Md(e,t),o=await Rr(a),i=document.createElement("canvas"),s=i.getContext("2d"),l=t.pixelRatio||Jf(),c=t.canvasWidth||r,u=t.canvasHeight||n;return i.width=c*l,i.height=u*l,t.skipAutoScale||Xf(i),i.style.width=`${c}`,i.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(o,0,0,i.width,i.height),i}async function Fd(e,t={}){const r=await Id(e,t);return await Qf(r)}var kd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ADMIN_URL:"http://admin.marsview.cc",VITE_BASE_API:"http://mars-api.marsview.cc/api"};const mo=e=>{let t;const r=new Set,n=(u,d)=>{const v=typeof u=="function"?u(t):u;if(!Object.is(v,t)){const _=t;t=d??(typeof v!="object"||v===null)?v:Object.assign({},t,v),r.forEach(b=>b(t,_))}},a=()=>t,l={setState:n,getState:a,getInitialState:()=>c,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(kd?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},c=t=e(n,a,l);return l},Ud=e=>e?mo(e):mo;var Qi={exports:{}},Zi={},es={exports:{}},ts={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xt=window.React;function Nd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zd=typeof Object.is=="function"?Object.is:Nd,Bd=xt.useState,Hd=xt.useEffect,Vd=xt.useLayoutEffect,Wd=xt.useDebugValue;function qd(e,t){var r=t(),n=Bd({inst:{value:r,getSnapshot:t}}),a=n[0].inst,o=n[1];return Vd(function(){a.value=r,a.getSnapshot=t,vn(a)&&o({inst:a})},[e,r,t]),Hd(function(){return vn(a)&&o({inst:a}),e(function(){vn(a)&&o({inst:a})})},[e]),Wd(r),r}function vn(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!zd(e,r)}catch{return!0}}function Yd(e,t){return t()}var Kd=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Yd:qd;ts.useSyncExternalStore=xt.useSyncExternalStore!==void 0?xt.useSyncExternalStore:Kd;es.exports=ts;var Gd=es.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Nr=window.React,Jd=Gd;function Xd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qd=typeof Object.is=="function"?Object.is:Xd,Zd=Jd.useSyncExternalStore,eh=Nr.useRef,th=Nr.useEffect,rh=Nr.useMemo,nh=Nr.useDebugValue;Zi.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var o=eh(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=rh(function(){function l(_){if(!c){if(c=!0,u=_,_=n(_),a!==void 0&&i.hasValue){var b=i.value;if(a(b,_))return d=b}return d=_}if(b=d,Qd(u,_))return b;var m=n(_);return a!==void 0&&a(b,m)?b:(u=_,d=m)}var c=!1,u,d,v=r===void 0?null:r;return[function(){return l(t())},v===null?void 0:function(){return l(v())}]},[t,r,n,a]);var s=Zd(e,o[0],o[1]);return th(function(){i.hasValue=!0,i.value=s},[s]),nh(s),s};Qi.exports=Zi;var ah=Qi.exports;const oh=Dr(ah);var rs={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ADMIN_URL:"http://admin.marsview.cc",VITE_BASE_API:"http://mars-api.marsview.cc/api"};const ih=window.React,{useDebugValue:sh}=ih,{useSyncExternalStoreWithSelector:lh}=oh;let go=!1;const ch=e=>e;function uh(e,t=ch,r){(rs?"production":void 0)!=="production"&&r&&!go&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),go=!0);const n=lh(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return sh(n),n}const yo=e=>{(rs?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Ud(e):e,r=(n,a)=>uh(t,n,a);return Object.assign(r,t),r},fh=e=>e?yo(e):yo;var ns=Symbol.for("immer-nothing"),vo=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function Te(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var St=Object.getPrototypeOf;function Et(e){return!!e&&!!e[ye]}function st(e){var t;return e?as(e)||Array.isArray(e)||!!e[vo]||!!((t=e.constructor)!=null&&t[vo])||Br(e)||Hr(e):!1}var dh=Object.prototype.constructor.toString();function as(e){if(!e||typeof e!="object")return!1;const t=St(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===dh}function Tr(e,t){zr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function zr(e){const t=e[ye];return t?t.type_:Array.isArray(e)?1:Br(e)?2:Hr(e)?3:0}function Fn(e,t){return zr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function os(e,t,r){const n=zr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function hh(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Br(e){return e instanceof Map}function Hr(e){return e instanceof Set}function et(e){return e.copy_||e.base_}function kn(e,t){if(Br(e))return new Map(e);if(Hr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&as(e))return St(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[ye];let n=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=ph),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ta(n,!0))),e}function ph(){Te(2)}function Vr(e){return Object.isFrozen(e)}var mh={};function lt(e){const t=mh[e];return t||Te(0,e),t}var Qt;function is(){return Qt}function gh(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bo(e,t){t&&(lt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Un(e){Nn(e),e.drafts_.forEach(yh),e.drafts_=null}function Nn(e){e===Qt&&(Qt=e.parent_)}function wo(e){return Qt=gh(Qt,e)}function yh(e){const t=e[ye];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _o(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ye].modified_&&(Un(t),Te(4)),st(e)&&(e=jr(t,e),t.parent_||Or(t,e)),t.patches_&<("Patches").generateReplacementPatches_(r[ye].base_,e,t.patches_,t.inversePatches_)):e=jr(t,r,[]),Un(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ns?e:void 0}function jr(e,t,r){if(Vr(t))return t;const n=t[ye];if(!n)return Tr(t,(a,o)=>xo(e,n,t,a,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Or(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const a=n.copy_;let o=a,i=!1;n.type_===3&&(o=new Set(a),a.clear(),i=!0),Tr(o,(s,l)=>xo(e,n,a,s,l,r,i)),Or(e,a,!1),r&&e.patches_&<("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function xo(e,t,r,n,a,o,i){if(Et(a)){const s=o&&t&&t.type_!==3&&!Fn(t.assigned_,n)?o.concat(n):void 0,l=jr(e,a,s);if(os(r,n,l),Et(l))e.canAutoFreeze_=!1;else return}else i&&r.add(a);if(st(a)&&!Vr(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;jr(e,a),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Or(e,a)}}function Or(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ta(t,r)}function vh(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:is(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,o=ra;r&&(a=[n],o=Zt);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return n.draft_=s,n.revoke_=i,s}var ra={get(e,t){if(t===ye)return e;const r=et(e);if(!Fn(r,t))return bh(e,r,t);const n=r[t];return e.finalized_||!st(n)?n:n===bn(e.base_,t)?(wn(e),e.copy_[t]=Bn(n,e)):n},has(e,t){return t in et(e)},ownKeys(e){return Reflect.ownKeys(et(e))},set(e,t,r){const n=ss(et(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=bn(et(e),t),o=a==null?void 0:a[ye];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(hh(r,a)&&(r!==void 0||Fn(e.base_,t)))return!0;wn(e),zn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return bn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,wn(e),zn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=et(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Te(11)},getPrototypeOf(e){return St(e.base_)},setPrototypeOf(){Te(12)}},Zt={};Tr(ra,(e,t)=>{Zt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Zt.deleteProperty=function(e,t){return Zt.set.call(this,e,t,void 0)};Zt.set=function(e,t,r){return ra.set.call(this,e[0],t,r,e[0])};function bn(e,t){const r=e[ye];return(r?et(r):e)[t]}function bh(e,t,r){var a;const n=ss(t,r);return n?"value"in n?n.value:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function ss(e,t){if(!(t in e))return;let r=St(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=St(r)}}function zn(e){e.modified_||(e.modified_=!0,e.parent_&&zn(e.parent_))}function wn(e){e.copy_||(e.copy_=kn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wh=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const i=this;return function(l=o,...c){return i.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&Te(6),n!==void 0&&typeof n!="function"&&Te(7);let a;if(st(t)){const o=wo(this),i=Bn(t,void 0);let s=!0;try{a=r(i),s=!1}finally{s?Un(o):Nn(o)}return bo(o,n),_o(a,o)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===ns&&(a=void 0),this.autoFreeze_&&ta(a,!0),n){const o=[],i=[];lt("Patches").generateReplacementPatches_(t,a,o,i),n(o,i)}return a}else Te(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...s)=>this.produceWithPatches(i,l=>t(l,...s));let n,a;return[this.produce(t,r,(i,s)=>{n=i,a=s}),n,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){st(e)||Te(8),Et(e)&&(e=_h(e));const t=wo(this),r=Bn(e,void 0);return r[ye].isManual_=!0,Nn(t),r}finishDraft(e,t){const r=e&&e[ye];(!r||!r.isManual_)&&Te(9);const{scope_:n}=r;return bo(n,t),_o(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const n=lt("Patches").applyPatches_;return Et(e)?n(e,t):this.produce(e,a=>n(a,t))}};function Bn(e,t){const r=Br(e)?lt("MapSet").proxyMap_(e,t):Hr(e)?lt("MapSet").proxySet_(e,t):vh(e,t);return(t?t.scope_:is()).drafts_.push(r),r}function _h(e){return Et(e)||Te(10,e),ls(e)}function ls(e){if(!st(e)||Vr(e))return e;const t=e[ye];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=kn(e,!0);return Tr(r,(n,a)=>{os(r,n,ls(a))}),t&&(t.finalized_=!1),r}var ve=new wh,Q=ve.produce;ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseStrictShallowCopy.bind(ve);ve.applyPatches.bind(ve);ve.createDraft.bind(ve);ve.finishDraft.bind(ve);var cs=typeof global=="object"&&global&&global.Object===Object&&global,xh=typeof self=="object"&&self&&self.Object===Object&&self,$e=cs||xh||Function("return this")(),Pt=$e.Symbol,us=Object.prototype,Sh=us.hasOwnProperty,Eh=us.toString,Ht=Pt?Pt.toStringTag:void 0;function Ph(e){var t=Sh.call(e,Ht),r=e[Ht];try{e[Ht]=void 0;var n=!0}catch{}var a=Eh.call(e);return n&&(t?e[Ht]=r:delete e[Ht]),a}var Ch=Object.prototype,Rh=Ch.toString;function Th(e){return Rh.call(e)}var jh="[object Null]",Oh="[object Undefined]",So=Pt?Pt.toStringTag:void 0;function rr(e){return e==null?e===void 0?Oh:jh:So&&So in Object(e)?Ph(e):Th(e)}function nr(e){return e!=null&&typeof e=="object"}var na=Array.isArray;function ar(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dh="[object AsyncFunction]",Ah="[object Function]",Lh="[object GeneratorFunction]",$h="[object Proxy]";function fs(e){if(!ar(e))return!1;var t=rr(e);return t==Ah||t==Lh||t==Dh||t==$h}var _n=$e["__core-js_shared__"],Eo=function(){var e=/[^.]+$/.exec(_n&&_n.keys&&_n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mh(e){return!!Eo&&Eo in e}var Ih=Function.prototype,Fh=Ih.toString;function ut(e){if(e!=null){try{return Fh.call(e)}catch{}try{return e+""}catch{}}return""}var kh=/[\\^$.*+?()[\]{}|]/g,Uh=/^\[object .+?Constructor\]$/,Nh=Function.prototype,zh=Object.prototype,Bh=Nh.toString,Hh=zh.hasOwnProperty,Vh=RegExp("^"+Bh.call(Hh).replace(kh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wh(e){if(!ar(e)||Mh(e))return!1;var t=fs(e)?Vh:Uh;return t.test(ut(e))}function qh(e,t){return e==null?void 0:e[t]}function ft(e,t){var r=qh(e,t);return Wh(r)?r:void 0}var Hn=ft($e,"WeakMap"),Po=Object.create,Yh=function(){function e(){}return function(t){if(!ar(t))return{};if(Po)return Po(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Kh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e-1&&e%1==0&&e<=tp}function gs(e){return e!=null&&ms(e.length)&&!fs(e)}var rp=Object.prototype;function aa(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||rp;return e===r}function np(e,t){for(var r=-1,n=Array(e);++r-1}function fm(e,t){var r=this.__data__,n=qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++te+"_"+Number(Math.random().toString().substring(2,12)+Date.now()).toString(36).slice(0,t);function Bv(){if(crypto!=null&&crypto.randomUUID)return crypto.randomUUID();const e=()=>crypto!=null&&crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]:Math.floor(Math.random())*256;return(String(1e7)+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(Number(t)^e()&15>>Number(t)/4).toString(16))}const Ls=(e,t)=>{var r;if(!t)return null;for(let n=0;n{const t={};if(e)try{e=e.replace(/\/\*.*\*\//,"").replace(/(\.?\w+{)/,"").replace("}",""),dy(e,(r,n)=>{t[r.replace(/-\w/,a=>a.toUpperCase().replace("-",""))]=n})}catch{return}return t};function Vv(e){if(!e)return{};let t=0,r=0;const{width:n,height:a}=e.getBoundingClientRect();for(;e;){if(e.id==="editor"){t-=e.offsetTop;break}t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent}return{width:n,height:a,top:t,left:r}}function Wv(e,t=null){const r={};return e.forEach(n=>{r[n.id]={...n}}),e.forEach(n=>{var a;if(n.parent_id!==null&&r[n.parent_id]){const o=r[n.parent_id];o.children||(o.children=[]),(a=o.children)==null||a.push(r[n.id]),o.children=o.children.sort((i,s)=>i.sort_num-s.sort_num)}}),Object.values(r).filter(n=>n.parent_id===t).sort((n,a)=>n.sort_num-a.sort_num)}const qv=(e,t)=>{var r,n;if(t){const a=(n=qo.find(o=>o.type==="form"))==null?void 0:n.data.map(o=>o.type);if(a!=null&&a.includes(e))return t==="Form"||t==="SearchForm"}else{const a=(r=qo.find(o=>o.type==="form"))==null?void 0:r.data.map(o=>o.type);return!(a!=null&&a.includes(e)||e==="EditTable")}return!0},or=fh(e=>({userInfo:{userId:0,userName:""},mode:"edit",selectedElement:void 0,isUpdateToolbar:!1,isUpdateList:!1,page:{pageId:0,pageName:"",remark:"",is_public:1,stg_state:1,pre_state:1,prd_state:1,stg_publish_id:0,pre_publish_id:0,prd_publish_id:0,canvasWidth:0,preview_img:"",user_id:"",config:{props:{},style:{},scopeCss:"",scopeStyle:{},events:[],api:{sourceType:"json",id:"",source:{},sourceField:""}},events:[],apis:{},elements:[],elementsMap:{},variables:[],variableData:{},formData:{},interceptor:{headers:[{key:"",value:""}],timeout:8,timeoutErrorMessage:"请求超时,请稍后再试"}},saveUserInfo:t=>e(Q(r=>{r.userInfo=t})),savePageInfo:t=>e(Q(r=>{t.type==="props"?r.page.config.props=t.props:t.type==="style"?(r.page.config.scopeCss=t.scopeCss,r.page.config.scopeStyle=t.scopeStyle,r.page.config.style=t.style):t.type==="events"?r.page.config.events=t.events||[]:t.type==="api"?r.page.config.api=t.api:r.page=Object.assign(r.page,t)})),setCanvasWidth:t=>e(Q(r=>{r.page.canvasWidth=t})),updatePageState:({env:t,pageState:r})=>{e(Q(n=>{t==="all"?(n.page.stg_state=2,n.page.pre_state=2,n.page.prd_state=2):n.page[t]=r}))},addApi:t=>{e(Q(r=>{r.page.apis[t.id]=t}))},updateApi:t=>{e(Q(r=>{Object.assign(r.page.apis[t.id],t)}))},removeApi:t=>{e(Q(r=>{delete r.page.apis[t]}))},setMode:t=>e({mode:t}),addElement:t=>{e(Q(r=>{r.page.elements.push({id:t.id,parentId:t.parentId,type:t.type,name:t.name,elements:t.elements.map(a=>({id:a.id,parentId:t.id,type:a.type,name:a.name}))});const n=Wo({...t,elements:void 0,remoteUrl:t.remoteUrl,remoteConfigUrl:t.remoteConfigUrl,remoteCssUrl:t.remoteCssUrl});t.config.props.formItem&&(n.config.props.formItem.name=Qo(t.type,6)),r.page.elementsMap[t.id]=n,t.elements.map(a=>{r.page.elementsMap[a.id]=a})}))},addChildElements(t){e(Q(r=>{function n(a){var o,i,s;for(let l=0;l({id:d.id,parentId:t.id,type:d.type,name:d.name,elements:[]})))||[]});const u=Wo({...t,elements:void 0,remoteUrl:t.remoteUrl,remoteConfigUrl:t.remoteConfigUrl,remoteCssUrl:t.remoteCssUrl});t.config.props.formItem&&(u.config.props.formItem.name=Qo(t.type,6)),r.page.elementsMap[t.id]=u,(i=t.elements)==null||i.map(d=>{r.page.elementsMap[d.id]=d});break}else(s=c.elements)!=null&&s.length&&n(c.elements)}return a}r.page.elements=n(r.page.elements),r.isUpdateToolbar=!r.isUpdateToolbar}))},editElement(t){e(Q(r=>{const n=r.page.elementsMap[t.id];if(t.type==="props"){if(n.config.props=t.props,n.type==="Tabs"){const a=Ls(r.page.elements,t.id);(a==null?void 0:a.elements.length)===t.props.items.length?a==null||a.elements.map((o,i)=>{Object.assign(r.page.elementsMap[o.id].config.props,t.props.items[i])}):a==null||a.elements.map((o,i)=>{if(!t.props.items.find(s=>s.id===o.id)){a==null||a.elements.splice(i,1),delete r.page.elementsMap[o.id];const s=l=>{Object.values(r.page.elementsMap).map(c=>(c.parentId==l&&(delete r.page.elementsMap[c.id],s(c.id)),c))};s(o.id)}})}n.type==="Tab"&&r.page.elementsMap[n.parentId].config.props.items.map(a=>{a.key===t.id&&(a.label=t.props.label)})}else t.type==="style"?(n.config.scopeCss=t.scopeCss,n.config.scopeStyle=t.scopeStyle,n.config.style=t.style):t.type==="events"?n.config.events=t.events||[]:t.type==="api"&&(n.config.api=t.api,t.api.sourceType!=="api"?n.config.api.id=void 0:t.api.id&&(r.page.apis[t.api.id].sourceField=t.api.sourceField));r.isUpdateToolbar=!r.isUpdateToolbar}))},editTableProps(t){e(Q(r=>{const n=r.page.elementsMap[t.id];t.type==="column"?(n.config.props.columns||(n.config.props.columns=[]),n.config.props.columns[t.index]=t.props):t.type==="formTable"?(n.config.props.formWrap.columns||(n.config.props.formWrap.columns=[]),n.config.props.formWrap.columns[t.index]=t.props):t.type==="items"?(n.config.props.items||(n.config.props.items=[]),n.config.props.items[t.index]=t.props):(n.config.props.actionList||(n.config.props.actionList=[]),n.config.props.bulkActionList[t.index]=t.props),r.isUpdateToolbar=!r.isUpdateToolbar}))},editEvents(t){e(Q(r=>{const n=r.page.elementsMap[t.id];n.events=t.events}))},moveElements(t){e(Q(r=>{const{componentId:n,direction:a}=t;function o(i){var s;for(let l=0;l0?[i[l],i[l-1]]=[i[l-1],i[l]]:a==="down"&&i.length-1>l&&([i[l],i[l+1]]=[i[l+1],i[l]]);break}else(s=c.elements)!=null&&s.length&&o(c.elements)}}o(r.page.elements)}))},setSelectedElement(t){e(()=>({selectedElement:t}))},removeElements(t){e(Q(r=>{const n=t;function a(o){var i;for(let s=0;s{Object.values(r.page.elementsMap).map(d=>(d.parentId==u&&(delete r.page.elementsMap[d.id],c(d.id)),d))};c(n);break}else(i=l.elements)!=null&&i.length&&a(l.elements)}}a(r.page.elements),r.selectedElement=void 0}))},addVariable(t){e(Q(r=>{r.page.variables.push(t)}))},editVariable(t){e(Q(r=>{const n=r.page.variables.findIndex(a=>a.name==t.name);n>-1&&(r.page.variables[n]=t)}))},removeVariable(t){e(Q(r=>{r.page.variables=r.page.variables.filter(n=>n.name!==t)}))},setVariableData({name:t,value:r}){e(Q(n=>{n.page.variableData[t]=r}))},setFormData({name:t,value:r}){e(Q(n=>{n.page.formData[t]=r}))},setInterceptor(t){e(Q(r=>{r.page.interceptor=t}))},updateToolbar:()=>{e(t=>({isUpdateToolbar:!t.isUpdateToolbar}))},updateList:()=>{e(t=>({isUpdateList:!t.isUpdateList}))},clearPageInfo(){e(Q(t=>{t.page={pageId:0,pageName:"",remark:"",stg_state:1,pre_state:1,prd_state:1,user_id:"",config:{props:{},style:{},scopeCss:"",scopeStyle:{},events:[],api:{sourceType:"json",id:"",source:{},sourceField:""}},events:[],apis:{},elements:[],elementsMap:{},variables:[],variableData:{},formData:{},interceptor:{headers:[{key:"",value:""}],timeout:8,timeoutErrorMessage:"请求超时,请稍后再试"}}}))}})),Zo=window.antd.Input,hy=window.antd.Modal,Vt=window.antd.Form,Sn=window.antd.Radio,py=window.React.useImperativeHandle,yr=window.React.useState,my=e=>{const[t]=Vt.useForm(),[r,n]=yr(!1),[a,o]=yr("create"),[i,s]=yr(0),[l,c]=yr(!1),u=or(_=>_.updateList);py(e.createRef,()=>({open(_){_?(o("edit"),s(_.id),t.setFieldsValue(_)):(o("create"),s(0)),n(!0)}}));const d=async()=>{var m;const _=t.getFieldsValue();await t.validateFields()&&(c(!0),a==="create"?await Zc(_):await xi({..._,id:i}),c(!1),u(),(m=e.update)==null||m.call(e),v())},v=()=>{t.resetFields(),n(!1)};return w.jsx(hy,{title:"创建页面",open:r,confirmLoading:l,onOk:d,onCancel:v,width:500,okText:"确定",cancelText:"取消",children:w.jsxs(Vt,{form:t,labelCol:{span:6},wrapperCol:{span:18},initialValues:{is_public:1},children:[w.jsx(Vt.Item,{label:"名称",name:"name",rules:[{required:!0,message:"请输入页面名称"}],children:w.jsx(Zo,{placeholder:"请输入页面名称"})}),w.jsx(Vt.Item,{label:"描述",name:"remark",children:w.jsx(Zo,{placeholder:"请输入页面描述"})}),w.jsx(Vt.Item,{label:"权限",name:"is_public",rules:[{required:!0,message:"请选择访问类型"}],children:w.jsxs(Sn.Group,{children:[w.jsx(Sn,{value:1,children:"公开"}),w.jsx(Sn,{value:2,children:"私有"})]})})]})})},gy="_header_1qima_1",yy="_homeHeader_1qima_2",vy="_layoutHeader_1qima_3",by="_logo_1qima_19",wy="_menu_1qima_27",_y="_iconAction_1qima_33",xy="_iconBlock_1qima_44",Sy="_user_1qima_69",Ey="_avatar_1qima_74",Py="_publishPopover_1qima_78",Ce={header:gy,homeHeader:yy,layoutHeader:vy,logo:by,menu:wy,iconAction:_y,iconBlock:xy,user:Sy,avatar:Ey,publishPopover:Py},En=window.antd.Button,Pn=window.React.useState;function Cy(){const[e,t]=Pn(!1),[r,n]=Pn(!1),[a,o]=Pn(!1),{page:{pageId:i,pageName:s,remark:l,is_public:c,stg_state:u,pre_state:d,prd_state:v,stg_publish_id:_,pre_publish_id:b,prd_publish_id:m,variableData:g,formData:S,...C},updatePageState:D}=or(L=>({page:L.page,updatePageState:L.updatePageState}));async function z(L){if(L==="stg"){if(u===3)return je.warning("STG已发布,请勿重复发布");t(!0)}if(L==="pre"){if(d===3)return je.warning("PRE已发布,请勿重复发布");n(!0)}if(L==="prd"){if(v===3)return je.warning("PRD已发布,请勿重复发布");o(!0)}await eu({env:L,page_id:i,page_name:s,page_data:JSON.stringify({...C,stg_state:void 0,pre_state:void 0,prd_state:void 0,preview_img:void 0,variableData:{},formData:{},stg_publish_id:void 0,pre_publish_id:void 0,prd_publish_id:void 0,user_id:void 0})}),D({env:L==="stg"?"stg_state":L==="pre"?"pre_state":"prd_state",pageState:3}),je.success("发布成功"),L==="stg"&&t(!1),L==="pre"&&n(!1),L==="prd"&&o(!1)}return w.jsxs("div",{className:Ce.publishPopover,children:[w.jsxs(En,{type:_?"link":"text",danger:u===4,onClick:()=>z("stg"),children:["STG",e?w.jsx(wr,{}):u>=3?w.jsx(pn,{}):w.jsx(mn,{})]}),w.jsxs(En,{type:b?"link":"text",danger:d===4,onClick:()=>z("pre"),children:["PRE",r?w.jsx(wr,{}):d>=3?w.jsx(pn,{}):w.jsx(mn,{})]}),w.jsxs(En,{type:m?"link":"text",danger:v===4,onClick:()=>z("prd"),children:["PRD",a?w.jsx(wr,{}):v>=3?w.jsx(pn,{}):w.jsx(mn,{})]})]})}const Ry=window.antd.Layout,Ty=window.antd.Menu,Cn=window.antd.Button,jy=window.antd.Popover,Oy=window.antd.Dropdown,Dy=window.antd.Space,Ay=window.antd.Image,Ly=window.React.memo,ei=window.React.useEffect,ti=window.React.useRef,yt=window.React.useState,$y=Ly(()=>{const[e,t]=yt(""),[r,n]=yt(!1),[a,o]=yt(!1),[i,s]=yt(["projects"]),[l,c]=yt("projects"),[u,d]=yt(!1),v=ti(),_=ti(),b=Gn(),{id:m}=rc(),g=jt(),S=()=>{$("edit"),b("/pages")},{userInfo:C,page:{pageId:D,pageName:z,remark:L,is_public:p,...T},mode:U,setMode:$,updatePageState:le}=or(A=>({userInfo:A.userInfo,page:A.page,mode:A.mode,setMode:A.setMode,updatePageState:A.updatePageState})),G=[{label:"项目列表",key:"projects",icon:w.jsx(Wf,{style:{fontSize:16}})},{label:"页面列表",key:"pages",icon:w.jsx(kf,{style:{fontSize:16}})}];ei(()=>{Qc().then(A=>{t(A.avatar)})},[]),ei(()=>{["/projects","/pages","/libs"].includes(g.pathname)?(n(!0),s([g.pathname.slice(1)])):n(!1),c(g.pathname.slice(1))},[g]);const ce=A=>{b(`/${A.key}`)},ee=A=>{var be,Ae;A==="project"?b("/project/0/config"):A==="page"?(be=v.current)==null||be.open():(Ae=_.current)==null||Ae.open()},Se=async()=>{try{const A=await Fd(document.querySelector("#page"));if(!A)return;const be=new File([A],`${D}-${Date.now()}.png`,{type:"image/png"});return""}catch(A){return console.error("封面图上传失败",A),""}},Ne=async A=>{if(A==="save"){o(!0);const be=await Se(),Ae=JSON.stringify({...T,stg_state:void 0,pre_state:void 0,prd_state:void 0,preview_img:void 0,variableData:{},formData:{},stg_publish_id:void 0,pre_publish_id:void 0,prd_publish_id:void 0,user_id:void 0});try{await xi({id:D,name:z,remark:L,is_public:p??1,page_data:Ae,preview_img:be||T.preview_img})}catch(Ee){console.error(Ee)}le({env:"all"}),o(!1),je.success("保存成功",1)}else A==="preview"?$("preview"):je.info("敬请期待")},dt=()=>{$("edit")};function K(A){b(A==="edit"?`/editor/${m}/${A}`:`/editor/${D}/${A}`)}const ht=[{label:w.jsx("a",{target:"_blank",rel:"noopener noreferrer",onClick:A=>{A.preventDefault(),K("edit")},children:"编辑器"}),key:"edit"},{label:w.jsx("a",{target:"_blank",rel:"noopener noreferrer",onClick:A=>{A.preventDefault(),K("publishHistory")},children:"发布记录"}),key:"publishHistory"}],De=l===`editor/${m}/edit`,ze=l===`editor/${m}/publishHistory`;return w.jsxs(w.Fragment,{children:[w.jsxs(Ry.Header,{className:r?Ce.homeHeader:Ce.layoutHeader,children:[w.jsxs("div",{className:Ce.logo,onClick:S,children:[w.jsx("img",{src:"/imgs/mars-logo.png",width:40}),w.jsx("span",{children:"Mars"})]}),r&&w.jsx("div",{className:Ce.menu,children:w.jsx(Ty,{onClick:ce,selectedKeys:i,mode:"horizontal",items:G})}),De&&U==="edit"&&w.jsxs("div",{className:Ce.iconAction,children:[w.jsx("a",{onClick:()=>Ne("edit"),children:w.jsxs("div",{className:Ce.iconBlock,children:[w.jsx("img",{src:"/imgs/code.png",alt:"源码"}),w.jsx("span",{children:"源码"})]})}),w.jsx("a",{onClick:()=>Ne("save"),children:w.jsxs("div",{className:Ce.iconBlock,children:[a?w.jsx(wr,{}):w.jsx("img",{src:"/imgs/save.png",alt:"保存"}),w.jsx("span",{children:"保存"})]})}),w.jsx("a",{onClick:()=>Ne("preview"),children:w.jsxs("div",{className:Ce.iconBlock,children:[w.jsx("img",{src:"/imgs/preview.png",alt:"预览"}),w.jsx("span",{children:"预览"})]})})]}),l==="projects"&&w.jsxs("a",{onClick:()=>ee("project"),children:[w.jsx(gn,{style:{marginRight:5}}),"新建项目"]}),l==="pages"&&w.jsxs("a",{onClick:()=>ee("page"),children:[w.jsx(gn,{style:{marginRight:5}}),"新建页面"]}),l==="libs"&&w.jsxs("a",{onClick:()=>ee("lib"),children:[w.jsx(gn,{style:{marginRight:5}}),"新建组件"]}),w.jsxs("div",{className:Ce.user,children:[De&&U==="edit"&&w.jsx(w.Fragment,{children:w.jsx(jy,{placement:"bottom",content:w.jsx(Cy,{}),children:w.jsxs(Cn,{type:"primary",children:["发布",w.jsx(_f,{})]})})}),(De||ze)&&U==="edit"&&w.jsx(Oy,{menu:{items:ht,selectable:!0,defaultSelectedKeys:[l]},children:w.jsx("a",{onClick:A=>A.preventDefault(),children:w.jsxs(Dy,{children:[De?"编辑":"发布记录",w.jsx(Df,{})]})})}),U==="preview"&&w.jsx(Cn,{type:"primary",onClick:dt,children:"退出预览"}),w.jsx(Cn,{type:"link",onClick:()=>{d(!0)},children:"微信群"}),w.jsxs("div",{className:Ce.avatar,children:[e?w.jsx("img",{width:30,src:e,style:{borderRadius:"50%"}}):null,w.jsx("span",{style:{marginLeft:10},children:`${C==null?void 0:C.userName}`||"开发者"})]})]}),l==="pages"&&w.jsx(my,{createRef:v})]}),w.jsx(Ay,{width:0,height:0,style:{display:"none"},src:"https://marsview.cdn.bcebos.com/qrcode.png",preview:{visible:u,onVisibleChange:A=>{d(A)}}})]})}),My=window.React.useEffect;function Iy(){const e=fc(),t=or(r=>r.saveUserInfo);return My(()=>{e&&t(e)},[]),w.jsxs(w.Fragment,{children:[w.jsx($y,{}),w.jsx(gc,{})]})}const se=window.React,Fy=window.React.useEffect,ky=window.React.useMemo,Uy=window.React.useState,Ny=window.antd.Button;function zy(){const[e,t]=Uy(""),r=wi(),n=ky(()=>JSON.stringify(or.getState().page),[]);return Fy(()=>{const a="Key"+Date.now();t(a),sessionStorage.setItem(a,n)},[]),w.jsxs("div",{style:{width:"80%",margin:"100px auto"},children:[w.jsxs("h1",{children:[r.name,":渲染失败,请检查:"]}),w.jsxs("h3",{style:{lineHeight:"30px"},children:["当前页面数据已为您备份,可通过sessionStorage查找,日志Id:",e]}),w.jsx("p",{style:{lineHeight:"30px",color:"red",marginBottom:20},children:r.stack}),w.jsx(Ny,{type:"primary",onClick:()=>location.reload(),children:"Try again"})]})}const By=[{path:"/",element:ie(se.lazy(()=>oe(()=>import("./Welcome-evczL0yC.js"),__vite__mapDeps([0,1]))))},{path:"/login",element:ie(se.lazy(()=>oe(()=>import("./Login-C7AxXgvl.js"),__vite__mapDeps([2,3]))))},{path:"/",loader:tu,element:w.jsx(Iy,{}),errorElement:w.jsx(zy,{}),children:[{path:"/projects",element:ie(se.lazy(()=>oe(()=>import("./ProjectList-BGRw_eqt.js"),__vite__mapDeps([4,5,6,7,8,9]))))},{path:"/pages",element:ie(se.lazy(()=>oe(()=>import("./PageList-JOLwI-VY.js"),__vite__mapDeps([10,5,6,11,9,8]))))},{path:"/libs",element:ie(se.lazy(()=>oe(()=>import("./LibList-CjwxWvL0.js"),__vite__mapDeps([12,13,5,6,14,9]))))},{path:"/lib/:id",element:ie(se.lazy(()=>oe(()=>import("./LibEditor-i9a3iLBJ.js"),__vite__mapDeps([15,16,17,18,19,20,21,13,22]))))},{path:"/editor/:id",element:ie(se.lazy(()=>oe(()=>import("./EditLayout-BxvD9TZ_.js"),__vite__mapDeps([23,19,17,20,16,18,21,24,11,14,8,25,7,26,9,27,28,29,13,30,31])))),children:[{path:"/editor/:id/edit",element:ie(se.lazy(()=>oe(()=>import("./editor-DSFJQPLb.js"),__vite__mapDeps([32,27,24,17,11,14,8,25,7,26,9,16,18,20,28,33]))))}]},{path:"/editor/:id/publishHistory",element:ie(se.lazy(()=>oe(()=>import("./index-BD5KK_AR.js"),__vite__mapDeps([34,35,36,37]))))},{path:"/project/:id",element:ie(se.lazy(()=>oe(()=>import("./admin-BRppOO-j.js"),__vite__mapDeps([38,26,9,39])))),children:[{path:"/project/:id/config",element:ie(se.lazy(()=>oe(()=>import("./index-DHuhm04f.js"),__vite__mapDeps([40,20,30,29,25,41]))))},{path:"/project/:id/menu",element:ie(se.lazy(()=>oe(()=>import("./index-gGNTS4mE.js"),__vite__mapDeps([42,24,17,11,14,8,25,7,26,9,29,35,36]))))},{path:"/project/:id/role",element:ie(se.lazy(()=>oe(()=>import("./index-7phewKWI.js"),__vite__mapDeps([43,35,36]))))},{path:"/project/:id/user",element:ie(se.lazy(()=>oe(()=>import("./index-BYATrNnY.js"),__vite__mapDeps([44,35,36]))))}]},{path:"*",element:w.jsx(mc,{to:"/404"})},{path:"/404",element:ie(se.lazy(()=>oe(()=>import("./404-DIkrYxu9.js"),[])))},{path:"/403",element:ie(se.lazy(()=>oe(()=>import("./403-B0JE4s6j.js"),[])))}]}],$s=Cc(By);var Kr={},Ms={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ms);var fa=Ms.exports,Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.default=void 0;var Hy={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};Gr.default=Hy;var Jr={},ir={},Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.default=void 0;var Vy={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};Xr.default=Vy;var sr={};Object.defineProperty(sr,"__esModule",{value:!0});sr.default=void 0;const Wy={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};sr.default=Wy;var Is=fa.default;Object.defineProperty(ir,"__esModule",{value:!0});ir.default=void 0;var qy=Is(Xr),Yy=Is(sr);const Fs={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},qy.default),timePickerLocale:Object.assign({},Yy.default)};Fs.lang.ok="确定";ir.default=Fs;var Ky=fa.default;Object.defineProperty(Jr,"__esModule",{value:!0});Jr.default=void 0;var Gy=Ky(ir);Jr.default=Gy.default;var Qr=fa.default;Object.defineProperty(Kr,"__esModule",{value:!0});Kr.default=void 0;var Jy=Qr(Gr),Xy=Qr(Jr),Qy=Qr(ir),Zy=Qr(sr);const me="${label}不是一个有效的${type}",ev={locale:"zh-cn",Pagination:Jy.default,DatePicker:Qy.default,TimePicker:Zy.default,Calendar:Xy.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:me,method:me,array:me,object:me,number:me,date:me,boolean:me,integer:me,float:me,regexp:me,email:me,url:me,hex:me},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};Kr.default=ev;var tv=Kr;const rv=Dr(tv);var nv={exports:{}};(function(e,t){(function(r,n){e.exports=n(window.dayjs)})(xr,function(r){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=n(r),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,s){return s==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,s){var l=100*i+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return a.default.locale(o,null,!0),o})})(nv);var ks={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(xr,function(){return function(r,n,a){r=r||{};var o=n.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,d,v){return o.fromToBase(c,u,d,v)}a.en.relativeTime=i,o.fromToBase=function(c,u,d,v,_){for(var b,m,g,S=d.$locale().relativeTime||i,C=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=C.length,z=0;z0,p<=L.r||!L.r){p<=1&&z>0&&(L=C[z-1]);var T=S[L.l];_&&(p=_(""+p)),m=typeof T=="string"?T.replace("%d",p):T(p,u,L.l,g);break}}if(u)return m;var U=g?S.future:S.past;return typeof U=="function"?U(m):U.replace("%s",m)},o.to=function(c,u){return s(c,u,this,!0)},o.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?a.utc():a()};o.toNow=function(c){return this.to(l(this),c)},o.fromNow=function(c){return this.from(l(this),c)}}})})(ks);var av=ks.exports;const ov=Dr(av),iv=window.antd.ConfigProvider,sv=window.antd.App,Us=window.dayjs;Us.extend(ov);Us.locale("zh-cn");function lv(){return w.jsx(iv,{locale:rv,theme:{token:{colorPrimary:"#7D33FF",colorLink:"#7D33FF",colorInfo:"#7D33FF"}},children:w.jsxs(sv,{children:[w.jsx(Kc,{}),w.jsx(Ic,{router:$s})]})})}Rn.createRoot(document.getElementById("root")).render(w.jsx(lv,{}));export{cv as $,ds as A,Wr as B,my as C,sa as D,bs as E,Fp as F,na as G,Kh as H,Tm as I,Jm as J,sp as K,fv as L,Yc as M,fs as N,yg as O,gn as P,Hv as Q,B as R,At as S,pn as T,qv as U,qo as V,Df as W,xi as X,Wf as Y,gc as Z,oe as _,or as a,Nv as a0,fu as a1,Vv as a2,pv as a3,Ls as a4,Dt as a5,Pt as a6,No as a7,Mm as a8,ca as a9,ff as aA,Si as aB,du as aC,An as aD,Ye as aE,zv as aF,_f as aG,kf as aH,gf as aI,Ii as aJ,Iv as aK,Uv as aL,kv as aM,$v as aN,Fv as aO,Mv as aP,bv as aQ,Dv as aR,Lv as aS,Ov as aT,Av as aU,ia as aa,ms as ab,ps as ac,Im as ad,qc as ae,$s as af,Q as ag,Wo as ah,wr as ai,yv as aj,vv as ak,jt as al,Sv as am,_v as an,Ev as ao,Pv as ap,Wv as aq,Cv as ar,Tv as as,jv as at,Rv as au,Ge as av,Oe as aw,Xt as ax,Pi as ay,cf as az,hv as b,mv as c,xv as d,gv as e,mn as f,wv as g,xr as h,ar as i,w as j,Dr as k,dv as l,je as m,Qo as n,rc as o,Bv as p,Co as q,$e as r,_i as s,gs as t,Gn as u,Qh as v,hs as w,nr as x,rr as y,Es as z}; diff --git a/dist/editor/assets/index-BD5KK_AR.js b/dist/editor/assets/index-BD5KK_AR.js new file mode 100644 index 0000000..381986b --- /dev/null +++ b/dist/editor/assets/index-BD5KK_AR.js @@ -0,0 +1,13 @@ +import{k as Ft,h as Dt,o as It,aj as Rt,a3 as Lt,j as Ce,ak as Bt,m as Nt}from"./index-BBkS68sv.js";import{S as zt}from"./SearchForm-B1iYemKz.js";const Tt="_publishHistoryList_18pdb_1",qt="_searchForm_18pdb_5",bt={publishHistoryList:Tt,searchForm:qt};var St={exports:{}};(function(it,jt){(function(ct,o){it.exports=o(window.React)})(Dt,function(ct){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,p){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:p})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var d in s)e.d(p,d,(function(f){return s[f]}).bind(null,d));return p},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=ct},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),p=e(3).Symbol,d=typeof p=="function";(o.exports=function(f){return s[f]||(s[f]=d&&p[f]||(d?p:u)("Symbol."+f))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(p,d,f){return s.f(p,d,u(1,f))}:function(p,d,f){return p[d]=f,p}},function(o,n,e){var s=e(10),u=e(35),p=e(23),d=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(f,b,j){if(s(f),b=p(b,!0),s(j),u)try{return d(f,b,j)}catch{}if("get"in j||"set"in j)throw TypeError("Accessors not supported!");return"value"in j&&(f[b]=j.value),f}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(p){return s(u(p))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(p){return s(p,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),p=e(53),d=e(6),f=e(5),b=function(j,_,M){var D,V,$,B=j&b.F,G=j&b.G,t=j&b.S,F=j&b.P,R=j&b.B,z=j&b.W,I=G?u:u[_]||(u[_]={}),y=I.prototype,S=G?s:t?s[_]:(s[_]||{}).prototype;for(D in G&&(M=_),M)(V=!B&&S&&S[D]!==void 0)&&f(I,D)||($=V?S[D]:M[D],I[D]=G&&typeof S[D]!="function"?M[D]:R&&V?p($,s):z&&S[D]==$?function(P){var N=function(E,Y,K){if(this instanceof P){switch(arguments.length){case 0:return new P;case 1:return new P(E);case 2:return new P(E,Y)}return new P(E,Y,K)}return P.apply(this,arguments)};return N.prototype=P.prototype,N}($):F&&typeof $=="function"?p(Function.call,$):$,F&&((I.virtual||(I.virtual={}))[D]=$,j&b.R&&y&&!y[D]&&d(y,D,$)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,p=this._t,d=this._i;return d>=p.length?{value:void 0,done:!0}:(u=s(p,d),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,p){if(!s(u))return u;var d,f;if(p&&typeof(d=u.toString)=="function"&&!s(f=d.call(u))||typeof(d=u.valueOf)=="function"&&!s(f=d.call(u))||!p&&typeof(d=u.toString)=="function"&&!s(f=d.call(u)))return f;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(p){return s[p]||(s[p]=u(p))}},function(o,n,e){var s=e(1),u=e(3),p=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(d,f){return p[d]||(p[d]=f!==void 0?f:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),p=e(2)("toStringTag");o.exports=function(d,f,b){d&&!u(d=b?d:d.prototype,p)&&s(d,p,{configurable:!0,value:f})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),p=e(12),d=e(2)("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),j.close(),b=j.F;M--;)delete b.prototype[p[M]];return b()};o.exports=Object.create||function(j,_){var M;return j!==null?(f.prototype=s(j),M=new f,f.prototype=null,M[d]=j):M=b(),_===void 0?M:u(M,_)}},function(o,n,e){var s=e(5),u=e(9),p=e(57)(!1),d=e(25)("IE_PROTO");o.exports=function(f,b){var j,_=u(f),M=0,D=[];for(j in _)j!=d&&s(_,j)&&D.push(j);for(;b.length>M;)s(_,j=b[M++])&&(~p(D,j)||D.push(j));return D}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(p){return s(p,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),p=s(function(){return arguments}())=="Arguments";o.exports=function(d){var f,b,j;return d===void 0?"Undefined":d===null?"Null":typeof(b=function(_,M){try{return _[M]}catch{}}(f=Object(d),u))=="string"?b:p?s(f):(j=s(f))=="Object"&&typeof f.callee=="function"?"Arguments":j}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),p=V(e(81)),d=V(e(89)),f=V(e(93)),b=function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var P in y)Object.prototype.hasOwnProperty.call(y,P)&&(S[P]=y[P]);return S.default=y,S}(e(94)),j=V(e(132)),_=V(e(133)),M=V(e(138)),D=e(139);function V(y){return y&&y.__esModule?y:{default:y}}var $=b.default,B=(0,d.default)($),G=(0,M.default)(_.default,D.rgb2yuv,function(y){var S,P=(0,p.default)(y,3),N=P[0],E=P[1],Y=P[2];return[(S=N,S<.25?1:S<.5?.9-S:1.1-S),E,Y]},D.yuv2rgb,j.default),t=function(y){return function(S){return{className:[S.className,y.className].filter(Boolean).join(" "),style:(0,u.default)({},S.style||{},y.style||{})}}},F=function(y,S){var P=(0,d.default)(S);for(var N in y)P.indexOf(N)===-1&&P.push(N);return P.reduce(function(E,Y){return E[Y]=function(K,k){if(K===void 0)return k;if(k===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),le=k===void 0?"undefined":(0,s.default)(k);switch(U){case"string":switch(le){case"string":return[k,K].filter(Boolean).join(" ");case"object":return t({className:K,style:k});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),J=1;J1?W-1:0),J=1;J1?W-1:0),J=1;J1?W-1:0),J=1;J1?W-1:0),J=1;J2?P-2:0),E=2;E3?S-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=E.defaultBase16,k=K===void 0?$:K,U=E.base16Themes,le=U===void 0?null:U,re=I(Y,le);re&&(Y=(0,u.default)({},re,Y));var W=B.reduce(function(fe,Se){return fe[Se]=Y[Se]||k[Se],fe},{}),ne=(0,d.default)(Y).reduce(function(fe,Se){return B.indexOf(Se)===-1&&(fe[Se]=Y[Se]),fe},{}),J=y(W),pe=F(ne,J);return(0,f.default)(R,2).apply(void 0,[pe].concat(P))},3),n.getBase16Theme=function(y,S){if(y&&y.extend&&(y=y.extend),typeof y=="string"){var P=y.split(":"),N=(0,p.default)(P,2),E=N[0],Y=N[1];y=(S||{})[E]||b[E],Y==="inverted"&&(y=z(y))}return y&&y.hasOwnProperty("base00")?y:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,p=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var d=Number.isNaN||function(t){return t!=t};function f(){f.init.call(this)}o.exports=f,o.exports.once=function(t,F){return new Promise(function(R,z){function I(){y!==void 0&&t.removeListener("error",y),R([].slice.call(arguments))}var y;F!=="error"&&(y=function(S){t.removeListener(F,I),z(S)},t.once("error",y)),t.once(F,I)})},f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var b=10;function j(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?f.defaultMaxListeners:t._maxListeners}function M(t,F,R,z){var I,y,S,P;if(j(R),(y=t._events)===void 0?(y=t._events=Object.create(null),t._eventsCount=0):(y.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),y=t._events),S=y[F]),S===void 0)S=y[F]=R,++t._eventsCount;else if(typeof S=="function"?S=y[F]=z?[R,S]:[S,R]:z?S.unshift(R):S.push(R),(I=_(t))>0&&S.length>I&&!S.warned){S.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+S.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=S.length,P=N,console&&console.warn&&console.warn(P)}return t}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var z={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},I=D.bind(z);return I.listener=R,z.wrapFn=I,I}function $(t,F,R){var z=t._events;if(z===void 0)return[];var I=z[F];return I===void 0?[]:typeof I=="function"?R?[I.listener||I]:[I]:R?function(y){for(var S=new Array(y.length),P=0;P0&&(y=F[0]),y instanceof Error)throw y;var S=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw S.context=y,S}var P=I[t];if(P===void 0)return!1;if(typeof P=="function")p(P,this,F);else{var N=P.length,E=G(P,N);for(R=0;R=0;y--)if(R[y]===F||R[y].listener===F){S=R[y].listener,I=y;break}if(I<0)return this;I===0?R.shift():function(P,N){for(;N+1=0;z--)this.removeListener(t,F[z]);return this},f.prototype.listeners=function(t){return $(this,t,!0)},f.prototype.rawListeners=function(t){return $(this,t,!1)},f.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):B.call(t,F)},f.prototype.listenerCount=B,f.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=d(e(50)),u=d(e(65)),p=typeof u.default=="function"&&typeof s.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof u.default=="function"&&f.constructor===u.default&&f!==u.default.prototype?"symbol":typeof f};function d(f){return f&&f.__esModule?f:{default:f}}n.default=typeof u.default=="function"&&p(s.default)==="symbol"?function(f){return f===void 0?"undefined":p(f)}:function(f){return f&&typeof u.default=="function"&&f.constructor===u.default&&f!==u.default.prototype?"symbol":f===void 0?"undefined":p(f)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(p){return function(d,f){var b,j,_=String(u(d)),M=s(f),D=_.length;return M<0||M>=D?p?"":void 0:(b=_.charCodeAt(M))<55296||b>56319||M+1===D||(j=_.charCodeAt(M+1))<56320||j>57343?p?_.charAt(M):b:p?_.slice(M,M+2):j-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,p,d){if(s(u),p===void 0)return u;switch(d){case 1:return function(f){return u.call(p,f)};case 2:return function(f,b){return u.call(p,f,b)};case 3:return function(f,b,j){return u.call(p,f,b,j)}}return function(){return u.apply(p,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),p=e(28),d={};e(6)(d,e(2)("iterator"),function(){return this}),o.exports=function(f,b,j){f.prototype=s(d,{next:u(1,j)}),p(f,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),p=e(13);o.exports=e(4)?Object.defineProperties:function(d,f){u(d);for(var b,j=p(f),_=j.length,M=0;_>M;)s.f(d,b=j[M++],f[b]);return d}},function(o,n,e){var s=e(9),u=e(58),p=e(59);o.exports=function(d){return function(f,b,j){var _,M=s(f),D=u(M.length),V=p(j,D);if(d&&b!=b){for(;D>V;)if((_=M[V++])!=_)return!0}else for(;D>V;V++)if((d||V in M)&&M[V]===b)return d||V||0;return!d&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(p){return p>0?u(s(p),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,p=Math.min;o.exports=function(d,f){return(d=s(d))<0?u(d+f,0):p(d,f)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),p=e(25)("IE_PROTO"),d=Object.prototype;o.exports=Object.getPrototypeOf||function(f){return f=u(f),s(f,p)?f[p]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?d:null}},function(o,n,e){var s=e(63),u=e(64),p=e(12),d=e(9);o.exports=e(34)(Array,"Array",function(f,b){this._t=d(f),this._i=0,this._k=b},function(){var f=this._t,b=this._k,j=this._i++;return!f||j>=f.length?(this._t=void 0,u(1)):u(0,b=="keys"?j:b=="values"?f[j]:[j,f[j]])},"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),p=e(4),d=e(15),f=e(37),b=e(68).KEY,j=e(8),_=e(26),M=e(28),D=e(17),V=e(2),$=e(30),B=e(31),G=e(69),t=e(70),F=e(10),R=e(11),z=e(18),I=e(9),y=e(23),S=e(16),P=e(38),N=e(71),E=e(72),Y=e(32),K=e(7),k=e(13),U=E.f,le=K.f,re=N.f,W=s.Symbol,ne=s.JSON,J=ne&&ne.stringify,pe=V("_hidden"),fe=V("toPrimitive"),Se={}.propertyIsEnumerable,ve=_("symbol-registry"),Ee=_("symbols"),ce=_("op-symbols"),be=Object.prototype,Ae=typeof W=="function"&&!!Y.f,ze=s.QObject,We=!ze||!ze.prototype||!ze.prototype.findChild,He=p&&j(function(){return P(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(g,w,L){var T=U(be,w);T&&delete be[w],le(g,w,L),T&&g!==be&&le(be,w,T)}:le,Ue=function(g){var w=Ee[g]=P(W.prototype);return w._k=g,w},Ye=Ae&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Te=function(g,w,L){return g===be&&Te(ce,w,L),F(g),w=y(w,!0),F(L),u(Ee,w)?(L.enumerable?(u(g,pe)&&g[pe][w]&&(g[pe][w]=!1),L=P(L,{enumerable:S(0,!1)})):(u(g,pe)||le(g,pe,S(1,{})),g[pe][w]=!0),He(g,w,L)):le(g,w,L)},Qe=function(g,w){F(g);for(var L,T=G(w=I(w)),X=0,Q=T.length;Q>X;)Te(g,L=T[X++],w[L]);return g},Ze=function(g){var w=Se.call(this,g=y(g,!0));return!(this===be&&u(Ee,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(Ee,g)||u(this,pe)&&this[pe][g])||w)},Ge=function(g,w){if(g=I(g),w=y(w,!0),g!==be||!u(Ee,w)||u(ce,w)){var L=U(g,w);return!L||!u(Ee,w)||u(g,pe)&&g[pe][w]||(L.enumerable=!0),L}},Xe=function(g){for(var w,L=re(I(g)),T=[],X=0;L.length>X;)u(Ee,w=L[X++])||w==pe||w==b||T.push(w);return T},qe=function(g){for(var w,L=g===be,T=re(L?ce:I(g)),X=[],Q=0;T.length>Q;)!u(Ee,w=T[Q++])||L&&!u(be,w)||X.push(Ee[w]);return X};Ae||(f((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=D(arguments.length>0?arguments[0]:void 0),w=function(L){this===be&&w.call(ce,L),u(this,pe)&&u(this[pe],g)&&(this[pe][g]=!1),He(this,g,S(1,L))};return p&&We&&He(be,g,{configurable:!0,set:w}),Ue(g)}).prototype,"toString",function(){return this._k}),E.f=Ge,K.f=Te,e(41).f=N.f=Xe,e(19).f=Ze,Y.f=qe,p&&!e(14)&&f(be,"propertyIsEnumerable",Ze,!0),$.f=function(g){return Ue(V(g))}),d(d.G+d.W+d.F*!Ae,{Symbol:W});for(var De="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),je=0;De.length>je;)V(De[je++]);for(var Je=k(V.store),O=0;Je.length>O;)B(Je[O++]);d(d.S+d.F*!Ae,"Symbol",{for:function(g){return u(ve,g+="")?ve[g]:ve[g]=W(g)},keyFor:function(g){if(!Ye(g))throw TypeError(g+" is not a symbol!");for(var w in ve)if(ve[w]===g)return w},useSetter:function(){We=!0},useSimple:function(){We=!1}}),d(d.S+d.F*!Ae,"Object",{create:function(g,w){return w===void 0?P(g):Qe(P(g),w)},defineProperty:Te,defineProperties:Qe,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Xe,getOwnPropertySymbols:qe});var v=j(function(){Y.f(1)});d(d.S+d.F*v,"Object",{getOwnPropertySymbols:function(g){return Y.f(z(g))}}),ne&&d(d.S+d.F*(!Ae||j(function(){var g=W();return J([g])!="[null]"||J({a:g})!="{}"||J(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,L,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(L=w=T[1],(R(w)||g!==void 0)&&!Ye(g))return t(w)||(w=function(Q,oe){if(typeof L=="function"&&(oe=L.call(this,Q,oe)),!Ye(oe))return oe}),T[1]=w,J.apply(ne,T)}}),W.prototype[fe]||e(6)(W.prototype,fe,W.prototype.valueOf),M(W,"Symbol"),M(Math,"Math",!0),M(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),p=e(5),d=e(7).f,f=0,b=Object.isExtensible||function(){return!0},j=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(D){d(D,s,{value:{i:"O"+ ++f,w:{}}})},M=o.exports={KEY:s,NEED:!1,fastKey:function(D,V){if(!u(D))return typeof D=="symbol"?D:(typeof D=="string"?"S":"P")+D;if(!p(D,s)){if(!b(D))return"F";if(!V)return"E";_(D)}return D[s].i},getWeak:function(D,V){if(!p(D,s)){if(!b(D))return!0;if(!V)return!1;_(D)}return D[s].w},onFreeze:function(D){return j&&M.NEED&&b(D)&&!p(D,s)&&_(D),D}}},function(o,n,e){var s=e(13),u=e(32),p=e(19);o.exports=function(d){var f=s(d),b=u.f;if(b)for(var j,_=b(d),M=p.f,D=0;_.length>D;)M.call(d,j=_[D++])&&f.push(j);return f}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,p={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(f){return d&&p.call(f)=="[object Window]"?function(b){try{return u(b)}catch{return d.slice()}}(f):u(s(f))}},function(o,n,e){var s=e(19),u=e(16),p=e(9),d=e(23),f=e(5),b=e(35),j=Object.getOwnPropertyDescriptor;n.f=e(4)?j:function(_,M){if(_=p(_),M=d(M,!0),b)try{return j(_,M)}catch{}if(f(_,M))return u(!s.f.call(_,M),_[M])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),p=(s=u)&&s.__esModule?s:{default:s};n.default=p.default||function(d){for(var f=1;f$;)for(var t,F=b(arguments[$++]),R=B?u(F).concat(B(F)):u(F),z=R.length,I=0;z>I;)t=R[I++],s&&!G.call(F,t)||(D[t]=F[t]);return D}:j},function(o,n,e){n.__esModule=!0;var s=p(e(82)),u=p(e(85));function p(d){return d&&d.__esModule?d:{default:d}}n.default=function(d,f){if(Array.isArray(d))return d;if((0,s.default)(Object(d)))return function(b,j){var _=[],M=!0,D=!1,V=void 0;try{for(var $,B=(0,u.default)(b);!(M=($=B.next()).done)&&(_.push($.value),!j||_.length!==j);M=!0);}catch(G){D=!0,V=G}finally{try{!M&&B.return&&B.return()}finally{if(D)throw V}}return _}(d,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),p=e(12);o.exports=e(1).isIterable=function(d){var f=Object(d);return f[u]!==void 0||"@@iterator"in f||p.hasOwnProperty(s(f))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(p){var d=u(p);if(typeof d!="function")throw TypeError(p+" is not iterable!");return s(d.call(p))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),p=e(12);o.exports=e(1).getIteratorMethod=function(d){if(d!=null)return d[u]||d["@@iterator"]||p[s(d)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(p){return u(s(p))}})},function(o,n,e){var s=e(15),u=e(1),p=e(8);o.exports=function(d,f){var b=(u.Object||{})[d]||Object[d],j={};j[d]=f(b),s(s.S+s.F*p(function(){b(1)}),"Object",j)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],p=/^\s+|\s+$/g,d=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,f=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,j=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,M=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,$=parseInt,B=typeof s=="object"&&s&&s.Object===Object&&s,G=typeof self=="object"&&self&&self.Object===Object&&self,t=B||G||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,L){if(w!=w)return function(Q,oe,he,ue){for(var xe=Q.length,de=he+(ue?1:-1);ue?de--:++de-1}function z(O){return O!=O}function I(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function y(O,v){for(var g=-1,w=O.length,L=0,T=[];++g2?P:void 0);function Se(O){return De(O)?ne(O):{}}function ve(O){return!(!De(O)||function(v){return!!k&&k in v}(O))&&(function(v){var g=De(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:M).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function Ee(O,v,g,w){for(var L=-1,T=O.length,X=g.length,Q=-1,oe=v.length,he=J(T-X,0),ue=Array(oe+he),xe=!w;++Q1&&te.reverse(),ue&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(d,`{ +/* [wrapped with `+v+`] */ +`)}function Qe(O,v){return!!(v=v??9007199254740991)&&(typeof O=="number"||V.test(O))&&O>-1&&O%1==0&&O1&&p--,f=6*p<1?s+6*(u-s)*p:2*p<1?u:3*p<2?s+(u-s)*(2/3-p)*6:s,d[M]=255*f;return d}},function(o,n,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,p=typeof self=="object"&&self&&self.Object===Object&&self,d=u||p||Function("return this")();function f(y,S,P){switch(P.length){case 0:return y.call(S);case 1:return y.call(S,P[0]);case 2:return y.call(S,P[0],P[1]);case 3:return y.call(S,P[0],P[1],P[2])}return y.apply(S,P)}function b(y,S){for(var P=-1,N=S.length,E=y.length;++P-1&&E%1==0&&E<=9007199254740991}(N.length)&&!function(E){var Y=function(K){var k=typeof K;return!!K&&(k=="object"||k=="function")}(E)?M.call(E):"";return Y=="[object Function]"||Y=="[object GeneratorFunction]"}(N)}(P)}(S)&&_.call(S,"callee")&&(!V.call(S,"callee")||M.call(S)=="[object Arguments]")}(y)||!!($&&y&&y[$])}var t=Array.isArray,F,R,z,I=(R=function(y){var S=(y=function N(E,Y,K,k,U){var le=-1,re=E.length;for(K||(K=G),U||(U=[]);++le0&&K(W)?Y>1?N(W,Y-1,K,k,U):b(U,W):k||(U[U.length]=W)}return U}(y,1)).length,P=S;for(F;P--;)if(typeof y[P]!="function")throw new TypeError("Expected a function");return function(){for(var N=0,E=S?y[N].apply(this,arguments):arguments[0];++N2?p-2:0),f=2;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var a,r=M(c);if(l){var i=M(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return $(this,a)}}e.r(n);var G=e(0),t=e.n(G);function F(){var c=this.constructor.getDerivedStateFromProps(this.props,this.state);c!=null&&this.setState(c)}function R(c){this.setState((function(l){var a=this.constructor.getDerivedStateFromProps(c,l);return a??null}).bind(this))}function z(c,l){try{var a=this.props,r=this.state;this.props=c,this.state=l,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function I(c){var l=c.prototype;if(!l||!l.isReactComponent)throw new Error("Can only polyfill class components");if(typeof c.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function")return c;var a=null,r=null,i=null;if(typeof l.componentWillMount=="function"?a="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"?i="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||r!==null||i!==null){var m=c.displayName||c.name,C=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+m+" uses "+C+" but also contains the following legacy lifecycles:"+(a!==null?` + `+a:"")+(r!==null?` + `+r:"")+(i!==null?` + `+i:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof c.getDerivedStateFromProps=="function"&&(l.componentWillMount=F,l.componentWillReceiveProps=R),typeof l.getSnapshotBeforeUpdate=="function"){if(typeof l.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");l.componentWillUpdate=z;var x=l.componentDidUpdate;l.componentDidUpdate=function(h,A,q){var ee=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:q;x.call(this,h,A,ee)}}return c}function y(c,l){if(c==null)return{};var a,r,i=function(C,x){if(C==null)return{};var h,A,q={},ee=Object.keys(C);for(A=0;A=0||(q[h]=C[h]);return q}(c,l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(c);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(c,a)&&(i[a]=c[a])}return i}function S(c){var l=function(a){return{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(c);return l==="number"&&(l=isNaN(c)?"nan":(0|c)!=c?"float":"integer"),l}F.__suppressDeprecationWarning=!0,R.__suppressDeprecationWarning=!0,z.__suppressDeprecationWarning=!0;var P={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},N={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},E={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Y=e(45),K=function(c){var l=function(a){return{backgroundColor:a.base00,ellipsisColor:a.base09,braceColor:a.base07,expandedIcon:a.base0D,collapsedIcon:a.base0E,keyColor:a.base07,arrayKeyColor:a.base0C,objectSize:a.base04,copyToClipboard:a.base0F,copyToClipboardCheck:a.base0D,objectBorder:a.base02,dataTypes:{boolean:a.base0E,date:a.base0D,float:a.base0B,function:a.base0D,integer:a.base0F,string:a.base09,nan:a.base08,null:a.base0A,undefined:a.base05,regexp:a.base0A,background:a.base02},editVariable:{editIcon:a.base0E,cancelIcon:a.base09,removeIcon:a.base09,addIcon:a.base0E,checkIcon:a.base0E,background:a.base01,color:a.base0A,border:a.base07},addKeyModal:{background:a.base05,border:a.base04,color:a.base0A,labelColor:a.base01},validationFailure:{background:a.base09,iconColor:a.base01,fontColor:a.base01}}}(c);return{"app-container":{fontFamily:E.globalFontFamily,cursor:E.globalCursor,backgroundColor:l.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:l.ellipsisColor,fontSize:E.ellipsisFontSize,lineHeight:E.ellipsisLineHeight,cursor:E.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:E.braceCursor,fontWeight:E.braceFontWeight,color:l.braceColor},"expanded-icon":{color:l.expandedIcon},"collapsed-icon":{color:l.collapsedIcon},colon:{display:"inline-block",margin:E.keyMargin,color:l.keyColor,verticalAlign:"top"},objectKeyVal:function(a,r){return{style:p({paddingTop:E.keyValPaddingTop,paddingRight:E.keyValPaddingRight,paddingBottom:E.keyValPaddingBottom,borderLeft:E.keyValBorderLeft+" "+l.objectBorder,":hover":{paddingLeft:r.paddingLeft-1+"px",borderLeft:E.keyValBorderHover+" "+l.objectBorder}},r)}},"object-key-val-no-border":{padding:E.keyValPadding},"pushed-content":{marginLeft:E.pushedContentMarginLeft},variableValue:function(a,r){return{style:p({display:"inline-block",paddingRight:E.variableValuePaddingRight,position:"relative"},r)}},"object-name":{display:"inline-block",color:l.keyColor,letterSpacing:E.keyLetterSpacing,fontStyle:E.keyFontStyle,verticalAlign:E.keyVerticalAlign,opacity:E.keyOpacity,":hover":{opacity:E.keyOpacityHover}},"array-key":{display:"inline-block",color:l.arrayKeyColor,letterSpacing:E.keyLetterSpacing,fontStyle:E.keyFontStyle,verticalAlign:E.keyVerticalAlign,opacity:E.keyOpacity,":hover":{opacity:E.keyOpacityHover}},"object-size":{color:l.objectSize,borderRadius:E.objectSizeBorderRadius,fontStyle:E.objectSizeFontStyle,margin:E.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:E.dataTypeFontSize,marginRight:E.dataTypeMarginRight,opacity:E.datatypeOpacity},boolean:{display:"inline-block",color:l.dataTypes.boolean},date:{display:"inline-block",color:l.dataTypes.date},"date-value":{marginLeft:E.dateValueMarginLeft},float:{display:"inline-block",color:l.dataTypes.float},function:{display:"inline-block",color:l.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:l.dataTypes.integer},string:{display:"inline-block",color:l.dataTypes.string},nan:{display:"inline-block",color:l.dataTypes.nan,fontSize:E.nanFontSize,fontWeight:E.nanFontWeight,backgroundColor:l.dataTypes.background,padding:E.nanPadding,borderRadius:E.nanBorderRadius},null:{display:"inline-block",color:l.dataTypes.null,fontSize:E.nullFontSize,fontWeight:E.nullFontWeight,backgroundColor:l.dataTypes.background,padding:E.nullPadding,borderRadius:E.nullBorderRadius},undefined:{display:"inline-block",color:l.dataTypes.undefined,fontSize:E.undefinedFontSize,padding:E.undefinedPadding,borderRadius:E.undefinedBorderRadius,backgroundColor:l.dataTypes.background},regexp:{display:"inline-block",color:l.dataTypes.regexp},"copy-to-clipboard":{cursor:E.clipboardCursor},"copy-icon":{color:l.copyToClipboard,fontSize:E.iconFontSize,marginRight:E.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:l.copyToClipboardCheck,marginLeft:E.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:E.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:E.metaDataPadding},"icon-container":{display:"inline-block",width:E.iconContainerWidth},tooltip:{padding:E.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.removeIcon,cursor:E.iconCursor,fontSize:E.iconFontSize,marginRight:E.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.addIcon,cursor:E.iconCursor,fontSize:E.iconFontSize,marginRight:E.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.editIcon,cursor:E.iconCursor,fontSize:E.iconFontSize,marginRight:E.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:E.iconCursor,color:l.editVariable.checkIcon,fontSize:E.iconFontSize,paddingRight:E.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:E.iconCursor,color:l.editVariable.cancelIcon,fontSize:E.iconFontSize,paddingRight:E.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:E.editInputMinWidth,borderRadius:E.editInputBorderRadius,backgroundColor:l.editVariable.background,color:l.editVariable.color,padding:E.editInputPadding,marginRight:E.editInputMarginRight,fontFamily:E.editInputFontFamily},"detected-row":{paddingTop:E.detectedRowPaddingTop},"key-modal-request":{position:E.addKeyCoverPosition,top:E.addKeyCoverPositionPx,left:E.addKeyCoverPositionPx,right:E.addKeyCoverPositionPx,bottom:E.addKeyCoverPositionPx,backgroundColor:E.addKeyCoverBackground},"key-modal":{width:E.addKeyModalWidth,backgroundColor:l.addKeyModal.background,marginLeft:E.addKeyModalMargin,marginRight:E.addKeyModalMargin,padding:E.addKeyModalPadding,borderRadius:E.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:l.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:l.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:l.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:l.addKeyModal.labelColor,fontSize:E.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:l.editVariable.addIcon,fontSize:E.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:l.ellipsisColor,fontSize:E.ellipsisFontSize,lineHeight:E.ellipsisLineHeight,cursor:E.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:l.validationFailure.fontColor,backgroundColor:l.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:l.validationFailure.iconColor,fontSize:E.iconFontSize,transform:"rotate(45deg)"}}};function k(c,l,a){return c||console.error("theme has not been set"),function(r){var i=P;return r!==!1&&r!=="none"||(i=N),Object(Y.createStyling)(K,{defaultBase16:i})(r)}(c)(l,a)}var U=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=(r.rjvId,r.type_name),m=r.displayDataTypes,C=r.theme;return m?t.a.createElement("span",Object.assign({className:"data-type-label"},k(C,"data-type-label")),i):null}}]),a}(t.a.PureComponent),le=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",k(r.theme,"boolean"),t.a.createElement(U,Object.assign({type_name:"bool"},r)),r.value?"true":"false")}}]),a}(t.a.PureComponent),re=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",k(r.theme,"date"),t.a.createElement(U,Object.assign({type_name:"date"},r)),t.a.createElement("span",Object.assign({className:"date-value"},k(r.theme,"date-value")),r.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),a}(t.a.PureComponent),W=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",k(r.theme,"float"),t.a.createElement(U,Object.assign({type_name:"float"},r)),this.props.value)}}]),a}(t.a.PureComponent);function ne(c,l){(l==null||l>c.length)&&(l=c.length);for(var a=0,r=new Array(l);a"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(a=J(c))||l&&c&&typeof c.length=="number"){a&&(c=a);var r=0,i=function(){};return{s:i,n:function(){return r>=c.length?{done:!0}:{done:!1,value:c[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,C=!0,x=!1;return{s:function(){a=c[Symbol.iterator]()},n:function(){var h=a.next();return C=h.done,h},e:function(h){x=!0,m=h},f:function(){try{C||a.return==null||a.return()}finally{if(x)throw m}}}}function fe(c){return function(l){if(Array.isArray(l))return ne(l)}(c)||function(l){if(typeof Symbol<"u"&&Symbol.iterator in Object(l))return Array.from(l)}(c)||J(c)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Se=e(46),ve=new(e(47)).Dispatcher,Ee=new(function(c){_(a,c);var l=B(a);function a(){var r;d(this,a);for(var i=arguments.length,m=new Array(i),C=0;Ci&&(x.style.cursor="pointer",this.state.collapsed&&(C=t.a.createElement("span",null,C.substring(0,i),t.a.createElement("span",k(m,"ellipsis")," ...")))),t.a.createElement("div",k(m,"string"),t.a.createElement(U,Object.assign({type_name:"string"},r)),t.a.createElement("span",Object.assign({className:"string-value"},x,{onClick:this.toggleCollapsed}),'"',C,'"'))}}]),a}(t.a.PureComponent),Ye=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){return t.a.createElement("div",k(this.props.theme,"undefined"),"undefined")}}]),a}(t.a.PureComponent);function Te(){return(Te=Object.assign||function(c){for(var l=1;l=0||(dt[Fe]=H[Fe]);return dt}(c,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),q,ee=A.value!==void 0,ae=Object(G.useRef)(null),se=Xe(ae,l),Z=Object(G.useRef)(0),ie=Object(G.useRef)(),me=function(){var H=ae.current,ye=a&&ie.current?ie.current:function(Ke){var pt=window.getComputedStyle(Ke);if(pt===null)return null;var tt,ke=(tt=pt,O.reduce(function(st,nt){return st[nt]=tt[nt],st},{})),at=ke.boxSizing;return at===""?null:(v&&at==="border-box"&&(ke.width=parseFloat(ke.width)+parseFloat(ke.borderRightWidth)+parseFloat(ke.borderLeftWidth)+parseFloat(ke.paddingRight)+parseFloat(ke.paddingLeft)+"px"),{sizingStyle:ke,paddingSize:parseFloat(ke.paddingBottom)+parseFloat(ke.paddingTop),borderSize:parseFloat(ke.borderBottomWidth)+parseFloat(ke.borderTopWidth)})}(H);if(ye){ie.current=ye;var Fe=function(Ke,pt,tt,ke){tt===void 0&&(tt=1),ke===void 0&&(ke=1/0),je||((je=document.createElement("textarea")).setAttribute("tab-index","-1"),je.setAttribute("aria-hidden","true"),De(je)),je.parentNode===null&&document.body.appendChild(je);var at=Ke.paddingSize,st=Ke.borderSize,nt=Ke.sizingStyle,xt=nt.boxSizing;Object.keys(nt).forEach(function(gt){var rt=gt;je.style[rt]=nt[rt]}),De(je),je.value=pt;var ft=function(gt,rt){var _t=gt.scrollHeight;return rt.sizingStyle.boxSizing==="border-box"?_t+rt.borderSize:_t-rt.paddingSize}(je,Ke);je.value="x";var ht=je.scrollHeight-at,mt=ht*tt;xt==="border-box"&&(mt=mt+at+st),ft=Math.max(mt,ft);var vt=ht*ke;return xt==="border-box"&&(vt=vt+at+st),[ft=Math.min(vt,ft),ht]}(ye,H.value||H.placeholder||"x",i,r),Ve=Fe[0],dt=Fe[1];Z.current!==Ve&&(Z.current=Ve,H.style.setProperty("height",Ve+"px","important"),h(Ve,{rowHeight:dt}))}};return Object(G.useLayoutEffect)(me),q=Ze(me),Object(G.useLayoutEffect)(function(){var H=function(ye){q.current(ye)};return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H)}},[]),Object(G.createElement)("textarea",Te({},A,{onChange:function(H){ee||me(),C(H)},ref:se}))},w=Object(G.forwardRef)(g);function L(c){c=c.trim();try{if((c=JSON.stringify(JSON.parse(c)))[0]==="[")return T("array",JSON.parse(c));if(c[0]==="{")return T("object",JSON.parse(c));if(c.match(/\-?\d+\.\d+/)&&c.match(/\-?\d+\.\d+/)[0]===c)return T("float",parseFloat(c));if(c.match(/\-?\d+e-\d+/)&&c.match(/\-?\d+e-\d+/)[0]===c)return T("float",Number(c));if(c.match(/\-?\d+/)&&c.match(/\-?\d+/)[0]===c)return T("integer",parseInt(c));if(c.match(/\-?\d+e\+\d+/)&&c.match(/\-?\d+e\+\d+/)[0]===c)return T("integer",Number(c))}catch{}switch(c=c.toLowerCase()){case"undefined":return T("undefined",void 0);case"nan":return T("nan",NaN);case"null":return T("null",null);case"true":return T("boolean",!0);case"false":return T("boolean",!1);default:if(c=Date.parse(c))return T("date",new Date(c))}return T(!1,null)}function T(c,l){return{type:c,value:l}}var X=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),a}(t.a.PureComponent),Q=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),a}(t.a.PureComponent),oe=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]),C=te(i).style;return t.a.createElement("span",m,t.a.createElement("svg",{fill:C.color,width:C.height,height:C.width,style:C,viewBox:"0 0 1792 1792"},t.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),a}(t.a.PureComponent),he=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]),C=te(i).style;return t.a.createElement("span",m,t.a.createElement("svg",{fill:C.color,width:C.height,height:C.width,style:C,viewBox:"0 0 1792 1792"},t.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),a}(t.a.PureComponent),ue=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",{style:p(p({},te(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},t.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),a}(t.a.PureComponent),xe=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",{style:p(p({},te(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},t.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),a}(t.a.PureComponent),de=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),a}(t.a.PureComponent),we=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent),Pe=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent),Be=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),a}(t.a.PureComponent),Ie=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),a}(t.a.PureComponent),ge=function(c){_(a,c);var l=B(a);function a(){return d(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=y(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent);function te(c){return c||(c={}),{style:p(p({verticalAlign:"middle"},c),{},{color:c.color?c.color:"#000000",height:"1em",width:"1em"})}}var _e=function(c){_(a,c);var l=B(a);function a(r){var i;return d(this,a),(i=l.call(this,r)).copiedTimer=null,i.handleCopy=function(){var m=document.createElement("textarea"),C=i.props,x=C.clickCallback,h=C.src,A=C.namespace;m.innerHTML=JSON.stringify(i.clipboardValue(h),null," "),document.body.appendChild(m),m.select(),document.execCommand("copy"),document.body.removeChild(m),i.copiedTimer=setTimeout(function(){i.setState({copied:!1})},5500),i.setState({copied:!0},function(){typeof x=="function"&&x({src:h,namespace:A,name:A[A.length-1]})})},i.getClippyIcon=function(){var m=i.props.theme;return i.state.copied?t.a.createElement("span",null,t.a.createElement(de,Object.assign({className:"copy-icon"},k(m,"copy-icon"))),t.a.createElement("span",k(m,"copy-icon-copied"),"✔")):t.a.createElement(de,Object.assign({className:"copy-icon"},k(m,"copy-icon")))},i.clipboardValue=function(m){switch(S(m)){case"function":case"regexp":return m.toString();default:return m}},i.state={copied:!1},i}return b(a,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var r=this.props,i=(r.src,r.theme),m=r.hidden,C=r.rowHovered,x=k(i,"copy-to-clipboard").style,h="inline";return m&&(h="none"),t.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:C?"inline-block":"none"}},t.a.createElement("span",{style:p(p({},x),{},{display:h}),onClick:this.handleCopy},this.getClippyIcon()))}}]),a}(t.a.PureComponent),Oe=function(c){_(a,c);var l=B(a);function a(r){var i;return d(this,a),(i=l.call(this,r)).getEditIcon=function(){var m=i.props,C=m.variable,x=m.theme;return t.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},t.a.createElement(Ie,Object.assign({className:"click-to-edit-icon"},k(x,"editVarIcon"),{onClick:function(){i.prepopInput(C)}})))},i.prepopInput=function(m){if(i.props.onEdit!==!1){var C=function(h){var A;switch(S(h)){case"undefined":A="undefined";break;case"nan":A="NaN";break;case"string":A=h;break;case"date":case"function":case"regexp":A=h.toString();break;default:try{A=JSON.stringify(h,null," ")}catch{A=""}}return A}(m.value),x=L(C);i.setState({editMode:!0,editValue:C,parsedInput:{type:x.type,value:x.value}})}},i.getRemoveIcon=function(){var m=i.props,C=m.variable,x=m.namespace,h=m.theme,A=m.rjvId;return t.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},t.a.createElement(we,Object.assign({className:"click-to-remove-icon"},k(h,"removeVarIcon"),{onClick:function(){ve.dispatch({name:"VARIABLE_REMOVED",rjvId:A,data:{name:C.name,namespace:x,existing_value:C.value,variable_removed:!0}})}})))},i.getValue=function(m,C){var x=!C&&m.type,h=V(i).props;switch(x){case!1:return i.getEditInput();case"string":return t.a.createElement(Ue,Object.assign({value:m.value},h));case"integer":return t.a.createElement(We,Object.assign({value:m.value},h));case"float":return t.a.createElement(W,Object.assign({value:m.value},h));case"boolean":return t.a.createElement(le,Object.assign({value:m.value},h));case"function":return t.a.createElement(be,Object.assign({value:m.value},h));case"null":return t.a.createElement(ze,h);case"nan":return t.a.createElement(Ae,h);case"undefined":return t.a.createElement(Ye,h);case"date":return t.a.createElement(re,Object.assign({value:m.value},h));case"regexp":return t.a.createElement(He,Object.assign({value:m.value},h));default:return t.a.createElement("div",{className:"object-value"},JSON.stringify(m.value))}},i.getEditInput=function(){var m=i.props.theme,C=i.state.editValue;return t.a.createElement("div",null,t.a.createElement(w,Object.assign({type:"text",inputRef:function(x){return x&&x.focus()},value:C,className:"variable-editor",onChange:function(x){var h=x.target.value,A=L(h);i.setState({editValue:h,parsedInput:{type:A.type,value:A.value}})},onKeyDown:function(x){switch(x.key){case"Escape":i.setState({editMode:!1,editValue:""});break;case"Enter":(x.ctrlKey||x.metaKey)&&i.submitEdit(!0)}x.stopPropagation()},placeholder:"update this value",minRows:2},k(m,"edit-input"))),t.a.createElement("div",k(m,"edit-icon-container"),t.a.createElement(we,Object.assign({className:"edit-cancel"},k(m,"cancel-icon"),{onClick:function(){i.setState({editMode:!1,editValue:""})}})),t.a.createElement(ge,Object.assign({className:"edit-check string-value"},k(m,"check-icon"),{onClick:function(){i.submitEdit()}})),t.a.createElement("div",null,i.showDetected())))},i.submitEdit=function(m){var C=i.props,x=C.variable,h=C.namespace,A=C.rjvId,q=i.state,ee=q.editValue,ae=q.parsedInput,se=ee;m&&ae.type&&(se=ae.value),i.setState({editMode:!1}),ve.dispatch({name:"VARIABLE_UPDATED",rjvId:A,data:{name:x.name,namespace:h,existing_value:x.value,new_value:se,variable_removed:!1}})},i.showDetected=function(){var m=i.props,C=m.theme,x=(m.variable,m.namespace,m.rjvId,i.state.parsedInput),h=(x.type,x.value,i.getDetectedInput());if(h)return t.a.createElement("div",null,t.a.createElement("div",k(C,"detected-row"),h,t.a.createElement(ge,{className:"edit-check detected",style:p({verticalAlign:"top",paddingLeft:"3px"},k(C,"check-icon").style),onClick:function(){i.submitEdit(!0)}})))},i.getDetectedInput=function(){var m=i.state.parsedInput,C=m.type,x=m.value,h=V(i).props,A=h.theme;if(C!==!1)switch(C.toLowerCase()){case"object":return t.a.createElement("span",null,t.a.createElement("span",{style:p(p({},k(A,"brace").style),{},{cursor:"default"})},"{"),t.a.createElement("span",{style:p(p({},k(A,"ellipsis").style),{},{cursor:"default"})},"..."),t.a.createElement("span",{style:p(p({},k(A,"brace").style),{},{cursor:"default"})},"}"));case"array":return t.a.createElement("span",null,t.a.createElement("span",{style:p(p({},k(A,"brace").style),{},{cursor:"default"})},"["),t.a.createElement("span",{style:p(p({},k(A,"ellipsis").style),{},{cursor:"default"})},"..."),t.a.createElement("span",{style:p(p({},k(A,"brace").style),{},{cursor:"default"})},"]"));case"string":return t.a.createElement(Ue,Object.assign({value:x},h));case"integer":return t.a.createElement(We,Object.assign({value:x},h));case"float":return t.a.createElement(W,Object.assign({value:x},h));case"boolean":return t.a.createElement(le,Object.assign({value:x},h));case"function":return t.a.createElement(be,Object.assign({value:x},h));case"null":return t.a.createElement(ze,h);case"nan":return t.a.createElement(Ae,h);case"undefined":return t.a.createElement(Ye,h);case"date":return t.a.createElement(re,Object.assign({value:new Date(x)},h))}},i.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},i}return b(a,[{key:"render",value:function(){var r=this,i=this.props,m=i.variable,C=i.singleIndent,x=i.type,h=i.theme,A=i.namespace,q=i.indentWidth,ee=i.enableClipboard,ae=i.onEdit,se=i.onDelete,Z=i.onSelect,ie=i.displayArrayKey,me=i.quotesOnKeys,H=this.state.editMode;return t.a.createElement("div",Object.assign({},k(h,"objectKeyVal",{paddingLeft:q*C}),{onMouseEnter:function(){return r.setState(p(p({},r.state),{},{hovered:!0}))},onMouseLeave:function(){return r.setState(p(p({},r.state),{},{hovered:!1}))},className:"variable-row",key:m.name}),x=="array"?ie?t.a.createElement("span",Object.assign({},k(h,"array-key"),{key:m.name+"_"+A}),m.name,t.a.createElement("div",k(h,"colon"),":")):null:t.a.createElement("span",null,t.a.createElement("span",Object.assign({},k(h,"object-name"),{className:"object-key",key:m.name+"_"+A}),!!me&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"'),t.a.createElement("span",{style:{display:"inline-block"}},m.name),!!me&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"')),t.a.createElement("span",k(h,"colon"),":")),t.a.createElement("div",Object.assign({className:"variable-value",onClick:Z===!1&&ae===!1?null:function(ye){var Fe=fe(A);(ye.ctrlKey||ye.metaKey)&&ae!==!1?r.prepopInput(m):Z!==!1&&(Fe.shift(),Z(p(p({},m),{},{namespace:Fe})))}},k(h,"variableValue",{cursor:Z===!1?"default":"pointer"})),this.getValue(m,H)),ee?t.a.createElement(_e,{rowHovered:this.state.hovered,hidden:H,src:m.value,clickCallback:ee,theme:h,namespace:[].concat(fe(A),[m.name])}):null,ae!==!1&&H==0?this.getEditIcon():null,se!==!1&&H==0?this.getRemoveIcon():null)}}]),a}(t.a.PureComponent),Ne=function(c){_(a,c);var l=B(a);function a(){var r;d(this,a);for(var i=arguments.length,m=new Array(i),C=0;C0?ee:null,namespace:q.splice(0,q.length-1),existing_value:ae,variable_removed:!1,key_name:null};S(ae)==="object"?ve.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:se,data:ie}):ve.dispatch({name:"VARIABLE_ADDED",rjvId:se,data:p(p({},ie),{},{new_value:[].concat(fe(ae),[null])})})}})))},r.getRemoveObject=function(x){var h=r.props,A=h.theme,q=(h.hover,h.namespace),ee=h.name,ae=h.src,se=h.rjvId;if(q.length!==1)return t.a.createElement("span",{className:"click-to-remove",style:{display:x?"inline-block":"none"}},t.a.createElement(we,Object.assign({className:"click-to-remove-icon"},k(A,"removeVarIcon"),{onClick:function(){ve.dispatch({name:"VARIABLE_REMOVED",rjvId:se,data:{name:ee,namespace:q.splice(0,q.length-1),existing_value:ae,variable_removed:!0}})}})))},r.render=function(){var x=r.props,h=x.theme,A=x.onDelete,q=x.onAdd,ee=x.enableClipboard,ae=x.src,se=x.namespace,Z=x.rowHovered;return t.a.createElement("div",Object.assign({},k(h,"object-meta-data"),{className:"object-meta-data",onClick:function(ie){ie.stopPropagation()}}),r.getObjectSize(),ee?t.a.createElement(_e,{rowHovered:Z,clickCallback:ee,src:ae,theme:h,namespace:se}):null,q!==!1?r.getAddAttribute(Z):null,A!==!1?r.getRemoveObject(Z):null)},r}return a}(t.a.PureComponent);function Re(c){var l=c.parent_type,a=c.namespace,r=c.quotesOnKeys,i=c.theme,m=c.jsvRoot,C=c.name,x=c.displayArrayKey,h=c.name?c.name:"";return!m||C!==!1&&C!==null?l=="array"?x?t.a.createElement("span",Object.assign({},k(i,"array-key"),{key:a}),t.a.createElement("span",{className:"array-key"},h),t.a.createElement("span",k(i,"colon"),":")):t.a.createElement("span",null):t.a.createElement("span",Object.assign({},k(i,"object-name"),{key:a}),t.a.createElement("span",{className:"object-key"},r&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"'),t.a.createElement("span",null,h),r&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"')),t.a.createElement("span",k(i,"colon"),":")):t.a.createElement("span",null)}function Me(c){var l=c.theme;switch(c.iconStyle){case"triangle":return t.a.createElement(xe,Object.assign({},k(l,"expanded-icon"),{className:"expanded-icon"}));case"square":return t.a.createElement(oe,Object.assign({},k(l,"expanded-icon"),{className:"expanded-icon"}));default:return t.a.createElement(X,Object.assign({},k(l,"expanded-icon"),{className:"expanded-icon"}))}}function Le(c){var l=c.theme;switch(c.iconStyle){case"triangle":return t.a.createElement(ue,Object.assign({},k(l,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return t.a.createElement(he,Object.assign({},k(l,"collapsed-icon"),{className:"collapsed-icon"}));default:return t.a.createElement(Q,Object.assign({},k(l,"collapsed-icon"),{className:"collapsed-icon"}))}}var et=function(c){_(a,c);var l=B(a);function a(r){var i;return d(this,a),(i=l.call(this,r)).toggleCollapsed=function(m){var C=[];for(var x in i.state.expanded)C.push(i.state.expanded[x]);C[m]=!C[m],i.setState({expanded:C})},i.state={expanded:[]},i}return b(a,[{key:"getExpandedIcon",value:function(r){var i=this.props,m=i.theme,C=i.iconStyle;return this.state.expanded[r]?t.a.createElement(Me,{theme:m,iconStyle:C}):t.a.createElement(Le,{theme:m,iconStyle:C})}},{key:"render",value:function(){var r=this,i=this.props,m=i.src,C=i.groupArraysAfterLength,x=(i.depth,i.name),h=i.theme,A=i.jsvRoot,q=i.namespace,ee=(i.parent_type,y(i,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),ae=0,se=5*this.props.indentWidth;A||(ae=5*this.props.indentWidth);var Z=C,ie=Math.ceil(m.length/Z);return t.a.createElement("div",Object.assign({className:"object-key-val"},k(h,A?"jsv-root":"objectKeyVal",{paddingLeft:ae})),t.a.createElement(Re,this.props),t.a.createElement("span",null,t.a.createElement(Ne,Object.assign({size:m.length},this.props))),fe(Array(ie)).map(function(me,H){return t.a.createElement("div",Object.assign({key:H,className:"object-key-val array-group"},k(h,"objectKeyVal",{marginLeft:6,paddingLeft:se})),t.a.createElement("span",k(h,"brace-row"),t.a.createElement("div",Object.assign({className:"icon-container"},k(h,"icon-container"),{onClick:function(ye){r.toggleCollapsed(H)}}),r.getExpandedIcon(H)),r.state.expanded[H]?t.a.createElement(lt,Object.assign({key:x+H,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Z,index_offset:H*Z,src:m.slice(H*Z,H*Z+Z),namespace:q,type:"array",parent_type:"array_group",theme:h},ee)):t.a.createElement("span",Object.assign({},k(h,"brace"),{onClick:function(ye){r.toggleCollapsed(H)},className:"array-group-brace"}),"[",t.a.createElement("div",Object.assign({},k(h,"array-group-meta-data"),{className:"array-group-meta-data"}),t.a.createElement("span",Object.assign({className:"object-size"},k(h,"object-size")),H*Z," - ",H*Z+Z>m.length?m.length:H*Z+Z)),"]")))}))}}]),a}(t.a.PureComponent),ot=function(c){_(a,c);var l=B(a);function a(r){var i;d(this,a),(i=l.call(this,r)).toggleCollapsed=function(){i.setState({expanded:!i.state.expanded},function(){ce.set(i.props.rjvId,i.props.namespace,"expanded",i.state.expanded)})},i.getObjectContent=function(C,x,h){return t.a.createElement("div",{className:"pushed-content object-container"},t.a.createElement("div",Object.assign({className:"object-content"},k(i.props.theme,"pushed-content")),i.renderObjectContents(x,h)))},i.getEllipsis=function(){return i.state.size===0?null:t.a.createElement("div",Object.assign({},k(i.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:i.toggleCollapsed}),"...")},i.getObjectMetaData=function(C){var x=i.props,h=(x.rjvId,x.theme,i.state),A=h.size,q=h.hovered;return t.a.createElement(Ne,Object.assign({rowHovered:q,size:A},i.props))},i.renderObjectContents=function(C,x){var h,A=i.props,q=A.depth,ee=A.parent_type,ae=A.index_offset,se=A.groupArraysAfterLength,Z=A.namespace,ie=i.state.object_type,me=[],H=Object.keys(C||{});return i.props.sortKeys&&ie!=="array"&&(H=H.sort()),H.forEach(function(ye){if(h=new Ot(ye,C[ye]),ee==="array_group"&&ae&&(h.name=parseInt(h.name)+ae),C.hasOwnProperty(ye))if(h.type==="object")me.push(t.a.createElement(lt,Object.assign({key:h.name,depth:q+1,name:h.name,src:h.value,namespace:Z.concat(h.name),parent_type:ie},x)));else if(h.type==="array"){var Fe=lt;se&&h.value.length>se&&(Fe=et),me.push(t.a.createElement(Fe,Object.assign({key:h.name,depth:q+1,name:h.name,src:h.value,namespace:Z.concat(h.name),type:"array",parent_type:ie},x)))}else me.push(t.a.createElement(Oe,Object.assign({key:h.name+"_"+Z,variable:h,singleIndent:5,namespace:Z,type:i.props.type},x)))}),me};var m=a.getState(r);return i.state=p(p({},m),{},{prevProps:{}}),i}return b(a,[{key:"getBraceStart",value:function(r,i){var m=this,C=this.props,x=C.src,h=C.theme,A=C.iconStyle;if(C.parent_type==="array_group")return t.a.createElement("span",null,t.a.createElement("span",k(h,"brace"),r==="array"?"[":"{"),i?this.getObjectMetaData(x):null);var q=i?Me:Le;return t.a.createElement("span",null,t.a.createElement("span",Object.assign({onClick:function(ee){m.toggleCollapsed()}},k(h,"brace-row")),t.a.createElement("div",Object.assign({className:"icon-container"},k(h,"icon-container")),t.a.createElement(q,{theme:h,iconStyle:A})),t.a.createElement(Re,this.props),t.a.createElement("span",k(h,"brace"),r==="array"?"[":"{")),i?this.getObjectMetaData(x):null)}},{key:"render",value:function(){var r=this,i=this.props,m=i.depth,C=i.src,x=(i.namespace,i.name,i.type,i.parent_type),h=i.theme,A=i.jsvRoot,q=i.iconStyle,ee=y(i,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),ae=this.state,se=ae.object_type,Z=ae.expanded,ie={};return A||x==="array_group"?x==="array_group"&&(ie.borderLeft=0,ie.display="inline"):ie.paddingLeft=5*this.props.indentWidth,t.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return r.setState(p(p({},r.state),{},{hovered:!0}))},onMouseLeave:function(){return r.setState(p(p({},r.state),{},{hovered:!1}))}},k(h,A?"jsv-root":"objectKeyVal",ie)),this.getBraceStart(se,Z),Z?this.getObjectContent(m,C,p({theme:h,iconStyle:q},ee)):this.getEllipsis(),t.a.createElement("span",{className:"brace-row"},t.a.createElement("span",{style:p(p({},k(h,"brace").style),{},{paddingLeft:Z?"3px":"0px"})},se==="array"?"]":"}"),Z?null:this.getObjectMetaData(C)))}}],[{key:"getDerivedStateFromProps",value:function(r,i){var m=i.prevProps;return r.src!==m.src||r.collapsed!==m.collapsed||r.name!==m.name||r.namespace!==m.namespace||r.rjvId!==m.rjvId?p(p({},a.getState(r)),{},{prevProps:r}):null}}]),a}(t.a.PureComponent);ot.getState=function(c){var l=Object.keys(c.src).length,a=(c.collapsed===!1||c.collapsed!==!0&&c.collapsed>c.depth)&&(!c.shouldCollapse||c.shouldCollapse({name:c.name,src:c.src,type:S(c.src),namespace:c.namespace})===!1)&&l!==0;return{expanded:ce.get(c.rjvId,c.namespace,"expanded",a),object_type:c.type==="array"?"array":"object",parent_type:c.type==="array"?"array":"object",size:l,hovered:!1}};var Ot=function c(l,a){d(this,c),this.name=l,this.value=a,this.type=S(a)};I(ot);var lt=ot,wt=function(c){_(a,c);var l=B(a);function a(){var r;d(this,a);for(var i=arguments.length,m=new Array(i),C=0;Cx.groupArraysAfterLength&&(A=et),t.a.createElement("div",{className:"pretty-json-container object-container"},t.a.createElement("div",{className:"object-content"},t.a.createElement(A,Object.assign({namespace:h,depth:0,jsvRoot:!0},x))))},r}return a}(t.a.PureComponent),At=function(c){_(a,c);var l=B(a);function a(r){var i;return d(this,a),(i=l.call(this,r)).closeModal=function(){ve.dispatch({rjvId:i.props.rjvId,name:"RESET"})},i.submit=function(){i.props.submit(i.state.input)},i.state={input:r.input?r.input:""},i}return b(a,[{key:"render",value:function(){var r=this,i=this.props,m=i.theme,C=i.rjvId,x=i.isValid,h=this.state.input,A=x(h);return t.a.createElement("div",Object.assign({className:"key-modal-request"},k(m,"key-modal-request"),{onClick:this.closeModal}),t.a.createElement("div",Object.assign({},k(m,"key-modal"),{onClick:function(q){q.stopPropagation()}}),t.a.createElement("div",k(m,"key-modal-label"),"Key Name:"),t.a.createElement("div",{style:{position:"relative"}},t.a.createElement("input",Object.assign({},k(m,"key-modal-input"),{className:"key-modal-input",ref:function(q){return q&&q.focus()},spellCheck:!1,value:h,placeholder:"...",onChange:function(q){r.setState({input:q.target.value})},onKeyPress:function(q){A&&q.key==="Enter"?r.submit():q.key==="Escape"&&r.closeModal()}})),A?t.a.createElement(ge,Object.assign({},k(m,"key-modal-submit"),{className:"key-modal-submit",onClick:function(q){return r.submit()}})):null),t.a.createElement("span",k(m,"key-modal-cancel"),t.a.createElement(Be,Object.assign({},k(m,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ve.dispatch({rjvId:C,name:"RESET"})}})))))}}]),a}(t.a.PureComponent),Pt=function(c){_(a,c);var l=B(a);function a(){var r;d(this,a);for(var i=arguments.length,m=new Array(i),C=0;CR(y.page_data),children:"查看页面数据"})}},{title:"发布时间",dataIndex:"created_at",key:"created_at"},{title:"操作",key:"action",align:"center",render:(I,y,S)=>s==="stg"&&M.stg===y.id?Ce.jsx(Et,{status:"success",text:"当前版本"}):s==="pre"&&M.pre===y.id?Ce.jsx(Et,{status:"success",text:"当前版本"}):s==="prd"&&M.prd===y.id?Ce.jsx(Et,{status:"success",text:"当前版本"}):Ce.jsx(kt,{type:"link",onClick:()=>F(y),children:S===0?"重新发布":"回滚到此版本"})}],$=I=>{u(I),n({...o,current:1})};Ct(()=>{B()},[s,o.current,o.pageSize]);async function B(){d(!0);try{const{name:I,date:y}=e.getFieldsValue(),[S,P]=y||[],N=await Rt({pageNum:o.current,pageSize:o.pageSize,env:s,page_id:parseInt(it),publish_user_id:I,start:S,end:P});ct(N.list),n({...o,total:N.total})}finally{d(!1)}}Ct(()=>{G()},[]);async function G(){const I=await Lt(parseInt(it));D({stg:I.stg_publish_id,pre:I.pre_publish_id,prd:I.prd_publish_id})}function t(){o.current===1?B():n({...o,current:1})}async function F(I){await Bt({page_id:I.page_id,env:s,last_publish_id:I.id}),Nt.success("操作成功"),G()}const R=I=>{_(JSON.parse(I)),b(!0)},z={...o,showTotal:I=>`共 ${I} 条记录`,onChange:(I,y)=>{n({...o,current:I,pageSize:y})}};return Ce.jsxs("div",{children:[Ce.jsxs(Ht.Content,{className:bt.publishHistoryList,children:[Ce.jsx(Wt,{size:"middle",className:bt.envTab,defaultActiveKey:"1",items:$t,onChange:I=>$(I)}),Ce.jsxs(zt,{form:e,submit:t,style:{marginBottom:0},initialValues:{date:[]},children:[Ce.jsx(yt.Item,{label:"用户名",name:"name",children:Ce.jsx(Ut,{autoComplete:"off",placeholder:"用户名"})}),Ce.jsx(yt.Item,{label:"创建于",name:"date",children:Ce.jsx(Yt.RangePicker,{format:"YYYY/MM/DD"})})]}),Ce.jsx(Gt,{rootClassName:bt.historyTable,rowKey:"id",loading:p,scroll:{y:"calc(100vh - 360px)"},pagination:z,className:bt.historyTable,columns:V,dataSource:jt})]}),Ce.jsx(Jt,{title:"页面数据",width:800,open:f,footer:null,onCancel:()=>b(!1),children:Ce.jsx(Kt,{style:{height:600,margin:20,overflowY:"auto"},src:j,theme:{base00:"white",base01:"#ddd",base02:"#ddd",base03:"#444",base04:"purple",base05:"rgb(129 2 255)",base06:"rgb(129 2 255)",base07:"rgb(129 2 255)",base08:"rgb(129 2 255)",base09:"#1677ff",base0A:"#7D33FF",base0B:"#7D33FF",base0C:"#7D33FF",base0D:"#7D33FF",base0E:"#7D33FF",base0F:"#7D33FF"},collapsed:2,displayDataTypes:!1,displayObjectSize:!1,enableClipboard:!1})})]})}export{Xt as default}; diff --git a/dist/editor/assets/index-BYATrNnY.js b/dist/editor/assets/index-BYATrNnY.js new file mode 100644 index 0000000..506ee6d --- /dev/null +++ b/dist/editor/assets/index-BYATrNnY.js @@ -0,0 +1 @@ +import{o as V,aP as $,aQ as N,j as e,aR as B,aS as D,m as O,aT as q,M as z,aU as H}from"./index-BBkS68sv.js";import{S as P}from"./SearchForm-B1iYemKz.js";const G=window.React.useImperativeHandle,i=window.React.useState,K=window.antd.Modal,c=window.antd.Form,Q=window.antd.Input,_=window.antd.Select,k=window.antd.Radio,J=window.antd.Spin,W=window.ahooks.useDebounceFn;function X(f){const[o]=c.useForm(),[d,y]=i("create"),[j,u]=i(1),[I,R]=i([]),[S,m]=i([]),[g,h]=i(!1),[p,a]=i(!1),[b,l]=i(!1),r=V().id;G(f.mRef,()=>({open:v}));const v=async(t,n)=>{y(t),h(!0),u((n==null?void 0:n.system_role)||1),a(!0),l(!1);try{const w=await $(parseInt(r));m(w),a(!1),n&&r&&o.setFieldsValue({...n,project_id:parseInt(r)})}catch{a(!1)}},F=t=>{u(t)},{run:L}=W(t=>{t&&N(t).then(n=>{R(n)})},{wait:500}),C=async()=>{if(!r)return;if(await o.validateFields()){l(!0);const{id:n,system_role:w,role_id:U="",sso_info:{label:A,value:E}={label:"",value:""}}=o.getFieldsValue();try{d==="create"?await B({system_role:w,user_id:E,user_name:A,project_id:parseInt(r),role_id:U}):await D({id:n,system_role:w,role_id:U}),l(!1),O.success("操作成功"),s(),f.update()}catch{l(!1)}}},s=()=>{h(!1),u(1),o.resetFields()};return e.jsx(e.Fragment,{children:e.jsx(K,{title:d==="create"?"创建用户":"编辑用户",width:600,open:g,okText:"确定",cancelText:"取消",confirmLoading:b,onOk:C,onCancel:s,children:e.jsx(J,{spinning:p,children:e.jsxs(c,{form:o,labelAlign:"right",labelCol:{span:4},initialValues:{system_role:1},children:[e.jsx(c.Item,{hidden:!0,name:"id",children:e.jsx(Q,{})}),e.jsx(c.Item,{label:"系统角色",name:"system_role",extra:"管理员拥有本系统所有功能权限,普通用户需要通过RBAC分配角色权限",children:e.jsxs(k.Group,{onChange:t=>F(t.target.value),children:[e.jsx(k,{value:1,children:"管理员"}),e.jsx(k,{value:2,children:"普通用户"})]})}),d==="create"&&e.jsx(c.Item,{label:"用户",name:"sso_info",rules:[{required:!0,message:"请输入飞书用户名"}],children:e.jsx(_,{labelInValue:!0,filterOption:!0,showSearch:!0,onSearch:L,children:I.map(t=>e.jsx(_.Option,{value:t.account,children:t.username},t.account))})}),j===2&&e.jsx(c.Item,{label:"角色",name:"role_id",rules:[{required:!0,message:"请输入菜单名称"}],children:e.jsx(_,{showSearch:!0,children:S.map(t=>e.jsx(_.Option,{value:t.id,children:t.name},t.id))})})]})})})})}const Y=window.React.useEffect,Z=window.React.useRef,x=window.React.useState,M=window.antd.Form,ee=window.antd.Input,T=window.antd.Button,te=window.antd.Table,se=window.antd.Space;function re(){const[f,o]=x([]),[d,y]=x(0),[j,u]=x(1),[I,R]=x([]),[S,m]=x(!1),[g]=M.useForm(),h=V().id,p=Z();Y(()=>{b(),a()},[]);const a=async(s=j)=>{try{m(!0);const{name:t}=g.getFieldsValue(),n=await q({pageNum:s,pageSize:10,project_id:parseInt(h),user_name:t});m(!1),y((n==null?void 0:n.total)||0),o((n==null?void 0:n.list)||[])}catch{m(!1)}},b=async()=>{const s=await $(parseInt(h));R(s)},l=s=>{u(s),a(s)},r=()=>{var s;(s=p.current)==null||s.open("create")},v=s=>{var t;(t=p.current)==null||t.open("edit",s)},F=s=>{z.confirm({title:"确认",content:`确认删除 ${s.user_name} 吗?`,onOk(){H({id:s.id}).then(()=>{O.success("删除成功"),a()})}})},L=[{title:"用户名称",dataIndex:"sso_name",key:"sso_name"},{title:"系统角色",dataIndex:"system_role",render(s){return s===1?"管理员":"普通用户"}},{title:"角色列表",dataIndex:"role_id",render(s){var t;return(t=I.find(n=>n.id===s))==null?void 0:t.name}},{title:"更新时间",dataIndex:"updated_at",key:"updated_at"},{title:"创建时间",dataIndex:"created_at",key:"created_at"},{title:"操作",key:"action",render(s,t){return e.jsxs(se,{children:[e.jsx(T,{type:"text",onClick:()=>v(t),children:"编辑"}),e.jsx(T,{type:"text",danger:!0,onClick:()=>F(t),children:"删除"})]})}}],C={current:j,total:d,pageSize:10,showTotal:s=>`共 ${s} 条`,onChange:l};return e.jsxs("div",{children:[e.jsx(P,{form:g,submit:a,reset:a,children:e.jsx(M.Item,{label:"用户名称",name:"name",children:e.jsx(ee,{placeholder:"用户名称"})})}),e.jsxs("div",{className:"base-table",children:[e.jsxs("div",{className:"header-wrapper",children:[e.jsx("div",{className:"title",children:"用户列表"}),e.jsx("div",{className:"action",children:e.jsx(T,{type:"primary",onClick:r,children:"新增"})})]}),e.jsx(te,{bordered:!0,rowKey:"id",loading:S,columns:L,dataSource:f,pagination:C})]}),e.jsx(X,{mRef:p,update:a})]})}export{re as default}; diff --git a/dist/editor/assets/index-BZrXSPkn.js b/dist/editor/assets/index-BZrXSPkn.js new file mode 100644 index 0000000..5045501 --- /dev/null +++ b/dist/editor/assets/index-BZrXSPkn.js @@ -0,0 +1,168 @@ +import{a5 as OO,a6 as nm,w as FO,a7 as am,a8 as im,a9 as om,E as lm,S as Du,F as kO,G as kl,x as sm,i as Pl,aa as PO,ab as RO,v as mS,K as LO,ac as DO,ad as _O,k as _c,a as Et,$ as BO,h as nr,m as qr,M as NO,ae as $O,af as jO,j as A,ag as VO,n as fs,P as pr,ah as HO,W as zO,ai as WO}from"./index-BBkS68sv.js";import{m as xn,M as GO,H as qO,d as Si,f as YO,R as UO,U as XO,n as KO}from"./index-D9JUB6hU.js";import{c as qv,t as Bc,b as xS,g as vp,d as bS,e as ZO,h as Yv,r as _u,f as um,j as fi,k as wS,m as Xr,n as QO,o as JO,p as fe,q as pn,s as io,a as Zu,V as Rl,u as Wa,v as oa,w as tF,x as eF}from"./VariableBind-O5QUcdA4.js";import{Q as _s}from"./index-DsdcxFhl.js";import{E as Nc}from"./SaveOutlined-BQ_jcTgK.js";import{D as SS}from"./DeleteOutlined-B6bglta-.js";import{M as rF}from"./ColorPicker-Dw8Os0Zn.js";const $c=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return tn},get Circle(){return ZX},get Ellipse(){return QX},get Image(){return JX},get Line(){return t7},get Marker(){return r7},get Path(){return oy},get Polygon(){return u7},get Polyline(){return c7},get Rect(){return d7},get Text(){return p7}},Symbol.toStringTag,{value:"Module"})),jc=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Nr},get Circle(){return w7},get Dom(){return S7},get Ellipse(){return C7},get Image(){return A7},get Line(){return E7},get Marker(){return T7},get Path(){return I7},get Polygon(){return M7},get Polyline(){return O7},get Rect(){return k7},get Text(){return D7}},Symbol.toStringTag,{value:"Module"})),mr=Object.freeze(Object.defineProperty({__proto__:null,get BarChart(){return bct},get BarChartConfig(){return wct},get Button(){return Kft},get ButtonConfig(){return Jft},get Card(){return __},get CardConfig(){return B_},get Cascader(){return C$},get CascaderConfig(){return A$},get CheckBox(){return zN},get CheckBoxConfig(){return WN},get Col(){return DW},get ColConfig(){return _W},get ColumnChart(){return cct},get ColumnChartConfig(){return pct},get DatePicker(){return AB},get DatePickerConfig(){return EB},get DatePickerRange(){return PB},get DatePickerRangeConfig(){return RB},get Descriptions(){return Sft},get DescriptionsConfig(){return Pft},get Div(){return H_},get DivConfig(){return z_},get Divider(){return HW},get DividerConfig(){return zW},get EditTable(){return h5},get EditTableConfig(){return T5},get Empty(){return Bft},get EmptyConfig(){return Nft},get FileUpload(){return oht},get FileUploadConfig(){return lht},get Flex(){return S_},get FlexConfig(){return C_},get Form(){return O_},get FormConfig(){return F_},get FormItem(){return DN},get FormItemConfig(){return _N},get FormList(){return U$},get FormListConfig(){return X$},get IFrame(){return idt},get IFrameConfig(){return odt},get Image(){return Pht},get ImageConfig(){return Rht},get Input(){return K_},get InputConfig(){return eB},get InputNumber(){return gB},get InputNumberConfig(){return yB},get LineChart(){return nct},get LineChartConfig(){return act},get Link(){return Jht},get LinkConfig(){return tdt},get List(){return dft},get ListConfig(){return pft},get MarsTable(){return QR},get MarsTableConfig(){return r_},get Modal(){return aft},get ModalConfig(){return ift},get Page(){return NR},get PageConfig(){return $R},get PieChart(){return Uut},get PieChartConfig(){return Zut},get Progress(){return Vct},get ProgressConfig(){return Hct},get Radio(){return jB},get RadioConfig(){return VB},get RichText(){return pW},get RichTextConfig(){return vW},get RingProgress(){return Uct},get RingProgressConfig(){return Xct},get Row(){return MW},get RowConfig(){return OW},get SearchForm(){return v_},get SearchFormConfig(){return g_},get Segmented(){return v$},get SegmentedConfig(){return g$},get Select(){return UB},get SelectConfig(){return XB},get Slider(){return k$},get SliderConfig(){return P$},get Space(){return wW},get SpaceConfig(){return SW},get StaticItem(){return CN},get StaticItemConfig(){return IN},get Steps(){return zft},get StepsConfig(){return Wft},get Switch(){return rN},get SwitchConfig(){return nN},get Tab(){return xht},get TabConfig(){return IO},get Tabs(){return pht},get TabsConfig(){return Tht},get Text(){return $ht},get TextArea(){return sB},get TextAreaConfig(){return uB},get TextConfig(){return Vht},get TimePicker(){return QN},get TimePickerConfig(){return JN},get TimePickerRange(){return l$},get TimePickerRangeConfig(){return s$},get TinyColumn(){return Lct},get TinyColumnConfig(){return Dct},get TinyLine(){return Ict},get TinyLineConfig(){return Mct},get Title(){return Yht},get TitleConfig(){return Uht},get TreeSelect(){return $$},get TreeSelectConfig(){return j$},get Upload(){return hN},get UploadConfig(){return dN}},Symbol.toStringTag,{value:"Module"}));function nF(r){return r}var aF="__lodash_hash_undefined__";function iF(r){return this.__data__.set(r,aF),this}function oF(r){return this.__data__.has(r)}function Qu(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new OO;++el))return!1;var u=i.get(r),c=i.get(e);if(u&&c)return u==e&&c==r;var f=-1,h=!0,d=t&cF?new Qu:void 0;for(i.set(r,e),i.set(e,r);++fe(r)),i=i2(()=>{const o=e(r);r2(n,o)||(a(o),t&&t())},[n,r,t]);return hi(i),[n,i]}function s2(r,e,t){const[n,a]=l2(r,e,t);return hi(function(){const o=r.getHandlerId();if(o!=null)return r.subscribeToStateChange(a,{handlerIds:[o]})},[r,a]),n}function TS(r,e,t){return s2(e,r||(()=>({})),()=>t.reconnect())}const u2=window.React.useMemo;function IS(r,e){const t=[...e||[]];return e==null&&typeof r!="function"&&t.push(r),u2(()=>typeof r=="function"?r():r,t)}const MS=window.React.useMemo;function c2(r){return MS(()=>r.hooks.dragSource(),[r])}function f2(r){return MS(()=>r.hooks.dragPreview(),[r])}let lh=!1,sh=!1;class h2{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){ma(!lh,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return lh=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{lh=!1}}isDragging(){if(!this.sourceId)return!1;ma(!sh,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return sh=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{sh=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let uh=!1;class d2{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;ma(!uh,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return uh=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{uh=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function p2(r,e,t){const n=t.getRegistry(),a=n.addTarget(r,e);return[a,()=>n.removeTarget(a)]}function v2(r,e,t){const n=t.getRegistry(),a=n.addSource(r,e);return[a,()=>n.removeSource(a)]}function gp(r,e,t,n){let a=t?t.call(n,r,e):void 0;if(a!==void 0)return!!a;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const i=Object.keys(r),o=Object.keys(e);if(i.length!==o.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let s=0;s, or turn it into a drag source or a drop target itself.`)}function m2(r){return(e=null,t=null)=>{if(!g2(e)){const i=e;return r(i,t),i}const n=e;return y2(n),x2(n,t?i=>r(i,t):r)}}function OS(r){const e={};return Object.keys(r).forEach(t=>{const n=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const a=m2(n);e[t]=()=>a}}),e}function vm(r,e){typeof r=="function"?r(e):r.current=e}function x2(r,e){const t=r.ref;return ma(typeof t!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),t?pm(r,{ref:n=>{vm(t,n),vm(e,n)}}):pm(r,{ref:e})}class b2{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!gp(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!gp(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=OS({dragSource:(t,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,yp(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,yp(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class w2{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!gp(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=OS({dropTarget:(t,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,yp(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}const S2=window.React.useContext;function Co(){const{dragDropManager:r}=S2(JF);return ma(r!=null,"Expected drag drop context"),r}const C2=window.React.useMemo;function A2(r,e){const t=Co(),n=C2(()=>new b2(t.getBackend()),[t]);return hi(()=>(n.dragSourceOptions=r||null,n.reconnect(),()=>n.disconnectDragSource()),[n,r]),hi(()=>(n.dragPreviewOptions=e||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,e]),n}const E2=window.React.useMemo;function T2(){const r=Co();return E2(()=>new h2(r),[r])}class I2{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return typeof e.item=="object"?n=e.item:typeof e.item=="function"?n=e.item(t):n={},n??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const n=this.spec,a=this.monitor,{isDragging:i}=n;return i?i(a):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:a}=e;a&&a(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}const M2=window.React.useEffect,O2=window.React.useMemo;function F2(r,e,t){const n=O2(()=>new I2(r,e,t),[e,t]);return M2(()=>{n.spec=r},[r]),n}const k2=window.React.useMemo;function P2(r){return k2(()=>{const e=r.type;return ma(e!=null,"spec.type must be defined"),e},[r])}function R2(r,e,t){const n=Co(),a=F2(r,e,t),i=P2(r);hi(function(){if(i!=null){const[l,s]=v2(i,a,n);return e.receiveHandlerId(l),t.receiveHandlerId(l),s}},[n,e,t,a,i])}function L2(r,e){const t=IS(r,e);ma(!t.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=T2(),a=A2(t.options,t.previewOptions);return R2(t,n,a),[TS(t.collect,n,a),c2(a),f2(a)]}const D2=window.React.useMemo;function _2(r){return D2(()=>r.hooks.dropTarget(),[r])}const B2=window.React.useMemo;function N2(r){const e=Co(),t=B2(()=>new w2(e.getBackend()),[e]);return hi(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}const $2=window.React.useMemo;function j2(){const r=Co();return $2(()=>new d2(r),[r])}const V2=window.React.useMemo;function H2(r){const{accept:e}=r;return V2(()=>(ma(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class z2{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}const W2=window.React.useEffect,G2=window.React.useMemo;function q2(r,e){const t=G2(()=>new z2(r,e),[e]);return W2(()=>{t.spec=r},[r]),t}function Y2(r,e,t){const n=Co(),a=q2(r,e),i=H2(r);hi(function(){const[l,s]=p2(i,a,n);return e.receiveHandlerId(l),t.receiveHandlerId(l),s},[n,e,a,t,i.map(o=>o.toString()).join("|")])}function xr(r,e){const t=IS(r,e),n=j2(),a=N2(t.options);return Y2(t,n,a),[TS(t.collect,n,a),_2(a)]}const FS=new Map;function Vc(r){return FS.get(r)}function U2(r,e){return FS.set(r,e)}const X2=window.axios,ea=X2.create({timeout:8e3,withCredentials:!0,headers:{},isCors:!0});ea.interceptors.request.use(r=>{const{headers:e=[],timeout:t=8,timeoutErrorMessage:n="请求超时,请稍后重试",requestIntercetpor:a}=Et.getState().page.interceptor||{};return r.timeout=t*1e3,r.timeoutErrorMessage=n,r.headers={...r.headers,...Yv(e),Accept:"application/json, text/plain, */*"},a?new Function("config",`return (${a})(config);`)(r):r});ea.interceptors.response.use(r=>{const{responseIntercetpor:e}=Et.getState().page.interceptor;let t=r;return e&&(t=new Function("response",`return (${e})(response);`)(r)),t},r=>{let e=r.message;return r.code==="ERR_NETWORK"&&(e="服务地址或网络异常,请稍后重试"),Promise.reject(e)});const Ui={defaults:ea.defaults,get(r,e={}){return ea.get(r,e)},post(r,e={},t={}){return ea.post(r,e,t)},put(r,e={},t={}){return ea.post(r,e,t)},delete(r,e={}){return ea.get(r,e)},download(r,e={},t={}){return ea.post(r,e,{...t,responseType:"blob"}).then(n=>{const a=new Blob([n.data],{type:n.data.type}),i=document.createElement("a"),o=n.headers.filename;return o?i.download=decodeURIComponent(o):i.download=t.filename||"fileName.xls",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(i.href),n})}};var K2=Error,Z2=EvalError,Q2=RangeError,J2=ReferenceError,kS=SyntaxError,hs=TypeError,tk=URIError,ek=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==a||o.enumerable!==!0)return!1}return!0},gm=typeof Symbol<"u"&&Symbol,rk=ek,nk=function(){return typeof gm!="function"||typeof Symbol!="function"||typeof gm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:rk()},ch={__proto__:null,foo:{}},ak=Object,ik=function(){return{__proto__:ch}.foo===ch.foo&&!(ch instanceof ak)},ok="Function.prototype.bind called on incompatible ",lk=Object.prototype.toString,sk=Math.max,uk="[object Function]",ym=function(e,t){for(var n=[],a=0;a"u"||!ke?Lt:ke(Uint8Array),ri={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":Oi&&ke?ke([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":$i,"%AsyncGenerator%":$i,"%AsyncGeneratorFunction%":$i,"%AsyncIteratorPrototype%":$i,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":mk,"%eval%":eval,"%EvalError%":xk,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":PS,"%GeneratorFunction%":$i,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oi&&ke?ke(ke([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Oi||!ke?Lt:ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":bk,"%ReferenceError%":wk,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Oi||!ke?Lt:ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oi&&ke?ke(""[Symbol.iterator]()):Lt,"%Symbol%":Oi?Symbol:Lt,"%SyntaxError%":oo,"%ThrowTypeError%":Ck,"%TypedArray%":Ek,"%TypeError%":Xi,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":Sk,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(ke)try{null.error}catch(r){var Tk=ke(ke(r));ri["%Error.prototype%"]=Tk}var Ik=function r(e){var t;if(e==="%AsyncFunction%")t=fh("async function () {}");else if(e==="%GeneratorFunction%")t=fh("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=fh("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&ke&&(t=ke(a.prototype))}return ri[e]=t,t},mm={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ds=Xv,Ju=yk,Mk=ds.call(Function.call,Array.prototype.concat),Ok=ds.call(Function.apply,Array.prototype.splice),xm=ds.call(Function.call,String.prototype.replace),tc=ds.call(Function.call,String.prototype.slice),Fk=ds.call(Function.call,RegExp.prototype.exec),kk=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pk=/\\(\\)?/g,Rk=function(e){var t=tc(e,0,1),n=tc(e,-1);if(t==="%"&&n!=="%")throw new oo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new oo("invalid intrinsic syntax, expected opening `%`");var a=[];return xm(e,kk,function(i,o,l,s){a[a.length]=l?xm(s,Pk,"$1"):o||i}),a},Lk=function(e,t){var n=e,a;if(Ju(mm,n)&&(a=mm[n],n="%"+a[0]+"%"),Ju(ri,n)){var i=ri[n];if(i===$i&&(i=Ik(n)),typeof i>"u"&&!t)throw new Xi("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new oo("intrinsic "+e+" does not exist!")},Ao=function(e,t){if(typeof e!="string"||e.length===0)throw new Xi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Xi('"allowMissing" argument must be a boolean');if(Fk(/^%?[^%]*%?$/,e)===null)throw new oo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Rk(e),a=n.length>0?n[0]:"",i=Lk("%"+a+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(a=u[0],Ok(n,Mk([0,1],u)));for(var c=1,f=!0;c=n.length){var v=ei(l,h);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?l=v.get:l=l[h]}else f=Ju(l,h),l=l[h];f&&!s&&(ri[o]=l)}}return l},RS={exports:{}},dh,bm;function Kv(){if(bm)return dh;bm=1;var r=Ao,e=r("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return dh=e,dh}var Dk=Ao,Bu=Dk("%Object.getOwnPropertyDescriptor%",!0);if(Bu)try{Bu([],"length")}catch{Bu=null}var LS=Bu,wm=Kv(),_k=kS,Fi=hs,Sm=LS,Bk=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Fi("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Fi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Fi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Fi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Fi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Fi("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Sm&&Sm(e,t);if(wm)wm(e,t,{configurable:o===null&&s?s.configurable:!o,enumerable:a===null&&s?s.enumerable:!a,value:n,writable:i===null&&s?s.writable:!i});else if(l||!a&&!i&&!o)e[t]=n;else throw new _k("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},mp=Kv(),DS=function(){return!!mp};DS.hasArrayLengthDefineBug=function(){if(!mp)return null;try{return mp([],"length",{value:1}).length!==1}catch{return!0}};var Nk=DS,$k=Ao,Cm=Bk,jk=Nk(),Am=LS,Em=hs,Vk=$k("%Math.floor%"),Hk=function(e,t){if(typeof e!="function")throw new Em("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Vk(t)!==t)throw new Em("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in e&&Am){var o=Am(e,"length");o&&!o.configurable&&(a=!1),o&&!o.writable&&(i=!1)}return(a||i||!n)&&(jk?Cm(e,"length",t,!0,!0):Cm(e,"length",t)),e};(function(r){var e=Xv,t=Ao,n=Hk,a=hs,i=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),l=t("%Reflect.apply%",!0)||e.call(o,i),s=Kv(),u=t("%Math.max%");r.exports=function(h){if(typeof h!="function")throw new a("a function is required");var d=l(e,o,arguments);return n(d,1+u(0,h.length-(arguments.length-1)),!0)};var c=function(){return l(e,i,arguments)};s?s(r.exports,"apply",{value:c}):r.exports.apply=c})(RS);var zk=RS.exports,_S=Ao,BS=zk,Wk=BS(_S("String.prototype.indexOf")),Gk=function(e,t){var n=_S(e,!!t);return typeof n=="function"&&Wk(e,".prototype.")>-1?BS(n):n};const qk={},Yk=Object.freeze(Object.defineProperty({__proto__:null,default:qk},Symbol.toStringTag,{value:"Module"})),Uk=BO(Yk);var Zv=typeof Map=="function"&&Map.prototype,ph=Object.getOwnPropertyDescriptor&&Zv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ec=Zv&&ph&&typeof ph.get=="function"?ph.get:null,Tm=Zv&&Map.prototype.forEach,Qv=typeof Set=="function"&&Set.prototype,vh=Object.getOwnPropertyDescriptor&&Qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rc=Qv&&vh&&typeof vh.get=="function"?vh.get:null,Im=Qv&&Set.prototype.forEach,Xk=typeof WeakMap=="function"&&WeakMap.prototype,gl=Xk?WeakMap.prototype.has:null,Kk=typeof WeakSet=="function"&&WeakSet.prototype,yl=Kk?WeakSet.prototype.has:null,Zk=typeof WeakRef=="function"&&WeakRef.prototype,Mm=Zk?WeakRef.prototype.deref:null,Qk=Boolean.prototype.valueOf,Jk=Object.prototype.toString,tP=Function.prototype.toString,eP=String.prototype.match,Jv=String.prototype.slice,sa=String.prototype.replace,rP=String.prototype.toUpperCase,Om=String.prototype.toLowerCase,NS=RegExp.prototype.test,Fm=Array.prototype.concat,un=Array.prototype.join,nP=Array.prototype.slice,km=Math.floor,xp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gh=Object.getOwnPropertySymbols,bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,lo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ge=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===lo||!0)?Symbol.toStringTag:null,$S=Object.prototype.propertyIsEnumerable,Pm=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Rm(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||NS.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-km(-r):km(r);if(n!==r){var a=String(n),i=Jv.call(e,a.length+1);return sa.call(a,t,"$&_")+"."+sa.call(sa.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return sa.call(e,t,"$&_")}var wp=Uk,Lm=wp.custom,Dm=VS(Lm)?Lm:null,aP=function r(e,t,n,a){var i=t||{};if(ra(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ra(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=ra(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ra(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ra(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return zS(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return l?Rm(e,s):s}if(typeof e=="bigint"){var u=String(e)+"n";return l?Rm(e,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Sp(e)?"[Array]":"[Object]";var f=SP(i,n);if(typeof a>"u")a=[];else if(HS(a,e)>=0)return"[Circular]";function h(k,L,N){if(L&&(a=nP.call(a),a.push(L)),N){var R={depth:i.depth};return ra(i,"quoteStyle")&&(R.quoteStyle=i.quoteStyle),r(k,R,n+1,a)}return r(k,i,n+1,a)}if(typeof e=="function"&&!_m(e)){var d=dP(e),p=Ns(e,h);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(p.length>0?" { "+un.call(p,", ")+" }":"")}if(VS(e)){var v=lo?sa.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):bp.call(e);return typeof e=="object"&&!lo?Go(v):v}if(xP(e)){for(var g="<"+Om.call(String(e.nodeName)),y=e.attributes||[],m=0;m",g}if(Sp(e)){if(e.length===0)return"[]";var b=Ns(e,h);return f&&!wP(b)?"["+Cp(b,f)+"]":"[ "+un.call(b,", ")+" ]"}if(lP(e)){var x=Ns(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!$S.call(e,"cause")?"{ ["+String(e)+"] "+un.call(Fm.call("[cause]: "+h(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+un.call(x,", ")+" }"}if(typeof e=="object"&&o){if(Dm&&typeof e[Dm]=="function"&&wp)return wp(e,{depth:c-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(pP(e)){var w=[];return Tm&&Tm.call(e,function(k,L){w.push(h(L,e,!0)+" => "+h(k,e))}),Bm("Map",ec.call(e),w,f)}if(yP(e)){var S=[];return Im&&Im.call(e,function(k){S.push(h(k,e))}),Bm("Set",rc.call(e),S,f)}if(vP(e))return yh("WeakMap");if(mP(e))return yh("WeakSet");if(gP(e))return yh("WeakRef");if(uP(e))return Go(h(Number(e)));if(fP(e))return Go(h(xp.call(e)));if(cP(e))return Go(Qk.call(e));if(sP(e))return Go(h(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===nr)return"{ [object globalThis] }";if(!oP(e)&&!_m(e)){var C=Ns(e,h),T=Pm?Pm(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",I=!T&&Ge&&Object(e)===e&&Ge in e?Jv.call(Ma(e),8,-1):F?"Object":"",M=T||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",O=M+(I||F?"["+un.call(Fm.call([],I||[],F||[]),": ")+"] ":"");return C.length===0?O+"{}":f?O+"{"+Cp(C,f)+"}":O+"{ "+un.call(C,", ")+" }"}return String(e)};function jS(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function iP(r){return sa.call(String(r),/"/g,""")}function Sp(r){return Ma(r)==="[object Array]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function oP(r){return Ma(r)==="[object Date]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function _m(r){return Ma(r)==="[object RegExp]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function lP(r){return Ma(r)==="[object Error]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function sP(r){return Ma(r)==="[object String]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function uP(r){return Ma(r)==="[object Number]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function cP(r){return Ma(r)==="[object Boolean]"&&(!Ge||!(typeof r=="object"&&Ge in r))}function VS(r){if(lo)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!bp)return!1;try{return bp.call(r),!0}catch{}return!1}function fP(r){if(!r||typeof r!="object"||!xp)return!1;try{return xp.call(r),!0}catch{}return!1}var hP=Object.prototype.hasOwnProperty||function(r){return r in this};function ra(r,e){return hP.call(r,e)}function Ma(r){return Jk.call(r)}function dP(r){if(r.name)return r.name;var e=eP.call(tP.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function HS(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return zS(Jv.call(r,0,e.maxStringLength),e)+n}var a=sa.call(sa.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bP);return jS(a,"single",e)}function bP(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+rP.call(e.toString(16))}function Go(r){return"Object("+r+")"}function yh(r){return r+" { ? }"}function Bm(r,e,t,n){var a=n?Cp(t,n):un.call(t,", ");return r+" ("+e+") {"+a+"}"}function wP(r){for(var e=0;e=0)return!1;return!0}function SP(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=un.call(Array(r.indent+1)," ");else return null;return{base:t,prev:un.call(Array(e+1),t)}}function Cp(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+un.call(r,","+t)+` +`+e.prev}function Ns(r,e){var t=Sp(r),n=[];if(t){n.length=r.length;for(var a=0;a1;){var t=e.pop(),n=t.obj[t.prop];if(Ga(n)){for(var a=[],i=0;i=bh?o.slice(s,s+bh):o,c=[],f=0;f=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===BP.RFC1738&&(h===40||h===41)){c[c.length]=u.charAt(f);continue}if(h<128){c[c.length]=en[h];continue}if(h<2048){c[c.length]=en[192|h>>6]+en[128|h&63];continue}if(h<55296||h>=57344){c[c.length]=en[224|h>>12]+en[128|h>>6&63]+en[128|h&63];continue}f+=1,h=65536+((h&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=en[240|h>>18]+en[128|h>>12&63]+en[128|h>>6&63]+en[128|h&63]}l+=c.join("")}return l},zP=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a"u"&&(w=0)}if(typeof c=="function"?b=c(t,b):b instanceof Date?b=d(b):n==="comma"&&sn(b)&&(b=Nu.maybeMap(b,function(B){return B instanceof Date?d(B):B})),b===null){if(o)return u&&!g?u(t,Ee.encoder,y,"key",p):t;b=""}if(ZP(b)||Nu.isBuffer(b)){if(u){var T=g?t:u(t,Ee.encoder,y,"key",p);return[v(T)+"="+v(u(b,Ee.encoder,y,"value",p))]}return[v(t)+"="+v(String(b))]}var F=[];if(typeof b>"u")return F;var I;if(n==="comma"&&sn(b))g&&u&&(b=Nu.maybeMap(b,u)),I=[{value:b.length>0?b.join(",")||null:void 0}];else if(sn(c))I=c;else{var M=Object.keys(b);I=f?M.sort(f):M}var O=s?t.replace(/\./g,"%2E"):t,k=a&&sn(b)&&b.length===1?O+"[]":O;if(i&&sn(b)&&b.length===0)return k+"[]";for(var L=0;L"u"?e.encodeDotInKeys===!0?!0:Ee.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ee.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ee.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ee.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Ee.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ee.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Ee.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Ee.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ee.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ee.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ee.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ee.strictNullHandling}},tR=function(r,e){var t=r,n=JP(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):sn(n.filter)&&(i=n.filter,a=i);var o=[];if(typeof t!="object"||t===null)return"";var l=US[n.arrayFormat],s=l==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var u=YS(),c=0;c0?d+h:""},so=qS,Ap=Object.prototype.hasOwnProperty,eR=Array.isArray,ve={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:so.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},rR=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},KS=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},nR="utf8=%26%2310003%3B",aR="utf8=%E2%9C%93",iR=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=a.split(t.delimiter,i),l=-1,s,u=t.charset;if(t.charsetSentinel)for(s=0;s-1&&(p=eR(p)?[p]:p);var v=Ap.call(n,d);v&&t.duplicates==="combine"?n[d]=so.combine(n[d],p):(!v||t.duplicates==="last")&&(n[d]=p)}return n},oR=function(r,e,t,n){for(var a=n?e:KS(e,t),i=r.length-1;i>=0;--i){var o,l=r[i];if(l==="[]"&&t.parseArrays)o=t.allowEmptyArrays&&a===""?[]:[].concat(a);else{o=t.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=t.decodeDotInKeys?s.replace(/%2E/g,"."):s,c=parseInt(u,10);!t.parseArrays&&u===""?o={0:a}:!isNaN(c)&&l!==u&&String(c)===u&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(o=[],o[c]=a):u!=="__proto__"&&(o[u]=a)}a=o}return a},lR=function(e,t,n,a){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!n.plainObjects&&Ap.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(s=l.exec(i))!==null&&f"u"?ve.charset:e.charset,n=typeof e.duplicates>"u"?ve.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ve.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ve.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ve.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ve.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ve.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ve.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ve.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ve.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ve.decoder,delimiter:typeof e.delimiter=="string"||so.isRegExp(e.delimiter)?e.delimiter:ve.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ve.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ve.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ve.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ve.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ve.strictNullHandling}},uR=function(r,e){var t=sR(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?iR(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),o=0;o{var t,n;if(r.sourceType==="json")return{ret:0,data:r.source};if(r.sourceType==="api"||r.actionType==="request"||r.actionType==="download"){if(!r.id)return{ret:0,data:""};const a=Et.getState().page.apis,{method:i,stgApi:o,preApi:l,prdApi:s,contentType:u,replaceData:c="merge",isCors:f=!0,params:h,result:d,tips:p}=a[r.id]||{},v=ZS(i,c,h,e),g=_u(o,e),y=_u(l,e),m=_u(s,e);v.url=um().env==="stg"?g:um().env==="pre"?y:m,v.isCors=f;let b=null;try{if(r.actionType==="download"){if(b=await Ui.download(v.url,v.data,{...v,filename:r.filename})||{},b.data instanceof Blob)return{ret:0,data:b.data,msg:""}}else i==="GET"||i==="DELETE"?b=await Ui.get(v.url,v)||{}:(v.headers={...v.headers,"Content-Type":u},b=await Ui.post(v.url,u==="application/x-www-form-urlencoded"?pR.stringify(v.data):v.data,v)||{})}catch(F){b={status:200,data:{ret:500,msg:F}}}let x=b.data;Array.isArray(x)&&(x={ret:0,data:x,msg:""});const w=d.code?Number(x[d.code]):0,S=d.data?x[d.data]:x,C=d.msg?x[d.msg]:"";w===d.codeValue?p!=null&&p.success&&qr.success(p.success):p!=null&&p.isError&&C?qr.error(C):p!=null&&p.fail&&qr.error(p==null?void 0:p.fail);let T=S;return typeof r.sourceField=="object"?r.sourceField.type==="static"?T=r.sourceField.value?vp(S,r.sourceField.value):S:T=fi(r.sourceField.value,S):typeof r.sourceField=="string"&&r.sourceField&&(T=vp(S,r.sourceField)),{ret:w,data:T,originData:S,msg:C}}else return(t=r.name)!=null&&t.value?{ret:0,data:fi((n=r.name)==null?void 0:n.value)}:{ret:0,data:""}},ZS=(r,e,t=[],n)=>{const a=Yv(t,n);let i={};return e==="merge"?Array.isArray(n)||typeof n!="object"?Object.keys(a).length>0?i=a:i=n:i={...a,...n}:e==="cover"&&(Pl(n)&&Object.keys(n).length>0||!Pl(n)&&n)?i=n:i=a,r==="GET"||r==="DELETE"?{params:i}:{data:i}};function il(r,e=!0){var a,i;let t=null,n=null;for(const o of r){if(o.type==="start"||o.type==="end")continue;let l={action:{...o.config}};if(o.type==="condition"){const s=il(((a=o.children.find(f=>f.title==="成功"))==null?void 0:a.children)||[],!0),u=il(((i=o.children.find(f=>f.title==="失败"))==null?void 0:i.children)||[],!1),c=r.slice(r.indexOf(o)+1).filter(f=>f.type!=="end");if(l={success:s,fail:u},!n)t=l;else if(e)if(!n.next)n.next=l;else{let f=n.next;for(;f.next;)f=f.next;f.next=l}else if(!n.fail)n.fail=l;else{let f=n.fail;for(;f.next;)f=f.next;f.next=l}if(n=l,c.length>0){let f=il(c,!0);if(!n.success)n.success=f;else{let d=n.success;for(;d.next;)d=d.next;for(;f.action;)d.next={action:f.action},d=d.next,f=f.next||{}}let h=il(c,!0);if(!n.fail)n.fail=h;else{let d=n.fail;for(;d.next;)d=d.next;for(;h.action;)d.next={action:h.action},d=d.next,h=h.next||{}}}}else if(!n)t=n=l;else if(e)if(!n.next)n.next=l;else{let s=n.next;for(;s.next;)s=s.next;s.next=l}else if(!n.next)n.next=l;else{let s=n.next;for(;s.next;)s=s.next;s.next=l}}return t}function di(r=[],e){const t=il(r);t!=null&&t.action&&oe(t,e)}const oe=(r,e={})=>{if(!(!r||!(r!=null&&r.action)))try{const t=vR(r.action.data,e);delete r.action.data,r.action=wS(r.action),r.action.actionType==="methods"?QS(r,t):r.action.actionType==="showConfirm"?gR(r,t):r.action.actionType==="message"?yR(r,t):r.action.actionType==="notifacation"?mR(r,t):r.action.actionType==="request"||r.action.actionType==="download"?xR(r,t):r.action.actionType==="openModal"?$m(r,t,"open"):r.action.actionType==="closeModal"?$m(r,t,"close"):r.action.actionType==="jumpLink"?bR(r,t):r.action.actionType==="reloadPage"?window.location.reload():r.action.actionType==="variable"?wR(r,t):r.action.actionType==="copy"?SR(r,t):r.action.actionType==="setTimeout"?CR(r,t):r.action.actionType==="visible"?AR(r,t):r.action.actionType==="disable"?ER(r,t):r.action.actionType==="sendMessage"?TR(r,t):r.action.actionType==="createNode"?IR(r,t):r.action.actionType==="script"&&MR(r,t)}catch(t){console.error(`事件流[${r.actionType}执行异常]`,t)}},vR=(r=[],e={})=>{const t=Yv(r,e);return!(r!=null&&r.length)&&(Array.isArray(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean")?e:(e&&Object.keys(e).forEach(n=>{n&&typeof e[n]<"u"&&e[n]!=null&&(t[n]=e[n])}),wS(t))};async function QS({action:r,next:e},t={}){var a;const n=Vc(r.target);if(!n){sessionStorage.setItem("mars-event-flow-wait","1"),Number(sessionStorage.getItem("mars-event-flow-wait"))<10?setTimeout(()=>{QS({action:r,next:e},t)},100):console.error("组件加载超时,请检查组件是否存在");return}try{const i=await((a=n==null?void 0:n[r.method])==null?void 0:a.call(n,{...t}));typeof i=="boolean"?oe(i?(e==null?void 0:e.success)||e:e==null?void 0:e.fail,t):setTimeout(()=>{(Array.isArray(i)||typeof i!="object")&&Xr(i)?oe((e==null?void 0:e.success)||e,i):oe((e==null?void 0:e.success)||e,Object.assign(t,i||{}))})}catch(i){oe(e==null?void 0:e.fail,t),console.error(`【${r.method}】方法调用失败:`,i)}}async function $m({action:r,next:e},t={},n){const a=Vc(r.target);n==="close"&&a.close({...t}),n==="open"&&await a.open({...t}),oe(e,t)}const gR=({action:r,next:e},t)=>{var n,a;(a=(n=NO)[r.type])==null||a.call(n,{title:r.title,content:r.content,okText:r.okText,cancelText:r.cancelText,onOk:()=>{oe((e==null?void 0:e.success)||e,t)},onCancel:()=>{oe(e==null?void 0:e.fail,t)}})},yR=({action:r,next:e},t)=>{qr.open({type:r.type,content:r.content,duration:r.duration}).then(()=>{oe(e,t)})},mR=({action:r,next:e},t)=>{$O.open({type:r.type,message:r.message,description:r.description,placement:r.placement,duration:r.duration}),oe(e,t)},xR=async({action:r,next:e},t)=>{const n=await Fe(r,t);n.ret===0?oe((e==null?void 0:e.success)||e,n.data):oe(e==null?void 0:e.fail,n.msg)},bR=async({action:r,next:e},t)=>{var a;const n=new URLSearchParams(t);if(r.jumpType==="route"){const i=`${r.url}${r.url.indexOf("?")>-1?"&":"?"}${n}`;jO.navigate(i)}else if(r.jumpType==="micro")window.microApp||console.warn("跨服务跳转:当前页面不在微应用环境中,无法跳转"),(a=window.microApp)==null||a.dispatch({type:"router",path:r.url,data:t});else if(r.jumpType==="link"){const i=`${r.url}${r.url.indexOf("?")>-1?"&":"?"}${n}`;r.isNewWindow?window.open(i):window.location.href=i}},wR=({action:r,next:e},t)=>{let n=r.assigmentType==="reset"?void 0:t[r.name];r.assigmentType==="reset"?n=void 0:r.assigmentType==="assigment"&&(r.assigmentWay==="static"?n=r.value:n=t),Et.getState().setVariableData({name:r.name,value:n}),oe(e,t)},SR=async({action:r,next:e},t)=>{try{const n=_u(r.content,t||{});await QO(n),oe(e,t)}catch(n){console.log("执行复制行为:",n)}},CR=async({action:r,next:e},t)=>{setTimeout(()=>{oe(e,t)},r.duration*1e3)},AR=async({action:r,next:e},t)=>{const n=Vc(r.target);r.showType==="static"?r.showResult==="show"?n.show({...t}):n.hide({...t}):r.expression?n.show({...t}):n.hide({...t}),oe(e,t)},ER=async({action:r,next:e},t)=>{const n=Vc(r.target);if(r.disableType==="static")r.disableResult?n.disable({...t}):n.enable({...t});else{const i=(r.expression??{}).value;fi(i)?n.disable({...t}):n.enable({...t})}oe(e,t)},TR=async({action:r,next:e},t)=>{const n=await Ui.post("https://mars-api.marsview.cc/api/robot/sendMessage",{...r,variables:t});n.data.ret===0?oe((e==null?void 0:e.success)||e,n.data.data):oe(e==null?void 0:e.fail,n.msg)},IR=async({action:r,next:e},t)=>{const n=await Ui.post("https://mars-api.marsview.cc/api/robot/createNode",{...r,variables:t});n.data.ret===0?oe((e==null?void 0:e.success)||e,n.data.data):oe(e==null?void 0:e.fail,n.msg)},MR=async({action:r,next:e},t)=>{const n=fi(r.scripts,t);typeof n=="boolean"?oe(n?(e==null?void 0:e.success)||e:e==null?void 0:e.fail,t):oe((e==null?void 0:e.success)||e,n||t)},OR=window.React;function FR(r,e){if(Object.is(r,e))return!0;if(typeof r!="object"||r===null||typeof e!="object"||e===null)return!1;if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(const[n,a]of r)if(!Object.is(a,e.get(n)))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(const n of r)if(!e.has(n))return!1;return!0}const t=Object.keys(r);if(t.length!==Object.keys(e).length)return!1;for(const n of t)if(!Object.prototype.hasOwnProperty.call(e,n)||!Object.is(r[n],e[n]))return!1;return!0}const{useRef:kR}=OR;function JS(r){const e=kR();return t=>{const n=r(t);return FR(e.current,n)?e.current:e.current=n}}const PR=window.React,RR=window.React.Suspense,LR=window.React.forwardRef,tC=window.React.memo,jm=window.React.useEffect,Vm=window.React.useState,DR=window.dayjs,Hm=window.antd,br=tC(({elements:r=[]})=>A.jsx(A.Fragment,{children:r.map(e=>e?A.jsx(rg,{item:e},e.id):A.jsx(A.Fragment,{}))})),rg=tC(({item:r})=>{const[e,t]=Vm(null),[n,a]=Vm(),{elementsMap:i,variableData:o,formData:l}=Et(JS(h=>({elementsMap:h.page.elementsMap,variables:h.page.variables,variableData:h.page.variableData,formData:h.page.formData})));function s(){window.React=window.React||PR,window.dayjs=window.dayjs||DR,window.antd=window.antd||Hm}jm(()=>{i[r.id].remoteUrl?(s(),JO(r.type,i[r.id].remoteCssUrl),import(i[r.id].remoteUrl||"").then(h=>{t(()=>LR(h.default))})):t(mr[r.type]),a(i[r.id].config)},[]),jm(()=>{a(()=>VO(i[r.id].config,h=>{u(h),c(h)}))},[o,l,i]);const u=h=>{var d,p,v,g,y;if((d=h.props)!=null&&d.formItem){const m=((p=h.props)==null?void 0:p.formItem.rules)||[];m.map(w=>{w.pattern&&(w.pattern=new RegExp(w.pattern))}),h.props.formItem.rules=m,(v=r.parentId)!=null&&v.startsWith("FormList")&&h.props.formItem.name&&(h.props.formItem.name=[r.name,h.props.formItem.name]);const{labelCol:b,wrapperCol:x}=h.props.formItem;fe(b==null?void 0:b.span)&&fe(b==null?void 0:b.offset)&&((g=h.props.formItem)==null||delete g.labelCol),fe(x==null?void 0:x.span)&&fe(x==null?void 0:x.offset)&&((y=h.props.formItem)==null||delete y.wrapperCol)}},c=h=>{Object.keys(h.props||{}).map(d=>{const p=h.props[d];typeof p=="object"&&((p==null?void 0:p.type)==="static"?h.props[d]=p.value:(p==null?void 0:p.type)==="variable"&&(h.props[d]=fi(p.value)))})},f=()=>{const h={},d=(n==null?void 0:n.events)||[];if(!(d!=null&&d.length))return{};const p={};d.forEach(v=>{var g;((g=v.actions)==null?void 0:g.length)>0&&(p[v.eventName]=(p[v.eventName]||[]).concat([v.actions]))});for(const v in p)h[v]=g=>{p[v].forEach(y=>{di(y,g)})};return h};return e?A.jsx(RR,{fallback:A.jsx(Hm.Spin,{spinning:!0,tip:"加载中..."}),children:A.jsx(e,{className:["mars-component"],id:r.id,type:r.type,config:n,elements:r.elements||[],...f(),ref:h=>U2(r.id,h)})}):null}),_R=window.React.useEffect,BR=()=>{const{config:r,elements:e}=Et(t=>({config:t.page.config,elements:t.page.elements}));return _R(()=>{var t;(t=r.events)==null||t.forEach(n=>{var a;((a=n.actions)==null?void 0:a.length)>0&&di(n.actions,{})})},[r.events]),A.jsx("div",{style:r.style,id:"page",children:A.jsx(br,{elements:e||[]})})},NR=BR,$R={attrs:[{key:"PageSet",type:"Title",label:"页面配置"},{key:"PageName",type:"ColorPicker",label:"主题色",name:["theme"]}],config:{props:{theme:"#1677ff"},style:{color:"#000",backgroundColor:"#fff",padding:"20px"},scopeCss:"",scopeStyle:{color:"#000",backgroundColor:"#fff",padding:"20px"},events:[],api:{sourceType:"json",id:"",source:{},sourceField:""}},events:[{value:"onLoad",name:"初始化事件"}]},jR="_toolbar_168fr_1",VR="_title_168fr_7",HR="_action_168fr_11",zR="_slots_168fr_17",WR="_actionList_168fr_26",Vs={toolbar:jR,title:VR,action:HR,slots:zR,actionList:WR},GR=window.React,qR=window.React.forwardRef,YR=window.React.memo,UR=window.React.useEffect,XR=window.React.useImperativeHandle,Gn=window.React.useState,Hs=window.antd.Button,KR=window.antd.Table,Sh=window.antd.Image,Ch=window.antd.Tag,zm=window.antd.Tooltip,Wm=window.antd.Typography,Ah=window.antd.Badge,ZR=({id:r,type:e,config:t,elements:n,onCheckedChange:a},i)=>{var V,B,P,$,z,Y,q;const[o,l]=Gn({}),[s,u]=Gn({[t.props.field.pageNum]:1,[t.props.field.pageSize]:t.props.pagination.pageSize}),[c,f]=Gn([]),[h,d]=Gn(!1),[p,v]=Gn(0),[g,y]=Gn([]),[m,b]=Gn([]),[x,w]=Gn(!0),{addChildElements:S,variableData:C,updateToolbar:T}=Et(_=>({addChildElements:_.addChildElements,variableData:_.page.variableData,updateToolbar:_.updateToolbar}));UR(()=>{u(()=>{const _={[t.props.field.pageNum]:1,[t.props.field.pageSize]:t.props.pagination.pageSize};return F(t.props.hidePager?{}:_),_})},[t.api,t.props.field,((V=t.api)==null?void 0:V.sourceType)=="variable"?C:""]);const F=_=>{d(!0),Fe(t.api,_).then(G=>{d(!1),T(),(G==null?void 0:G.ret)===0&&(Array.isArray(G.data)&&f(G.data),t.props.field.total&&v(G.originData[t.props.field.total]||0))}).catch(()=>{d(!1)})},[,I]=xr({accept:"MENU_ITEM",drop(_,G){if(G.didDrop())return;const{config:X,events:K,methods:tt=[]}=mr[_.type+"Config"]||{};S({type:_.type,name:_.name,parentId:r,id:_.id,config:X,events:K,methods:tt})},collect:_=>({isOver:_.isOver(),canDrop:_.canDrop()})});XR(i,()=>({startLoading:()=>{d(!0)},stopLoading:()=>{d(!1)},show(){w(!0)},hide(){w(!1)},search:_=>{const G=ZF(_,X=>Xr(X));u({...s,[t.props.field.pageNum]:1}),l(G),F({...s,[t.props.field.pageNum]:1,...G})},reload:()=>{F({...s,...o})},clearData:()=>{f([])},checkSelectedRow:()=>g.length!==0,setSelectedRowKeys:_=>{y(_)},getSelectedRowKeys:()=>g||[],getSelectedRow:()=>m}));let M=null;t.props.selectionType&&(M={type:t.props.selectionType,selectedRowKeys:g,onChange(_,G){a==null||a(_),y(_),b(G)}});const O={rowSelection:M,rowKey:t.props.rowKey||"id",bordered:t.props.bordered,size:t.props.size,columns:t.props.columns.map((_,G)=>({..._,key:_.dataIndex||G,onCell(X,K){if(_.onCell)try{return new Function("record","index",`return (${_.onCell})(record,index);`)(X,K)}catch(tt){console.error(`列[${_.title}]渲染失败`,tt)}return{}},render(X,K,tt){var vt;let et=X;if(Xr(et)?_.type==="money"?et=pn(X,"currency"):_.type==="number"?et=pn(X):_.type==="date1"?et=io(X,"YYYY-MM-DD"):_.type==="date2"&&(et=io(X)):typeof t.props.empty>"u"?et="-":t.props.empty&&(et=t.props.empty),_.render)try{et=new Function("text","record","index",`return (${_.render})(text,record,index);`)(et,K,tt)}catch(st){console.error(`列[${_.title}]渲染失败`,st),et="解析异常"}if(_.type==="text"){const st=A.jsx(Hs,{type:"link",onClick:()=>N(_.eventName,K),children:et.toString()});return _.ellipsis&&_.copyable?A.jsx(zm,{title:et,children:A.jsx(Wm.Paragraph,{copyable:!0,style:{marginBottom:0},children:_.clickable?st:et.toString()})}):_.ellipsis?A.jsx(zm,{title:et,children:_.clickable?st:et.toString()}):_.copyable?A.jsx(Wm.Paragraph,{copyable:!0,children:_.clickable?st:et.toString()}):_.clickable?A.jsx(Hs,{type:"link",onClick:()=>N(_.eventName,K),children:et.toString()}):et.toString()}return _.type==="multiline"?Array.isArray(et)?et.map((st,yt)=>A.jsxs("div",{children:[A.jsx("span",{children:st.label}),A.jsx("span",{children:st.value})]},yt)):et.toString():_.type==="status"?Array.isArray(et)?et.map((st,yt)=>A.jsx(Ah,{status:st.status,text:st.text},yt)):typeof et=="object"?A.jsx(Ah,{status:et.status,text:et.text}):A.jsx(Ah,{status:"success",text:et.toString()}):_.type==="image"?Array.isArray(et)?A.jsx(Sh.PreviewGroup,{items:et,children:A.jsx(Sh,{width:30,src:et[0]})}):A.jsx(Sh,{src:et,width:30}):_.type==="tag"?Array.isArray(et)?et.map((st,yt)=>typeof st=="object"?A.jsx(Ch,{color:st.color,children:st.label},yt):A.jsx(Ch,{color:"green",children:st},st)):typeof et=="string"||typeof et=="number"?A.jsx(Ch,{color:"green",children:et}):et==null?void 0:et.toString():_.type==="action"?A.jsx("div",{className:Vs.action,children:(vt=_.list)==null?void 0:vt.map(st=>{var kt;let yt="";if(typeof st.text=="string")yt=st.text;else if(((kt=st.text)==null?void 0:kt.type)==="static")yt=st.text.value;else try{yt=new Function("text","record","index",`return (${st.text.value})(text,record,index);`)("",K,tt)}catch(Yt){console.error(`列[${st.title}]渲染失败`,Yt),yt="解析异常"}return A.jsx(Hs,{type:"link",size:"small",danger:st.danger,onClick:()=>N(st.eventName,K),children:yt},st.eventName)})}):et}})),dataSource:c,loading:h},k={total:p,current:s[t.props.field.pageNum]||1,pageSize:s[t.props.field.pageSize]||10,showSizeChanger:(B=t.props.pagination)==null?void 0:B.showSizeChanger,showQuickJumper:(P=t.props.pagination)==null?void 0:P.showQuickJumper,showTotal:($=t.props.pagination)!=null&&$.showTotal?_=>`共 ${_} 条数据`:void 0,position:(z=t.props.pagination)==null?void 0:z.position,onChange:(_,G)=>{u({[t.props.field.pageNum]:_,[t.props.field.pageSize]:G}),F({[t.props.field.pageNum]:_,[t.props.field.pageSize]:G})}},L=_=>{const G=t.events.find(X=>X.eventName===_);di(G==null?void 0:G.actions,o)},N=(_,G)=>{const X=t.events.find(K=>K.eventName===_);di(X==null?void 0:X.actions,G)},R=t.props.leftTitle,D=t.props.bulkActionList||[],W=xn;return x&&A.jsxs("div",{"data-id":r,"data-type":e,style:t.style,children:[R||n!=null&&n.length||D.length?A.jsxs("div",{className:Vs.toolbar,children:[t.props.leftTitle&&A.jsx("div",{className:Vs.title,children:t.props.leftTitle}),A.jsxs("div",{className:Vs.action,ref:I,children:[n!=null&&n.length?A.jsx(br,{elements:n}):A.jsx("div",{className:"slots",children:"拖拽子元素到这里,一般用来放表单"}),D==null?void 0:D.map(_=>A.jsx(Hs,{type:_.type,danger:_.danger,icon:_.icon?GR.createElement(W[_.icon]):null,onClick:()=>L(_.eventName),children:_.text},_.eventName))]})]}):null,A.jsx(KR,{...O,scroll:{x:(Y=t.props.scroll)==null?void 0:Y.x,y:(q=t.props.scroll)==null?void 0:q.y},pagination:t.props.hidePager?!1:k})]})},QR=YR(qR(ZR));function nc(){return nc=Object.assign?Object.assign.bind():function(r){for(var e=1;e=0)continue;t[n]=r[n]}return t}function ng(r,e){if(r==null)return{};var t=JR(r,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ee(r){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(r)}function Kr(){Kr=function(){return e};var r,e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(R,D,W){R[D]=W.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(R,D,W){return Object.defineProperty(R,D,{value:W,enumerable:!0,configurable:!0,writable:!0}),R[D]}try{u({},"")}catch{u=function(W,V,B){return W[V]=B}}function c(R,D,W,V){var B=D&&D.prototype instanceof y?D:y,P=Object.create(B.prototype),$=new L(V||[]);return a(P,"_invoke",{value:I(R,W,$)}),P}function f(R,D,W){try{return{type:"normal",arg:R.call(D,W)}}catch(V){return{type:"throw",arg:V}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function y(){}function m(){}function b(){}var x={};u(x,o,function(){return this});var w=Object.getPrototypeOf,S=w&&w(w(N([])));S&&S!==t&&n.call(S,o)&&(x=S);var C=b.prototype=y.prototype=Object.create(x);function T(R){["next","throw","return"].forEach(function(D){u(R,D,function(W){return this._invoke(D,W)})})}function F(R,D){function W(B,P,$,z){var Y=f(R[B],R,P);if(Y.type!=="throw"){var q=Y.arg,_=q.value;return _&&ee(_)=="object"&&n.call(_,"__await")?D.resolve(_.__await).then(function(G){W("next",G,$,z)},function(G){W("throw",G,$,z)}):D.resolve(_).then(function(G){q.value=G,$(q)},function(G){return W("throw",G,$,z)})}z(Y.arg)}var V;a(this,"_invoke",{value:function(P,$){function z(){return new D(function(Y,q){W(P,$,Y,q)})}return V=V?V.then(z,z):z()}})}function I(R,D,W){var V=h;return function(B,P){if(V===p)throw Error("Generator is already running");if(V===v){if(B==="throw")throw P;return{value:r,done:!0}}for(W.method=B,W.arg=P;;){var $=W.delegate;if($){var z=M($,W);if(z){if(z===g)continue;return z}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(V===h)throw V=v,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);V=p;var Y=f(R,D,W);if(Y.type==="normal"){if(V=W.done?v:d,Y.arg===g)continue;return{value:Y.arg,done:W.done}}Y.type==="throw"&&(V=v,W.method="throw",W.arg=Y.arg)}}}function M(R,D){var W=D.method,V=R.iterator[W];if(V===r)return D.delegate=null,W==="throw"&&R.iterator.return&&(D.method="return",D.arg=r,M(R,D),D.method==="throw")||W!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+W+"' method")),g;var B=f(V,R.iterator,D.arg);if(B.type==="throw")return D.method="throw",D.arg=B.arg,D.delegate=null,g;var P=B.arg;return P?P.done?(D[R.resultName]=P.value,D.next=R.nextLoc,D.method!=="return"&&(D.method="next",D.arg=r),D.delegate=null,g):P:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,g)}function O(R){var D={tryLoc:R[0]};1 in R&&(D.catchLoc=R[1]),2 in R&&(D.finallyLoc=R[2],D.afterLoc=R[3]),this.tryEntries.push(D)}function k(R){var D=R.completion||{};D.type="normal",delete D.arg,R.completion=D}function L(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(O,this),this.reset(!0)}function N(R){if(R||R===""){var D=R[o];if(D)return D.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var W=-1,V=function B(){for(;++W=0;--B){var P=this.tryEntries[B],$=P.completion;if(P.tryLoc==="root")return V("end");if(P.tryLoc<=this.prev){var z=n.call(P,"catchLoc"),Y=n.call(P,"finallyLoc");if(z&&Y){if(this.prev=0;--V){var B=this.tryEntries[V];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev=0;--W){var V=this.tryEntries[W];if(V.finallyLoc===D)return this.complete(V.completion,V.afterLoc),k(V),g}},catch:function(D){for(var W=this.tryEntries.length-1;W>=0;--W){var V=this.tryEntries[W];if(V.tryLoc===D){var B=V.completion;if(B.type==="throw"){var P=B.arg;k(V)}return P}}throw Error("illegal catch attempt")},delegateYield:function(D,W,V){return this.delegate={iterator:N(D),resultName:W,nextLoc:V},this.method==="next"&&(this.arg=r),g}},e}function Gm(r,e,t,n,a,i,o){try{var l=r[i](o),s=l.value}catch(u){t(u);return}l.done?e(s):Promise.resolve(s).then(n,a)}function ps(r){return function(){var e=this,t=arguments;return new Promise(function(n,a){var i=r.apply(e,t);function o(s){Gm(i,n,a,o,l,"next",s)}function l(s){Gm(i,n,a,o,l,"throw",s)}o(void 0)})}}function tL(r,e){if(ee(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(ee(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function eC(r){var e=tL(r,"string");return ee(e)=="symbol"?e:e+""}function at(r,e,t){return e=eC(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function qm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Tt(r){for(var e=1;er.length)&&(e=r.length);for(var t=0,n=new Array(e);t1&&arguments[1]!==void 0?arguments[1]:{},t=[];return lL.Children.forEach(r,function(n){n==null&&!e.keepEmpty||(Array.isArray(n)?t=t.concat(Tp(n)):oL.isFragment(n)&&n.props?t=t.concat(Tp(n.props.children,e)):t.push(n))}),t}var Ip={},sL=function(e){};function uL(r,e){}function cL(r,e){}function fL(){Ip={}}function lC(r,e,t){!e&&!Ip[t]&&(r(!1,t),Ip[t]=!0)}function Rr(r,e){lC(uL,r,e)}function hL(r,e){lC(cL,r,e)}Rr.preMessage=sL;Rr.resetWarned=fL;Rr.noteOnce=hL;function Um(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=n.has(i);if(Rr(!s,"Warning: There may be circular references"),s)return!1;if(i===o)return!0;if(t&&l>1)return!1;n.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var c=0;c1?e-1:0),n=1;n=i)return l;switch(l){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return l}});return o}return r}function bL(r){return r==="string"||r==="url"||r==="hex"||r==="email"||r==="date"||r==="pattern"}function Oe(r,e){return!!(r==null||e==="array"&&Array.isArray(r)&&!r.length||bL(e)&&typeof r=="string"&&!r)}function wL(r,e,t){var n=[],a=0,i=r.length;function o(l){n.push.apply(n,It(l||[])),a++,a===i&&t(n)}r.forEach(function(l){e(l,o)})}function Xm(r,e,t){var n=0,a=r.length;function i(o){if(o&&o.length){t(o);return}var l=n;n=n+1,le.max?a.push(fr(i.messages[f].max,e.fullField,e.max)):l&&s&&(ce.max)&&a.push(fr(i.messages[f].range,e.fullField,e.min,e.max))},sC=function(e,t,n,a,i,o){e.required&&(!n.hasOwnProperty(e.field)||Oe(t,o||e.type))&&a.push(fr(i.messages.required,e.fullField))},zs;const OL=function(){if(zs)return zs;var r="[a-fA-F\\d:]",e=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(r,")|(?<=").concat(r,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),l=new RegExp("(?:^".concat(t,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(t,"$")),u=new RegExp("^".concat(o,"$")),c=function(S){return S&&S.exact?l:new RegExp("(?:".concat(e(S)).concat(t).concat(e(S),")|(?:").concat(e(S)).concat(o).concat(e(S),")"),"g")};c.v4=function(w){return w&&w.exact?s:new RegExp("".concat(e(w)).concat(t).concat(e(w)),"g")},c.v6=function(w){return w&&w.exact?u:new RegExp("".concat(e(w)).concat(o).concat(e(w)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",d=c.v4().source,p=c.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(d,"|").concat(p,"|").concat(v).concat(g).concat(y,")").concat(m).concat(b);return zs=new RegExp("(?:^".concat(x,"$)"),"i"),zs};var Jm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ol={integer:function(e){return ol.number(e)&&parseInt(e,10)===e},float:function(e){return ol.number(e)&&!ol.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return ee(e)==="object"&&!ol.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Jm.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(OL())},hex:function(e){return typeof e=="string"&&!!e.match(Jm.hex)}},FL=function(e,t,n,a,i){if(e.required&&t===void 0){sC(e,t,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;o.indexOf(l)>-1?ol[l](t)||a.push(fr(i.messages.types[l],e.fullField,e.type)):l&&ee(t)!==e.type&&a.push(fr(i.messages.types[l],e.fullField,e.type))},kL=function(e,t,n,a,i){(/^\s+$/.test(t)||t==="")&&a.push(fr(i.messages.whitespace,e.fullField))};const Dt={required:sC,whitespace:kL,type:FL,range:ML,enum:TL,pattern:IL};var PL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i)}n(o)},RL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(t==null&&!e.required)return n();Dt.required(e,t,a,o,i,"array"),t!=null&&(Dt.type(e,t,a,o,i),Dt.range(e,t,a,o,i))}n(o)},LL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&Dt.type(e,t,a,o,i)}n(o)},DL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t,"date")&&!e.required)return n();if(Dt.required(e,t,a,o,i),!Oe(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),Dt.type(e,s,a,o,i),s&&Dt.range(e,s.getTime(),a,o,i)}}n(o)},_L="enum",BL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&Dt[_L](e,t,a,o,i)}n(o)},NL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&(Dt.type(e,t,a,o,i),Dt.range(e,t,a,o,i))}n(o)},$L=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&(Dt.type(e,t,a,o,i),Dt.range(e,t,a,o,i))}n(o)},jL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&Dt.type(e,t,a,o,i)}n(o)},VL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(t===""&&(t=void 0),Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&(Dt.type(e,t,a,o,i),Dt.range(e,t,a,o,i))}n(o)},HL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),t!==void 0&&Dt.type(e,t,a,o,i)}n(o)},zL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t,"string")&&!e.required)return n();Dt.required(e,t,a,o,i),Oe(t,"string")||Dt.pattern(e,t,a,o,i)}n(o)},WL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t)&&!e.required)return n();Dt.required(e,t,a,o,i),Oe(t)||Dt.type(e,t,a,o,i)}n(o)},GL=function(e,t,n,a,i){var o=[],l=Array.isArray(t)?"array":ee(t);Dt.required(e,t,a,o,i,l),n(o)},qL=function(e,t,n,a,i){var o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Oe(t,"string")&&!e.required)return n();Dt.required(e,t,a,o,i,"string"),Oe(t,"string")||(Dt.type(e,t,a,o,i),Dt.range(e,t,a,o,i),Dt.pattern(e,t,a,o,i),e.whitespace===!0&&Dt.whitespace(e,t,a,o,i))}n(o)},Eh=function(e,t,n,a,i){var o=e.type,l=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Oe(t,o)&&!e.required)return n();Dt.required(e,t,a,l,i,o),Oe(t,o)||Dt.type(e,t,a,l,i)}n(l)};const xl={string:qL,method:jL,number:VL,boolean:LL,regexp:WL,integer:$L,float:NL,array:RL,object:HL,enum:BL,pattern:zL,date:DL,url:Eh,hex:Eh,email:Eh,required:GL,any:PL};var ys=function(){function r(e){vs(this,r),at(this,"rules",null),at(this,"_messages",Fp),this.define(e)}return gs(r,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(ee(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(a){var i=t[a];n.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(t){return t&&(this._messages=Qm(Op(),t)),this._messages}},{key:"validate",value:function(t){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=t,l=a,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,o),Promise.resolve(o);function u(p){var v=[],g={};function y(b){if(Array.isArray(b)){var x;v=(x=v).concat.apply(x,It(b))}else v.push(b)}for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(C)?C:[C];!l.suppressWarning&&T.length&&r.warning("async-validator:",T),T.length&&g.message!==void 0&&(T=[].concat(g.message));var F=T.map(Zm(g,o));if(l.first&&F.length)return d[g.field]=1,v(F);if(!y)v(F);else{if(g.required&&!p.value)return g.message!==void 0?F=[].concat(g.message).map(Zm(g,o)):l.error&&(F=[l.error(g,fr(l.messages.required,g.field))]),v(F);var I={};g.defaultField&&Object.keys(p.value).map(function(k){I[k]=g.defaultField}),I=Tt(Tt({},I),p.rule.fields);var M={};Object.keys(I).forEach(function(k){var L=I[k],N=Array.isArray(L)?L:[L];M[k]=N.map(m.bind(null,k))});var O=new r(M);O.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),O.validate(p.value,p.rule.options||l,function(k){var L=[];F&&F.length&&L.push.apply(L,It(F)),k&&k.length&&L.push.apply(L,It(k)),v(L.length?L:null)})}}var x;if(g.asyncValidator)x=g.asyncValidator(g,p.value,b,p.source,l);else if(g.validator){try{x=g.validator(g,p.value,b,p.source,l)}catch(C){var w,S;(w=(S=console).error)===null||w===void 0||w.call(S,C),l.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}x===!0?b():x===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(C){return b(C)})},function(p){u(p)},o)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!xl.hasOwnProperty(t.type))throw new Error(fr("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?xl.required:xl[this.getType(t)]||void 0}}]),r}();at(ys,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");xl[e]=t});at(ys,"warning",xL);at(ys,"messages",Fp);at(ys,"validators",xl);var ur="'${name}' is not a valid ${type}",uC={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ur,method:ur,array:ur,object:ur,number:ur,date:ur,boolean:ur,integer:ur,float:ur,regexp:ur,email:ur,url:ur,hex:ur},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function cC(r){if(Array.isArray(r))return r}function fC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YL(r){return cC(r)||rC(r)||ag(r)||fC()}function fn(r,e){for(var t=r,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&n&&t===void 0&&!fn(r,e.slice(0,-1))?r:hC(r,e,t,n)}function UL(r){return ee(r)==="object"&&r!==null&&Object.getPrototypeOf(r)===Object.prototype}function t0(r){return Array.isArray(r)?[]:{}}var XL=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ll(){for(var r=arguments.length,e=new Array(r),t=0;t2&&arguments[2]!==void 0?arguments[2]:!1;return r&&r.some(function(n){return dC(e,n,t)})}function dC(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!r||!e||!t&&r.length!==e.length?!1:e.every(function(n,a){return r[a]===n})}function tD(r,e){if(r===e)return!0;if(!r&&e||r&&!e||!r||!e||ee(r)!=="object"||ee(e)!=="object")return!1;var t=Object.keys(r),n=Object.keys(e),a=new Set([].concat(t,n));return It(a).every(function(i){var o=r[i],l=e[i];return typeof o=="function"&&typeof l=="function"?!0:o===l})}function eD(r){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&ee(e.target)==="object"&&r in e.target?e.target[r]:e}function i0(r,e,t){var n=r.length;if(e<0||e>=n||t<0||t>=n)return r;var a=r[e],i=e-t;return i>0?[].concat(It(r.slice(0,t)),[a],It(r.slice(t,e)),It(r.slice(e+1,n))):i<0?[].concat(It(r.slice(0,e)),It(r.slice(e+1,t+1)),[a],It(r.slice(t+1,n))):r}var rD=["name"];const On=window.React;var Ir=[];function o0(r,e,t,n,a,i){return typeof r=="function"?r(e,t,"source"in i?{source:i.source}:{}):n!==a}var sg=function(r){nC(t,r);var e=aC(t);function t(n){var a;if(vs(this,t),a=e.call(this,n),at(Vt(a),"state",{resetCount:0}),at(Vt(a),"cancelRegisterFunc",null),at(Vt(a),"mounted",!1),at(Vt(a),"touched",!1),at(Vt(a),"dirty",!1),at(Vt(a),"validatePromise",void 0),at(Vt(a),"prevValidating",void 0),at(Vt(a),"errors",Ir),at(Vt(a),"warnings",Ir),at(Vt(a),"cancelRegister",function(){var s=a.props,u=s.preserve,c=s.isListField,f=s.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(c,u,ge(f)),a.cancelRegisterFunc=null}),at(Vt(a),"getNamePath",function(){var s=a.props,u=s.name,c=s.fieldContext,f=c.prefixName,h=f===void 0?[]:f;return u!==void 0?[].concat(It(h),It(u)):[]}),at(Vt(a),"getRules",function(){var s=a.props,u=s.rules,c=u===void 0?[]:u,f=s.fieldContext;return c.map(function(h){return typeof h=="function"?h(f):h})}),at(Vt(a),"refresh",function(){a.mounted&&a.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),at(Vt(a),"metaCache",null),at(Vt(a),"triggerMetaEvent",function(s){var u=a.props.onMetaChange;if(u){var c=Tt(Tt({},a.getMeta()),{},{destroy:s});Um(a.metaCache,c)||u(c),a.metaCache=c}else a.metaCache=null}),at(Vt(a),"onStoreChange",function(s,u,c){var f=a.props,h=f.shouldUpdate,d=f.dependencies,p=d===void 0?[]:d,v=f.onReset,g=c.store,y=a.getNamePath(),m=a.getValue(s),b=a.getValue(g),x=u&&Ki(u,y);switch(c.type==="valueUpdate"&&c.source==="external"&&!Um(m,b)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Ir,a.warnings=Ir,a.triggerMetaEvent()),c.type){case"reset":if(!u||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Ir,a.warnings=Ir,a.triggerMetaEvent(),v==null||v(),a.refresh();return}break;case"remove":{if(h){a.reRender();return}break}case"setField":{var w=c.data;if(x){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||Ir),"warnings"in w&&(a.warnings=w.warnings||Ir),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&Ki(u,y,!0)){a.reRender();return}if(h&&!y.length&&o0(h,s,g,m,b,c)){a.reRender();return}break}case"dependenciesUpdate":{var S=p.map(ge);if(S.some(function(C){return Ki(c.relatedFields,C)})){a.reRender();return}break}default:if(x||(!p.length||y.length||h)&&o0(h,s,g,m,b,c)){a.reRender();return}break}h===!0&&a.reRender()}),at(Vt(a),"validateRules",function(s){var u=a.getNamePath(),c=a.getValue(),f=s||{},h=f.triggerName,d=f.validateOnly,p=d===void 0?!1:d,v=Promise.resolve().then(ps(Kr().mark(function g(){var y,m,b,x,w,S,C;return Kr().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(a.mounted){F.next=2;break}return F.abrupt("return",[]);case 2:if(y=a.props,m=y.validateFirst,b=m===void 0?!1:m,x=y.messageVariables,w=y.validateDebounce,S=a.getRules(),h&&(S=S.filter(function(I){return I}).filter(function(I){var M=I.validateTrigger;if(!M)return!0;var O=Mp(M);return O.includes(h)})),!(w&&h)){F.next=10;break}return F.next=8,new Promise(function(I){setTimeout(I,w)});case 8:if(a.validatePromise===v){F.next=10;break}return F.abrupt("return",[]);case 10:return C=ZL(u,c,S,s,b,x),C.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ir;if(a.validatePromise===v){var M;a.validatePromise=null;var O=[],k=[];(M=I.forEach)===null||M===void 0||M.call(I,function(L){var N=L.rule.warningOnly,R=L.errors,D=R===void 0?Ir:R;N?k.push.apply(k,It(D)):O.push.apply(O,It(D))}),a.errors=O,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),F.abrupt("return",C);case 13:case"end":return F.stop()}},g)})));return p||(a.validatePromise=v,a.dirty=!0,a.errors=Ir,a.warnings=Ir,a.triggerMetaEvent(),a.reRender()),v}),at(Vt(a),"isFieldValidating",function(){return!!a.validatePromise}),at(Vt(a),"isFieldTouched",function(){return a.touched}),at(Vt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var s=a.props.fieldContext,u=s.getInternalHooks(Ua),c=u.getInitialValue;return c(a.getNamePath())!==void 0}),at(Vt(a),"getErrors",function(){return a.errors}),at(Vt(a),"getWarnings",function(){return a.warnings}),at(Vt(a),"isListField",function(){return a.props.isListField}),at(Vt(a),"isList",function(){return a.props.isList}),at(Vt(a),"isPreserve",function(){return a.props.preserve}),at(Vt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var s={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return s}),at(Vt(a),"getOnlyChild",function(s){if(typeof s=="function"){var u=a.getMeta();return Tt(Tt({},a.getOnlyChild(s(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var c=Tp(s);return c.length!==1||!On.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),at(Vt(a),"getValue",function(s){var u=a.props.fieldContext.getFieldsValue,c=a.getNamePath();return fn(s||u(!0),c)}),at(Vt(a),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,c=u.name,f=u.trigger,h=u.validateTrigger,d=u.getValueFromEvent,p=u.normalize,v=u.valuePropName,g=u.getValueProps,y=u.fieldContext,m=h!==void 0?h:y.validateTrigger,b=a.getNamePath(),x=y.getInternalHooks,w=y.getFieldsValue,S=x(Ua),C=S.dispatch,T=a.getValue(),F=g||function(L){return at({},v,L)},I=s[f],M=c!==void 0?F(T):{},O=Tt(Tt({},s),M);O[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var L,N=arguments.length,R=new Array(N),D=0;D=0&&I<=M.length?(c.keys=[].concat(It(c.keys.slice(0,I)),[c.id],It(c.keys.slice(I))),b([].concat(It(M.slice(0,I)),[F],It(M.slice(I))))):(c.keys=[].concat(It(c.keys),[c.id]),b([].concat(It(M),[F]))),c.id+=1},remove:function(F){var I=w(),M=new Set(Array.isArray(F)?F:[F]);M.size<=0||(c.keys=c.keys.filter(function(O,k){return!M.has(k)}),b(I.filter(function(O,k){return!M.has(k)})))},move:function(F,I){if(F!==I){var M=w();F<0||F>=M.length||I<0||I>=M.length||(c.keys=i0(c.keys,F,I),b(i0(M,F,I)))}}},C=m||[];return Array.isArray(C)||(C=[]),n(C.map(function(T,F){var I=c.keys[F];return I===void 0&&(c.keys[F]=c.id,I=c.keys[F],c.id+=1),{name:F,key:I,isListField:!0}}),S,g)})))}function aD(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,l=[],s=!0,u=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==e);s=!0);}catch(c){u=!0,a=c}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _l(r,e){return cC(r)||aD(r,e)||ag(r,e)||fC()}function iD(r){var e=!1,t=r.length,n=[];return r.length?new Promise(function(a,i){r.forEach(function(o,l){o.catch(function(s){return e=!0,s}).then(function(s){t-=1,n[l]=s,!(t>0)&&(e&&i(n),a(n))})})}):Promise.resolve([])}var vC="__@field_split__";function Th(r){return r.map(function(e){return"".concat(ee(e),":").concat(e)}).join(vC)}var Pi=function(){function r(){vs(this,r),at(this,"kvs",new Map)}return gs(r,[{key:"set",value:function(t,n){this.kvs.set(Th(t),n)}},{key:"get",value:function(t){return this.kvs.get(Th(t))}},{key:"update",value:function(t,n){var a=this.get(t),i=n(a);i?this.set(t,i):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Th(t))}},{key:"map",value:function(t){return It(this.kvs.entries()).map(function(n){var a=_l(n,2),i=a[0],o=a[1],l=i.split(vC);return t({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),c=_l(u,3),f=c[1],h=c[2];return f==="number"?Number(h):h}),value:o})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var a=n.key,i=n.value;return t[a.join(".")]=i,null}),t}}]),r}(),oD=["name"];const l0=window.React;var lD=gs(function r(e){var t=this;vs(this,r),at(this,"formHooked",!1),at(this,"forceRootUpdate",void 0),at(this,"subscribable",!0),at(this,"store",{}),at(this,"fieldEntities",[]),at(this,"initialValues",{}),at(this,"callbacks",{}),at(this,"validateMessages",null),at(this,"preserve",null),at(this,"lastValidatePromise",null),at(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),at(this,"getInternalHooks",function(n){return n===Ua?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Rr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),at(this,"useSubscribe",function(n){t.subscribable=n}),at(this,"prevWithoutPreserves",null),at(this,"setInitialValues",function(n,a){if(t.initialValues=n||{},a){var i,o=ll(n,t.store);(i=t.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;o=zr(o,s,fn(n,s))}),t.prevWithoutPreserves=null,t.updateStore(o)}}),at(this,"destroyForm",function(){var n=new Pi;t.getFieldEntities(!0).forEach(function(a){t.isMergedPreserve(a.isPreserve())||n.set(a.getNamePath(),!0)}),t.prevWithoutPreserves=n}),at(this,"getInitialValue",function(n){var a=fn(t.initialValues,n);return n.length?ll(a):a}),at(this,"setCallbacks",function(n){t.callbacks=n}),at(this,"setValidateMessages",function(n){t.validateMessages=n}),at(this,"setPreserve",function(n){t.preserve=n}),at(this,"watchList",[]),at(this,"registerWatch",function(n){return t.watchList.push(n),function(){t.watchList=t.watchList.filter(function(a){return a!==n})}}),at(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var a=t.getFieldsValue(),i=t.getFieldsValue(!0);t.watchList.forEach(function(o){o(a,i,n)})}}),at(this,"timeoutId",null),at(this,"warningUnhooked",function(){}),at(this,"updateStore",function(n){t.store=n}),at(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?t.fieldEntities.filter(function(a){return a.getNamePath().length}):t.fieldEntities}),at(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Pi;return t.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),at(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return t.getFieldEntities(!0);var a=t.getFieldsMap(!0);return n.map(function(i){var o=ge(i);return a.get(o)||{INVALIDATE_NAME_PATH:ge(i)}})}),at(this,"getFieldsValue",function(n,a){t.warningUnhooked();var i,o,l;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&ee(n)==="object"&&(l=n.strict,o=n.filter),i===!0&&!o)return t.store;var s=t.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return s.forEach(function(c){var f,h,d="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(l){var p,v;if((p=(v=c).isList)!==null&&p!==void 0&&p.call(v))return}else if(!i&&(f=(h=c).isListField)!==null&&f!==void 0&&f.call(h))return;if(!o)u.push(d);else{var g="getMeta"in c?c.getMeta():null;o(g)&&u.push(d)}}),a0(t.store,u.map(ge))}),at(this,"getFieldValue",function(n){t.warningUnhooked();var a=ge(n);return fn(t.store,a)}),at(this,"getFieldsError",function(n){t.warningUnhooked();var a=t.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ge(n[o]),errors:[],warnings:[]}})}),at(this,"getFieldError",function(n){t.warningUnhooked();var a=ge(n),i=t.getFieldsError([a])[0];return i.errors}),at(this,"getFieldWarning",function(n){t.warningUnhooked();var a=ge(n),i=t.getFieldsError([a])[0];return i.warnings}),at(this,"isFieldsTouched",function(){t.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new Pi,i=t.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,c=s.getNamePath();if(u!==void 0){var f=a.get(c)||new Set;f.add({entity:s,value:u}),a.set(c,f)}});var o=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var h=c.getNamePath(),d=t.getInitialValue(h);if(d!==void 0)Rr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var p=a.get(h);if(p&&p.size>1)Rr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var v=t.getFieldValue(h),g=c.isListField();!g&&(!n.skipExist||v===void 0)&&t.updateStore(zr(t.store,h,It(p)[0].value))}}}})},l;n.entities?l=n.entities:n.namePathList?(l=[],n.namePathList.forEach(function(s){var u=a.get(s);if(u){var c;(c=l).push.apply(c,It(It(u).map(function(f){return f.entity})))}})):l=i,o(l)}),at(this,"resetFields",function(n){t.warningUnhooked();var a=t.store;if(!n){t.updateStore(ll(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(a,null,{type:"reset"}),t.notifyWatch();return}var i=n.map(ge);i.forEach(function(o){var l=t.getInitialValue(o);t.updateStore(zr(t.store,o,l))}),t.resetWithFieldInitialValue({namePathList:i}),t.notifyObservers(a,i,{type:"reset"}),t.notifyWatch(i)}),at(this,"setFields",function(n){t.warningUnhooked();var a=t.store,i=[];n.forEach(function(o){var l=o.name,s=ng(o,oD),u=ge(l);i.push(u),"value"in s&&t.updateStore(zr(t.store,u,s.value)),t.notifyObservers(a,[u],{type:"setField",data:o})}),t.notifyWatch(i)}),at(this,"getFields",function(){var n=t.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),l=i.getMeta(),s=Tt(Tt({},l),{},{name:o,value:t.getFieldValue(o)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return a}),at(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=fn(t.store,i);o===void 0&&t.updateStore(zr(t.store,i,a))}}),at(this,"isMergedPreserve",function(n){var a=n!==void 0?n:t.preserve;return a??!0}),at(this,"registerField",function(n){t.fieldEntities.push(n);var a=n.getNamePath();if(t.notifyWatch([a]),n.props.initialValue!==void 0){var i=t.store;t.resetWithFieldInitialValue({entities:[n],skipExist:!0}),t.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(f){return f!==n}),!t.isMergedPreserve(l)&&(!o||s.length>1)){var u=o?void 0:t.getInitialValue(a);if(a.length&&t.getFieldValue(a)!==u&&t.fieldEntities.every(function(f){return!dC(f.getNamePath(),a)})){var c=t.store;t.updateStore(zr(c,a,u,!0)),t.notifyObservers(c,[a],{type:"remove"}),t.triggerDependenciesUpdate(c,a)}}t.notifyWatch([a])}}),at(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;t.updateValue(a,i);break}case"validateField":{var o=n.namePath,l=n.triggerName;t.validateFields([o],{triggerName:l});break}}}),at(this,"notifyObservers",function(n,a,i){if(t.subscribable){var o=Tt(Tt({},i),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(n,a,o)})}else t.forceRootUpdate()}),at(this,"triggerDependenciesUpdate",function(n,a){var i=t.getDependencyChildrenFields(a);return i.length&&t.validateFields(i),t.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(It(i))}),i}),at(this,"updateValue",function(n,a){var i=ge(n),o=t.store;t.updateStore(zr(t.store,i,a)),t.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),t.notifyWatch([i]);var l=t.triggerDependenciesUpdate(o,i),s=t.callbacks.onValuesChange;if(s){var u=a0(t.store,[i]);s(u,t.getFieldsValue())}t.triggerOnFieldsChange([i].concat(It(l)))}),at(this,"setFieldsValue",function(n){t.warningUnhooked();var a=t.store;if(n){var i=ll(t.store,n);t.updateStore(i)}t.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),at(this,"setFieldValue",function(n,a){t.setFields([{name:n,value:a}])}),at(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new Pi;t.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(c){var f=ge(c);o.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(s),h})})});var l=function s(u){var c=o.get(u)||new Set;c.forEach(function(f){if(!a.has(f)){a.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(i.push(h),s(h))}})};return l(n),i}),at(this,"triggerOnFieldsChange",function(n,a){var i=t.callbacks.onFieldsChange;if(i){var o=t.getFields();if(a){var l=new Pi;a.forEach(function(u){var c=u.name,f=u.errors;l.set(c,f)}),o.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=o.filter(function(u){var c=u.name;return Ki(n,c)});s.length&&i(s,o)}}),at(this,"validateFields",function(n,a){t.warningUnhooked();var i,o;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(i=n,o=a):o=n;var l=!!i,s=l?i.map(ge):[],u=[],c=String(Date.now()),f=new Set,h=o||{},d=h.recursive,p=h.dirty;t.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(p&&!m.isFieldDirty())){var b=m.getNamePath();if(f.add(b.join(c)),!l||Ki(s,b,d)){var x=m.validateRules(Tt({validateMessages:Tt(Tt({},uC),t.validateMessages)},o));u.push(x.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var S,C=[],T=[];return(S=w.forEach)===null||S===void 0||S.call(w,function(F){var I=F.rule.warningOnly,M=F.errors;I?T.push.apply(T,It(M)):C.push.apply(C,It(M))}),C.length?Promise.reject({name:b,errors:C,warnings:T}):{name:b,errors:C,warnings:T}}))}}});var v=iD(u);t.lastValidatePromise=v,v.catch(function(m){return m}).then(function(m){var b=m.map(function(x){var w=x.name;return w});t.notifyObservers(t.store,b,{type:"validateFinish"}),t.triggerOnFieldsChange(b,m)});var g=v.then(function(){return t.lastValidatePromise===v?Promise.resolve(t.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var b=m.filter(function(x){return x&&x.errors.length});return Promise.reject({values:t.getFieldsValue(s),errorFields:b,outOfDate:t.lastValidatePromise!==v})});g.catch(function(m){return m});var y=s.filter(function(m){return f.has(m.join(c))});return t.triggerOnFieldsChange(y),g}),at(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(n){var a=t.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=t.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=e});function ug(r){var e=l0.useRef(),t=l0.useState({}),n=_l(t,2),a=n[1];if(!e.current)if(r)e.current=r;else{var i=function(){a({})},o=new lD(i);e.current=o.getForm()}return[e.current]}const $u=window.React;var Bp=$u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sD=function(e){var t=e.validateMessages,n=e.onFormChange,a=e.onFormFinish,i=e.children,o=$u.useContext(Bp),l=$u.useRef({});return $u.createElement(Bp.Provider,{value:Tt(Tt({},o),{},{validateMessages:Tt(Tt({},o.validateMessages),t),triggerFormChange:function(u,c){n&&n(u,{changedFields:c,forms:l.current}),o.triggerFormChange(u,c)},triggerFormFinish:function(u,c){a&&a(u,{values:c,forms:l.current}),o.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(l.current=Tt(Tt({},l.current),{},at({},u,c))),o.registerForm(u,c)},unregisterForm:function(u){var c=Tt({},l.current);delete c[u],l.current=c,o.unregisterForm(u)}})},i)},uD=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const jr=window.React;var cD=function(e,t){var n=e.name,a=e.initialValues,i=e.fields,o=e.form,l=e.preserve,s=e.children,u=e.component,c=u===void 0?"form":u,f=e.validateMessages,h=e.validateTrigger,d=h===void 0?"onChange":h,p=e.onValuesChange,v=e.onFieldsChange,g=e.onFinish,y=e.onFinishFailed,m=ng(e,uD),b=jr.useContext(Bp),x=ug(o),w=_l(x,1),S=w[0],C=S.getInternalHooks(Ua),T=C.useSubscribe,F=C.setInitialValues,I=C.setCallbacks,M=C.setValidateMessages,O=C.setPreserve,k=C.destroyForm;jr.useImperativeHandle(t,function(){return S}),jr.useEffect(function(){return b.registerForm(n,S),function(){b.unregisterForm(n)}},[b,S,n]),M(Tt(Tt({},b.validateMessages),f)),I({onValuesChange:p,onFieldsChange:function($){if(b.triggerFormChange(n,$),v){for(var z=arguments.length,Y=new Array(z>1?z-1:0),q=1;qtypeof r=="object"&&r!=null&&r.nodeType===1,f0=(r,e)=>(!e||r!=="hidden")&&r!=="visible"&&r!=="clip",Ih=(r,e)=>{if(r.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeightie||i>r&&o=e&&l>=t?i-r-n:o>e&&lt?o-e+a:0,mD=r=>{const e=r.parentElement;return e??(r.getRootNode().host||null)},h0=(r,e)=>{var t,n,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=e,f=typeof u=="function"?u:R=>R!==u;if(!c0(r))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,d=[];let p=r;for(;c0(p)&&f(p);){if(p=mD(p),p===h){d.push(p);break}p!=null&&p===document.body&&Ih(p)&&!Ih(document.documentElement)||p!=null&&Ih(p,c)&&d.push(p)}const v=(n=(t=window.visualViewport)==null?void 0:t.width)!=null?n:innerWidth,g=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:y,scrollY:m}=window,{height:b,width:x,top:w,right:S,bottom:C,left:T}=r.getBoundingClientRect(),{top:F,right:I,bottom:M,left:O}=(R=>{const D=window.getComputedStyle(R);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(r);let k=l==="start"||l==="nearest"?w-F:l==="end"?C+M:w+b/2-F+M,L=s==="center"?T+x/2-O+I:s==="end"?S+I:T-O;const N=[];for(let R=0;R=0&&T>=0&&C<=g&&S<=v&&w>=B&&C<=$&&T>=z&&S<=P)return N;const Y=getComputedStyle(D),q=parseInt(Y.borderLeftWidth,10),_=parseInt(Y.borderTopWidth,10),G=parseInt(Y.borderRightWidth,10),X=parseInt(Y.borderBottomWidth,10);let K=0,tt=0;const et="offsetWidth"in D?D.offsetWidth-D.clientWidth-q-G:0,vt="offsetHeight"in D?D.offsetHeight-D.clientHeight-_-X:0,st="offsetWidth"in D?D.offsetWidth===0?0:V/D.offsetWidth:0,yt="offsetHeight"in D?D.offsetHeight===0?0:W/D.offsetHeight:0;if(h===D)K=l==="start"?k:l==="end"?k-g:l==="nearest"?Ws(m,m+g,g,_,X,m+k,m+k+b,b):k-g/2,tt=s==="start"?L:s==="center"?L-v/2:s==="end"?L-v:Ws(y,y+v,v,q,G,y+L,y+L+x,x),K=Math.max(0,K+m),tt=Math.max(0,tt+y);else{K=l==="start"?k-B-_:l==="end"?k-$+X+vt:l==="nearest"?Ws(B,$,W,_,X+vt,k,k+b,b):k-(B+W/2)+vt/2,tt=s==="start"?L-z-q:s==="center"?L-(z+V/2)+et/2:s==="end"?L-P+G+et:Ws(z,P,V,q,G+et,L,L+x,x);const{scrollLeft:kt,scrollTop:Yt}=D;K=yt===0?0:Math.max(0,Math.min(Yt+K/yt,D.scrollHeight-W/yt+vt)),tt=st===0?0:Math.max(0,Math.min(kt+tt/st,D.scrollWidth-V/st+et)),k+=Yt-K,L+=kt-tt}N.push({el:D,top:K,left:tt})}return N},xD=r=>r===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(r)?r:{block:"start",inline:"nearest"};function bD(r,e){if(!r.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(r))return;const t=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(r);if((a=>typeof a=="object"&&typeof a.behavior=="function")(e))return e.behavior(h0(r,e));const n=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:a,top:i,left:o}of h0(r,xD(e))){const l=i-t.top+t.bottom,s=o-t.left+t.right;a.scroll({top:l,left:s,behavior:n})}}const wD=["parentNode"],SD="form_item";function gC(r){return r===void 0||r===!1?[]:Array.isArray(r)?r:[r]}function CD(r,e){if(!r.length)return;const t=r.join("_");return e?`${e}_${t}`:wD.includes(t)?`${SD}_${t}`:t}const d0=window.React;function p0(r){return gC(r).join("_")}function AD(r,e){const t=e.getFieldInstance(r);if(t instanceof HTMLElement)return t;if((t==null?void 0:t.nativeElement)instanceof HTMLElement)return t.nativeElement;const n=CD(gC(r),e.__INTERNAL__.name);if(n)return document.getElementById(n)}function yC(r){const[e]=ug(),t=d0.useRef({}),n=d0.useMemo(()=>r??Object.assign(Object.assign({},e),{__INTERNAL__:{itemRef:a=>i=>{const o=p0(a);i?t.current[o]=i:delete t.current[o]}},scrollToField:function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=AD(a,n);o&&bD(o,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:a=>{const i=p0(a);return t.current[i]}}),[r,e]);return[n]}window.React.useMemo;const bl=window.antd.Input,ED=window.antd.Modal,me=window.antd.Form,Fr=window.antd.Col,Zi=window.antd.Row,Vr=window.antd.Select,Gs=window.antd.Switch,v0=window.antd.Button,TD=window.antd.Card,g0=window.antd.InputNumber,qn=window.antd.Radio,ID=window.antd.Tabs,qs=window.antd.Tooltip,Ys=window.antd.Flex,MD=window.React.useImperativeHandle,y0=window.React.useState,OD=window.React.memo,FD=window.React.useMemo,kD=OD(r=>{const[e,t]=y0(!1),[n,a]=y0(0),[i]=yC(),{selectedElement:o,elementsMap:l,editTableProps:s,editEvents:u}=Et(d=>({selectedElement:d.selectedElement,elementsMap:d.page.elementsMap,editTableProps:d.editTableProps,editEvents:d.editEvents}));MD(r.columnRef,()=>({open(d){const v=l[o==null?void 0:o.id].config.props.columns[d],g=v.render||`function render(text, record, index) { + return text; +}`;i.resetFields(),i.setFieldsValue({align:"center",fixed:!1,type:"text",empty:"-",...v,render:g,onCell:v.onCell||`function onCell(record, index) { + // 此处可以设置数据跨行、跨列 + return { + + } +}`}),a(d),t(!0)}}));const c=FD(()=>[{key:"basic",label:"基础配置",children:A.jsx(PD,{})},{key:"display",label:"展示配置",forceRender:!0,children:A.jsx(RD,{})},{key:"custom",label:"自定义",forceRender:!0,children:A.jsx(LD,{})}],[]),f=()=>{i.validateFields().then(()=>{var m,b;const d=i.getFieldsValue(),p=l[o==null?void 0:o.id],v=fs(`ClickCell${d.dataIndex}`);d.clickable?d.eventName=d.eventName||v:d.eventName="",s({id:o==null?void 0:o.id,type:"column",index:n,props:{...d,key:d.dataIndex||n}});let g=(m=p.events)==null?void 0:m.filter(x=>x.value.indexOf("Dynamic")==-1);(b=d.list)==null||b.map((x,w)=>{var C,T;let S="";typeof x.text=="string"||((C=x.text)==null?void 0:C.type)==="static"?S="操作列"+(((T=x.text)==null?void 0:T.value)||x.text)+"事件":S=`操作列动态按钮${w+1}事件`,g.push({name:S,value:x.eventName})});const y=p.config.props.columns[n].eventName;g=g.filter(x=>x.value!=y),d.clickable&&g.push({name:`列${d.title}事件`,value:d.eventName||v}),u({id:p.id,events:g}),r.update(d,n),t(!1)})},h=()=>{t(!1)};return A.jsx(ED,{title:"列设置",open:e,onOk:f,onCancel:h,width:900,children:A.jsx(me,{form:i,labelCol:{span:6},children:A.jsx(ID,{items:c})})})}),PD=()=>A.jsxs(A.Fragment,{children:[A.jsxs(Zi,{children:[A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"列头",name:"title",rules:[{required:!0,message:"请输入列名"}],children:A.jsx(bl,{})})}),A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"字段",name:"dataIndex",rules:[{required:!0,message:"请输入字段名称"}],children:A.jsx(bl,{})})})]}),A.jsxs(Zi,{children:[A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"宽度",name:"width",children:A.jsx(g0,{placeholder:"eg: 100"})})}),A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"对齐",name:"align",children:A.jsxs(qn.Group,{buttonStyle:"solid",children:[A.jsx(qn.Button,{value:"left",children:"居左"}),A.jsx(qn.Button,{value:"center",children:"居中"}),A.jsx(qn.Button,{value:"right",children:"居右"})]})})})]}),A.jsxs(Zi,{children:[A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"固定方式",name:"fixed",children:A.jsxs(qn.Group,{buttonStyle:"solid",children:[A.jsx(qn.Button,{value:"",children:"默认"}),A.jsx(qn.Button,{value:"left",children:"居左"}),A.jsx(qn.Button,{value:"right",children:"居右"})]})})}),A.jsx(Fr,{span:12,children:A.jsx(me.Item,{label:"表头跨列",name:"colSpan",children:A.jsx(g0,{placeholder:"eg: 3"})})})]})]}),RD=()=>{const r={labelCol:{span:4},wrapperCol:{span:8}};return A.jsxs(A.Fragment,{children:[A.jsx(me.Item,{label:"显示格式",name:"type",...r,children:A.jsxs(Vr,{children:[A.jsx(Vr.Option,{value:"text",children:"单行文本"}),A.jsx(Vr.Option,{value:"multiline",children:A.jsxs(Ys,{justify:"space-between",children:[A.jsx("span",{children:"多行文本"}),A.jsx("span",{children:A.jsx(qs,{title:"需要返回数组格式:[{label: '名称',value: 'Jack'}]",children:A.jsx(_s,{})})})]})}),A.jsx(Vr.Option,{value:"status",children:A.jsxs(Ys,{justify:"space-between",children:[A.jsx("span",{children:"状态"}),A.jsx("span",{children:A.jsx(qs,{title:"需要返回数组格式:[{status: 'success',text: '提交完成'}]",children:A.jsx(_s,{})})})]})}),A.jsx(Vr.Option,{value:"image",children:A.jsxs(Ys,{justify:"space-between",children:[A.jsx("span",{children:"图片"}),A.jsx("span",{children:A.jsx(qs,{title:"支持单张和多张预览,多张图片格式:['xxx.png','xxx.jpg']",children:A.jsx(_s,{})})})]})}),A.jsx(Vr.Option,{value:"date1",children:"日期-不含时分秒"}),A.jsx(Vr.Option,{value:"date2",children:"日期-包含时分秒"}),A.jsx(Vr.Option,{value:"money",children:"金额千分位"}),A.jsx(Vr.Option,{value:"number",children:"数字千分位"}),A.jsx(Vr.Option,{value:"tag",children:A.jsxs(Ys,{justify:"space-between",children:[A.jsx("span",{children:"标签"}),A.jsx("span",{children:A.jsx(qs,{title:"支持颜色配置,返回格式:[{label:'名称',color:'green'}]",children:A.jsx(_s,{})})})]})}),A.jsx(Vr.Option,{value:"action",children:"操作"})]})}),A.jsx(me.Item,{label:"可点击",name:"clickable",tooltip:"开启后,当前列展示为可点击的link格式,支持事件配置",...r,children:A.jsx(Gs,{})}),A.jsx(me.Item,{name:"eventName",hidden:!0,children:A.jsx(bl,{})}),A.jsx(me.Item,{label:"超长省略",name:"ellipsis",tooltip:"省略后,会自动开启tooltip功能",...r,children:A.jsx(Gs,{})}),A.jsx(me.Item,{label:"可复制",name:"copyable",tooltip:"开启后,列增加复制功能,只对文本生效",...r,children:A.jsx(Gs,{})}),A.jsx(me.Item,{shouldUpdate:!0,noStyle:!0,children:e=>{if(e.getFieldValue("type")==="action")return A.jsx(me.List,{name:"list",children:(n,{add:a,remove:i})=>A.jsxs(A.Fragment,{children:[n.map(({key:o,name:l,...s})=>A.jsx(TD,{style:{width:"100%",marginBottom:10},title:"操作按钮设置",size:"small",extra:A.jsx(v0,{onClick:()=>i(l),icon:A.jsx(GO,{}),type:"text",danger:!0,children:"删除"}),children:A.jsxs(Zi,{gutter:15,style:{marginBottom:-24},children:[A.jsx(Fr,{span:6,children:A.jsx(me.Item,{...s,name:[l,"text"],label:"名称",children:A.jsx(Zu,{})})}),A.jsx(Fr,{span:4,children:A.jsx(me.Item,{label:"danger",name:[l,"danger"],labelCol:{span:14},valuePropName:"checked",children:A.jsx(Gs,{})})}),A.jsx(Fr,{span:7,children:A.jsx(me.Item,{label:"权限标识",tooltip:"项目配置后台对应的按钮code或者uac中对应的按钮filedName",name:[l,"authCode"],children:A.jsx(bl,{placeholder:"按钮Code"})})}),A.jsxs(Fr,{span:7,children:[A.jsx(me.Item,{label:"三方脚本",tooltip:"如果是微服务集成,需要通过脚本来控制按钮权限",name:[l,"authScript"],children:A.jsx(Zu,{placeholder:"跨服务时,执行脚本"})}),A.jsx(me.Item,{name:[l,"eventName"],hidden:!0,children:A.jsx(bl,{})})]})]})},o)),A.jsx("div",{style:{marginTop:15},children:A.jsx(v0,{type:"dashed",block:!0,onClick:()=>a({text:"按钮",type:"link",eventName:fs("Dynamic")}),icon:A.jsx(pr,{}),children:"新增操作按钮"})})]})})}})]})},LD=()=>A.jsxs(A.Fragment,{children:[A.jsx(Zi,{children:A.jsx(Fr,{span:24,children:A.jsx(me.Item,{label:"单元格渲染",name:"onCell",labelCol:{span:4},wrapperCol:{span:21},tooltip:"通过自定义onCell函数,实现数据跨行、跨列展示。",children:A.jsx(Rl,{})})})}),A.jsx(Zi,{children:A.jsx(Fr,{span:24,children:A.jsx(me.Item,{label:"自定义渲染",name:"render",labelCol:{span:4},wrapperCol:{span:21},tooltip:"通过编程的方式实现值渲染,不支持ReactNode渲染。例如:if(text === 1)return '在线'; ",children:A.jsx(Rl,{})})})})]}),DD=window.React.useRef,m0=window.antd.Form,x0=window.antd.Input,_D=window.antd.Space,BD=({index:r,move:e,handleOpen:t,add:n,remove:a})=>{const i=DD(null),[,o]=xr({accept:"card",hover(f,h){var b;if(!i.current)return;const d=f.index,p=r;if(d===p)return;const v=(b=i.current)==null?void 0:b.getBoundingClientRect(),g=(v.bottom-v.top)/2,m=h.getClientOffset().y-v.top;dp&&m>g||(e(d,p),f.index=p)}}),[{isDragging:l},s]=L2({type:"card",item:()=>({index:r}),collect:f=>({isDragging:f.isDragging()})}),u=l?0:1;s(o(i));const c=Wa("C",5);return A.jsx(A.Fragment,{children:A.jsxs(_D,{style:{display:"flex",marginBottom:15,padding:"0 10px",opacity:u},align:"baseline",ref:i,children:[A.jsx(qO,{style:{cursor:"grab"}}),A.jsx(m0.Item,{wrapperCol:{span:22},name:[r,"title"],noStyle:!0,children:A.jsx(x0,{placeholder:"列名称"})}),A.jsx(m0.Item,{wrapperCol:{span:22},name:[r,"dataIndex"],noStyle:!0,children:A.jsx(x0,{placeholder:"列字段",style:{width:"100%"}})}),A.jsx(Nc,{onClick:()=>t(r)}),A.jsx(pr,{onClick:()=>n({title:c,dataIndex:c,width:120},r+1)}),A.jsx(Si,{onClick:()=>a(r)})]})})},ND=window.antd.Form,$D=window.React.memo,jD=window.React.useCallback,VD=window.React.useRef,HD=$D(({form:r})=>{const e=VD(),t=jD(a=>{var i;(i=e.current)==null||i.open(a)},[]),n=(a,i)=>{r.setFieldValue(["columns",i],a)};return A.jsxs(A.Fragment,{children:[A.jsx(ND.List,{name:["columns"],children:(a,{add:i,remove:o,move:l})=>A.jsx(A.Fragment,{children:a.map(({key:s,name:u})=>A.jsx(BD,{index:u,add:i,remove:o,handleOpen:t,move:l},s))})}),A.jsx(kD,{columnRef:e,update:n})]})}),zD=HD,WD=window.React,GD=window.React.useImperativeHandle,b0=window.React.useState,qD=window.React.memo,Mh=window.antd.Input,YD=window.antd.Modal,rn=window.antd.Form,w0=window.antd.Select,S0=window.antd.Switch,UD=window.antd.Radio,XD=qD(r=>{const[e,t]=b0(!1),[n,a]=b0(0),[i]=rn.useForm(),{selectedElement:o,elementsMap:l,editTableProps:s}=Et(h=>({selectedElement:h.selectedElement,elementsMap:h.page.elementsMap,editTableProps:h.editTableProps}));GD(r.modalRef,()=>({open(h){const d=l[o==null?void 0:o.id];i.setFieldsValue({danger:!1,...d.config.props.bulkActionList[h]}),a(h),t(!0)}}));const u=()=>{i.validateFields().then(()=>{const h=i.getFieldsValue();s({id:o==null?void 0:o.id,type:"bulkActionList",index:n,props:h}),r.update(h,n),t(!1)})},c=()=>{t(!1)},f=xn;return A.jsx(YD,{title:"操作按钮设置",open:e,onOk:u,onCancel:c,width:600,destroyOnClose:!0,children:A.jsxs(rn,{form:i,labelCol:{span:5},wrapperCol:{span:18},children:[A.jsx(rn.Item,{label:"按钮名称",name:"text",rules:[{required:!0,message:"请输入按钮名称"}],children:A.jsx(Mh,{})}),A.jsx(rn.Item,{name:"eventName",hidden:!0,children:A.jsx(Mh,{})}),A.jsx(rn.Item,{label:"按钮类型",name:"type",children:A.jsx(UD.Group,{optionType:"button",buttonStyle:"solid",options:[{label:"主按钮",value:"primary"},{label:"默认",value:"default"},{label:"虚线按钮",value:"dashed"},{label:"文本按钮",value:"text"},{label:"链接按钮",value:"link"}]})}),A.jsx(rn.Item,{label:"危险按钮",name:"danger",valuePropName:"checked",children:A.jsx(S0,{})}),A.jsx(rn.Item,{label:"块状按钮",name:"block",valuePropName:"checked",children:A.jsx(S0,{})}),A.jsx(rn.Item,{label:"按钮图标",name:"icon",children:A.jsx(w0,{placeholder:"请选择菜单图表",showSearch:!0,allowClear:!0,children:Object.keys(xn).filter(h=>!["default","createFromIconfontCN","getTwoToneColor","setTwoToneColor","IconProvider"].includes(h)).map(h=>A.jsx(w0.Option,{value:h,children:WD.createElement(f[h],{style:{fontSize:"24px",verticalAlign:"middle"}})},h))})}),A.jsx(rn.Item,{name:"authCode",label:"权限标识",children:A.jsx(Mh,{})}),A.jsx(rn.Item,{name:"authScript",label:"三方脚本",children:A.jsx(Zu,{})})]})})}),KD=window.React.memo,ZD=window.React.useRef,Us=window.antd.Form,Oh=window.antd.Input,QD=window.antd.Space,JD=window.antd.Button,t_=window.ahooks.useDebounceFn,e_=KD(({form:r})=>{const{selectedElement:e,elementsMap:t,editEvents:n}=Et(f=>({selectedElement:f.selectedElement,elementsMap:f.page.elementsMap,editEvents:f.editEvents})),a=ZD(),i=f=>{f({text:"下载",type:"primary",eventName:fs("BulkAction")}),l()},o=(f,h)=>{f(h),l()},l=()=>{var d,p;const h=(d=t[e==null?void 0:e.id].events)==null?void 0:d.filter(v=>v.value.indexOf("BulkAction")==-1);(p=r.getFieldValue("bulkActionList"))==null||p.map(v=>{h.push({name:v.text+"事件",value:v.eventName})}),n({id:e==null?void 0:e.id,events:h})},s=f=>{var h;(h=a.current)==null||h.open(f)},{run:u}=t_((f,h)=>{c(f,h)},{wait:500}),c=(f,h)=>{typeof f=="string"?r.setFieldValue(["bulkActionList",h,"text"],f):r.setFieldValue(["bulkActionList",h],f);const d=r.getFieldValue(["bulkActionList",h,"eventName"]),p=t[e==null?void 0:e.id],v=HO(p.events);v.map(g=>(g.value===d&&(typeof f=="string"?g.name=f+"事件":g.name=f.text+"事件"),g)),n({id:e==null?void 0:e.id,events:v})};return A.jsxs(A.Fragment,{children:[A.jsx(Us.List,{name:["bulkActionList"],children:(f,{add:h,remove:d})=>A.jsxs(A.Fragment,{children:[f.map(({key:p,name:v,...g})=>A.jsxs(QD,{align:"baseline",children:[A.jsx(Us.Item,{...g,labelCol:{span:12},name:[v,"text"],label:"按钮",children:A.jsx(Oh,{placeholder:"请输入按钮名称",onChange:y=>u(y.target.value,v)})}),A.jsx(Us.Item,{name:[v,"eventName"],hidden:!0,children:A.jsx(Oh,{})}),A.jsx(Us.Item,{name:[v,"type"],hidden:!0,children:A.jsx(Oh,{})}),A.jsx(Nc,{onClick:()=>s(v)}),A.jsx(Si,{onClick:()=>o(d,v)})]},p)),A.jsx("div",{style:{padding:"0 10px 10px"},children:A.jsx(JD,{type:"primary",block:!0,ghost:!0,onClick:()=>i(h),icon:A.jsx(pr,{}),children:"新增"})})]})}),A.jsx(XD,{modalRef:a,update:c})]})}),cg=e_,r_={attrs:[{type:"Title",label:"操作栏"},{type:"function",render(r){return A.jsx(cg,{form:r},"ActionSetting")}},{type:"Title",label:"表格配置"},{type:"Input",label:"标题",name:["leftTitle"]},{type:"Switch",label:"显示边框",name:["bordered"]},{type:"Select",label:"表格尺寸",name:["size"],props:{options:[{label:"默认",value:"large"},{label:"中等",value:"middle"},{label:"紧凑",value:"small"}]}},{type:"Select",label:"单选/多选",name:["selectionType"],props:{options:[{label:"无",value:""},{label:"单选",value:"radio"},{label:"多选",value:"checkbox"}]}},{type:"InputNumber",label:"滚动轴(x)",name:["scroll","x"],tooltip:"如果需要横向滚动,请设置x值,尽量比表格实际宽度大",props:{placeholder:"eg: 1000"}},{type:"InputNumber",label:"滚动轴(y)",name:["scroll","y"],tooltip:"如果需要纵向滚动,请设置y值来固定高度",props:{placeholder:"eg: 600"}},{type:"Select",label:"空值显示",name:["empty"],tooltip:"列返回空时,展示的内容",props:{options:[{label:"无",value:""},{label:"-",value:"-"},{label:"/",value:"/"}]}},{type:"Title",label:"列配置",key:"columnConfig"},{type:"Input",label:"rowKey",name:["rowKey"],tooltip:"建议把列表返回的唯一值设置为rowKey",props:{placeholder:"eg: id"}},{type:"function",key:"TableSetting",render(r){return A.jsx(zD,{form:r},"TableSetting")}},{type:"Title",label:"分页配置",key:"pageConfig"},{type:"Switch",label:"隐藏分页",name:["hidePager"]},{type:"Select",label:"显示位置",name:["pagination","position"],props:{mode:"multiple",options:[{label:"左上",value:"topLeft"},{label:"右上",value:"topRight"},{label:"左下",value:"bottomLeft"},{label:"右下",value:"bottomRight"}]}},{type:"InputNumber",label:"每页条数",name:["pagination","pageSize"]},{type:"Switch",label:"显示总条数",name:["pagination","showTotal"]},{type:"Switch",label:"显示切换器",name:["pagination","showSizeChanger"]},{type:"Switch",label:"显示跳转",name:["pagination","showQuickJumper"]},{type:"Title",label:"字段映射",key:"fieldmap"},{type:"Input",label:"页码",name:["field","pageNum"]},{type:"Input",label:"每页步长",name:["field","pageSize"]},{type:"Input",label:"总条数",name:["field","total"]}],config:{props:{rowKey:"id",size:"large",bordered:!0,selectionType:"",leftTitle:"查询列表",empty:"-",columns:[{title:"姓名",dataIndex:"name",key:"name",width:90,align:"center"},{title:"种类",dataIndex:"type",key:"type",width:80,align:"center"},{title:"头像",dataIndex:"avatar",key:"avatar",type:"image",width:90,align:"center"},{title:"分布区域",dataIndex:"area",key:"area",width:230},{title:"繁殖周期",dataIndex:"time",key:"time",render:`function render(text,record){ + return text + "个月" +}`,width:110},{title:"技能",dataIndex:"skill",key:"skill",type:"tag",width:200,align:"center"},{title:"售价",dataIndex:"sales",key:"sales",type:"money",width:90,align:"center"},{title:"状态",dataIndex:"status",key:"status",type:"status",width:90,align:"center",render:`function render(text,record){ + return { + status: "processing", + text: text + } +}`},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",type:"date1",width:130,align:"center"},{title:"操作",key:"action",type:"action",dataIndex:"action",fixed:"right",width:220,align:"center",list:[{text:"详情",type:"link",eventName:"DynamicDetail"},{text:"编辑",type:"link",eventName:"DynamicEdit"},{text:"删除",type:"link",danger:!0,eventName:"DynamicDelete"}]}],hidePager:!1,pagination:{total:0,pageSize:10,showSizeChanger:!0,showQuickJumper:!0,position:["bottomRight"],pageSizeOptions:[10,20,50,100],showTotal:!0},field:{pageNum:"pageNum",pageSize:"pageSize",total:"total"}},style:{background:"#fff",padding:"0 20px",margin:"20px 0 0",border:"1px solid #e6e6e6",borderRadius:"3px"},events:[],api:{sourceType:"json",sourceField:"list",source:[{id:1001,name:"萤火虫",type:"昆虫",avatar:"https://marsview.cdn.bcebos.com/s1.png",time:10,skill:["飞","发光","御敌"],sales:9.9,status:"在售",createdAt:new Date().getTime(),area:"热带、亚热带和温带地区"}]}},events:[{value:"onCheckedChange",name:"单选/多选事件"},{value:"DynamicDetail",name:"点击查看事件"},{value:"DynamicEdit",name:"点击编辑事件"},{value:"DynamicDelete",name:"点击删除事件"}],methods:[{name:"search",title:"搜索"},{name:"reload",title:"刷新"},{name:"clearData",title:"清空列表"},{name:"开始Loading",title:"startLoading"},{name:"结束Loading",title:"stopLoading"},{name:"checkSelectedRow",title:"判断是否选中一条"},{name:"setSelectedRowKeys",title:"设置默认选中的Keys"},{name:"getSelectedRowKeys",title:"获取选中的Keys"},{name:"getSelectedRow",title:"获取选中的行数据"}]},n_=window.React.createContext,pe=n_(null),a_="_formWrap_sjtf9_1",i_="_searchBox_sjtf9_8",o_="_action_sjtf9_11",l_="_toggleAll_sjtf9_15",C0={formWrap:a_,searchBox:i_,action:o_,toggleAll:l_},s_=window.React,u_=window.React.forwardRef,c_=window.React.useEffect,f_=window.React.useImperativeHandle,h_=window.React.useRef,Fh=window.React.useState,Xs=window.antd.Button,A0=window.antd.Form,d_=window.antd.Space,p_=({id:r,type:e,config:t,elements:n,onSearch:a,onChange:i,onReset:o},l)=>{var L;const[s]=A0.useForm(),u=h_(null),[c,f]=Fh(!1),[h,d]=Fh(!1),[p,v]=Fh(!0),{addChildElements:g,updateToolbar:y,formData:m,setFormData:b}=Et(N=>({addChildElements:N.addChildElements,updateToolbar:N.updateToolbar,formData:N.page.formData,setFormData:N.setFormData}));c_(()=>{setTimeout(()=>{var N;((N=u.current)==null?void 0:N.offsetTop)>=32&&n.length>0?d(!0):d(!1)},500)},[n]);const[,x]=xr({accept:"MENU_ITEM",drop(N,R){if(R.didDrop())return;const{config:D,events:W,methods:V=[]}=mr[N.type+"Config"]||{};g({type:N.type,name:N.name,parentId:r,id:N.id,config:D,events:W,methods:V})},collect:N=>({isOver:N.isOver(),canDrop:N.canDrop()})}),w=()=>{const N=s.getFieldsValue();a&&a(oa(n,N))},S=()=>{s.resetFields();const N=s.getFieldsValue();o&&o(oa(n,N))},C=(N,R)=>{const D=oa(n,R);i==null||i(D),b({name:r,value:D})};f_(l,()=>({show(){v(!0)},hide(){v(!1)},reset(){s.resetFields()},submit(){s.submit()},init(N={}){const R=oa(n,N);s.setFieldsValue(R),b({name:r,value:R})},getFormData(N){var R;return N&&typeof N=="string"?(R=m[r])==null?void 0:R[N]:m[r]}}));const T=N=>{const R=s.getFieldsValue(),D=oa(n,R),W=t.events.find(V=>V.eventName===N);di(W==null?void 0:W.actions,D)},F=()=>{f(!c),y()},{submitText:I,resetText:M}=t.props.form||{},O=t.props.bulkActionList||[],k=xn;return p&&A.jsx(pe.Provider,{value:s,children:A.jsxs(A0,{form:s,layout:"inline",style:t.style,"data-id":r,"data-type":e,onValuesChange:C,children:[A.jsxs("div",{className:C0.formWrap,ref:x,style:c?{}:{height:32,overflow:"hidden"},children:[n.length?A.jsx(br,{elements:n}):A.jsx("div",{className:"slots",children:"拖拽表单组件到这里"}),A.jsx("div",{ref:u})]}),A.jsxs(d_,{style:{alignItems:"baseline"},children:[I?A.jsx(Xs,{type:"primary",icon:A.jsx(YO,{}),onClick:w,children:I}):null,M?A.jsx(Xs,{type:"default",icon:A.jsx(UO,{}),onClick:S,children:M}):null,O.length>0&&A.jsx("div",{className:C0.action,children:(L=t.props.bulkActionList)==null?void 0:L.map((N,R)=>A.jsx(Xs,{type:N.type,danger:N.danger,icon:N.icon?s_.createElement(k[N.icon]):null,onClick:()=>T(N.eventName),children:N.text},`bulkAction${R}`))}),h&&A.jsx(Xs,{type:"link",icon:c?A.jsx(XO,{}):A.jsx(zO,{}),onClick:F,children:c?"收起":"展开"})]})]})})},v_=u_(p_),g_={attrs:[{type:"Title",label:"操作栏"},{type:"function",render(r){return A.jsx(cg,{form:r},"ActionSetting")}},{type:"Title",label:"按钮配置"},{type:"Input",label:"查询文本",name:["form","submitText"]},{type:"Input",label:"重置文本",name:["form","resetText"]}],config:{props:{form:{submitText:"查询",resetText:"重置"}},style:{background:"#fff",padding:"20px 10px",border:"1px solid #e6e6e6",borderRadius:"3px"},events:[],api:{}},events:[{value:"onSearch",name:"查询事件"},{value:"onReset",name:"重置事件"},{value:"onChange",name:"值变化事件"}],methods:[{name:"reset",title:"表单重置"},{name:"submit",title:"表单提交"},{name:"init",title:"表单初始化"},{name:"getFormData",title:"获取表单数据"}]},y_=window.antd.Flex,m_=window.React.forwardRef,x_=window.React.useImperativeHandle,b_=window.React.useState,w_=({id:r,type:e,config:t,elements:n},a)=>{const i=Et(u=>u.addChildElements),[o,l]=b_(!0),[,s]=xr({accept:"MENU_ITEM",drop(u,c){if(c.didDrop())return;const{config:f,events:h,methods:d=[]}=mr[u.type+"Config"]||{};i({type:u.type,name:u.name,parentId:r,id:u.id,config:f,events:h,methods:d})},collect:u=>({isOver:u.isOver(),canDrop:u.canDrop()})});return x_(a,()=>({show(){l(!0)},hide(){l(!1)}})),o&&A.jsx(y_,{style:t.style,...t.props,"data-id":r,"data-type":e,ref:s,children:n!=null&&n.length?A.jsx(br,{elements:n||[]}):A.jsx("div",{className:"slots",style:{lineHeight:"200px"},children:"拖拽组件到这里"})})},S_=m_(w_),C_={attrs:[{type:"Title",label:"基础配置",key:"basic"},{type:"Switch",label:"垂直布局",name:"vertical"},{type:"Select",label:"换行方式",name:"wrap",props:{options:[{value:"nowrap",label:"不换行"},{value:"wrap",label:"换行"},{value:"wrap-reverse",label:"逆换行"}]}},{type:"Select",label:"主轴对齐",name:"justify",props:{options:[{value:"flex-start",label:"左对齐"},{value:"flex-end",label:"右对齐"},{value:"center",label:"居中对齐"},{value:"space-between",label:"两端对齐"},{value:"space-around",label:"环绕对齐"},{value:"space-evenly",label:"均匀对齐"}]}},{type:"Select",label:"副轴对齐",name:"align",props:{options:[{value:"start",label:"起点对齐"},{value:"end",label:"终点对齐"},{value:"center",label:"居中对齐"},{value:"baseline",label:"文字基线对齐"},{value:"stretch",label:"拉伸对齐"}]}},{type:"Input",label:"元素间隙",name:"gap",props:{placeholder:"eg: 10px"}}],config:{props:{vertical:!1,wrap:"nowrap",justify:"center",align:"center",gap:20},style:{padding:"20px"},events:[],api:{},source:""},events:[]},E0=window.antd.Form,A_=window.React.forwardRef,E_=window.React.memo,T_=window.React.useImperativeHandle,I_=window.React.useState,M_=({id:r,type:e,config:t,elements:n,onFinish:a,onChange:i},o)=>{const[l]=E0.useForm(),{addChildElements:s,formData:u,setFormData:c}=Et(JS(g=>({addChildElements:g.addChildElements,formData:g.page.formData,setFormData:g.setFormData}))),[f,h]=I_(!0),[,d]=xr({accept:"MENU_ITEM",drop(g,y){if(y.didDrop())return;const{config:m,events:b,methods:x=[]}=mr[g.type+"Config"]||{};s({type:g.type,name:g.name,parentId:r,id:g.id,config:m,events:b,methods:x})},collect:g=>({isOver:g.isOver(),canDrop:g.canDrop()})}),p=g=>{a==null||a(oa(n,g))},v=(g,y)=>{const m=oa(n,y);i==null||i(m),c({name:r,value:m})};return T_(o,()=>({show(){h(!0)},hide(){h(!1)},reset(){l.resetFields()},submit(){l.submit()},async validate(){try{return await l.validateFields(),!0}catch(g){return console.error(g),!1}},init(g={}){const y=oa(n,g);l.setFieldsValue(y),c({name:r,value:y})},getFormData(g){var y;return g&&typeof g=="string"?(y=u[r])==null?void 0:y[g]:u[r]}})),f&&A.jsx(pe.Provider,{value:l,children:A.jsx("div",{ref:d,children:A.jsx(E0,{form:l,style:t.style,...t.props,"data-id":r,"data-type":e,onFinish:p,onValuesChange:v,children:n.length?A.jsx(br,{elements:n}):A.jsx("div",{className:"slots",style:{lineHeight:"150px"},children:"拖拽表单组件到这里"})})})})},O_=E_(A_(M_)),F_={attrs:[{type:"Title",label:"基础配置",key:"basic"},{type:"Input",label:"字段",name:"name",props:{placeholder:"表单字段(默认可空)"}},{type:"Switch",label:"显示冒号",name:"colon"},{type:"Select",label:"标签对齐",name:"labelAlign",props:{options:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}},{type:"Switch",label:"禁用",name:["disabled"]},{type:"Select",label:"表单尺寸",name:"size",props:{options:[{label:"小号",value:"small"},{label:"中号",value:"middle"},{label:"大号",value:"large"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"Select",label:"表单布局",name:"layout",props:{options:[{label:"水平布局",value:"horizontal"},{label:"垂直布局",value:"vertical"},{label:"行内布局",value:"inline"}]}},{type:"InputNumber",label:"标签布局",name:["labelCol","span"],props:{placeholder:"栅栏数"}},{type:"InputNumber",label:"标签偏移",name:["labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["wrapperCol","span"],props:{placeholder:"栅栏数"}},{type:"InputNumber",label:"控件偏移",name:["wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"其他配置",key:"OtherConfig"},{type:"Switch",label:"报错聚焦",name:"scrollToFirstError"},{type:"Select",label:"表单形态",name:"variant",props:{options:[{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}}],config:{props:{colon:!0,labelAlign:"right",layout:"horizontal"},style:{padding:"20px 10px",backgroundColor:"#fff"},events:[],api:{}},events:[{value:"onReset",name:"重置事件"},{value:"onChange",name:"表单变化事件"},{value:"onFinish",name:"表单提交事件"}],methods:[{name:"reset",title:"表单重置"},{name:"submit",title:"表单提交"},{name:"validate",title:"表单校验"},{name:"init",title:"表单初始化"},{name:"getFormData",title:"获取表单数据"}]},k_=window.antd.Button,T0=window.antd.Card,P_=window.React.forwardRef,R_=window.React.useImperativeHandle,L_=window.React.useState,D_=({id:r,type:e,config:t,elements:n,onClick:a},i)=>{var f,h;const o=Et(d=>d.addChildElements),[l,s]=L_(!0),[,u]=xr({accept:"MENU_ITEM",drop(d,p){if(p.didDrop())return;const{config:v,events:g,methods:y=[]}=mr[d.type+"Config"]||{};o({type:d.type,name:d.name,parentId:r,id:d.id,config:v,events:g,methods:y})},collect:d=>({isOver:d.isOver(),canDrop:d.canDrop()})});R_(i,()=>({show(){s(!0)},hide(){s(!1)}}));const c=()=>{a&&a()};return l&&A.jsxs(T0,{style:t.style,...t.props,"data-id":r,"data-type":e,cover:A.jsx("img",{src:t.props.cover}),extra:(f=t.props.extra)!=null&&f.text?A.jsx(k_,{...t.props.extra,onClick:c,children:(h=t.props.extra)==null?void 0:h.text}):null,ref:u,children:[A.jsx(T0.Meta,{...t.props.meta}),n!=null&&n.length?A.jsx(br,{elements:n||[]}):A.jsx("div",{className:"slots",style:{lineHeight:"100px"},children:"拖拽组件到这里"})]})},__=P_(D_),B_={attrs:[{type:"Title",label:"基础配置",key:"basic"},{type:"Variable",label:"标题",name:"title"},{type:"Switch",label:"悬浮效果",name:"hoverable"},{type:"Switch",label:"显示边框",name:"bordered"},{type:"Select",label:"卡片尺寸",name:"size",props:{options:[{label:"默认",value:"default"},{label:"小",value:"small"}]}},{type:"Title",label:"按钮配置(右上角)",key:"btnConfig"},{type:"Input",label:"按钮名称",name:["extra","text"]},{type:"Select",label:"按钮类型",name:["extra","type"],props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"幽灵",value:"ghost"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{type:"Switch",label:"显示危险",name:["extra","danger"]},{type:"Title",label:"封面配置",key:"coverConfig"},{type:"Input",label:"图片地址",name:"cover"},{type:"Title",label:"Meta配置",key:"metaConfig"},{type:"Input",label:"标题",name:["meta","title"]},{type:"Input",label:"描述",name:["meta","description"]}],config:{props:{title:{type:"static",value:"Mars搭建"},size:"default",bordered:!0,extra:{text:"更多",type:"link"},meta:{title:"零代码搭建平台",description:"全栈自研、零代码搭建、逻辑编排、权限控制"}},style:{}},events:[{value:"onClick",name:"点击更多事件"}]},N_=window.React.forwardRef,$_=window.React.useImperativeHandle,j_=window.React.useState,V_=({id:r,type:e,config:t,elements:n},a)=>{const i=Et(u=>u.addChildElements),[o,l]=j_(!0),[,s]=xr({accept:"MENU_ITEM",drop(u,c){if(c.didDrop())return;const{config:f,events:h,methods:d=[]}=mr[u.type+"Config"]||{};i({type:u.type,name:u.name,parentId:r,id:u.id,config:f,events:h,methods:d})},collect:u=>({isOver:u.isOver(),canDrop:u.canDrop()})});return $_(a,()=>({show(){l(!0)},hide(){l(!1)}})),o&&A.jsx("div",{style:t.style,...t.props,"data-id":r,"data-type":e,ref:s,children:n!=null&&n.length?A.jsx(br,{elements:n||[]}):A.jsx("div",{className:"slots",style:{height:100,lineHeight:"100px"},children:"拖拽组件到这里"})})},H_=N_(V_),z_={attrs:[],config:{props:{},style:{padding:"20px"},events:[],api:{},source:""},events:[]},W_=window.antd.Form,G_=window.antd.Input,q_=window.React.forwardRef,Y_=window.React.useContext,I0=window.React.useEffect,U_=window.React.useImperativeHandle,M0=window.React.useState,X_=({id:r,type:e,config:t,onChange:n,onBlur:a},i)=>{const o=Y_(pe),[l,s]=M0(!0),[u,c]=M0(!1);I0(()=>{var v;const d=(v=t.props.formItem)==null?void 0:v.name,p=t.props.defaultValue;d&&!fe(p)&&(o==null||o.setFieldValue(d,p))},[t.props.defaultValue]),I0(()=>{c(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]);const f=d=>{n==null||n({[t.props.formItem.name]:d})},h=d=>{a==null||a({[t.props.formItem.name]:d})};return U_(i,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)}})),l&&A.jsx(W_.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(G_,{...t.props.formWrap,disabled:u,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:d=>f(d.target.value),onBlur:d=>h(d.target.value)})})},K_=q_(X_),Z_=window.React.memo,Q_=window.antd.Dropdown,Na=window.antd.Form,O0=window.antd.Input,F0=window.antd.InputNumber,J_=window.antd.Switch,tB=Z_(({form:r,labelSpan:e})=>{const t=[{key:"required",label:"必填校验"},{key:"length",label:"长度校验"},{key:"phone",label:"手机号校验"},{key:"email",label:"邮箱校验"},{key:"idCard",label:"身份证号码校验"},{key:"site",label:"网址校验"},{key:"word",label:"纯字母校验"},{key:"number",label:"纯数字校验"},{key:"chinese",label:"纯中文校验"},{key:"wordAndNumber",label:"字母和数字校验"},{key:"numberMoney",label:"金额校验(无小数)"},{key:"floatMoney",label:"金额校验(两位小数)"},{key:"pattern",label:"自定义正则"}];return A.jsx(A.Fragment,{children:A.jsx(Na.List,{name:["formItem","rules"],children:(n,{add:a,remove:i})=>A.jsxs(A.Fragment,{children:[n.map(({key:o,name:l})=>A.jsx(Na.Item,{noStyle:!0,children:A.jsxs("div",{style:{position:"relative",backgroundColor:"#f5f5f5",paddingBlock:10,marginBottom:10},children:[r.getFieldValue(["formItem","rules",l,"required"])&&A.jsx(Na.Item,{labelCol:{span:e||8},wrapperCol:{span:10},name:[l,"required"],label:"必填规则",children:A.jsx(J_,{})}),r.getFieldValue(["formItem","rules",l,"min"])&&A.jsxs(A.Fragment,{children:[A.jsx(Na.Item,{labelCol:{span:e||8},wrapperCol:{span:14},name:[l,"min"],label:"最小长度",children:A.jsx(F0,{placeholder:"最小长度"})}),A.jsx(Na.Item,{labelCol:{span:e||8},wrapperCol:{span:14},name:[l,"max"],label:"最大长度",children:A.jsx(F0,{placeholder:"最大长度"})})]}),r.getFieldValue(["formItem","rules",l,"key"])&&A.jsx(Na.Item,{labelCol:{span:e||8},wrapperCol:{span:14},name:[l,"pattern"],label:"校验规则",children:A.jsx(O0,{placeholder:"eg: ^[0-9]+$"})}),A.jsx(Na.Item,{labelCol:{span:e||8},wrapperCol:{span:14},name:[l,"message"],label:"错误提示",children:A.jsx(O0,{placeholder:"错误提示",style:{width:"100%"}})}),A.jsx(SS,{onClick:()=>i(l),style:{position:"absolute",top:10,right:8,color:"red"}})]})},"rules"+o)),A.jsx(Q_,{menu:{items:t,onClick:({key:o})=>{o==="required"?a({required:!0,message:"请输入内容"},n.length):o==="length"?a({min:1,max:20,message:"最小长度为1,最大长度为20"},n.length):o==="phone"?a({key:"phone",pattern:"^1[3456789]\\d{9}$",message:"请输入正确的手机号"},n.length):o==="email"?a({key:"email",pattern:"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+\\.[a-zA-Z0-9_-]+$",message:"请输入正确的邮箱"},n.length):o==="idCard"?a({key:"idCard",pattern:"^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$",message:"请输入正确的身份证号码"},n.length):o==="site"?a({key:"site",pattern:"^https?:\\/\\/.*(\\.).*$",message:"请输入正确的网址"},n.length):o==="word"?a({key:"word",pattern:"^[a-zA-Z]+$",message:"只能输入英文单词"},n.length):o==="number"?a({key:"number",pattern:"^[0-9]+$",message:"只能输入数字"},n.length):o==="chinese"?a({key:"chinese",pattern:"^[一-龥]+$",message:"只能输入中文"},n.length):o==="wordAndNumber"?a({key:"wordAndNumber",pattern:"^[a-zA-Z0-9]+$",message:"只能输入英文和数字"},n.length):o==="numberMoney"?a({key:"numberMoney",pattern:"^(0|[1-9]\\d+)$",message:"请输入正整数"},n.length):o==="floatMoney"?a({key:"floatMoney",pattern:"^(0|[1-9]\\d+(\\.\\d{2})?)$",message:"请输入正确的金额,保留2位小数"},n.length):o==="pattern"&&a({key:"pattern",pattern:"",message:"请输入"},n.length)}},children:A.jsxs("a",{onClick:o=>o.preventDefault(),style:{display:"block",textAlign:"center"},children:[A.jsx(pr,{})," 添加规则"]})})]})})})}),je=tB,eB={attrs:[{type:"Title",label:"标签配置",key:"formItem"},{type:"Input",label:"标题",name:["formItem","label"],props:{placeholder:"请输入文本标题"}},{type:"Input",label:"字段",name:["formItem","name"],props:{placeholder:"请输入提交字段"}},{type:"Variable",label:"默认值",name:["defaultValue"],props:{placeholder:"请输入默认值"}},{type:"Switch",label:"隐藏域",name:["formItem","hidden"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息",props:{placeholder:"默认提示文案"}},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息",props:{placeholder:"提示信息"}},{type:"Title",label:"表单配置",key:"formWrap"},{type:"Input",label:"占位提示",name:["formWrap","placeholder"],props:{placeholder:"默认提示"}},{type:"InputNumber",label:"最大长度",name:["formWrap","maxLength"],props:{placeholder:"长度限制"}},{type:"Switch",label:"显示删除",name:["formWrap","allowClear"]},{type:"Switch",label:"显示字数",name:["formWrap","showCount"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"输入框",name:"input"},formWrap:{placeholder:"请输入文本",allowClear:!0},defaultValue:""},style:{}},events:[{value:"onChange",name:"onChange事件"},{value:"onBlur",name:"onBlur事件"}]},rB=window.antd.Form,nB=window.antd.Input,k0=window.React.useEffect,aB=window.React.useContext,P0=window.React.useState,iB=window.React.useImperativeHandle,oB=window.React.forwardRef,lB=({id:r,type:e,config:t,onChange:n},a)=>{const i=aB(pe),[o,l]=P0(!0),[s,u]=P0(!1);k0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;f&&!fe(h)&&(i==null||i.setFieldValue(f,h))},[t.props.defaultValue]),k0(()=>{u(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),iB(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{n&&n({[t.props.formItem.name]:f})};return o&&A.jsx(rB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(nB.TextArea,{...t.props.formWrap,disabled:s,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:f=>c(f.target.value)})})},sB=oB(lB),uB={attrs:[{type:"Title",label:"标签配置"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置"},{type:"InputNumber",label:"最大长度",name:["formWrap","maxLength"]},{type:"Switch",label:"显示删除",name:["formWrap","allowClear"]},{type:"Switch",label:"自动适应",name:["formWrap","autoSize"]},{type:"Switch",label:"显示字数",name:["formWrap","showCount"]},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"多行输入框",name:"textarea"},formWrap:{placeholder:"请输入内容",allowClear:!0}},style:{}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},cB=window.antd.Form,fB=window.antd.InputNumber,R0=window.React.useEffect,hB=window.React.useContext,L0=window.React.useState,dB=window.React.useImperativeHandle,pB=window.React.forwardRef,vB=({id:r,type:e,config:t,onChange:n},a)=>{const i=hB(pe),[o,l]=L0(!0),[s,u]=L0(!1);R0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;f&&!fe(h)&&(i==null||i.setFieldValue(f,Number(h)))},[t.props.defaultValue]),R0(()=>{u(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),dB(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{n==null||n({[t.props.formItem.name]:f||""})};return o&&A.jsx(cB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(fB,{...t.props.formWrap,disabled:s,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:c})})},gB=pB(vB),yB={attrs:[{type:"Title",label:"标签配置"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置"},{type:"Input",label:"占位提示",name:["formWrap","placeholder"]},{type:"InputNumber",label:"最大长度",name:["formWrap","maxLength"]},{type:"InputNumber",label:"最小长度",name:["formWrap","minLength"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"数字框",name:"number"},formWrap:{placeholder:"请输入数字框"}},style:{}},events:[{value:"onChange",name:"onChange事件"}]},mB=window.antd.Form,xB=window.antd.DatePicker,D0=window.React.useEffect,bB=window.React.useContext,_0=window.React.useState,wB=window.React.useImperativeHandle,SB=window.React.forwardRef,CB=({id:r,type:e,config:t,onChange:n},a)=>{const i=bB(pe),[o,l]=_0(!0),[s,u]=_0(!1);D0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;if(f&&!fe(h)){const p=tF(h);i==null||i.setFieldValue(f,p)}},[t.props.defaultValue]),D0(()=>{u(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),wB(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{n==null||n({[t.props.formItem.name]:f.format(t.props.formWrap.format)})};return o&&A.jsx(mB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(xB,{...t.props.formWrap,disabled:s,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:c})})},AB=SB(CB),EB={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Select",label:"默认值",name:["defaultValue"],props:{allowClear:!0,options:[{value:"today",label:"今天"},{value:"yestoday",label:"昨天"},{value:"last7",label:"一周前"},{value:"last30",label:"一个月前"},{value:"last90",label:"三个月前"}]}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Select",label:"日期类型",name:["formWrap","picker"],props:{options:[{value:"date",label:"日期"},{value:"year",label:"年份"},{value:"quarter",label:"季度"},{value:"month",label:"月份"},{value:"week",label:"周"},{value:"time",label:"时间"}]}},{type:"Select",label:"日期格式",name:["formWrap","format"],props:{options:[{value:"YYYY-MM-DD",label:"年-月-日"},{value:"YYYY-MM-DD HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"YYYY",label:"年"},{value:"YYYY-MM",label:"年-月"},{value:"YYYY-qQ",label:"季度"},{value:"YYYY-wo",label:"周"},{value:"HH:mm:ss",label:"24时制 时:分:秒"},{value:"hh:mm:ss",label:"12时制 时:分:秒"},{value:"h:mm A",label:"时:分 上/下午"}]}},{type:"Switch",label:"快捷日期",name:["formWrap","showNow"]},{type:"Switch",label:"显示时间",name:["formWrap","showTime"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Switch",label:"显示清除",name:["formWrap","allowClear"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"日期",name:"datepicker"},formWrap:{placeholder:"请选择",allowClear:!0,showNow:!0,picker:"date",format:"YYYY-MM-DD"}},style:{}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},TB=window.antd.Form,IB=window.antd.DatePicker,B0=window.React.useEffect,MB=window.React.useContext,N0=window.React.useState,OB=window.React.useImperativeHandle,FB=window.React.forwardRef,kB=({id:r,type:e,config:t,onChange:n},a)=>{const{RangePicker:i}=IB,o=MB(pe),[l,s]=N0(!0),[u,c]=N0(!1);B0(()=>{var p;const h=(p=t.props.formItem)==null?void 0:p.name,d=t.props.defaultValue;if(h&&!fe(d)){const v=eF(d);o==null||o.setFieldValue(h,v)}},[t.props.defaultValue]),B0(()=>{c(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),OB(a,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)}}));const f=h=>{const d={},{startField:p,endField:v,formItem:{name:g},formWrap:{format:y}}=t.props,[m,b]=(h==null?void 0:h.map(x=>x==null?void 0:x.format(y)))||[void 0,void 0];p&&v?(d[p]=m,d[v]=b,delete d[g]):d[g]=[m,b],n==null||n(d)};return l&&A.jsx(TB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(i,{...t.props.formWrap,disabled:u,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:f})})},PB=FB(kB),RB={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Select",label:"默认值",name:["defaultValue"],props:{allowClear:!0,options:[{value:"today",label:"今天"},{value:"curWeek",label:"本周"},{value:"curMonth",label:"本月"},{value:"curQuarter",label:"本季度"},{value:"curYear",label:"本年"},{value:"yestoday",label:"昨天"},{value:"lastWeek",label:"最近一周"},{value:"lastMonth",label:"最近一月"},{value:"last3Month",label:"最近三月"},{value:"lastYear",label:"最近一年"}]}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"字段分解",key:"FieldExport"},{type:"Input",label:"开始字段",name:["startField"],tooltip:"实际开发中,接口需要独立的开始日期字段,并不需要数组结构",props:{placeholder:"请输入开始字段"}},{type:"Input",label:"结束字段",name:["endField"],tooltip:"实际开发中,接口需要独立的结束日期字段,并不需要数组结构",props:{placeholder:"请输入结束字段"}},{type:"Title",label:"表单配置",key:"title2"},{type:"Select",label:"日期类型",name:["formWrap","picker"],props:{options:[{value:"date",label:"日期"},{value:"year",label:"年份"},{value:"quarter",label:"季度"},{value:"month",label:"月份"},{value:"week",label:"周"},{value:"time",label:"时间"}]}},{type:"Select",label:"日期格式",name:["formWrap","format"],props:{options:[{value:"YYYY-MM-DD",label:"年-月-日"},{value:"YYYY-MM-DD HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"YYYY",label:"年"},{value:"YYYY-MM",label:"年-月"},{value:"YYYY-qQ",label:"季度"},{value:"YYYY-wo",label:"周"},{value:"HH:mm:ss",label:"24时制 时:分:秒"},{value:"hh:mm:ss",label:"12时制 时:分:秒"},{value:"h:mm A",label:"时:分 上/下午"}]}},{type:"Switch",label:"快捷日期",name:["formWrap","showNow"]},{type:"Switch",label:"显示时间",name:["formWrap","showTime"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Switch",label:"显示清除",name:["formWrap","allowClear"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"日期",name:"datepickerrange"},formWrap:{placeholder:["开始日期","结束日期"],allowClear:!0,picker:"date",format:"YYYY-MM-DD"}},style:{}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},LB=window.antd.Form,DB=window.antd.Radio,_B=window.React.forwardRef,BB=window.React.useContext,kh=window.React.useEffect,NB=window.React.useImperativeHandle,Ph=window.React.useState,$B=({id:r,type:e,config:t,onChange:n},a)=>{var v;const[i,o]=Ph([]),[l,s]=Ph(!0),[u,c]=Ph(!1),f=BB(pe),h=Et(g=>g.page.variableData);kh(()=>{var m;const g=(m=t.props.formItem)==null?void 0:m.name,y=t.props.defaultValue;g&&!fe(y)&&(f==null||f.setFieldValue(g,y))},[t.props.defaultValue]),kh(()=>{c(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),kh(()=>{d({})},[t.api,((v=t.api)==null?void 0:v.sourceType)=="variable"?h:""]);const d=g=>{Fe(t.api,g).then(y=>{if((y==null?void 0:y.ret)===0)if(!Array.isArray(y.data))console.error("[radio]","data数据格式错误,请检查"),o([]);else{let m=[];t.props.field.label==="label"&&t.props.field.value==="value"?(m=y.data,(typeof y.data[0]=="string"||typeof y.data[0]=="number")&&(m=y.data.map(b=>({label:b,value:b})))):m=y.data.map(b=>{const x=b[t.props.field.label||"label"],w=b[t.props.field.value||"value"];return{label:Xr(x)?x:"-",value:Xr(w)?w:""}}),o(m)}})};NB(a,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)},update:g=>{d(g)}}));const p=g=>{n==null||n({[t.props.formItem.name]:g})};return l&&A.jsx(LB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(DB.Group,{...t.props.formWrap,disabled:u,options:i,style:t.style,onChange:g=>p(g.target.value)})})},jB=_B($B),VB={attrs:[{type:"Title",label:"标签配置",key:"title"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Select",label:"按钮类型",name:["formWrap","optionType"],props:{options:[{value:"default",label:"默认"},{value:"button",label:"按钮"}]}},{type:"Select",label:"按钮样式",name:["formWrap","buttonStyle"],tooltip:"指定按钮类型为按钮后,才会生效",props:{options:[{value:"outline",label:"虚线"},{value:"solid",label:"实线"}]}},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"字段映射",key:"fieldMap"},{type:"Input",label:"label",name:["field","label"]},{type:"Input",label:"value",name:["field","value"]},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"单选",name:"radio"},formWrap:{optionType:"default",buttonStyle:"solid"},field:{label:"label",value:"value"}},style:{},api:{sourceType:"json",source:[{label:"选项1",value:1},{label:"选项2",value:2}]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},HB=window.antd.Form,zB=window.antd.Select,WB=window.React.forwardRef,GB=window.React.useContext,Rh=window.React.useEffect,qB=window.React.useImperativeHandle,Lh=window.React.useState,YB=({id:r,type:e,config:t,onChange:n},a)=>{var v;const i=GB(pe),[o,l]=Lh([]),[s,u]=Lh(!0),[c,f]=Lh(!1),h=Et(g=>g.page.variableData);Rh(()=>{var m;const g=(m=t.props.formItem)==null?void 0:m.name,y=t.props.defaultValue;g&&!fe(y)&&(i==null||i.setFieldValue(g,y))},[t.props.defaultValue]),Rh(()=>{f(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),Rh(()=>{d({})},[t.api,((v=t.api)==null?void 0:v.sourceType)=="variable"?h:""]);const d=g=>{Fe(t.api,g).then(y=>{if((y==null?void 0:y.ret)===0)if(!Array.isArray(y.data))console.error("[select]","data数据格式错误,请检查"),l([]);else{let m=[];t.props.field.label==="label"&&t.props.field.value==="value"?(m=y.data,(typeof y.data[0]=="string"||typeof y.data[0]=="number")&&(m=y.data.map(b=>({label:b,value:b})))):m=y.data.map(b=>{const x=b[t.props.field.label||"label"],w=b[t.props.field.value||"value"];return{label:Xr(x)?x:"-",value:Xr(w)?w:""}}),l(m)}})};qB(a,()=>({show(){u(!0)},hide(){u(!1)},enable(){f(!1)},disable(){f(!0)},update:g=>{d(g)}}));const p=g=>{n&&n({[t.props.formItem.name]:g})};return s&&A.jsx(HB.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(zB,{...t.props.formWrap,disabled:c,variant:t.props.formWrap.variant||void 0,options:o,style:t.style,onChange:g=>p(g)})})},UB=WB(YB),XB={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Title",label:"表单配置",key:"title2"},{type:"Switch",label:"支持清除",name:["formWrap","allowClear"]},{type:"Switch",label:"可检索",name:["formWrap","showSearch"]},{type:"Select",label:"选项模式",name:["formWrap","mode"],props:{options:[{value:"",label:"单选模式"},{value:"multiple",label:"多选模式"},{value:"tags",label:"标签模式"}]}},{type:"InputNumber",label:"最大Tag数量",name:["formWrap","maxTagCount"]},{type:"Input",label:"默认提示",name:["formWrap","placeholder"]},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Switch",label:"包含Label",name:["formWrap","labelInValue"],tooltip:"提交时,会把label包装到value中"},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"字段映射",key:"fieldMap"},{type:"Input",label:"label",name:["field","label"]},{type:"Input",label:"value",name:["field","value"]},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"下拉框",name:"select"},formWrap:{placeholder:"请选择数据",allowClear:!0,mode:""},field:{label:"label",value:"value"}},style:{minWidth:120},api:{sourceType:"json",source:[{label:"选项1",value:1},{label:"选项2",value:2}]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},KB=window.antd.Form,ZB=window.antd.Switch,$0=window.React.useEffect,QB=window.React.useContext,j0=window.React.useState,JB=window.React.useImperativeHandle,tN=window.React.forwardRef,eN=({id:r,type:e,config:t,onChange:n},a)=>{const i=QB(pe),[o,l]=j0(!0),[s,u]=j0(!1);$0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;f&&!fe(h)&&(i==null||i.setFieldValue(f,h))},[t.props.defaultValue]),$0(()=>{u(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),JB(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{n&&n({[t.props.formItem.name]:f})};return o&&A.jsx(KB.Item,{...t.props.formItem,"data-id":r,"data-type":e,valuePropName:"checked",children:A.jsx(ZB,{...t.props.formWrap,disabled:s,style:t.style,onChange:c})})},rN=tN(eN),nN={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Switch",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Input",label:"开启文案",name:["formWrap","checkedChildren"]},{type:"Input",label:"关闭文案",name:["formWrap","unCheckedChildren"]},{type:"Switch",label:"加载中",name:["formWrap","loading"]}],config:{props:{formItem:{label:"开关",name:"switch"},formWrap:{}},style:{}},events:[{value:"onChange",name:"onChange事件"}]},aN=window.antd.Form,iN=window.antd.Button,oN=window.antd.Upload,lN=window.React.useEffect,ic=window.React.useState,sN=window.React.useImperativeHandle,uN=window.React.forwardRef,cN=({id:r,type:e,config:t},n)=>{const[a,i]=ic(!0),[o,l]=ic(!1);return sN(n,()=>({show(){i(!0)},hide(){i(!1)},enable(){l(!1)},disable(){l(!0)}})),a&&A.jsx(aN.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(fN,{config:t,disabled:o})})},fN=({config:r,value:e,disabled:t,onChange:n},a)=>{const[i,o]=ic([]),[l,s]=ic(!1);lN(()=>{var d,p;if(typeof e=="string")o([{name:(p=(d=e.split("/").pop())==null?void 0:d.split("."))==null?void 0:p[0],url:e,status:"done"}]);else if(Array.isArray(e))if(r.props.structure==="url"){const v=e.map(g=>({name:g.split("/").pop().split(".")[0],url:g,status:"done"}));o(v)}else o(e);else o([])},[e]);const u=d=>r.props.formWrap.accept.includes(d.type)?d.size>r.props.formWrap.limitSize*1024?(qr.error("图片超出最大限制"),!1):!0:(qr.error("不支持该文件格式,请重新选择"),!1),c=d=>{const p=(i||[]).filter(v=>v.url!==d.url);o(p),r.props.formWrap.maxCount===1?n(null):r.props.structure==="url"?n(p.map(v=>v.url)):n(p)},f=d=>{s(!0)},h=()=>{const{listType:d,maxCount:p}=r.props.formWrap,v=A.jsxs("div",{children:[l?A.jsx(WO,{}):A.jsx(pr,{}),A.jsx("div",{style:{marginTop:8},children:r.props.text})]});return["text","picture"].includes(d)?i.length>=p?null:A.jsx(iN,{icon:A.jsx(KO,{}),children:r.props.text}):i.length>=p?null:v};return A.jsx(oN,{...r.props.formWrap,disabled:t,fileList:i,style:r.style,beforeUpload:u,onRemove:c,customRequest:f,children:h()})},hN=uN(cN),dN={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"上传配置",key:"title2"},{type:"Select",label:"文件类型",name:["formWrap","accept"],props:{mode:"multiple",options:[{value:"image/jpeg",label:"image/jpeg"},{value:"image/png",label:"image/png"},{value:"image/gif",label:"image/gif"},{value:"video/mp4",label:"video/mp4"},{value:"text/csv",label:"text/csv"},{value:"text/html",label:"text/html"},{value:"application/zip",label:"application/zip"},{value:"application/pdf",label:"application/pdf"},{value:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",label:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},{value:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",label:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{value:"application/vnd.openxmlformats-officedocument.presentationml.presentation",label:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}]}},{type:"InputNumber",label:"文件大小",name:["formWrap","limitSize"],props:{placeholder:"单位:K"}},{type:"Select",label:"列表类型",name:["formWrap","listType"],props:{options:[{value:"text",label:"text"},{value:"picture",label:"picture"},{value:"picture-card",label:"picture-card"},{value:"picture-circle",label:"picture-circle"}]}},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"InputNumber",label:"最大个数",name:["formWrap","maxCount"]},{type:"Switch",label:"上传列表",name:["formWrap","showUploadList"]},{type:"Input",label:"显示文本",name:["text"]},{type:"Select",label:"上传结构",name:"structure",props:{options:[{value:"url",label:"文件地址"},{value:"object",label:"文件对象"}]}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"上传",name:"upload"},formWrap:{accept:["image/jpeg","image/png"],listType:"picture-card",maxCount:1,limitSize:1024,showUploadList:!0},text:"Upload",structure:"url"},style:{},events:[],api:{},source:[]},events:[{value:"handleClick",name:"上传事件"}]},pN=window.antd.Form,vN=window.antd.Image,gN=window.React.forwardRef,yN=window.React.useContext,mN=window.React.useEffect,xN=window.React.useImperativeHandle,bN=window.React.useState,V0=window.dayjs,wN=({id:r,type:e,config:t},n)=>{const a=yN(pe),[i,o]=bN(!0);return mN(()=>{var u;const l=(u=t.props.formItem)==null?void 0:u.name,s=t.props.defaultValue;l&&!fe(s)&&(a==null||a.setFieldValue(l,s))},[t.props.defaultValue]),xN(n,()=>({show(){o(!0)},hide(){o(!1)}})),i&&A.jsx(pN.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(SN,{...t.props.formWrap,name:t.props.formItem.name,style:t.style})})},SN=r=>{const e=r.value||"";let t=e;if(fe(e))return A.jsx("span",{style:r.style,children:`\${${r.name}}`});if(r.showType==="text"&&(r.dateType&&(t=V0(e).format(r.dateType)),r.numberType&&(t=pn(e,r.numberType)),e!=null&&e.format&&(t=V0(e).format())),r.script)try{t=new Function("value",`return (${r.script})(value);`)(t)}catch(n){console.error("脚本解析失败",n),qr.error(JSON.stringify(n))}if(t=t==null?void 0:t.toString(),r.showType==="text")return A.jsx("span",{style:r.style,children:t});if(r.showType==="href")return A.jsx("a",{href:t,target:"_blank",style:r.style,children:t});if(r.showType==="image")return A.jsx(vN,{src:t,style:r.style})},CN=gN(wN),Ri=window.antd.Form,Ae=window.antd.Select,AN=window.React.useState,EN=()=>{const[r,e]=AN("text"),t=n=>{e(n)};return A.jsxs(A.Fragment,{children:[A.jsx(Ri.Item,{label:"空值展示",name:["formWrap","emptyType"],children:A.jsxs(Ae,{children:[A.jsx(Ae.Option,{value:"",children:"默认不显示"}),A.jsx(Ae.Option,{value:"-",children:"-"}),A.jsx(Ae.Option,{value:"/",children:"/"}),A.jsx(Ae.Option,{value:"0",children:"0"})]})}),A.jsx(Ri.Item,{label:"展示类型",name:["formWrap","showType"],children:A.jsxs(Ae,{onChange:t,children:[A.jsx(Ae.Option,{value:"text",children:"文本"}),A.jsx(Ae.Option,{value:"href",children:"链接"}),A.jsx(Ae.Option,{value:"image",children:"图片"})]})}),r==="text"&&A.jsxs(A.Fragment,{children:[A.jsx(Ri.Item,{label:"日期格式",name:["formWrap","dateType"],children:A.jsxs(Ae,{children:[A.jsx(Ae.Option,{value:"",children:"无"}),A.jsx(Ae.Option,{value:"YYYY-MM-DD HH:mm:ss",children:"年-月-日 时:分:秒"}),A.jsx(Ae.Option,{value:"YYYY-MM-DD",children:"年-月-日"}),A.jsx(Ae.Option,{value:"HH:mm:ss",children:"时:分:秒"})]})}),A.jsx(Ri.Item,{label:"数字格式",name:["formWrap","numberType"],children:A.jsxs(Ae,{children:[A.jsx(Ae.Option,{value:"",children:"无"}),A.jsx(Ae.Option,{value:"currency",children:"金额千分位"}),A.jsx(Ae.Option,{value:"decimal",children:"数字千分位"}),A.jsx(Ae.Option,{value:"percent",children:"百分比"})]})})]}),A.jsx(Ri.Item,{label:"自定义",tooltip:"通过编程的方式,实现自定义渲染。"}),A.jsx(Ri.Item,{name:["formWrap","script"],noStyle:!0,children:A.jsx(Rl,{})})]})},TN=EN,IN={attrs:[{type:"Title",label:"标签配置",key:"formItem"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"静态项配置",key:"formWrap"},{type:"function",render:r=>(r.setFieldValue(["formWrap","script"],`function render(value){ + return value; +}`),A.jsx(TN,{},"StaticSetting"))}],config:{props:{formItem:{label:"展示文本",name:"label"},formWrap:{emptyType:"-",showType:"text",dateType:"",numberType:"",script:""},defaultValue:""},style:{height:"100px"}},events:[],methods:[{name:"update",title:"更新数据"}]},MN=window.antd.Form,ON=window.React.forwardRef,FN=window.React.useContext,kN=window.React.useEffect,PN=window.React.useImperativeHandle,RN=window.React.useState,LN=({id:r,type:e,config:t,elements:n},a)=>{const i=Et(f=>f.addChildElements),o=FN(pe),[l,s]=RN(!0);kN(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;f&&!fe(h)&&(o==null||o.setFieldValue(f,h))},[t.props.defaultValue]);const[,u]=xr({accept:"MENU_ITEM",drop(f,h){if(h.didDrop())return;const{config:d,events:p,methods:v=[]}=mr[f.type+"Config"]||{};i({type:f.type,name:f.name,parentId:r,id:f.id,config:d,events:p,methods:v})},collect:f=>({isOver:f.isOver(),canDrop:f.canDrop()})});PN(a,()=>({show(){s(!0)},hide(){s(!1)}}));const c=t.props.formItem;return l&&A.jsx(MN.Item,{...c,name:c.name||void 0,"data-id":r,"data-type":e,children:A.jsx("span",{ref:u,style:t.style,children:n!=null&&n.length?A.jsx(br,{elements:n||[]}):A.jsx("div",{className:"slots",style:{height:80,lineHeight:"80px"},children:"拖拽组件到这里"})})})},DN=ON(LN),_N={attrs:[{type:"Title",label:"标签配置",key:"formItem"},{type:"Input",label:"标题",name:["formItem","label"],props:{placeholder:"请输入文本标题"}},{type:"Input",label:"字段",name:["formItem","name"],props:{placeholder:"请输入提交字段"}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}}],config:{props:{formItem:{label:"表单项"},formWrap:{},defaultValue:""},style:{}},events:[]},BN=window.antd.Form,NN=window.antd.Checkbox,$N=window.React.forwardRef,jN=window.React.useContext,Dh=window.React.useEffect,VN=window.React.useImperativeHandle,_h=window.React.useState,HN=({id:r,type:e,config:t,onChange:n},a)=>{var v;const[i,o]=_h([]),[l,s]=_h(!0),[u,c]=_h(!1),f=jN(pe),h=Et(g=>g.page.variableData);Dh(()=>{var m;const g=(m=t.props.formItem)==null?void 0:m.name,y=t.props.defaultValue||[];g&&!fe(y)&&(f==null||f.setFieldValue(g,y))},[t.props.defaultValue]),Dh(()=>{c(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),Dh(()=>{d({})},[t.api,((v=t.api)==null?void 0:v.sourceType)=="variable"?h:""]);const d=g=>{Fe(t.api,g).then(y=>{if((y==null?void 0:y.ret)===0)if(!Array.isArray(y.data))console.error("[checkbox]","data数据格式错误,请检查"),o([]);else{let m=[];t.props.field.label==="label"&&t.props.field.value==="value"?(m=y.data,(typeof y.data[0]=="string"||typeof y.data[0]=="number")&&(m=y.data.map(b=>({label:b,value:b})))):m=y.data.map(b=>{const x=b[t.props.field.label||"label"],w=b[t.props.field.value||"value"];return{label:Xr(x)?x:"-",value:Xr(w)?w:""}}),o(m)}})};VN(a,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)},update:g=>{d(g)}}));const p=g=>{n==null||n({[t.props.formItem.name]:g})};return l&&A.jsx(BN.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(NN.Group,{...t.props.formWrap,disabled:u,options:i,style:t.style,onChange:g=>p(g)})})},zN=$N(HN),WN={attrs:[{type:"Title",label:"标签配置",key:"title"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"],tooltip:"多选以逗号分隔,如:1,2"},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"字段映射",key:"fieldMap"},{type:"Input",label:"label",name:["field","label"]},{type:"Input",label:"value",name:["field","value"]},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"多选",name:"checkbox"},formWrap:{},field:{label:"label",value:"value"}},style:{},api:{sourceType:"json",source:[{label:"选项1",value:1},{label:"选项2",value:2}]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},GN=window.antd.Form,qN=window.antd.TimePicker,H0=window.React.useEffect,YN=window.React.useContext,z0=window.React.useState,UN=window.React.useImperativeHandle,XN=window.React.forwardRef,KN=window.dayjs,ZN=({id:r,type:e,config:t,onChange:n},a)=>{const i=YN(pe),[o,l]=z0(!0),[s,u]=z0(t.props.formWrap.disabled);H0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;if(f&&!fe(h)){const p=KN(h,"HH:mm:ss");p.isValid()&&(i==null||i.setFieldValue(f,p))}},[t.props.defaultValue]),H0(()=>{u(t.props.formWrap.disabled)},[t.props.formWrap.disabled]),UN(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{n==null||n({[t.props.formItem.name]:f.format(t.props.formWrap.format||"HH:mm:ss")})};return o&&A.jsx(GN.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(qN,{...t.props.formWrap,disabled:s,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:c})})},QN=XN(ZN),JN={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"],props:{placeholder:"eg: 15:36:00"}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Select",label:"展示格式",name:["formWrap","format"],props:{options:[{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"},{value:"HHmmss",label:"时分秒"},{value:"HHmm",label:"时分"},{value:"HH",label:"时"},{value:"mm",label:"分"},{value:"ss",label:"秒"}]}},{type:"Input",label:"占位提示",name:["formWrap","placeholder"],props:{placeholder:"输入默认提示"}},{type:"Switch",label:"显示删除",name:["formWrap","allowClear"]},{type:"Switch",label:"滚动值",tooltip:"在滚动时改变选择值",name:["formWrap","changeOnScroll"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Switch",label:"只读模式",name:["formWrap","inputReadOnly"]},{type:"InputNumber",label:"小时步长",name:["formWrap","hourStep"],tooltip:"小时选项间隔"},{type:"InputNumber",label:"分钟步长",name:["formWrap","minuteStep"],tooltip:"分钟选项间隔"},{type:"InputNumber",label:"秒步长",name:["formWrap","secondStep"],tooltip:"秒选项间隔"},{type:"Switch",label:"显示确认",name:["formWrap","needConfirm"],tooltip:"是否需要确认按钮,为 false 时失去焦点即代表选择"},{type:"Switch",label:"显示此刻",name:["formWrap","showNow"],tooltip:"面板是否显示“此刻”按钮"},{type:"Switch",label:"12时制",name:["formWrap","use12Hours"],tooltip:"使用 12 小时制,为 true 时 format 默认为 h:mm:ss a"},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"时间",name:"timepicker"},formWrap:{placeholder:"请选择",allowClear:!0,format:"HH:mm:ss",changeOnScroll:!1,hourStep:1,minuteStep:1,secondStep:1,showNow:!0,use12Hours:!1,needConfirm:!0}},style:{}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},t$=window.antd.Form,e$=window.antd.TimePicker,W0=window.React.useEffect,r$=window.React.useContext,G0=window.React.useState,n$=window.React.useImperativeHandle,a$=window.React.forwardRef,i$=window.dayjs,o$=({id:r,type:e,config:t,onChange:n},a)=>{const i=r$(pe),[o,l]=G0(!0),[s,u]=G0(t.props.formWrap.disabled);W0(()=>{var d;const f=(d=t.props.formItem)==null?void 0:d.name,h=t.props.defaultValue;if(f&&!fe(h)){const p=t.props.formWrap.format||"HH:mm:ss",v=h.split(",").map(g=>i$(g,p));i==null||i.setFieldValue(f,v)}},[t.props.defaultValue]),W0(()=>{u(t.props.formWrap.disabled)},[t.props.formWrap.disabled]),n$(a,()=>({show(){l(!0)},hide(){l(!1)},enable(){u(!1)},disable(){u(!0)}}));const c=f=>{const h={},{startField:d,endField:p,formItem:{name:v},formWrap:{format:g}}=t.props,[y,m]=f.map(b=>b==null?void 0:b.format(g));d&&p?(h[d]=y,h[p]=m,delete h[v]):h[v]=[y,m],n==null||n(h)};return o&&A.jsx(t$.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(e$.RangePicker,{...t.props.formWrap,disabled:s,variant:t.props.formWrap.variant||void 0,style:t.style,onChange:c})})},l$=a$(o$),s$={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"],tooltip:"多个值以逗号分隔",props:{placeholder:"eg: 10:36:00,12:20:00"}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"字段分解",key:"FieldExport"},{type:"Input",label:"开始字段",name:["startField"],tooltip:"实际开发中,接口需要独立的开始时间字段,并不需要数组结构",props:{placeholder:"请输入开始字段"}},{type:"Input",label:"结束字段",name:["endField"],tooltip:"实际开发中,接口需要独立的结束时间字段,并不需要数组结构",props:{placeholder:"请输入结束字段"}},{type:"Title",label:"表单配置",key:"title2"},{type:"Select",label:"展示格式",name:["formWrap","format"],props:{options:[{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"},{value:"HHmmss",label:"时分秒"},{value:"HHmm",label:"时分"},{value:"HH",label:"时"},{value:"mm",label:"分"},{value:"ss",label:"秒"}]}},{type:"Input",label:"占位提示",name:["formWrap","placeholder"],props:{placeholder:"输入默认提示"}},{type:"Switch",label:"显示删除",name:["formWrap","allowClear"]},{type:"Switch",label:"滚动值",tooltip:"在滚动时改变选择值",name:["formWrap","changeOnScroll"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Switch",label:"只读模式",name:["formWrap","inputReadOnly"]},{type:"InputNumber",label:"小时步长",name:["formWrap","hourStep"],tooltip:"小时选项间隔"},{type:"InputNumber",label:"分钟步长",name:["formWrap","minuteStep"],tooltip:"分钟选项间隔"},{type:"InputNumber",label:"秒步长",name:["formWrap","secondStep"],tooltip:"秒选项间隔"},{type:"Switch",label:"显示确认",name:["formWrap","needConfirm"],tooltip:"是否需要确认按钮,为 false 时失去焦点即代表选择"},{type:"Switch",label:"显示此刻",name:["formWrap","showNow"],tooltip:"面板是否显示“此刻”按钮"},{type:"Switch",label:"12时制",name:["formWrap","use12Hours"],tooltip:"使用 12 小时制,为 true 时 format 默认为 h:mm:ss a"},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"时间",name:"timepickerrange"},formWrap:{placeholder:"请选择",allowClear:!0,format:"HH:mm:ss",changeOnScroll:!1,hourStep:1,minuteStep:1,secondStep:1,showNow:!0,use12Hours:!1,needConfirm:!0}},style:{}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},u$=window.antd.Form,c$=window.antd.Segmented,f$=window.React.forwardRef,h$=window.React.useContext,Bh=window.React.useEffect,d$=window.React.useImperativeHandle,Nh=window.React.useState,p$=({id:r,type:e,config:t,onChange:n},a)=>{var v,g,y;const[i,o]=Nh([]),[l,s]=Nh(!0),[u,c]=Nh(!1),f=h$(pe),h=Et(m=>m.page.variableData);Bh(()=>{var x;const m=(x=t.props.formItem)==null?void 0:x.name,b=t.props.defaultValue;m&&!fe(b)&&(f==null||f.setFieldValue(m,b))},[t.props.defaultValue]),Bh(()=>{var m;c(((m=t.props.formWrap)==null?void 0:m.disabled)||!1)},[(v=t.props.formWrap)==null?void 0:v.disabled]),Bh(()=>{d({})},[t.api,((g=t.api)==null?void 0:g.sourceType)=="variable"?h:""]);const d=m=>{Fe(t.api,m).then(b=>{(b==null?void 0:b.ret)===0&&(Array.isArray(b.data)?o(b.data):(console.error("[segmentd]","data数据格式错误,请检查"),o([])))})};d$(a,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)},update:m=>{d(m)}}));const p=m=>{n&&n({[t.props.formItem.name]:m})};return l&&A.jsx(u$.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(c$,{disabled:u,block:(y=t.props.formWrap)==null?void 0:y.block,options:i,style:t.style,onChange:p})})},v$=f$(p$),g$={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Switch",label:"自适应",name:["formWrap","block"]},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"分段控制器",name:"segmented"},defaultValue:"每周",formWrap:{}},style:{},api:{sourceType:"json",source:["每天","每周","每月","每年"]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},y$=window.antd.Form,m$=window.antd.Cascader,x$=window.React.forwardRef,b$=window.React.useContext,$h=window.React.useEffect,w$=window.React.useImperativeHandle,jh=window.React.useState,S$=({id:r,type:e,config:t,onChange:n},a)=>{var v;const i=b$(pe),[o,l]=jh([]),[s,u]=jh(!0),[c,f]=jh(!1),h=Et(g=>g.page.variableData);$h(()=>{var m;const g=(m=t.props.formItem)==null?void 0:m.name,y=t.props.defaultValue;g&&!fe(y)&&(i==null||i.setFieldValue(g,y))},[t.props.defaultValue]),$h(()=>{f(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),$h(()=>{d({})},[t.api,((v=t.api)==null?void 0:v.sourceType)=="variable"?h:""]);const d=g=>{Fe(t.api,g).then(y=>{(y==null?void 0:y.ret)===0&&(Array.isArray(y.data)?l(y.data):(console.error("[select]","data数据格式错误,请检查"),l([])))})};w$(a,()=>({show(){u(!0)},hide(){u(!1)},enable(){f(!1)},disable(){f(!0)},update:g=>{d(g)}}));const p=g=>{n&&n({[t.props.formItem.name]:g})};return s&&A.jsx(y$.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(m$,{...t.props.formWrap,disabled:c,variant:t.props.formWrap.variant||void 0,options:o,style:{...t.style},onChange:g=>p(g)})})},C$=x$(S$),Vh=window.antd.Cascader,A$={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Switch",label:"支持多选",name:["formWrap","multiple"]},{type:"Switch",label:"支持清除",name:["formWrap","allowClear"]},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Input",label:"默认提示",name:["formWrap","placeholder"]},{type:"Select",label:"回填方式",name:["formWrap","showCheckedStrategy"],tooltip:"只有多选模式下生效",props:{options:[{value:Vh.SHOW_CHILD,label:"只显示子节点"},{value:Vh.SHOW_PARENT,label:"只显示父节点"}]}},{type:"Select",label:"预设位置",name:["formWrap","placement"],props:{options:[{value:"bottomLeft",label:"bottomLeft"},{value:"bottomRight",label:"bottomRight"},{value:"topLeft",label:"topLeft"},{value:"topRight",label:"topRight"}]}},{type:"Switch",label:"显示搜索",name:["formWrap","showSearch"]},{type:"Select",label:"展开方式",name:["formWrap","expandTrigger"],tooltip:"子菜单的展开方式",props:{options:[{value:"click",label:"点击展开"},{value:"hover",label:"悬浮展开"}]}},{type:"InputNumber",label:"最大Tag数量",name:["formWrap","maxTagCount"],tooltip:"最多显示几个Tag,超出会折叠",props:{placeholder:"输入数字"}},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"字段映射",key:"fieldMap"},{type:"Input",label:"label",name:["formWrap","fieldNames","label"]},{type:"Input",label:"value",name:["formWrap","fieldNames","value"]},{type:"Input",label:"children",name:["formWrap","fieldNames","children"]},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"级联选择",name:"cascader"},formWrap:{placeholder:"请选择",allowClear:!0,showCheckedStrategy:Vh.SHOW_PARENT,showSearch:!1,placement:"bottomLeft",fieldNames:{label:"label",value:"value",children:"children"}}},style:{},api:{sourceType:"json",source:[{value:"zhejiang",label:"Zhejiang",children:[{value:"hangzhou",label:"Hangzhou",children:[{value:"xihu",label:"West Lake"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},E$=window.antd.Form,T$=window.antd.Slider,I$=window.React.forwardRef,M$=window.React.useContext,q0=window.React.useEffect,O$=window.React.useImperativeHandle,Y0=window.React.useState,F$=({id:r,type:e,config:t,onChange:n,onBlur:a},i)=>{const o=M$(pe),[l,s]=Y0(!0),[u,c]=Y0(!1);q0(()=>{var p;const h=(p=t.props.formItem)==null?void 0:p.name,d=t.props.defaultValue;h&&!fe(d)&&(o==null||o.setFieldValue(h,d))},[t.props.defaultValue]),q0(()=>{c(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]);const f=h=>{n==null||n({[t.props.formItem.name]:h})};return O$(i,()=>({show(){s(!0)},hide(){s(!1)},enable(){c(!1)},disable(){c(!0)}})),l&&A.jsx(E$.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(T$,{...t.props.formWrap,disabled:u,style:t.style,onChange:h=>f(h)})})},k$=I$(F$),P$={attrs:[{type:"Title",label:"标签配置",key:"formItem"},{type:"Input",label:"标题",name:["formItem","label"],props:{placeholder:"请输入文本标题"}},{type:"Input",label:"字段",name:["formItem","name"],props:{placeholder:"请输入提交字段"}},{type:"Variable",label:"默认值",name:["defaultValue"],props:{placeholder:"请输入默认值"}},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息",props:{placeholder:"默认提示文案"}},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息",props:{placeholder:"提示信息"}},{type:"Title",label:"表单配置",key:"formWrap"},{type:"InputNumber",label:"最小值",name:["formWrap","min"]},{type:"InputNumber",label:"最大值",name:["formWrap","max"]},{type:"InputNumber",label:"步长",name:["formWrap","step"]},{type:"Switch",label:"双滑块",name:["formWrap","range"]},{type:"Switch",label:"反向坐标",name:["formWrap","reverse"]},{type:"Switch",label:"是否禁用",name:["formWrap","disabled"]},{type:"Switch",label:"方向",name:["formWrap","vertical"],tooltip:"默认水平方向"},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{defaultValue:5,formItem:{label:"滑动条",name:"slider"},formWrap:{min:0,max:10,step:1,range:!1,reverse:!1,vertical:!1}},style:{}},events:[{value:"onChange",name:"onChange事件"}]},R$=window.antd.Form,L$=window.antd.TreeSelect,D$=window.React.forwardRef,_$=window.React.useContext,Hh=window.React.useEffect,B$=window.React.useImperativeHandle,zh=window.React.useState,N$=({id:r,type:e,config:t,onChange:n},a)=>{var v;const i=_$(pe),[o,l]=zh([]),[s,u]=zh(!0),[c,f]=zh(!1),h=Et(g=>g.page.variableData);Hh(()=>{var m;const g=(m=t.props.formItem)==null?void 0:m.name,y=t.props.defaultValue;g&&!fe(y)&&(i==null||i.setFieldValue(g,y))},[t.props.defaultValue]),Hh(()=>{f(t.props.formWrap.disabled||!1)},[t.props.formWrap.disabled]),Hh(()=>{d({})},[t.api,((v=t.api)==null?void 0:v.sourceType)=="variable"?h:""]);const d=g=>{Fe(t.api,g).then(y=>{(y==null?void 0:y.ret)===0&&(Array.isArray(y.data)?l(y.data):(console.error("[TreeSelect]","data数据格式错误,请检查"),l([])))})};B$(a,()=>({show(){u(!0)},hide(){u(!1)},enable(){f(!1)},disable(){f(!0)},update:g=>{d(g)}}));const p=g=>{n&&n({[t.props.formItem.name]:g})};return s&&A.jsx(R$.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(L$,{...t.props.formWrap,disabled:c,variant:t.props.formWrap.variant||void 0,treeData:o,style:t.style,onChange:g=>p(g)})})},$$=D$(N$),Wh=window.antd.TreeSelect,j$={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Variable",label:"默认值",name:["defaultValue"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表单配置",key:"title2"},{type:"Switch",label:"支持清除",name:["formWrap","allowClear"]},{type:"Switch",label:"禁用",name:["formWrap","disabled"]},{type:"Switch",label:"labelInValue",name:["formWrap","labelInValue"]},{type:"InputNumber",label:"最大Tag数量",name:["formWrap","maxTagCount"]},{type:"Switch",label:"支持多选",name:["formWrap","multiple"]},{type:"Switch",label:"默认提示",name:["formWrap","placeholder"]},{type:"Select",label:"弹出位置",name:["formWrap","placement"],props:{options:[{value:"bottomLeft",label:"bottomLeft"},{value:"bottomRight",label:"bottomRight"},{value:"topLeft",label:"topLeft"},{value:"topRight",label:"topRight"}]}},{type:"Select",label:"节点回填",name:["formWrap","showCheckedStrategy"],tooltip:"节点为复选框时生效。",props:{options:[{value:Wh.SHOW_ALL,label:"显示所有"},{value:Wh.SHOW_PARENT,label:"显示父节点"},{value:Wh.SHOW_CHILD,label:"显示子节点"}]}},{type:"Switch",label:"支持搜索",name:["formWrap","showSearch"]},{type:"Switch",label:"显示复选框",name:["formWrap","treeCheckable"]},{type:"Switch",label:"父子联动",name:["formWrap","treeCheckStrictly"]},{type:"Switch",label:"简单格式",name:["formWrap","treeDataSimpleMode"],tooltip:'简单格式的 treeData,[{id:1, pId:0, value:1,title:"test"]'},{type:"Switch",label:"展开所有",name:["formWrap","treeDefaultExpandAll"]},{type:"Switch",label:"展示线条",name:["formWrap","treeLine"]},{type:"Select",label:"边框样式",name:["formWrap","variant"],props:{options:[{value:"",label:"无"},{value:"outlined",label:"外边框"},{value:"borderless",label:"无边框"},{value:"filled",label:"填充"}]}},{type:"Title",label:"布局",key:"FormLayout"},{type:"InputNumber",label:"标签占位",name:["formItem","labelCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"标签偏移",name:["formItem","labelCol","offset"],props:{placeholder:"偏移数"}},{type:"InputNumber",label:"控件占列",name:["formItem","wrapperCol","span"],props:{placeholder:"占位格数"}},{type:"InputNumber",label:"控件偏移",name:["formItem","wrapperCol","offset"],props:{placeholder:"偏移数"}},{type:"Title",label:"字段映射",key:"fieldMap"},{type:"Input",label:"label",name:["formWrap","fieldNames","label"]},{type:"Input",label:"value",name:["formWrap","fieldNames","value"]},{type:"Input",label:"value",name:["formWrap","fieldNames","children"]},{type:"Title",label:"校验规则",key:"rules"},{type:"function",render:r=>A.jsx(je,{form:r},"rule-list")}],config:{props:{formItem:{label:"树选择",name:"treeSelect"},formWrap:{allowClear:!0,fieldNames:{label:"title",value:"value",children:"children"},labelInValue:!1,multiple:!1,placement:"bottomLeft"}},style:{minWidth:120},api:{sourceType:"json",source:[{value:"parent 1",title:"parent 1",children:[{value:"parent 1-0",title:"parent 1-0",children:[{value:"leaf1",title:"leaf1"},{value:"leaf2",title:"leaf2"}]},{value:"parent 1-1",title:"parent 1-1",children:[{value:"leaf3",title:A.jsx("b",{style:{color:"#08c"},children:"leaf3"})}]}]}]}},events:[{value:"onChange",name:"onChange事件"}],methods:[{name:"update",title:"更新数据"}]},V$=window.React.forwardRef,H$=window.React.useContext,z$=window.React.useEffect,W$=window.React.useImperativeHandle,G$=window.React.useState,U0=window.antd.Form,X0=window.antd.Space,q$=window.antd.Button,Y$=({id:r,type:e,config:t,elements:n},a)=>{const[i,o]=G$(!0),l=H$(pe);return z$(()=>{l==null||l.setFieldValue(t.props.formItem.name,[{}])},[]),W$(a,()=>({show(){o(!0)},hide(){o(!1)}})),i&&A.jsx("div",{"data-id":r,"data-type":e,style:t.style,children:A.jsx(U0.List,{...t.props.formItem,children:(s,{add:u,remove:c})=>A.jsxs(A.Fragment,{children:[s.map(({key:f,name:h,...d})=>A.jsxs(X0,{style:{display:"flex",width:"100%",marginBottom:8,padding:"0 10px"},align:"baseline",children:[A.jsx(X0,{align:"baseline",direction:t.props.formItem.direction,children:n!=null&&n.length?n==null?void 0:n.map(p=>A.jsx(rg,{item:{...p,name:h}},p.id)):A.jsx("div",{className:"slots",style:{width:300,height:100,lineHeight:"100px"},children:"拖拽组件到这里"})},f),A.jsx(pr,{onClick:()=>u({title:"-",dataIndex:h+1},h+1)}),A.jsx(Si,{onClick:()=>c(h)})]},f)),A.jsx(U0.Item,{children:A.jsx(q$,{type:"dashed",onClick:()=>u(),block:!0,icon:A.jsx(pr,{}),children:"新增一条"})})]})})})},U$=V$(Y$),X$={attrs:[{type:"Title",label:"表单配置",key:"formWrap"},{type:"Input",label:"字段",name:["formItem","name"],props:{placeholder:"请输入提交字段"}}],config:{props:{formItem:{name:"formList",direction:"horizontal"}},style:{}},events:[]},K$=window.React.forwardRef,Z$=window.React.useContext,Q$=window.React.useEffect,J$=window.React.useImperativeHandle,K0=window.React.useMemo,mC=window.React.useState,t5=window.React.memo,e5=window.antd.Table,ji=window.antd.Form,r5=window.antd.Input,n5=window.antd.InputNumber,a5=window.antd.Select,i5=window.antd.DatePicker,o5=window.antd.Switch,l5=window.antd.Space,s5=window.antd.Button,u5=window.dayjs;function c5({id:r,type:e,config:t},n){const[a,i]=mC(!0),o=Z$(pe);return J$(n,()=>({show(){i(!0)},hide(){i(!1)}})),a&&A.jsx(ji.Item,{...t.props.formItem,"data-id":r,"data-type":e,children:A.jsx(f5,{config:t,form:o})})}function f5({config:r,form:e}){var u,c,f,h,d;const[t,n]=mC([]),a=Et(p=>p.updateToolbar),i=K0(()=>{var v;const p={key:Wa("key")};return(v=r.props.formWrap)==null||v.columns.map(g=>{Xr(g.defaultValue)&&(g.type==="date"?typeof g.defaultValue=="string"?p[g.dataIndex]=u5(g.defaultValue):p[g.dataIndex]=g.defaultValue:g.type==="select"?g.dataSource==="static"?p[g.dataIndex]=g.dataType==="text"?g.defaultValue:Number(g.defaultValue):p[g.dataIndex]=fi(g.options.value):p[g.dataIndex]=g.defaultValue)}),p},[(u=r.props.formWrap)==null?void 0:u.columns]);Q$(()=>{const p=e==null?void 0:e.getFieldValue(r.props.formItem.name);if(p)p.length!==t.length&&n(()=>[...p.map(v=>({...i,key:v.id||Wa("key")}))]);else{const v={...i,key:Wa("key")};e==null||e.setFieldValue(r.props.formItem.name,[v]),n(()=>[v])}},[e==null?void 0:e.getFieldValue((c=r.props.formItem)==null?void 0:c.name)]);const o=p=>{var g;if(!r.props.formItem.name)return qr.error("请配置name字段");const v=((g=e==null?void 0:e.getFieldsValue())==null?void 0:g[r.props.formItem.name])||[];v.splice(p+1,0,{...i,key:Wa("key")}),e==null||e.setFieldValue(r.props.formItem.name,[...v]),n(()=>[...v.map(y=>({...y,key:y.key||y.id||Wa("key")}))]),a()},l=p=>{var g;const v=((g=e==null?void 0:e.getFieldsValue())==null?void 0:g[r.props.formItem.name])||[];v.splice(p,1),e==null||e.setFieldValue(r.props.formItem.name,[...v]),n(()=>[...v]),a()},s=K0(()=>{var p;return{...r.props.formWrap,rowKey:"key",columns:(p=r.props.formWrap)==null?void 0:p.columns.map((v,g)=>{var m,b;const y=[];return(b=(m=v.formItem)==null?void 0:m.rules)==null||b.map(x=>{const w={...x};x.pattern&&(w.pattern=new RegExp(x.pattern)),y.push(w)}),{...v,key:v.dataIndex||g,render(x,w,S){if(v.type==="label")return x;if(v.type==="text")return A.jsx(ji.Item,{style:{margin:0},name:[r.props.formItem.name,S,v.dataIndex],colon:!1,label:" ",rules:y,children:A.jsx(r5,{placeholder:v.placeholder,style:{width:"100%"}})});if(v.type==="number")return A.jsx(ji.Item,{style:{margin:0},name:[r.props.formItem.name,S,v.dataIndex],colon:!1,label:" ",rules:y,children:A.jsx(n5,{placeholder:v.placeholder,style:{width:"100%"}})});if(v.type==="select"){let C=[];return v.dataSource==="dynamic"?(C=fi(v.options.value)||[],Array.isArray(C)&&v.field.label&&v.field.value&&(C=C.map(T=>({label:T[v.field.label],value:T[v.field.value]})))):C=v.options||[],A.jsx(ji.Item,{style:{margin:0},name:[r.props.formItem.name,S,v.dataIndex],colon:!1,label:" ",rules:y,children:A.jsx(a5,{placeholder:v.placeholder,options:C||[],mode:v.mode,style:{width:"100%"}})})}if(v.type==="date")return A.jsx(ji.Item,{style:{margin:0},name:[r.props.formItem.name,S,v.dataIndex],colon:!1,label:" ",rules:y,children:A.jsx(i5,{placeholder:v.placeholder,format:v.format,style:{width:"100%"}})});if(v.type==="switch")return A.jsx(ji.Item,{style:{margin:0},name:[r.props.formItem.name,S,v.dataIndex],colon:!1,label:" ",rules:y,children:A.jsx(o5,{})})}}}).concat([{title:"操作",key:"action",align:"center",render(v,g,y){return A.jsxs(l5,{children:[A.jsx("a",{onClick:()=>o(y),children:"添加"}),A.jsx("a",{onClick:()=>l(y),children:"删除"})]})}}]),dataSource:t}},[t,(f=r.props.formWrap)==null?void 0:f.columns]);return A.jsxs(A.Fragment,{children:[A.jsx(e5,{...s,pagination:!1,scroll:{x:(h=s.scroll)==null?void 0:h.x,y:(d=s.scroll)==null?void 0:d.y}}),A.jsx(s5,{type:"dashed",block:!0,icon:A.jsx(pr,{}),style:{marginTop:10},onClick:()=>o(t.length),children:"增加一行"})]})}const h5=t5(K$(c5)),Yn=window.antd.Input,d5=window.antd.Modal,ae=window.antd.Form,Li=window.antd.Col,Gh=window.antd.Row,In=window.antd.Select,Z0=window.antd.Switch,p5=window.antd.Button,Q0=window.antd.Card,J0=window.antd.InputNumber,qe=window.antd.Radio,v5=window.antd.Space,g5=window.antd.DatePicker,y5=window.React.useImperativeHandle,tx=window.React.useState,m5=window.React.memo,x5=window.dayjs,b5=m5(r=>{const[e,t]=tx(!1),[n,a]=tx(0),[i]=ae.useForm(),{selectedElement:o,elementsMap:l,editTableProps:s}=Et(f=>({selectedElement:f.selectedElement,elementsMap:f.page.elementsMap,editTableProps:f.editTableProps}));y5(r.columnRef,()=>({open(f){const h=l[o==null?void 0:o.id],{defaultValue:d,...p}=h.config.props.formWrap.columns[f];i.resetFields(),i.setFieldsValue({align:"center",fixed:"",type:"text",mode:"",dataSource:"static",dataType:"number",defaultValue:d,...p}),p.type==="date"&&d&&i.setFieldsValue({defaultValue:typeof d=="string"?x5(d):d}),a(f),t(!0)}}));const u=()=>{i.validateFields().then(()=>{const f=i.getFieldsValue();f.dataType==="number"&&Array.isArray(f.options)&&f.options.map(h=>{h.value=isNaN(h.value)?h.value:Number(h.value)}),s({id:o==null?void 0:o.id,type:"formTable",index:n,props:{...f,key:f.dataIndex||n}}),r.update(f,n),t(!1)})},c=()=>{t(!1)};return A.jsx(d5,{title:"列设置",open:e,onOk:u,onCancel:c,width:800,children:A.jsxs(ae,{form:i,labelCol:{span:8},wrapperCol:{span:16},children:[A.jsxs(Q0,{title:"基础配置",size:"small",children:[A.jsxs(Gh,{children:[A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"标题",name:"title",rules:[{required:!0,message:"请输入列名"}],children:A.jsx(Yn,{})})}),A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"字段",name:"dataIndex",rules:[{required:!0,message:"请输入字段名称"}],children:A.jsx(Yn,{})})})]}),A.jsxs(Gh,{children:[A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"宽度",name:"width",children:A.jsx(J0,{placeholder:"eg: 100"})})}),A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"对齐",name:"align",children:A.jsxs(qe.Group,{buttonStyle:"solid",children:[A.jsx(qe.Button,{value:"left",children:"居左"}),A.jsx(qe.Button,{value:"center",children:"居中"}),A.jsx(qe.Button,{value:"right",children:"居右"})]})})})]}),A.jsxs(Gh,{children:[A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"固定",name:"fixed",children:A.jsxs(qe.Group,{buttonStyle:"solid",children:[A.jsx(qe.Button,{value:"",children:"默认"}),A.jsx(qe.Button,{value:"left",children:"居左"}),A.jsx(qe.Button,{value:"right",children:"居右"})]})})}),A.jsx(Li,{span:12,children:A.jsx(ae.Item,{label:"列类型",name:"type",children:A.jsxs(In,{children:[A.jsx(In.Option,{value:"label",children:"静态文本"}),A.jsx(In.Option,{value:"text",children:"文本输入框"}),A.jsx(In.Option,{value:"number",children:"数字输入框"}),A.jsx(In.Option,{value:"date",children:"日期选择框"}),A.jsx(In.Option,{value:"select",children:"下拉选择框"}),A.jsx(In.Option,{value:"switch",children:"开关选择"})]})})})]})]}),A.jsx(ae.Item,{noStyle:!0,shouldUpdate:!0,children:f=>{const h=f.getFieldValue("type");return h!=="label"&&A.jsxs(Q0,{title:"表单配置",style:{marginTop:20},size:"small",children:[A.jsxs(ae.Item,{label:"默认值",name:"defaultValue",labelCol:{span:4},children:[(h==="text"||h==="select")&&A.jsx(Yn,{placeholder:"请输入默认值"}),h==="number"&&A.jsx(J0,{placeholder:"请输入默认值",style:{width:"100%"}}),h==="date"&&A.jsx(g5,{placeholder:"请选择日期",format:"YYYY-MM-DD"}),h==="switch"&&A.jsx(Z0,{})]}),h!=="switch"&&A.jsx(ae.Item,{label:"提示信息",name:"placeholder",labelCol:{span:4},children:A.jsx(Yn,{placeholder:"请输入提示信息"})}),h==="select"?A.jsxs(A.Fragment,{children:[A.jsx(ae.Item,{label:"包含Label",name:["labelInValue"],labelCol:{span:4},tooltip:"提交时,选中的值包含Label和value",children:A.jsx(Z0,{})}),A.jsx(ae.Item,{label:"选项模式",name:"mode",labelCol:{span:4},children:A.jsxs(qe.Group,{buttonStyle:"solid",children:[A.jsx(qe.Button,{value:"",children:"单选"}),A.jsx(qe.Button,{value:"multiple",children:"多选"}),A.jsx(qe.Button,{value:"tags",children:"标签"})]})}),A.jsx(ae.Item,{label:"数据源类型",name:"dataSource",labelCol:{span:4},tooltip:"下拉框的数据来源,静态数据需要手动添加,动态数据可以选择绑定变量。",children:A.jsxs(qe.Group,{buttonStyle:"solid",children:[A.jsx(qe.Button,{value:"static",children:"静态数据"}),A.jsx(qe.Button,{value:"dynamic",children:"动态数据"})]})}),A.jsx(ae.Item,{name:["dataType"],label:"数据类型",labelCol:{span:4},tooltip:"下拉选项值(value)对应的类型,当前可选:文本和数字",children:A.jsx(In,{placeholder:"请选择数据类型",options:[{label:"数字",value:"number"},{label:"文本",value:"text"}]})}),A.jsx(ae.Item,{noStyle:!0,shouldUpdate:!0,children:d=>d.getFieldValue("dataSource")==="static"?A.jsx(ae.Item,{label:"选项",labelCol:{span:4},children:A.jsx(ae.List,{name:["options"],children:(v,{add:g,remove:y})=>A.jsxs(A.Fragment,{children:[v.map(({key:m,name:b,...x})=>A.jsxs(v5,{style:{display:"flex"},align:"baseline",children:[A.jsx(ae.Item,{...x,wrapperCol:{span:22},name:[b,"label"],children:A.jsx(Yn,{placeholder:"请输入显示的文本"})}),A.jsx(ae.Item,{...x,wrapperCol:{span:22},name:[b,"value"],shouldUpdate:!0,children:A.jsx(Yn,{placeholder:"请输入对应的值"})}),A.jsx(pr,{onClick:()=>g({label:"",value:""},b+1)}),A.jsx(Si,{onClick:()=>y(b)})]},m)),A.jsx(p5,{block:!0,type:"primary",onClick:()=>g({label:"",value:""}),children:"增加一行"})]})})}):A.jsxs(A.Fragment,{children:[A.jsx(ae.Item,{name:["options"],label:"选项",labelCol:{span:4},children:A.jsx(Zu,{readOnly:!0,placeholder:"请选择一个动态变量"})}),A.jsx(ae.Item,{label:"字段映射(label)",name:["field","label"],labelCol:{span:4},extra:"变量返回的数据可能不是[{label:'',value:''}]结构,因此需要做映射。",children:A.jsx(Yn,{placeholder:"请输入变量中对应的label字段"})}),A.jsx(ae.Item,{label:"字段映射(value)",name:["field","value"],labelCol:{span:4},children:A.jsx(Yn,{placeholder:"请输入变量中对应的value字段"})})]})})]}):null,h==="date"&&A.jsx(ae.Item,{label:"日期格式",name:"format",labelCol:{span:4},children:A.jsx(In,{options:[{label:"年-月-日",value:"YYYY-MM-DD"},{label:"年-月-日 23:59:59",value:"YYYY-MM-DD 23:59:59"}]})}),A.jsx(ae.Item,{labelCol:{span:4},label:"表单验证",children:A.jsx(je,{form:f,labelSpan:5},"rule-list")})]})}})]})})}),qh=window.antd.Form,ex=window.antd.Input,w5=window.antd.Space,S5=window.React.memo,C5=window.React.useRef,A5=S5(({form:r})=>{const e=C5(),t=a=>{var i;(i=e.current)==null||i.open(a)},n=(a,i)=>{r.setFieldValue(["formWrap","columns",i],a)};return A.jsxs(A.Fragment,{children:[A.jsx(qh.List,{name:["formWrap","columns"],children:(a,{add:i,remove:o})=>A.jsx(A.Fragment,{children:a.map(({key:l,name:s,...u})=>A.jsxs(w5,{style:{display:"flex",marginBottom:8,padding:"0 10px"},align:"baseline",children:[A.jsx(qh.Item,{...u,wrapperCol:{span:22},name:[s,"title"],children:A.jsx(ex,{placeholder:"列名称"})}),A.jsx(qh.Item,{...u,wrapperCol:{span:22},name:[s,"dataIndex"],children:A.jsx(ex,{placeholder:"列字段",style:{width:"100%"}})}),A.jsx(Nc,{onClick:()=>t(s)}),A.jsx(pr,{onClick:()=>i({title:`列${s+2}`,dataIndex:`Col-${s+2}`,type:"text"},s+1)}),A.jsx(Si,{onClick:()=>o(s)})]},l))})}),A.jsx(b5,{columnRef:e,update:n})]})}),E5=A5,T5={attrs:[{type:"Title",label:"标签配置",key:"title1"},{type:"Input",label:"标题",name:["formItem","label"]},{type:"Input",label:"字段",name:["formItem","name"]},{type:"Input",label:"Extra",name:["formItem","extra"],tooltip:"表单控件下方显示的提示信息"},{type:"Input",label:"Tooltip",name:["formItem","tooltip"],tooltip:"表单项后面显示的提示信息"},{type:"Title",label:"表格配置"},{type:"Switch",label:"显示边框",name:["formWrap","bordered"]},{type:"Select",label:"表格尺寸",name:["formWrap","size"],props:{options:[{label:"默认",value:"large"},{label:"中等",value:"middle"},{label:"紧凑",value:"small"}]}},{type:"InputNumber",label:"滚动轴(x)",name:["formWrap","scroll","x"],tooltip:"如果需要横向滚动,请设置x值,尽量比表格实际宽度大",props:{placeholder:"eg: 1000"}},{type:"InputNumber",label:"滚动轴(y)",name:["formWrap","scroll","y"],tooltip:"如果需要纵向滚动,请设置y值来固定高度",props:{placeholder:"eg: 600"}},{type:"Title",label:"列配置",key:"columnConfig"},{type:"function",key:"TableSetting",render(r){return A.jsx(E5,{form:r},"TableSetting")}}],config:{props:{formItem:{label:"编辑用户",name:"userData"},formWrap:{field:"data",size:"large",bordered:!0,columns:[{title:"姓名",dataIndex:"name",key:"name",align:"center",type:"text",defaultValue:"",placeholder:"请输入姓名"},{title:"年级",dataIndex:"grade",key:"grade",align:"center",type:"select",options:[{label:"一年级",value:1},{label:"二年级",value:2},{label:"三年级",value:3}],dataSource:"static",defaultValue:3,placeholder:"请选择年级"},{title:"分数",dataIndex:"score",key:"score",align:"center",type:"number",defaultValue:"",placeholder:"请输入分数"},{title:"出生日期",dataIndex:"birthday",key:"birthday",type:"date",align:"center",format:"YYYY-MM-DD",defaultValue:"2020-08-08",placeholder:"请选择日期"},{title:"共青团员",dataIndex:"isMember",key:"isMember",align:"center",type:"switch",defaultValue:!0}]}},style:{},events:[],api:{sourceType:"json",sourceField:"list",source:[]}},events:[],methods:[]};function I5(){this.__data__=[],this.size=0}var M5=I5;function O5(r,e){return r===e||r!==r&&e!==e}var xC=O5,F5=xC;function k5(r,e){for(var t=r.length;t--;)if(F5(r[t][0],e))return t;return-1}var Qc=k5,P5=Qc,R5=Array.prototype,L5=R5.splice;function D5(r){var e=this.__data__,t=P5(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():L5.call(e,t,1),--this.size,!0}var _5=D5,B5=Qc;function N5(r){var e=this.__data__,t=B5(e,r);return t<0?void 0:e[t][1]}var $5=N5,j5=Qc;function V5(r){return j5(this.__data__,r)>-1}var H5=V5,z5=Qc;function W5(r,e){var t=this.__data__,n=z5(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}var G5=W5,q5=M5,Y5=_5,U5=$5,X5=H5,K5=G5;function To(r){var e=-1,t=r==null?0:r.length;for(this.clear();++el))return!1;var u=i.get(r),c=i.get(e);if(u&&c)return u==e&&c==r;var f=-1,h=!0,d=t&_V?new PV:void 0;for(i.set(r,e),i.set(e,r);++f-1&&r%1==0&&r-1&&r%1==0&&r<=q4}var OC=Y4,U4=tf,X4=OC,K4=nf,Z4="[object Arguments]",Q4="[object Array]",J4="[object Boolean]",tH="[object Date]",eH="[object Error]",rH="[object Function]",nH="[object Map]",aH="[object Number]",iH="[object Object]",oH="[object RegExp]",lH="[object Set]",sH="[object String]",uH="[object WeakMap]",cH="[object ArrayBuffer]",fH="[object DataView]",hH="[object Float32Array]",dH="[object Float64Array]",pH="[object Int8Array]",vH="[object Int16Array]",gH="[object Int32Array]",yH="[object Uint8Array]",mH="[object Uint8ClampedArray]",xH="[object Uint16Array]",bH="[object Uint32Array]",ie={};ie[hH]=ie[dH]=ie[pH]=ie[vH]=ie[gH]=ie[yH]=ie[mH]=ie[xH]=ie[bH]=!0;ie[Z4]=ie[Q4]=ie[cH]=ie[J4]=ie[fH]=ie[tH]=ie[eH]=ie[rH]=ie[nH]=ie[aH]=ie[iH]=ie[oH]=ie[lH]=ie[sH]=ie[uH]=!1;function wH(r){return K4(r)&&X4(r.length)&&!!ie[U4(r)]}var SH=wH;function CH(r){return function(e){return r(e)}}var AH=CH,sc={exports:{}};sc.exports;(function(r,e){var t=bC,n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();r.exports=l})(sc,sc.exports);var EH=sc.exports,TH=SH,IH=AH,dx=EH,px=dx&&dx.isTypedArray,MH=px?IH(px):TH,FC=MH,OH=M4,FH=$4,kH=dg,PH=MC,RH=G4,LH=FC,DH=Object.prototype,_H=DH.hasOwnProperty;function BH(r,e){var t=kH(r),n=!t&&FH(r),a=!t&&!n&&PH(r),i=!t&&!n&&!a&&LH(r),o=t||n||a||i,l=o?OH(r.length,String):[],s=l.length;for(var u in r)(e||_H.call(r,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||RH(u,s)))&&l.push(u);return l}var NH=BH,$H=Object.prototype;function jH(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||$H;return r===t}var VH=jH;function HH(r,e){return function(t){return r(e(t))}}var zH=HH,WH=zH,GH=WH(Object.keys,Object),qH=GH,YH=VH,UH=qH,XH=Object.prototype,KH=XH.hasOwnProperty;function ZH(r){if(!YH(r))return UH(r);var e=[];for(var t in Object(r))KH.call(r,t)&&t!="constructor"&&e.push(t);return e}var QH=ZH,JH=CC,tz=OC;function ez(r){return r!=null&&tz(r.length)&&!JH(r)}var rz=ez,nz=NH,az=QH,iz=rz;function oz(r){return iz(r)?nz(r):az(r)}var lz=oz,sz=g4,uz=T4,cz=lz;function fz(r){return sz(r,cz,uz)}var hz=fz,vx=hz,dz=1,pz=Object.prototype,vz=pz.hasOwnProperty;function gz(r,e,t,n,a,i){var o=t&dz,l=vx(r),s=l.length,u=vx(e),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in e:vz.call(e,h)))return!1}var d=i.get(r),p=i.get(e);if(d&&p)return d==e&&p==r;var v=!0;i.set(r,e),i.set(e,r);for(var g=o;++f1)return g.map(function(x){return v(x)});var m=g[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new o("Invalid definition");if(m.blotName==="abstract")throw new o("Cannot register abstract class");if(c[m.blotName||m.attrName]=m,typeof m.keyName=="string")l[m.keyName]=m;else if(m.className!=null&&(s[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(x){return x.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var b=Array.isArray(m.tagName)?m.tagName:[m.tagName];b.forEach(function(x){(u[x]==null||m.className==null)&&(u[x]=m)})}return m}n.register=v},function(t,n,a){var i=a(51),o=a(11),l=a(3),s=a(20),u="\0",c=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};c.prototype.insert=function(f,h){var d={};return f.length===0?this:(d.insert=f,h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(d.attributes=h),this.push(d))},c.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},c.prototype.retain=function(f,h){if(f<=0)return this;var d={retain:f};return h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(d.attributes=h),this.push(d)},c.prototype.push=function(f){var h=this.ops.length,d=this.ops[h-1];if(f=l(!0,{},f),typeof d=="object"){if(typeof f.delete=="number"&&typeof d.delete=="number")return this.ops[h-1]={delete:d.delete+f.delete},this;if(typeof d.delete=="number"&&f.insert!=null&&(h-=1,d=this.ops[h-1],typeof d!="object"))return this.ops.unshift(f),this;if(o(f.attributes,d.attributes)){if(typeof f.insert=="string"&&typeof d.insert=="string")return this.ops[h-1]={insert:d.insert+f.insert},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof d.retain=="number")return this.ops[h-1]={retain:d.retain+f.retain},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this}}return h===this.ops.length?this.ops.push(f):this.ops.splice(h,0,f),this},c.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},c.prototype.filter=function(f){return this.ops.filter(f)},c.prototype.forEach=function(f){this.ops.forEach(f)},c.prototype.map=function(f){return this.ops.map(f)},c.prototype.partition=function(f){var h=[],d=[];return this.forEach(function(p){var v=f(p)?h:d;v.push(p)}),[h,d]},c.prototype.reduce=function(f,h){return this.ops.reduce(f,h)},c.prototype.changeLength=function(){return this.reduce(function(f,h){return h.insert?f+s.length(h):h.delete?f-h.delete:f},0)},c.prototype.length=function(){return this.reduce(function(f,h){return f+s.length(h)},0)},c.prototype.slice=function(f,h){f=f||0,typeof h!="number"&&(h=1/0);for(var d=[],p=s.iterator(this.ops),v=0;v0&&d.next(v.retain-g)}for(var y=new c(p);h.hasNext()||d.hasNext();)if(d.peekType()==="insert")y.push(d.next());else if(h.peekType()==="delete")y.push(h.next());else{var m=Math.min(h.peekLength(),d.peekLength()),b=h.next(m),x=d.next(m);if(typeof x.retain=="number"){var w={};typeof b.retain=="number"?w.retain=m:w.insert=b.insert;var S=s.attributes.compose(b.attributes,x.attributes,typeof b.retain=="number");if(S&&(w.attributes=S),y.push(w),!d.hasNext()&&o(y.ops[y.ops.length-1],w)){var C=new c(h.rest());return y.concat(C).chop()}}else typeof x.delete=="number"&&typeof b.retain=="number"&&y.push(x)}return y.chop()},c.prototype.concat=function(f){var h=new c(this.ops.slice());return f.ops.length>0&&(h.push(f.ops[0]),h.ops=h.ops.concat(f.ops.slice(1))),h},c.prototype.diff=function(f,h){if(this.ops===f.ops)return new c;var d=[this,f].map(function(m){return m.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;var x=m===f?"on":"with";throw new Error("diff() called "+x+" non-document")}).join("")}),p=new c,v=i(d[0],d[1],h),g=s.iterator(this.ops),y=s.iterator(f.ops);return v.forEach(function(m){for(var b=m[1].length;b>0;){var x=0;switch(m[0]){case i.INSERT:x=Math.min(y.peekLength(),b),p.push(y.next(x));break;case i.DELETE:x=Math.min(b,g.peekLength()),g.next(x),p.delete(x);break;case i.EQUAL:x=Math.min(g.peekLength(),y.peekLength(),b);var w=g.next(x),S=y.next(x);o(w.insert,S.insert)?p.retain(x,s.attributes.diff(w.attributes,S.attributes)):p.push(S).delete(x);break}b-=x}}),p.chop()},c.prototype.eachLine=function(f,h){h=h||` +`;for(var d=s.iterator(this.ops),p=new c,v=0;d.hasNext();){if(d.peekType()!=="insert")return;var g=d.peek(),y=s.length(g)-d.peekLength(),m=typeof g.insert=="string"?g.insert.indexOf(h,y)-y:-1;if(m<0)p.push(d.next());else if(m>0)p.push(d.next(m));else{if(f(p,d.next(1).attributes||{},v)===!1)return;v+=1,p=new c}}p.length()>0&&f(p,{},v)},c.prototype.transform=function(f,h){if(h=!!h,typeof f=="number")return this.transformPosition(f,h);for(var d=s.iterator(this.ops),p=s.iterator(f.ops),v=new c;d.hasNext()||p.hasNext();)if(d.peekType()==="insert"&&(h||p.peekType()!=="insert"))v.retain(s.length(d.next()));else if(p.peekType()==="insert")v.push(p.next());else{var g=Math.min(d.peekLength(),p.peekLength()),y=d.next(g),m=p.next(g);if(y.delete)continue;m.delete?v.push(m):v.retain(g,s.attributes.transform(y.attributes,m.attributes,h))}return v.chop()},c.prototype.transformPosition=function(f,h){h=!!h;for(var d=s.iterator(this.ops),p=0;d.hasNext()&&p<=f;){var v=d.peekLength(),g=d.peekType();if(d.next(),g==="delete"){f-=Math.min(v,f-p);continue}else g==="insert"&&(p"u"||a.call(d,g)},c=function(d,p){o&&p.name==="__proto__"?o(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},f=function(d,p){if(p==="__proto__")if(a.call(d,p)){if(l)return l(d,p).value}else return;return d[p]};t.exports=function h(){var d,p,v,g,y,m,b=arguments[0],x=1,w=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},x=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});x0&&(L1&&arguments[1]!==void 0?arguments[1]:!1;if(N&&(L===0||L>=this.length()-C)){var R=this.clone();return L===0?(this.parent.insertBefore(R,this),this):(this.parent.insertBefore(R,this.next),R)}else{var D=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,L,N);return this.cache={},D}}}]),O}(h.default.Block);F.blotName="block",F.tagName="P",F.defaultChild="break",F.allowedChildren=[g.default,h.default.Embed,m.default];function I(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return M==null||(typeof M.formats=="function"&&(O=(0,s.default)(O,M.formats())),M.parent==null||M.parent.blotName=="scroll"||M.parent.statics.scope!==M.statics.scope)?O:I(M.parent,O)}n.bubbleFormats=I,n.BlockEmbed=T,n.default=F},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},o=function(){function V(B,P){var $=[],z=!0,Y=!1,q=void 0;try{for(var _=B[Symbol.iterator](),G;!(z=(G=_.next()).done)&&($.push(G.value),!(P&&$.length===P));z=!0);}catch(X){Y=!0,q=X}finally{try{!z&&_.return&&_.return()}finally{if(Y)throw q}}return $}return function(B,P){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return V(B,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function V(B,P){for(var $=0;$2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof P!="string"){var q=P.attrName||P.blotName;typeof q=="string"?this.register("formats/"+q,P,$):Object.keys(P).forEach(function(_){z.register(_,P[_],$)})}else this.imports[P]!=null&&!Y&&k.warn("Overwriting "+P+" with",$),this.imports[P]=$,(P.startsWith("blots/")||P.startsWith("formats/"))&&$.blotName!=="abstract"?y.default.register($):P.startsWith("modules")&&typeof $.register=="function"&&$.register()}}]);function V(B){var P=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,V),this.options=N(B,$),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",B);this.options.debug&&V.debug(this.options.debug);var z=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,function(q){q===d.default.events.TEXT_CHANGE&&P.root.classList.toggle("ql-blank",P.editor.isBlank())}),this.emitter.on(d.default.events.SCROLL_UPDATE,function(q,_){var G=P.selection.lastRange,X=G&&G.length===0?G.index:void 0;R.call(P,function(){return P.editor.update(null,_,X)},q)});var Y=this.clipboard.convert(`
`+z+"


");this.setContents(Y),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(V,[{key:"addContainer",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof P=="string"){var z=P;P=document.createElement("div"),P.classList.add(z)}return this.container.insertBefore(P,$),P}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(P,$,z){var Y=this,q=D(P,$,z),_=o(q,4);return P=_[0],$=_[1],z=_[3],R.call(this,function(){return Y.editor.deleteText(P,$)},z,P,-1*$)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(P),this.container.classList.toggle("ql-disabled",!P)}},{key:"focus",value:function(){var P=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=P,this.scrollIntoView()}},{key:"format",value:function(P,$){var z=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;return R.call(this,function(){var q=z.getSelection(!0),_=new u.default;if(q==null)return _;if(y.default.query(P,y.default.Scope.BLOCK))_=z.editor.formatLine(q.index,q.length,M({},P,$));else{if(q.length===0)return z.selection.format(P,$),_;_=z.editor.formatText(q.index,q.length,M({},P,$))}return z.setSelection(q,d.default.sources.SILENT),_},Y)}},{key:"formatLine",value:function(P,$,z,Y,q){var _=this,G=void 0,X=D(P,$,z,Y,q),K=o(X,4);return P=K[0],$=K[1],G=K[2],q=K[3],R.call(this,function(){return _.editor.formatLine(P,$,G)},q,P,0)}},{key:"formatText",value:function(P,$,z,Y,q){var _=this,G=void 0,X=D(P,$,z,Y,q),K=o(X,4);return P=K[0],$=K[1],G=K[2],q=K[3],R.call(this,function(){return _.editor.formatText(P,$,G)},q,P,0)}},{key:"getBounds",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=void 0;typeof P=="number"?z=this.selection.getBounds(P,$):z=this.selection.getBounds(P.index,P.length);var Y=this.container.getBoundingClientRect();return{bottom:z.bottom-Y.top,height:z.height,left:z.left-Y.left,right:z.right-Y.left,top:z.top-Y.top,width:z.width}}},{key:"getContents",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,z=D(P,$),Y=o(z,2);return P=Y[0],$=Y[1],this.editor.getContents(P,$)}},{key:"getFormat",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof P=="number"?this.editor.getFormat(P,$):this.editor.getFormat(P.index,P.length)}},{key:"getIndex",value:function(P){return P.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(P){return this.scroll.leaf(P)}},{key:"getLine",value:function(P){return this.scroll.line(P)}},{key:"getLines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof P!="number"?this.scroll.lines(P.index,P.length):this.scroll.lines(P,$)}},{key:"getModule",value:function(P){return this.theme.modules[P]}},{key:"getSelection",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return P&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,z=D(P,$),Y=o(z,2);return P=Y[0],$=Y[1],this.editor.getText(P,$)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(P,$,z){var Y=this,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:V.sources.API;return R.call(this,function(){return Y.editor.insertEmbed(P,$,z)},q,P)}},{key:"insertText",value:function(P,$,z,Y,q){var _=this,G=void 0,X=D(P,0,z,Y,q),K=o(X,4);return P=K[0],G=K[2],q=K[3],R.call(this,function(){return _.editor.insertText(P,$,G)},q,P,$.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(P,$,z){this.clipboard.dangerouslyPasteHTML(P,$,z)}},{key:"removeFormat",value:function(P,$,z){var Y=this,q=D(P,$,z),_=o(q,4);return P=_[0],$=_[1],z=_[3],R.call(this,function(){return Y.editor.removeFormat(P,$)},z,P)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(P){var $=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return R.call(this,function(){P=new u.default(P);var Y=$.getLength(),q=$.editor.deleteText(0,Y),_=$.editor.applyDelta(P),G=_.ops[_.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===` +`&&($.editor.deleteText($.getLength()-1,1),_.delete(1));var X=q.compose(_);return X},z)}},{key:"setSelection",value:function(P,$,z){if(P==null)this.selection.setRange(null,$||V.sources.API);else{var Y=D(P,$,z),q=o(Y,4);P=q[0],$=q[1],z=q[3],this.selection.setRange(new m.Range(P,$),z),z!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,z=new u.default().insert(P);return this.setContents(z,$)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,$=this.scroll.update(P);return this.selection.update(P),$}},{key:"updateContents",value:function(P){var $=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return R.call(this,function(){return P=new u.default(P),$.editor.applyDelta(P,z)},z,!0)}}]),V}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=d.default.events,L.sources=d.default.sources,L.version="1.3.7",L.imports={delta:u.default,parchment:y.default,"core/module":v.default,"core/theme":F.default};function N(V,B){if(B=(0,w.default)(!0,{container:V,modules:{clipboard:!0,keyboard:!0,history:!0}},B),!B.theme||B.theme===L.DEFAULTS.theme)B.theme=F.default;else if(B.theme=L.import("themes/"+B.theme),B.theme==null)throw new Error("Invalid theme "+B.theme+". Did you register it?");var P=(0,w.default)(!0,{},B.theme.DEFAULTS);[P,B].forEach(function(Y){Y.modules=Y.modules||{},Object.keys(Y.modules).forEach(function(q){Y.modules[q]===!0&&(Y.modules[q]={})})});var $=Object.keys(P.modules).concat(Object.keys(B.modules)),z=$.reduce(function(Y,q){var _=L.import("modules/"+q);return _==null?k.error("Cannot load "+q+" module. Are you sure you registered it?"):Y[q]=_.DEFAULTS||{},Y},{});return B.modules!=null&&B.modules.toolbar&&B.modules.toolbar.constructor!==Object&&(B.modules.toolbar={container:B.modules.toolbar}),B=(0,w.default)(!0,{},L.DEFAULTS,{modules:z},P,B),["bounds","container","scrollingContainer"].forEach(function(Y){typeof B[Y]=="string"&&(B[Y]=document.querySelector(B[Y]))}),B.modules=Object.keys(B.modules).reduce(function(Y,q){return B.modules[q]&&(Y[q]=B.modules[q]),Y},{}),B}function R(V,B,P,$){if(this.options.strict&&!this.isEnabled()&&B===d.default.sources.USER)return new u.default;var z=P==null?null:this.getSelection(),Y=this.editor.delta,q=V();if(z!=null&&(P===!0&&(P=z.index),$==null?z=W(z,q,B):$!==0&&(z=W(z,P,$,B)),this.setSelection(z,d.default.sources.SILENT)),q.length()>0){var _,G=[d.default.events.TEXT_CHANGE,q,Y,B];if((_=this.emitter).emit.apply(_,[d.default.events.EDITOR_CHANGE].concat(G)),B!==d.default.sources.SILENT){var X;(X=this.emitter).emit.apply(X,G)}}return q}function D(V,B,P,$,z){var Y={};return typeof V.index=="number"&&typeof V.length=="number"?typeof B!="number"?(z=$,$=P,P=B,B=V.length,V=V.index):(B=V.length,V=V.index):typeof B!="number"&&(z=$,$=P,P=B,B=0),(typeof P>"u"?"undefined":i(P))==="object"?(Y=P,z=$):typeof P=="string"&&($!=null?Y[P]=$:z=P),z=z||d.default.sources.API,[V,B,Y,z]}function W(V,B,P,$){if(V==null)return null;var z=void 0,Y=void 0;if(B instanceof u.default){var q=[V.index,V.index+V.length].map(function(K){return B.transformPosition(K,$!==d.default.sources.USER)}),_=o(q,2);z=_[0],Y=_[1]}else{var G=[V.index,V.index+V.length].map(function(K){return K=0?K+P:Math.max(B,K+P)}),X=o(G,2);z=X[0],Y=X[1]}return new m.Range(z,Y-z)}n.expandConfig=N,n.overload=D,n.default=L},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function g(y,m){for(var b=0;b0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(b,x){var w=y.order.indexOf(b),S=y.order.indexOf(x);return w>=0||S>=0?w-S:b===x?0:b1?S-1:0),T=1;T1&&arguments[1]!==void 0?arguments[1]:{};i(this,l),this.quill=s,this.options=u};o.DEFAULTS={},n.default=o},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=["error","warn","log","info"],o="warn";function l(u){if(i.indexOf(u)<=i.indexOf(o)){for(var c,f=arguments.length,h=Array(f>1?f-1:0),d=1;d0&&typeof h[0]!="number")}function f(h,d,p){var v,g;if(u(h)||u(d)||h.prototype!==d.prototype)return!1;if(l(h))return l(d)?(h=i.call(h),d=i.call(d),s(h,d,p)):!1;if(c(h)){if(!c(d)||h.length!==d.length)return!1;for(v=0;v=0;v--)if(y[v]!=m[v])return!1;for(v=y.length-1;v>=0;v--)if(g=y[v],!s(h[g],d[g],p))return!1;return typeof h==typeof d}},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(1),o=function(){function l(s,u,c){c===void 0&&(c={}),this.attrName=s,this.keyName=u;var f=i.Scope.TYPE&i.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&i.Scope.LEVEL|f:this.scope=i.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return l.keys=function(s){return[].map.call(s.attributes,function(u){return u.name})},l.prototype.add=function(s,u){return this.canAdd(s,u)?(s.setAttribute(this.keyName,u),!0):!1},l.prototype.canAdd=function(s,u){var c=i.query(s,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},l.prototype.remove=function(s){s.removeAttribute(this.keyName)},l.prototype.value=function(s){var u=s.getAttribute(this.keyName);return this.canAdd(s,u)&&u?u:""},l}();n.default=o},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var i=function(){function T(F,I){var M=[],O=!0,k=!1,L=void 0;try{for(var N=F[Symbol.iterator](),R;!(O=(R=N.next()).done)&&(M.push(R.value),!(I&&M.length===I));O=!0);}catch(D){k=!0,L=D}finally{try{!O&&N.return&&N.return()}finally{if(k)throw L}}return M}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return T(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function T(F,I){for(var M=0;M=M+O)){var R=this.newlineIndex(M,!0)+1,D=N-R+1,W=this.isolate(R,D),V=W.next;W.format(k,L),V instanceof F&&V.formatAt(0,M-R+O-D,k,L)}}}},{key:"insertAt",value:function(M,O,k){if(k==null){var L=this.descendant(y.default,M),N=i(L,2),R=N[0],D=N[1];R.insertAt(D,O)}}},{key:"length",value:function(){var M=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` +`)?M:M+1}},{key:"newlineIndex",value:function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,M).lastIndexOf(` +`);var k=this.domNode.textContent.slice(M).indexOf(` +`);return k>-1?M+k:-1}},{key:"optimize",value:function(M){this.domNode.textContent.endsWith(` +`)||this.appendChild(f.default.create("text",` +`)),l(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"optimize",this).call(this,M);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(M),O.moveChildren(this),O.remove())}},{key:"replace",value:function(M){l(F.prototype.__proto__||Object.getPrototypeOf(F.prototype),"replace",this).call(this,M),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var k=f.default.find(O);k==null?O.parentNode.removeChild(O):k instanceof f.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(M){var O=l(F.__proto__||Object.getPrototypeOf(F),"create",this).call(this,M);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),F}(d.default);C.blotName="code-block",C.tagName="PRE",C.TAB=" ",n.Code=S,n.default=C},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},o=function(){function V(B,P){var $=[],z=!0,Y=!1,q=void 0;try{for(var _=B[Symbol.iterator](),G;!(z=(G=_.next()).done)&&($.push(G.value),!(P&&$.length===P));z=!0);}catch(X){Y=!0,q=X}finally{try{!z&&_.return&&_.return()}finally{if(Y)throw q}}return $}return function(B,P){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return V(B,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function V(B,P){for(var $=0;$=Y&&!K.endsWith(` +`)&&(z=!0),$.scroll.insertAt(q,K);var tt=$.scroll.line(q),et=o(tt,2),vt=et[0],st=et[1],yt=(0,M.default)({},(0,m.bubbleFormats)(vt));if(vt instanceof b.default){var kt=vt.descendant(d.default.Leaf,st),Yt=o(kt,1),ne=Yt[0];yt=(0,M.default)(yt,(0,m.bubbleFormats)(ne))}X=f.default.attributes.diff(yt,X)||{}}else if(i(_.insert)==="object"){var rt=Object.keys(_.insert)[0];if(rt==null)return q;$.scroll.insertAt(q,rt,_.insert[rt])}Y+=G}return Object.keys(X).forEach(function(nt){$.scroll.formatAt(q,G,nt,X[nt])}),q+G},0),P.reduce(function(q,_){return typeof _.delete=="number"?($.scroll.deleteAt(q,_.delete),q):q+(_.retain||_.insert.length||1)},0),this.scroll.batchEnd(),this.update(P)}},{key:"deleteText",value:function(P,$){return this.scroll.deleteAt(P,$),this.update(new u.default().retain(P).delete($))}},{key:"formatLine",value:function(P,$){var z=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Y).forEach(function(q){if(!(z.scroll.whitelist!=null&&!z.scroll.whitelist[q])){var _=z.scroll.lines(P,Math.max($,1)),G=$;_.forEach(function(X){var K=X.length();if(!(X instanceof v.default))X.format(q,Y[q]);else{var tt=P-X.offset(z.scroll),et=X.newlineIndex(tt+G)-tt+1;X.formatAt(tt,et,q,Y[q])}G-=K})}}),this.scroll.optimize(),this.update(new u.default().retain(P).retain($,(0,C.default)(Y)))}},{key:"formatText",value:function(P,$){var z=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Y).forEach(function(q){z.scroll.formatAt(P,$,q,Y[q])}),this.update(new u.default().retain(P).retain($,(0,C.default)(Y)))}},{key:"getContents",value:function(P,$){return this.delta.slice(P,P+$)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(P,$){return P.concat($.delta())},new u.default)}},{key:"getFormat",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=[],Y=[];$===0?this.scroll.path(P).forEach(function(_){var G=o(_,1),X=G[0];X instanceof b.default?z.push(X):X instanceof d.default.Leaf&&Y.push(X)}):(z=this.scroll.lines(P,$),Y=this.scroll.descendants(d.default.Leaf,P,$));var q=[z,Y].map(function(_){if(_.length===0)return{};for(var G=(0,m.bubbleFormats)(_.shift());Object.keys(G).length>0;){var X=_.shift();if(X==null)return G;G=D((0,m.bubbleFormats)(X),G)}return G});return M.default.apply(M.default,q)}},{key:"getText",value:function(P,$){return this.getContents(P,$).filter(function(z){return typeof z.insert=="string"}).map(function(z){return z.insert}).join("")}},{key:"insertEmbed",value:function(P,$,z){return this.scroll.insertAt(P,$,z),this.update(new u.default().retain(P).insert(k({},$,z)))}},{key:"insertText",value:function(P,$){var z=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $=$.replace(/\r\n/g,` +`).replace(/\r/g,` +`),this.scroll.insertAt(P,$),Object.keys(Y).forEach(function(q){z.scroll.formatAt(P,$.length,q,Y[q])}),this.update(new u.default().retain(P).insert($,(0,C.default)(Y)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var P=this.scroll.children.head;return P.statics.blotName!==b.default.blotName||P.children.length>1?!1:P.children.head instanceof w.default}},{key:"removeFormat",value:function(P,$){var z=this.getText(P,$),Y=this.scroll.line(P+$),q=o(Y,2),_=q[0],G=q[1],X=0,K=new u.default;_!=null&&(_ instanceof v.default?X=_.newlineIndex(G)-G+1:X=_.length()-G,K=_.delta().slice(G,G+X-1).insert(` +`));var tt=this.getContents(P,$+X),et=tt.diff(new u.default().insert(z).concat(K)),vt=new u.default().retain(P).concat(et);return this.applyDelta(vt)}},{key:"update",value:function(P){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Y=this.delta;if($.length===1&&$[0].type==="characterData"&&$[0].target.data.match(N)&&d.default.find($[0].target)){var q=d.default.find($[0].target),_=(0,m.bubbleFormats)(q),G=q.offset(this.scroll),X=$[0].oldValue.replace(y.default.CONTENTS,""),K=new u.default().insert(X),tt=new u.default().insert(q.value()),et=new u.default().retain(G).concat(K.diff(tt,z));P=et.reduce(function(vt,st){return st.insert?vt.insert(st.insert,_):vt.push(st)},new u.default),this.delta=Y.compose(P)}else this.delta=this.getDelta(),(!P||!(0,F.default)(Y.compose(P),this.delta))&&(P=Y.diff(this.delta,z));return P}}]),V}();function D(V,B){return Object.keys(B).reduce(function(P,$){return V[$]==null||(B[$]===V[$]?P[$]=B[$]:Array.isArray(B[$])?B[$].indexOf(V[$])<0&&(P[$]=B[$].concat([V[$]])):P[$]=[B[$],V[$]]),P},{})}function W(V){return V.reduce(function(B,P){if(P.insert===1){var $=(0,C.default)(P.attributes);return delete $.image,B.insert({image:P.attributes.image},$)}if(P.attributes!=null&&(P.attributes.list===!0||P.attributes.bullet===!0)&&(P=(0,C.default)(P),P.attributes.list?P.attributes.list="ordered":(P.attributes.list="bullet",delete P.attributes.bullet)),typeof P.insert=="string"){var z=P.insert.replace(/\r\n/g,` +`).replace(/\r/g,` +`);return B.insert(z,P.attributes)}return B.push(P)},new u.default)}n.default=R},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var i=function(){function T(F,I){var M=[],O=!0,k=!1,L=void 0;try{for(var N=F[Symbol.iterator](),R;!(O=(R=N.next()).done)&&(M.push(R.value),!(I&&M.length===I));O=!0);}catch(D){k=!0,L=D}finally{try{!O&&N.return&&N.return()}finally{if(k)throw L}}return M}return function(F,I){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return T(F,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function T(F,I){for(var M=0;M1&&arguments[1]!==void 0?arguments[1]:0;b(this,T),this.index=F,this.length=I},S=function(){function T(F,I){var M=this;b(this,T),this.emitter=I,this.scroll=F,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=s.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){M.mouseDown||setTimeout(M.update.bind(M,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(O,k){O===p.default.events.TEXT_CHANGE&&k.length()>0&&M.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(M.hasFocus()){var O=M.getNativeRange();O!=null&&O.start.node!==M.cursor.textNode&&M.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{M.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(O,k){if(k.range){var L=k.range,N=L.startNode,R=L.startOffset,D=L.endNode,W=L.endOffset;M.setNativeRange(N,R,D,W)}}),this.update(p.default.sources.SILENT)}return o(T,[{key:"handleComposition",value:function(){var I=this;this.root.addEventListener("compositionstart",function(){I.composing=!0}),this.root.addEventListener("compositionend",function(){if(I.composing=!1,I.cursor.parent){var M=I.cursor.restore();if(!M)return;setTimeout(function(){I.setNativeRange(M.startNode,M.startOffset,M.endNode,M.endOffset)},1)}})}},{key:"handleDragging",value:function(){var I=this;this.emitter.listenDOM("mousedown",document.body,function(){I.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){I.mouseDown=!1,I.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(I,M){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[I])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||s.default.query(I,s.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var k=s.default.find(O.start.node,!1);if(k==null)return;if(k instanceof s.default.Leaf){var L=k.split(O.start.offset);k.parent.insertBefore(this.cursor,L)}else k.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(I,M),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(I){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();I=Math.min(I,O-1),M=Math.min(I+M,O-1)-I;var k=void 0,L=this.scroll.leaf(I),N=i(L,2),R=N[0],D=N[1];if(R==null)return null;var W=R.position(D,!0),V=i(W,2);k=V[0],D=V[1];var B=document.createRange();if(M>0){B.setStart(k,D);var P=this.scroll.leaf(I+M),$=i(P,2);if(R=$[0],D=$[1],R==null)return null;var z=R.position(D,!0),Y=i(z,2);return k=Y[0],D=Y[1],B.setEnd(k,D),B.getBoundingClientRect()}else{var q="left",_=void 0;return k instanceof Text?(D0&&(q="right")),{bottom:_.top+_.height,height:_.height,left:_[q],right:_[q],top:_.top,width:0}}}},{key:"getNativeRange",value:function(){var I=document.getSelection();if(I==null||I.rangeCount<=0)return null;var M=I.getRangeAt(0);if(M==null)return null;var O=this.normalizeNative(M);return x.info("getNativeRange",O),O}},{key:"getRange",value:function(){var I=this.getNativeRange();if(I==null)return[null,null];var M=this.normalizedToRange(I);return[M,I]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(I){var M=this,O=[[I.start.node,I.start.offset]];I.native.collapsed||O.push([I.end.node,I.end.offset]);var k=O.map(function(R){var D=i(R,2),W=D[0],V=D[1],B=s.default.find(W,!0),P=B.offset(M.scroll);return V===0?P:B instanceof s.default.Container?P+B.length():P+B.index(W,V)}),L=Math.min(Math.max.apply(Math,m(k)),this.scroll.length()-1),N=Math.min.apply(Math,[L].concat(m(k)));return new w(N,L-N)}},{key:"normalizeNative",value:function(I){if(!C(this.root,I.startContainer)||!I.collapsed&&!C(this.root,I.endContainer))return null;var M={start:{node:I.startContainer,offset:I.startOffset},end:{node:I.endContainer,offset:I.endOffset},native:I};return[M.start,M.end].forEach(function(O){for(var k=O.node,L=O.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>L)k=k.childNodes[L],L=0;else if(k.childNodes.length===L)k=k.lastChild,L=k instanceof Text?k.data.length:k.childNodes.length+1;else break;O.node=k,O.offset=L}),M}},{key:"rangeToNative",value:function(I){var M=this,O=I.collapsed?[I.index]:[I.index,I.index+I.length],k=[],L=this.scroll.length();return O.forEach(function(N,R){N=Math.min(L-1,N);var D=void 0,W=M.scroll.leaf(N),V=i(W,2),B=V[0],P=V[1],$=B.position(P,R!==0),z=i($,2);D=z[0],P=z[1],k.push(D,P)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(I){var M=this.lastRange;if(M!=null){var O=this.getBounds(M.index,M.length);if(O!=null){var k=this.scroll.length()-1,L=this.scroll.line(Math.min(M.index,k)),N=i(L,1),R=N[0],D=R;if(M.length>0){var W=this.scroll.line(Math.min(M.index+M.length,k)),V=i(W,1);D=V[0]}if(!(R==null||D==null)){var B=I.getBoundingClientRect();O.topB.bottom&&(I.scrollTop+=O.bottom-B.bottom)}}}}},{key:"setNativeRange",value:function(I,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",I,M,O,k),!(I!=null&&(this.root.parentNode==null||I.parentNode==null||O.parentNode==null))){var N=document.getSelection();if(N!=null)if(I!=null){this.hasFocus()||this.root.focus();var R=(this.getNativeRange()||{}).native;if(R==null||L||I!==R.startContainer||M!==R.startOffset||O!==R.endContainer||k!==R.endOffset){I.tagName=="BR"&&(M=[].indexOf.call(I.parentNode.childNodes,I),I=I.parentNode),O.tagName=="BR"&&(k=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var D=document.createRange();D.setStart(I,M),D.setEnd(O,k),N.removeAllRanges(),N.addRange(D)}}else N.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(I){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof M=="string"&&(O=M,M=!1),x.info("setRange",I),I!=null){var k=this.rangeToNative(I);this.setNativeRange.apply(this,m(k).concat([M]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,M=this.lastRange,O=this.getRange(),k=i(O,2),L=k[0],N=k[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,h.default)(M,this.lastRange)){var R;!this.composing&&N!=null&&N.native.collapsed&&N.start.node!==this.cursor.textNode&&this.cursor.restore();var D=[p.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(M),I];if((R=this.emitter).emit.apply(R,[p.default.events.EDITOR_CHANGE].concat(D)),I!==p.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,D)}}}}]),T}();function C(T,F){try{F.parentNode}catch{return!1}return F instanceof Text&&(F=F.parentNode),T.contains(F)}n.Range=w,n.default=S},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function p(v,g){for(var y=0;y0&&(d+=1),[this.parent.domNode,d]},c.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},c.scope=l.Scope.INLINE_BLOT,c}(o.default);n.default=s},function(t,n,a){var i=a(11),o=a(3),l={attributes:{compose:function(u,c,f){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var h=o(!0,{},c);f||(h=Object.keys(h).reduce(function(p,v){return h[v]!=null&&(p[v]=h[v]),p},{}));for(var d in u)u[d]!==void 0&&c[d]===void 0&&(h[d]=u[d]);return Object.keys(h).length>0?h:void 0},diff:function(u,c){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var f=Object.keys(u).concat(Object.keys(c)).reduce(function(h,d){return i(u[d],c[d])||(h[d]=c[d]===void 0?null:c[d]),h},{});return Object.keys(f).length>0?f:void 0},transform:function(u,c,f){if(typeof u!="object")return c;if(typeof c=="object"){if(!f)return c;var h=Object.keys(c).reduce(function(d,p){return u[p]===void 0&&(d[p]=c[p]),d},{});return Object.keys(h).length>0?h:void 0}}},iterator:function(u){return new s(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function s(u){this.ops=u,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(u){u||(u=1/0);var c=this.ops[this.index];if(c){var f=this.offset,h=l.length(c);if(u>=h-f?(u=h-f,this.index+=1,this.offset=0):this.offset+=u,typeof c.delete=="number")return{delete:u};var d={};return c.attributes&&(d.attributes=c.attributes),typeof c.retain=="number"?d.retain=u:typeof c.insert=="string"?d.insert=c.insert.substr(f,u):d.insert=c.insert,d}else return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,c=this.index,f=this.next(),h=this.ops.slice(this.index);return this.offset=u,this.index=c,[f].concat(h)}else return[]},t.exports=l},function(t,n){var a=function(){function i(v,g){return g!=null&&v instanceof g}var o;try{o=Map}catch{o=function(){}}var l;try{l=Set}catch{l=function(){}}var s;try{s=Promise}catch{s=function(){}}function u(v,g,y,m,b){typeof g=="object"&&(y=g.depth,m=g.prototype,b=g.includeNonEnumerable,g=g.circular);var x=[],w=[],S=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof y>"u"&&(y=1/0);function C(T,F){if(T===null)return null;if(F===0)return T;var I,M;if(typeof T!="object")return T;if(i(T,o))I=new o;else if(i(T,l))I=new l;else if(i(T,s))I=new s(function(B,P){T.then(function($){B(C($,F-1))},function($){P(C($,F-1))})});else if(u.__isArray(T))I=[];else if(u.__isRegExp(T))I=new RegExp(T.source,p(T)),T.lastIndex&&(I.lastIndex=T.lastIndex);else if(u.__isDate(T))I=new Date(T.getTime());else{if(S&&Buffer.isBuffer(T))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(T.length):I=new Buffer(T.length),T.copy(I),I;i(T,Error)?I=Object.create(T):typeof m>"u"?(M=Object.getPrototypeOf(T),I=Object.create(M)):(I=Object.create(m),M=m)}if(g){var O=x.indexOf(T);if(O!=-1)return w[O];x.push(T),w.push(I)}i(T,o)&&T.forEach(function(B,P){var $=C(P,F-1),z=C(B,F-1);I.set($,z)}),i(T,l)&&T.forEach(function(B){var P=C(B,F-1);I.add(P)});for(var k in T){var L;M&&(L=Object.getOwnPropertyDescriptor(M,k)),!(L&&L.set==null)&&(I[k]=C(T[k],F-1))}if(Object.getOwnPropertySymbols)for(var N=Object.getOwnPropertySymbols(T),k=0;k0){if(D instanceof h.BlockEmbed||P instanceof h.BlockEmbed){this.optimize();return}if(D instanceof y.default){var $=D.newlineIndex(D.length(),!0);if($>-1&&(D=D.split($+1),D===P)){this.optimize();return}}else if(P instanceof y.default){var z=P.newlineIndex(0);z>-1&&P.split(z+1)}var Y=P.children.head instanceof v.default?null:P.children.head;D.moveChildren(P,Y),D.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,L,N,R){this.whitelist!=null&&!this.whitelist[N]||(l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"formatAt",this).call(this,k,L,N,R),this.optimize())}},{key:"insertAt",value:function(k,L,N){if(!(N!=null&&this.whitelist!=null&&!this.whitelist[L])){if(k>=this.length())if(N==null||u.default.query(L,u.default.Scope.BLOCK)==null){var R=u.default.create(this.statics.defaultChild);this.appendChild(R),N==null&&L.endsWith(` +`)&&(L=L.slice(0,-1)),R.insertAt(0,L,N)}else{var D=u.default.create(L,N);this.appendChild(D)}else l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,k,L,N);this.optimize()}}},{key:"insertBefore",value:function(k,L){if(k.statics.scope===u.default.Scope.INLINE_BLOT){var N=u.default.create(this.statics.defaultChild);N.appendChild(k),k=N}l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,k,L)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(T,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,N=function R(D,W,V){var B=[],P=V;return D.children.forEachAt(W,V,function($,z,Y){T($)?B.push($):$ instanceof u.default.Container&&(B=B.concat(R($,z,P))),P-=Y}),B};return N(this,k,L)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,k,L),k.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,k,L))}},{key:"path",value:function(k){return l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var L=f.default.sources.USER;typeof k=="string"&&(L=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,L,k),l(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,L,k)}}}]),M}(u.default.Scroll);F.blotName="scroll",F.className="ql-editor",F.tagName="DIV",F.defaultChild="block",F.allowedChildren=[d.default,h.BlockEmbed,b.default],n.default=F},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},o=function(){function _(G,X){var K=[],tt=!0,et=!1,vt=void 0;try{for(var st=G[Symbol.iterator](),yt;!(tt=(yt=st.next()).done)&&(K.push(yt.value),!(X&&K.length===X));tt=!0);}catch(kt){et=!0,vt=kt}finally{try{!tt&&st.return&&st.return()}finally{if(et)throw vt}}return K}return function(G,X){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return _(G,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function _(G,X){for(var K=0;K1&&arguments[1]!==void 0?arguments[1]:{},et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=q(K);if(vt==null||vt.key==null)return N.warn("Attempted to add invalid keyboard binding",vt);typeof tt=="function"&&(tt={handler:tt}),typeof et=="function"&&(et={handler:et}),vt=(0,d.default)(vt,tt,et),this.bindings[vt.key]=this.bindings[vt.key]||[],this.bindings[vt.key].push(vt)}},{key:"listen",value:function(){var K=this;this.quill.root.addEventListener("keydown",function(tt){if(!tt.defaultPrevented){var et=tt.which||tt.keyCode,vt=(K.bindings[et]||[]).filter(function(Se){return G.match(tt,Se)});if(vt.length!==0){var st=K.quill.getSelection();if(!(st==null||!K.quill.hasFocus())){var yt=K.quill.getLine(st.index),kt=o(yt,2),Yt=kt[0],ne=kt[1],rt=K.quill.getLeaf(st.index),nt=o(rt,2),ft=nt[0],dt=nt[1],ot=st.length===0?[ft,dt]:K.quill.getLeaf(st.index+st.length),Mt=o(ot,2),Ot=Mt[0],Pt=Mt[1],Tr=ft instanceof b.default.Text?ft.value().slice(0,dt):"",En=Ot instanceof b.default.Text?Ot.value().slice(Pt):"",ue={collapsed:st.length===0,empty:st.length===0&&Yt.length()<=1,format:K.quill.getFormat(st),offset:ne,prefix:Tr,suffix:En},MO=vt.some(function(Se){if(Se.collapsed!=null&&Se.collapsed!==ue.collapsed||Se.empty!=null&&Se.empty!==ue.empty||Se.offset!=null&&Se.offset!==ue.offset)return!1;if(Array.isArray(Se.format)){if(Se.format.every(function(Wn){return ue.format[Wn]==null}))return!1}else if(i(Se.format)==="object"&&!Object.keys(Se.format).every(function(Wn){return Se.format[Wn]===!0?ue.format[Wn]!=null:Se.format[Wn]===!1?ue.format[Wn]==null:(0,f.default)(Se.format[Wn],ue.format[Wn])}))return!1;return Se.prefix!=null&&!Se.prefix.test(ue.prefix)||Se.suffix!=null&&!Se.suffix.test(ue.suffix)?!1:Se.handler.call(K,st,ue)!==!0});MO&&tt.preventDefault()}}}})}}]),G}(F.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:Y("bold"),italic:Y("italic"),underline:Y("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(G,X){if(X.collapsed&&X.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,X){if(X.collapsed&&X.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,X){X.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):X.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,w.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(G){this.quill.history.cutoff();var X=new v.default().retain(G.index).delete(G.length).insert(" ");this.quill.updateContents(X,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,w.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,X){this.quill.format("list",!1,w.default.sources.USER),X.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var X=this.quill.getLine(G.index),K=o(X,2),tt=K[0],et=K[1],vt=(0,d.default)({},tt.formats(),{list:"checked"}),st=new v.default().retain(G.index).insert(` +`,vt).retain(tt.length()-et-1).retain(1,{list:"unchecked"});this.quill.updateContents(st,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,X){var K=this.quill.getLine(G.index),tt=o(K,2),et=tt[0],vt=tt[1],st=new v.default().retain(G.index).insert(` +`,X.format).retain(et.length()-vt-1).retain(1,{header:null});this.quill.updateContents(st,w.default.sources.USER),this.quill.setSelection(G.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,X){var K=X.prefix.length,tt=this.quill.getLine(G.index),et=o(tt,2),vt=et[0],st=et[1];if(st>K)return!0;var yt=void 0;switch(X.prefix.trim()){case"[]":case"[ ]":yt="unchecked";break;case"[x]":yt="checked";break;case"-":case"*":yt="bullet";break;default:yt="ordered"}this.quill.insertText(G.index," ",w.default.sources.USER),this.quill.history.cutoff();var kt=new v.default().retain(G.index-st).delete(K+1).retain(vt.length()-2-st).retain(1,{list:yt});this.quill.updateContents(kt,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-K,w.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var X=this.quill.getLine(G.index),K=o(X,2),tt=K[0],et=K[1],vt=new v.default().retain(G.index+tt.length()-et-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(vt,w.default.sources.USER)}},"embed left":W(D.keys.LEFT,!1),"embed left shift":W(D.keys.LEFT,!0),"embed right":W(D.keys.RIGHT,!1),"embed right shift":W(D.keys.RIGHT,!0)}};function W(_,G){var X,K=_===D.keys.LEFT?"prefix":"suffix";return X={key:_,shiftKey:G,altKey:null},M(X,K,/^$/),M(X,"handler",function(et){var vt=et.index;_===D.keys.RIGHT&&(vt+=et.length+1);var st=this.quill.getLeaf(vt),yt=o(st,1),kt=yt[0];return kt instanceof b.default.Embed?(_===D.keys.LEFT?G?this.quill.setSelection(et.index-1,et.length+1,w.default.sources.USER):this.quill.setSelection(et.index-1,w.default.sources.USER):G?this.quill.setSelection(et.index,et.length+1,w.default.sources.USER):this.quill.setSelection(et.index+et.length+1,w.default.sources.USER),!1):!0}),X}function V(_,G){if(!(_.index===0||this.quill.getLength()<=1)){var X=this.quill.getLine(_.index),K=o(X,1),tt=K[0],et={};if(G.offset===0){var vt=this.quill.getLine(_.index-1),st=o(vt,1),yt=st[0];if(yt!=null&&yt.length()>1){var kt=tt.formats(),Yt=this.quill.getFormat(_.index-1,1);et=y.default.attributes.diff(kt,Yt)||{}}}var ne=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(_.index-ne,ne,w.default.sources.USER),Object.keys(et).length>0&&this.quill.formatLine(_.index-ne,ne,et,w.default.sources.USER),this.quill.focus()}}function B(_,G){var X=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(_.index>=this.quill.getLength()-X)){var K={},tt=0,et=this.quill.getLine(_.index),vt=o(et,1),st=vt[0];if(G.offset>=st.length()-1){var yt=this.quill.getLine(_.index+1),kt=o(yt,1),Yt=kt[0];if(Yt){var ne=st.formats(),rt=this.quill.getFormat(_.index,1);K=y.default.attributes.diff(ne,rt)||{},tt=Yt.length()}}this.quill.deleteText(_.index,X,w.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(_.index+tt-1,X,K,w.default.sources.USER)}}function P(_){var G=this.quill.getLines(_),X={};if(G.length>1){var K=G[0].formats(),tt=G[G.length-1].formats();X=y.default.attributes.diff(tt,K)||{}}this.quill.deleteText(_,w.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(_.index,1,X,w.default.sources.USER),this.quill.setSelection(_.index,w.default.sources.SILENT),this.quill.focus()}function $(_,G){var X=this;_.length>0&&this.quill.scroll.deleteAt(_.index,_.length);var K=Object.keys(G.format).reduce(function(tt,et){return b.default.query(et,b.default.Scope.BLOCK)&&!Array.isArray(G.format[et])&&(tt[et]=G.format[et]),tt},{});this.quill.insertText(_.index,` +`,K,w.default.sources.USER),this.quill.setSelection(_.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(tt){K[tt]==null&&(Array.isArray(G.format[tt])||tt!=="link"&&X.quill.format(tt,G.format[tt],w.default.sources.USER))})}function z(_){return{key:D.keys.TAB,shiftKey:!_,format:{"code-block":!0},handler:function(X){var K=b.default.query("code-block"),tt=X.index,et=X.length,vt=this.quill.scroll.descendant(K,tt),st=o(vt,2),yt=st[0],kt=st[1];if(yt!=null){var Yt=this.quill.getIndex(yt),ne=yt.newlineIndex(kt,!0)+1,rt=yt.newlineIndex(Yt+kt+et),nt=yt.domNode.textContent.slice(ne,rt).split(` +`);kt=0,nt.forEach(function(ft,dt){_?(yt.insertAt(ne+kt,K.TAB),kt+=K.TAB.length,dt===0?tt+=K.TAB.length:et+=K.TAB.length):ft.startsWith(K.TAB)&&(yt.deleteAt(ne+kt,K.TAB.length),kt-=K.TAB.length,dt===0?tt-=K.TAB.length:et-=K.TAB.length),kt+=ft.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(tt,et,w.default.sources.SILENT)}}}}function Y(_){return{key:_[0].toUpperCase(),shortKey:!0,handler:function(X,K){this.quill.format(_,!K.format[_],w.default.sources.USER)}}}function q(_){if(typeof _=="string"||typeof _=="number")return q({key:_});if((typeof _>"u"?"undefined":i(_))==="object"&&(_=(0,u.default)(_,!1)),typeof _.key=="string")if(D.keys[_.key.toUpperCase()]!=null)_.key=D.keys[_.key.toUpperCase()];else if(_.key.length===1)_.key=_.key.toUpperCase().charCodeAt(0);else return null;return _.shortKey&&(_[R]=_.shortKey,delete _.shortKey),_}n.default=D,n.SHORTKEY=R},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function y(m,b){var x=[],w=!0,S=!1,C=void 0;try{for(var T=m[Symbol.iterator](),F;!(w=(F=T.next()).done)&&(x.push(F.value),!(b&&x.length===b));w=!0);}catch(I){S=!0,C=I}finally{try{!w&&T.return&&T.return()}finally{if(S)throw C}}return x}return function(m,b){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return y(m,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function y(m,b,x){m===null&&(m=Function.prototype);var w=Object.getOwnPropertyDescriptor(m,b);if(w===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,x)}else{if("value"in w)return w.value;var C=w.get;return C===void 0?void 0:C.call(x)}},l=function(){function y(m,b){for(var x=0;x-1}n.default=d,n.sanitize=p},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},o=function(){function g(y,m){for(var b=0;b1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(m!==x&&(x!=null&&x.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":i(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var x=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),g}();n.default=v},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(0),o=N(i),l=a(5),s=N(l),u=a(4),c=N(u),f=a(16),h=N(f),d=a(25),p=N(d),v=a(24),g=N(v),y=a(35),m=N(y),b=a(6),x=N(b),w=a(22),S=N(w),C=a(7),T=N(C),F=a(55),I=N(F),M=a(42),O=N(M),k=a(23),L=N(k);function N(R){return R&&R.__esModule?R:{default:R}}s.default.register({"blots/block":c.default,"blots/block/embed":u.BlockEmbed,"blots/break":h.default,"blots/container":p.default,"blots/cursor":g.default,"blots/embed":m.default,"blots/inline":x.default,"blots/scroll":S.default,"blots/text":T.default,"modules/clipboard":I.default,"modules/history":O.default,"modules/keyboard":L.default}),o.default.register(c.default,h.default,g.default,x.default,S.default,T.default),n.default=s.default},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(1),o=function(){function l(s){this.domNode=s,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(s){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof s=="string"&&(s=s.toUpperCase(),parseInt(s).toString()===s&&(s=parseInt(s))),typeof s=="number"?u=document.createElement(this.tagName[s-1]):this.tagName.indexOf(s)>-1?u=document.createElement(s):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var s=this.domNode.cloneNode(!1);return i.create(s)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},l.prototype.deleteAt=function(s,u){var c=this.isolate(s,u);c.remove()},l.prototype.formatAt=function(s,u,c,f){var h=this.isolate(s,u);if(i.query(c,i.Scope.BLOT)!=null&&f)h.wrap(c,f);else if(i.query(c,i.Scope.ATTRIBUTE)!=null){var d=i.create(this.statics.scope);h.wrap(d),d.format(c,f)}},l.prototype.insertAt=function(s,u,c){var f=c==null?i.create("text",u):i.create(u,c),h=this.split(s);this.parent.insertBefore(f,h)},l.prototype.insertInto=function(s,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var c=null;s.children.insertBefore(this,u),u!=null&&(c=u.domNode),(this.domNode.parentNode!=s.domNode||this.domNode.nextSibling!=c)&&s.domNode.insertBefore(this.domNode,c),this.parent=s,this.attach()},l.prototype.isolate=function(s,u){var c=this.split(s);return c.split(u),c},l.prototype.length=function(){return 1},l.prototype.offset=function(s){return s===void 0&&(s=this.parent),this.parent==null||this==s?0:this.parent.children.offset(this)+this.parent.offset(s)},l.prototype.optimize=function(s){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(s){s.parent!=null&&(s.parent.insertBefore(this,s.next),s.remove())},l.prototype.replaceWith=function(s,u){var c=typeof s=="string"?i.create(s,u):s;return c.replace(this),c},l.prototype.split=function(s,u){return s===0?this:this.next},l.prototype.update=function(s,u){},l.prototype.wrap=function(s,u){var c=typeof s=="string"?i.create(s,u):s;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},l.blotName="abstract",l}();n.default=o},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(12),o=a(32),l=a(33),s=a(1),u=function(){function c(f){this.attributes={},this.domNode=f,this.build()}return c.prototype.attribute=function(f,h){h?f.add(this.domNode,h)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},c.prototype.build=function(){var f=this;this.attributes={};var h=i.default.keys(this.domNode),d=o.default.keys(this.domNode),p=l.default.keys(this.domNode);h.concat(d).concat(p).forEach(function(v){var g=s.query(v,s.Scope.ATTRIBUTE);g instanceof i.default&&(f.attributes[g.attrName]=g)})},c.prototype.copy=function(f){var h=this;Object.keys(this.attributes).forEach(function(d){var p=h.attributes[d].value(h.domNode);f.format(d,p)})},c.prototype.move=function(f){var h=this;this.copy(f),Object.keys(this.attributes).forEach(function(d){h.attributes[d].remove(h.domNode)}),this.attributes={}},c.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(h,d){return h[d]=f.attributes[d].value(f.domNode),h},{})},c}();n.default=u},function(t,n,a){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)f.hasOwnProperty(h)&&(c[h]=f[h])};return function(c,f){u(c,f);function h(){this.constructor=c}c.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(12);function l(u,c){var f=u.getAttribute("class")||"";return f.split(/\s+/).filter(function(h){return h.indexOf(c+"-")===0})}var s=function(u){i(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(h){return h.split("-").slice(0,-1).join("-")})},c.prototype.add=function(f,h){return this.canAdd(f,h)?(this.remove(f),f.classList.add(this.keyName+"-"+h),!0):!1},c.prototype.remove=function(f){var h=l(f,this.keyName);h.forEach(function(d){f.classList.remove(d)}),f.classList.length===0&&f.removeAttribute("class")},c.prototype.value=function(f){var h=l(f,this.keyName)[0]||"",d=h.slice(this.keyName.length+1);return this.canAdd(f,d)?d:""},c}(o.default);n.default=s},function(t,n,a){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)f.hasOwnProperty(h)&&(c[h]=f[h])};return function(c,f){u(c,f);function h(){this.constructor=c}c.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(12);function l(u){var c=u.split("-"),f=c.slice(1).map(function(h){return h[0].toUpperCase()+h.slice(1)}).join("");return c[0]+f}var s=function(u){i(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(h){var d=h.split(":");return d[0].trim()})},c.prototype.add=function(f,h){return this.canAdd(f,h)?(f.style[l(this.keyName)]=h,!0):!1},c.prototype.remove=function(f){f.style[l(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},c.prototype.value=function(f){var h=f.style[l(this.keyName)];return this.canAdd(f,h)?h:""},c}(o.default);n.default=s},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function s(u,c){for(var f=0;fF&&this.stack.undo.length>0){var I=this.stack.undo.pop();T=T.compose(I.undo),S=I.redo.compose(S)}else this.lastRecorded=F;this.stack.undo.push({redo:S,undo:T}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(C){C.undo=S.transform(C.undo,!0),C.redo=S.transform(C.redo,!0)}),this.stack.redo.forEach(function(C){C.undo=S.transform(C.undo,!0),C.redo=S.transform(C.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(f.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(b){var x=b.ops[b.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(` +`):x.attributes!=null?Object.keys(x.attributes).some(function(w){return l.default.query(w,l.default.Scope.BLOCK)!=null}):!1}function m(b){var x=b.reduce(function(S,C){return S+=C.delete||0,S},0),w=b.length()-x;return y(b)&&(w-=1),w}n.default=g,n.getLastChangeIndex=m},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var i=function(){function $(z,Y){for(var q=0;q0&&arguments[0]!==void 0?arguments[0]:"link",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),_!=null?this.textbox.value=_:q!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+q)||""),this.root.setAttribute("data-mode",q)}},{key:"restoreFocus",value:function(){var q=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=q}},{key:"save",value:function(){var q=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var _=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",q,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",q,h.default.sources.USER)),this.quill.root.scrollTop=_;break}case"video":q=B(q);case"formula":{if(!q)break;var G=this.quill.getSelection(!0);if(G!=null){var X=G.index+G.length;this.quill.insertEmbed(X,this.root.getAttribute("data-mode"),q,h.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(X+1," ",h.default.sources.USER),this.quill.setSelection(X+2,h.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),z}(T.default);function B($){var z=$.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||$.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return z?(z[1]||"https")+"://www.youtube.com/embed/"+z[2]+"?showinfo=0":(z=$.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(z[1]||"https")+"://player.vimeo.com/video/"+z[2]+"/":$}function P($,z){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;z.forEach(function(q){var _=document.createElement("option");q===Y?_.setAttribute("selected","selected"):_.setAttribute("value",q),$.appendChild(_)})}n.BaseTooltip=V,n.default=W},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var l=[],s=0;s1&&this.append.apply(this,l.slice(1))},o.prototype.contains=function(l){for(var s,u=this.iterator();s=u();)if(s===l)return!0;return!1},o.prototype.insertBefore=function(l,s){l&&(l.next=s,s!=null?(l.prev=s.prev,s.prev!=null&&(s.prev.next=l),s.prev=l,s===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},o.prototype.offset=function(l){for(var s=0,u=this.head;u!=null;){if(u===l)return s;s+=u.length(),u=u.next}return-1},o.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},o.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var s=l;return l!=null&&(l=l.next),s}},o.prototype.find=function(l,s){s===void 0&&(s=!1);for(var u,c=this.iterator();u=c();){var f=u.length();if(lp?u(d,l-p,Math.min(s,p+g-l)):u(d,0,Math.min(g,l+s-p)),p+=g}},o.prototype.map=function(l){return this.reduce(function(s,u){return s.push(l(u)),s},[])},o.prototype.reduce=function(l,s){for(var u,c=this.iterator();u=c();)s=l(s,u);return s},o}();n.default=i},function(t,n,a){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(17),l=a(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,c=function(f){i(h,f);function h(d){var p=f.call(this,d)||this;return p.scroll=p,p.observer=new MutationObserver(function(v){p.update(v)}),p.observer.observe(p.domNode,s),p.attach(),p}return h.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},h.prototype.deleteAt=function(d,p){this.update(),d===0&&p===this.length()?this.children.forEach(function(v){v.remove()}):f.prototype.deleteAt.call(this,d,p)},h.prototype.formatAt=function(d,p,v,g){this.update(),f.prototype.formatAt.call(this,d,p,v,g)},h.prototype.insertAt=function(d,p,v){this.update(),f.prototype.insertAt.call(this,d,p,v)},h.prototype.optimize=function(d,p){var v=this;d===void 0&&(d=[]),p===void 0&&(p={}),f.prototype.optimize.call(this,p);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)d.push(g.pop());for(var y=function(w,S){S===void 0&&(S=!0),!(w==null||w===v)&&w.domNode.parentNode!=null&&(w.domNode[l.DATA_KEY].mutations==null&&(w.domNode[l.DATA_KEY].mutations=[]),S&&y(w.parent))},m=function(w){w.domNode[l.DATA_KEY]==null||w.domNode[l.DATA_KEY].mutations==null||(w instanceof o.default&&w.children.forEach(m),w.optimize(p))},b=d,x=0;b.length>0;x+=1){if(x>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(w){var S=l.find(w.target,!0);S!=null&&(S.domNode===w.target&&(w.type==="childList"?(y(l.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(C){var T=l.find(C,!1);y(T,!1),T instanceof o.default&&T.children.forEach(function(F){y(F,!1)})})):w.type==="attributes"&&y(S.prev)),y(S))}),this.children.forEach(m),b=[].slice.call(this.observer.takeRecords()),g=b.slice();g.length>0;)d.push(g.pop())}},h.prototype.update=function(d,p){var v=this;p===void 0&&(p={}),d=d||this.observer.takeRecords(),d.map(function(g){var y=l.find(g.target,!0);return y==null?null:y.domNode[l.DATA_KEY].mutations==null?(y.domNode[l.DATA_KEY].mutations=[g],y):(y.domNode[l.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===v||g.domNode[l.DATA_KEY]==null||g.update(g.domNode[l.DATA_KEY].mutations||[],p)}),this.domNode[l.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,p),this.optimize(d,p)},h.blotName="scroll",h.defaultChild="block",h.scope=l.Scope.BLOCK_BLOT,h.tagName="DIV",h}(o.default);n.default=c},function(t,n,a){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var d in h)h.hasOwnProperty(d)&&(f[d]=h[d])};return function(f,h){c(f,h);function d(){this.constructor=f}f.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(18),l=a(1);function s(c,f){if(Object.keys(c).length!==Object.keys(f).length)return!1;for(var h in c)if(c[h]!==f[h])return!1;return!0}var u=function(c){i(f,c);function f(){return c!==null&&c.apply(this,arguments)||this}return f.formats=function(h){if(h.tagName!==f.tagName)return c.formats.call(this,h)},f.prototype.format=function(h,d){var p=this;h===this.statics.blotName&&!d?(this.children.forEach(function(v){v instanceof o.default||(v=v.wrap(f.blotName,!0)),p.attributes.copy(v)}),this.unwrap()):c.prototype.format.call(this,h,d)},f.prototype.formatAt=function(h,d,p,v){if(this.formats()[p]!=null||l.query(p,l.Scope.ATTRIBUTE)){var g=this.isolate(h,d);g.format(p,v)}else c.prototype.formatAt.call(this,h,d,p,v)},f.prototype.optimize=function(h){c.prototype.optimize.call(this,h);var d=this.formats();if(Object.keys(d).length===0)return this.unwrap();var p=this.next;p instanceof f&&p.prev===this&&s(d,p.formats())&&(p.moveChildren(this),p.remove())},f.blotName="inline",f.scope=l.Scope.INLINE_BLOT,f.tagName="SPAN",f}(o.default);n.default=u},function(t,n,a){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)f.hasOwnProperty(h)&&(c[h]=f[h])};return function(c,f){u(c,f);function h(){this.constructor=c}c.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(18),l=a(1),s=function(u){i(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(f){var h=l.query(c.blotName).tagName;if(f.tagName!==h)return u.formats.call(this,f)},c.prototype.format=function(f,h){l.query(f,l.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!h?this.replaceWith(c.blotName):u.prototype.format.call(this,f,h))},c.prototype.formatAt=function(f,h,d,p){l.query(d,l.Scope.BLOCK)!=null?this.format(d,p):u.prototype.formatAt.call(this,f,h,d,p)},c.prototype.insertAt=function(f,h,d){if(d==null||l.query(h,l.Scope.INLINE)!=null)u.prototype.insertAt.call(this,f,h,d);else{var p=this.split(f),v=l.create(h,d);p.parent.insertBefore(v,p)}},c.prototype.update=function(f,h){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,f,h)},c.blotName="block",c.scope=l.Scope.BLOCK_BLOT,c.tagName="P",c}(o.default);n.default=s},function(t,n,a){var i=this&&this.__extends||function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){s(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(19),l=function(s){i(u,s);function u(){return s!==null&&s.apply(this,arguments)||this}return u.formats=function(c){},u.prototype.format=function(c,f){s.prototype.formatAt.call(this,0,this.length(),c,f)},u.prototype.formatAt=function(c,f,h,d){c===0&&f===this.length()?this.format(h,d):s.prototype.formatAt.call(this,c,f,h,d)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(o.default);n.default=l},function(t,n,a){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)f.hasOwnProperty(h)&&(c[h]=f[h])};return function(c,f){u(c,f);function h(){this.constructor=c}c.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=a(19),l=a(1),s=function(u){i(c,u);function c(f){var h=u.call(this,f)||this;return h.text=h.statics.value(h.domNode),h}return c.create=function(f){return document.createTextNode(f)},c.value=function(f){var h=f.data;return h.normalize&&(h=h.normalize()),h},c.prototype.deleteAt=function(f,h){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+h)},c.prototype.index=function(f,h){return this.domNode===f?h:-1},c.prototype.insertAt=function(f,h,d){d==null?(this.text=this.text.slice(0,f)+h+this.text.slice(f),this.domNode.data=this.text):u.prototype.insertAt.call(this,f,h,d)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(f){u.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(f,h){return[this.domNode,f]},c.prototype.split=function(f,h){if(h===void 0&&(h=!1),!h){if(f===0)return this;if(f===this.length())return this.next}var d=l.create(this.domNode.splitText(f));return this.parent.insertBefore(d,this.next),this.text=this.statics.value(this.domNode),d},c.prototype.update=function(f,h){var d=this;f.some(function(p){return p.type==="characterData"&&p.target===d.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=l.Scope.INLINE_BLOT,c}(o.default);n.default=s},function(t,n,a){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,s){return arguments.length>1&&!this.contains(l)==!s?s:o.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,s){return s=s||0,this.substr(s,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,s){var u=this.toString();(typeof s!="number"||!isFinite(s)||Math.floor(s)!==s||s>u.length)&&(s=u.length),s-=l.length;var c=u.indexOf(l,s);return c!==-1&&c===s}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(s){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof s!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),c=u.length>>>0,f=arguments[1],h,d=0;dw.length?x:w,T=x.length>w.length?w:x,F=C.indexOf(T);if(F!=-1)return S=[[i,C.substring(0,F)],[o,T],[i,C.substring(F+T.length)]],x.length>w.length&&(S[0][0]=S[2][0]=a),S;if(T.length==1)return[[a,x],[i,w]];var I=d(x,w);if(I){var M=I[0],O=I[1],k=I[2],L=I[3],N=I[4],R=l(M,k),D=l(O,L);return R.concat([[o,N]],D)}return u(x,w)}function u(x,w){for(var S=x.length,C=w.length,T=Math.ceil((S+C)/2),F=T,I=2*T,M=new Array(I),O=new Array(I),k=0;kS)D+=2;else if(Y>C)R+=2;else if(N){var q=F+L-P;if(q>=0&&q=_)return c(x,w,z,Y)}}}for(var G=-B+W;G<=B-V;G+=2){var q=F+G,_;G==-B||G!=B&&O[q-1]S)V+=2;else if(X>C)W+=2;else if(!N){var $=F+L-G;if($>=0&&$=_)return c(x,w,z,Y)}}}}return[[a,x],[i,w]]}function c(x,w,S,C){var T=x.substring(0,S),F=w.substring(0,C),I=x.substring(S),M=w.substring(C),O=l(T,F),k=l(I,M);return O.concat(k)}function f(x,w){if(!x||!w||x.charAt(0)!=w.charAt(0))return 0;for(var S=0,C=Math.min(x.length,w.length),T=C,F=0;Sw.length?x:w,C=x.length>w.length?w:x;if(S.length<4||C.length*2=D.length?[z,Y,q,_,$]:null}var F=T(S,C,Math.ceil(S.length/4)),I=T(S,C,Math.ceil(S.length/2)),M;if(!F&&!I)return null;I?F?M=F[4].length>I[4].length?F:I:M=I:M=F;var O,k,L,N;x.length>w.length?(O=M[0],k=M[1],L=M[2],N=M[3]):(L=M[0],N=M[1],O=M[2],k=M[3]);var R=M[4];return[O,k,L,N,R]}function p(x){x.push([o,""]);for(var w=0,S=0,C=0,T="",F="",I;w1?(S!==0&&C!==0&&(I=f(F,T),I!==0&&(w-S-C>0&&x[w-S-C-1][0]==o?x[w-S-C-1][1]+=F.substring(0,I):(x.splice(0,0,[o,F.substring(0,I)]),w++),F=F.substring(I),T=T.substring(I)),I=h(F,T),I!==0&&(x[w][1]=F.substring(F.length-I)+x[w][1],F=F.substring(0,F.length-I),T=T.substring(0,T.length-I))),S===0?x.splice(w-C,S+C,[i,F]):C===0?x.splice(w-S,S+C,[a,T]):x.splice(w-S-C,S+C,[a,T],[i,F]),w=w-S-C+(S?1:0)+(C?1:0)+1):w!==0&&x[w-1][0]==o?(x[w-1][1]+=x[w][1],x.splice(w,1)):w++,C=0,S=0,T="",F="";break}x[x.length-1][1]===""&&x.pop();var M=!1;for(w=1;w0&&C.splice(T+2,0,[I[0],M]),b(C,T,3)}else return x}function m(x){for(var w=!1,S=function(I){return I.charCodeAt(0)>=56320&&I.charCodeAt(0)<=57343},C=function(I){return I.charCodeAt(I.length-1)>=55296&&I.charCodeAt(I.length-1)<=56319},T=2;T0&&F.push(x[T]);return F}function b(x,w,S){for(var C=w+S-1;C>=0&&C>=w-1;C--)if(C+1\r?\n +\<"),this.convert();var ot=this.quill.getFormat(this.quill.selection.savedRange.index);if(ot[C.default.blotName]){var Mt=this.container.innerText;return this.container.innerHTML="",new f.default().insert(Mt,k({},C.default.blotName,ot[C.default.blotName]))}var Ot=this.prepareMatching(),Pt=o(Ot,2),Tr=Pt[0],En=Pt[1],ue=G(this.container,Tr,En);return q(ue,` +`)&&ue.ops[ue.ops.length-1].attributes==null&&(ue=ue.compose(new f.default().retain(ue.length()-1).delete(1))),D.log("convert",this.container.innerHTML,ue),this.container.innerHTML="",ue}},{key:"dangerouslyPasteHTML",value:function(dt,ot){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof dt=="string")this.quill.setContents(this.convert(dt),ot),this.quill.setSelection(0,v.default.sources.SILENT);else{var Ot=this.convert(ot);this.quill.updateContents(new f.default().retain(dt).concat(Ot),Mt),this.quill.setSelection(dt+Ot.length(),v.default.sources.SILENT)}}},{key:"onPaste",value:function(dt){var ot=this;if(!(dt.defaultPrevented||!this.quill.isEnabled())){var Mt=this.quill.getSelection(),Ot=new f.default().retain(Mt.index),Pt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(v.default.sources.SILENT),setTimeout(function(){Ot=Ot.concat(ot.convert()).delete(Mt.length),ot.quill.updateContents(Ot,v.default.sources.USER),ot.quill.setSelection(Ot.length()-Mt.length,v.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=Pt,ot.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var dt=this,ot=[],Mt=[];return this.matchers.forEach(function(Ot){var Pt=o(Ot,2),Tr=Pt[0],En=Pt[1];switch(Tr){case Node.TEXT_NODE:Mt.push(En);break;case Node.ELEMENT_NODE:ot.push(En);break;default:[].forEach.call(dt.container.querySelectorAll(Tr),function(ue){ue[W]=ue[W]||[],ue[W].push(En)});break}}),[ot,Mt]}}]),nt}(b.default);$.DEFAULTS={matchers:[],matchVisual:!0};function z(rt,nt,ft){return(typeof nt>"u"?"undefined":i(nt))==="object"?Object.keys(nt).reduce(function(dt,ot){return z(dt,ot,nt[ot])},rt):rt.reduce(function(dt,ot){return ot.attributes&&ot.attributes[nt]?dt.push(ot):dt.insert(ot.insert,(0,u.default)({},k({},nt,ft),ot.attributes))},new f.default)}function Y(rt){if(rt.nodeType!==Node.ELEMENT_NODE)return{};var nt="__ql-computed-style";return rt[nt]||(rt[nt]=window.getComputedStyle(rt))}function q(rt,nt){for(var ft="",dt=rt.ops.length-1;dt>=0&&ft.length-1}function G(rt,nt,ft){return rt.nodeType===rt.TEXT_NODE?ft.reduce(function(dt,ot){return ot(rt,dt)},new f.default):rt.nodeType===rt.ELEMENT_NODE?[].reduce.call(rt.childNodes||[],function(dt,ot){var Mt=G(ot,nt,ft);return ot.nodeType===rt.ELEMENT_NODE&&(Mt=nt.reduce(function(Ot,Pt){return Pt(ot,Ot)},Mt),Mt=(ot[W]||[]).reduce(function(Ot,Pt){return Pt(ot,Ot)},Mt)),dt.concat(Mt)},new f.default):new f.default}function X(rt,nt,ft){return z(ft,rt,!0)}function K(rt,nt){var ft=d.default.Attributor.Attribute.keys(rt),dt=d.default.Attributor.Class.keys(rt),ot=d.default.Attributor.Style.keys(rt),Mt={};return ft.concat(dt).concat(ot).forEach(function(Ot){var Pt=d.default.query(Ot,d.default.Scope.ATTRIBUTE);Pt!=null&&(Mt[Pt.attrName]=Pt.value(rt),Mt[Pt.attrName])||(Pt=B[Ot],Pt!=null&&(Pt.attrName===Ot||Pt.keyName===Ot)&&(Mt[Pt.attrName]=Pt.value(rt)||void 0),Pt=P[Ot],Pt!=null&&(Pt.attrName===Ot||Pt.keyName===Ot)&&(Pt=P[Ot],Mt[Pt.attrName]=Pt.value(rt)||void 0))}),Object.keys(Mt).length>0&&(nt=z(nt,Mt)),nt}function tt(rt,nt){var ft=d.default.query(rt);if(ft==null)return nt;if(ft.prototype instanceof d.default.Embed){var dt={},ot=ft.value(rt);ot!=null&&(dt[ft.blotName]=ot,nt=new f.default().insert(dt,ft.formats(rt)))}else typeof ft.formats=="function"&&(nt=z(nt,ft.blotName,ft.formats(rt)));return nt}function et(rt,nt){return q(nt,` +`)||nt.insert(` +`),nt}function vt(){return new f.default}function st(rt,nt){var ft=d.default.query(rt);if(ft==null||ft.blotName!=="list-item"||!q(nt,` +`))return nt;for(var dt=-1,ot=rt.parentNode;!ot.classList.contains("ql-clipboard");)(d.default.query(ot)||{}).blotName==="list"&&(dt+=1),ot=ot.parentNode;return dt<=0?nt:nt.compose(new f.default().retain(nt.length()-1).retain(1,{indent:dt}))}function yt(rt,nt){return q(nt,` +`)||(_(rt)||nt.length()>0&&rt.nextSibling&&_(rt.nextSibling))&&nt.insert(` +`),nt}function kt(rt,nt){if(_(rt)&&rt.nextElementSibling!=null&&!q(nt,` + +`)){var ft=rt.offsetHeight+parseFloat(Y(rt).marginTop)+parseFloat(Y(rt).marginBottom);rt.nextElementSibling.offsetTop>rt.offsetTop+ft*1.5&&nt.insert(` +`)}return nt}function Yt(rt,nt){var ft={},dt=rt.style||{};return dt.fontStyle&&Y(rt).fontStyle==="italic"&&(ft.italic=!0),dt.fontWeight&&(Y(rt).fontWeight.startsWith("bold")||parseInt(Y(rt).fontWeight)>=700)&&(ft.bold=!0),Object.keys(ft).length>0&&(nt=z(nt,ft)),parseFloat(dt.textIndent||0)>0&&(nt=new f.default().insert(" ").concat(nt)),nt}function ne(rt,nt){var ft=rt.data;if(rt.parentNode.tagName==="O:P")return nt.insert(ft.trim());if(ft.trim().length===0&&rt.parentNode.classList.contains("ql-clipboard"))return nt;if(!Y(rt.parentNode).whiteSpace.startsWith("pre")){var dt=function(Mt,Ot){return Ot=Ot.replace(/[^\u00a0]/g,""),Ot.length<1&&Mt?" ":Ot};ft=ft.replace(/\r\n/g," ").replace(/\n/g," "),ft=ft.replace(/\s\s+/g,dt.bind(dt,!0)),(rt.previousSibling==null&&_(rt.parentNode)||rt.previousSibling!=null&&_(rt.previousSibling))&&(ft=ft.replace(/^\s+/,dt.bind(dt,!1))),(rt.nextSibling==null&&_(rt.parentNode)||rt.nextSibling!=null&&_(rt.nextSibling))&&(ft=ft.replace(/\s+$/,dt.bind(dt,!1)))}return nt.insert(ft)}n.default=$,n.matchAttributor=K,n.matchBlot=tt,n.matchNewline=yt,n.matchSpacing=kt,n.matchText=ne},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function p(v,g){for(var y=0;y '},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function p(v,g){for(var y=0;yd.right&&(v=d.right-p.right,this.root.style.left=f+v+"px"),p.leftd.bottom){var g=p.bottom-p.top,y=c.bottom-c.top+g;this.root.style.top=h-y+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),s}();n.default=l},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function I(M,O){var k=[],L=!0,N=!1,R=void 0;try{for(var D=M[Symbol.iterator](),W;!(L=(W=D.next()).done)&&(k.push(W.value),!(O&&k.length===O));L=!0);}catch(V){N=!0,R=V}finally{try{!L&&D.return&&D.return()}finally{if(N)throw R}}return k}return function(M,O){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return I(M,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function I(M,O,k){M===null&&(M=Function.prototype);var L=Object.getOwnPropertyDescriptor(M,O);if(L===void 0){var N=Object.getPrototypeOf(M);return N===null?void 0:I(N,O,k)}else{if("value"in L)return L.value;var R=L.get;return R===void 0?void 0:R.call(k)}},l=function(){function I(M,O){for(var k=0;k','','',''].join(""),n.default=T},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(29),o=ot(i),l=a(36),s=a(38),u=a(64),c=a(65),f=ot(c),h=a(66),d=ot(h),p=a(67),v=ot(p),g=a(37),y=a(26),m=a(39),b=a(40),x=a(56),w=ot(x),S=a(68),C=ot(S),T=a(27),F=ot(T),I=a(69),M=ot(I),O=a(70),k=ot(O),L=a(71),N=ot(L),R=a(72),D=ot(R),W=a(73),V=ot(W),B=a(13),P=ot(B),$=a(74),z=ot($),Y=a(75),q=ot(Y),_=a(57),G=ot(_),X=a(41),K=ot(X),tt=a(28),et=ot(tt),vt=a(59),st=ot(vt),yt=a(60),kt=ot(yt),Yt=a(61),ne=ot(Yt),rt=a(108),nt=ot(rt),ft=a(62),dt=ot(ft);function ot(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}o.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":b.SizeStyle},!0),o.default.register({"formats/align":l.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":u.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":b.SizeClass,"formats/blockquote":f.default,"formats/code-block":P.default,"formats/header":d.default,"formats/list":v.default,"formats/bold":w.default,"formats/code":B.Code,"formats/italic":C.default,"formats/link":F.default,"formats/script":M.default,"formats/strike":k.default,"formats/underline":N.default,"formats/image":D.default,"formats/video":V.default,"formats/list/item":p.ListItem,"modules/formula":z.default,"modules/syntax":q.default,"modules/toolbar":G.default,"themes/bubble":nt.default,"themes/snow":dt.default,"ui/icons":K.default,"ui/picker":et.default,"ui/icon-picker":kt.default,"ui/color-picker":st.default,"ui/tooltip":ne.default},!0),n.default=o.default},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var i=function(){function v(g,y){for(var m=0;m0&&this.children.tail.format(C,T)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,T){if(C instanceof m)o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,C,T);else{var F=T==null?this.length():T.offset(this),I=this.split(F);I.parent.insertBefore(C,I)}}},{key:"optimize",value:function(C){o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,C);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&T.domNode.tagName===this.domNode.tagName&&T.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(T.moveChildren(this),T.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var T=s.default.create(this.statics.defaultChild);C.moveChildren(T),this.appendChild(T)}o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,C)}}]),w}(h.default);b.blotName="list",b.scope=s.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[m],n.ListItem=m,n.default=b},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=a(56),o=l(i);function l(h){return h&&h.__esModule?h:{default:h}}function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function u(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function c(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var f=function(h){c(d,h);function d(){return s(this,d),u(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default);f.blotName="italic",f.tagName=["EM","I"],n.default=f},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function p(v,g){for(var y=0;y-1?x?this.domNode.setAttribute(b,x):this.domNode.removeAttribute(b):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,x)}}],[{key:"create",value:function(b){var x=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return typeof b=="string"&&x.setAttribute("src",this.sanitize(b)),x}},{key:"formats",value:function(b){return p.reduce(function(x,w){return b.hasAttribute(w)&&(x[w]=b.getAttribute(w)),x},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,u.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y}(s.default.Embed);v.blotName="image",v.tagName="IMG",n.default=v},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function g(y,m){for(var b=0;b-1?x?this.domNode.setAttribute(b,x):this.domNode.removeAttribute(b):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,x)}}],[{key:"create",value:function(b){var x=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(b)),x}},{key:"formats",value:function(b){return p.reduce(function(x,w){return b.hasAttribute(w)&&(x[w]=b.getAttribute(w)),x},{})}},{key:"sanitize",value:function(b){return u.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y}(l.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",n.default=v},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var i=function(){function b(x,w){for(var S=0;S0||this.cachedText==null)&&(this.domNode.innerHTML=F(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),C}(p.default);b.className="ql-syntax";var x=new s.default.Attributor.Class("token","hljs",{scope:s.default.Scope.INLINE}),w=function(S){m(C,S),i(C,null,[{key:"register",value:function(){c.default.register(x,!0),c.default.register(b,!0)}}]);function C(T,F){g(this,C);var I=y(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,T,F));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var M=null;return I.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(M),M=setTimeout(function(){I.highlight(),M=null},I.options.interval)}),I.highlight(),I}return i(C,[{key:"highlight",value:function(){var F=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var I=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(M){M.highlight(F.options.highlight)}),this.quill.update(c.default.sources.SILENT),I!=null&&this.quill.setSelection(I,c.default.sources.SILENT)}}}]),C}(h.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var C=window.hljs.highlightAuto(S);return C.value}}(),interval:1e3},n.CodeBlock=b,n.CodeToken=x,n.default=w},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n){t.exports=' '},function(t,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var i=function C(T,F,I){T===null&&(T=Function.prototype);var M=Object.getOwnPropertyDescriptor(T,F);if(M===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:C(O,F,I)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(I)}},o=function(){function C(T,F){for(var I=0;I0&&N===c.default.sources.USER){M.show(),M.root.style.left="0px",M.root.style.width="",M.root.style.width=M.root.offsetWidth+"px";var R=M.quill.getLines(k.index,k.length);if(R.length===1)M.position(M.quill.getBounds(k));else{var D=R[R.length-1],W=M.quill.getIndex(D),V=Math.min(D.length()-1,k.index+k.length-W),B=M.quill.getBounds(new d.Range(W,V));M.position(B)}}else document.activeElement!==M.textbox&&M.quill.hasFocus()&&M.hide()}),M}return o(T,[{key:"listen",value:function(){var I=this;i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var M=I.quill.getSelection();M!=null&&I.position(I.quill.getBounds(M))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var M=i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"position",this).call(this,I),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",M===0)return M;O.style.marginLeft=-1*M-O.offsetWidth/2+"px"}}]),T}(f.BaseTooltip);S.TEMPLATE=['','
','','',"
"].join(""),n.BubbleTooltip=S,n.default=w},function(t,n,a){t.exports=a(63)}]).default})})(RC);var tW=RC.exports,eW=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),uc=nr&&nr.__assign||function(){return uc=Object.assign||function(r){for(var e,t=1,n=arguments.length;t1)throw new Error("The Quill editing area can only be composed of a single React element.");if(nn.default.Children.count(t.children)){var a=nn.default.Children.only(t.children);if(((n=a)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a