1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1346],{23771:function(t,e){"use strict";e.Nm=e.Rq=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|:)/gim,a=[".","/"];e.Rq="about:blank",e.Nm=function(t){if(!t)return e.Rq;var l=t.replace(o,"").replace(r,function(t,e){return String.fromCharCode(e)}).replace(i,"").replace(o,"").trim();if(!l)return e.Rq;if(a.indexOf(l[0])>-1)return l;var c=l.match(s);if(!c)return l;var u=c[0];return n.test(u)?e.Rq:l}},98780:function(t,e,n){"use strict";n.d(e,{VL:function(){return u},h$:function(){return d}});var r=n(16076),i=n(58606),o=n(23131),s=n(6250),a=t=>{var{theme:e,settings:n={},styles:r=[]}=t,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var l={};n.gutterActiveForeground&&(l.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},l.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=l,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var c=o.tk.theme(i,{dark:"dark"===e}),u=s.Qf.define(r);return[c,(0,s.nF)(u)]},l={background:"#000",foreground:"#fff",selection:"#7d46fc3f",selectionMatch:"#7d46fc7f",cursor:"#7d46fc",activeLine:"#00346eb0",keyword:null,variable:null,function:null,string:"#a8a8b1",constant:null,type:null,class:null,comment:"#2e2e37",heading:null,invalid:null,regexp:"#a8a8b1",tag:null},c={background:l.background,foreground:l.foreground,caret:l.cursor,selection:l.selection,selectionMatch:l.selectionMatch,gutterBackground:l.background,gutterForeground:l.foreground,lineHighlight:l.activeLine},u=(t=>{var{theme:e="dark",settings:n={},styles:o=[]}={};return a({theme:e,settings:(0,r.Z)({},c,n),styles:[{tag:i.pJ.keyword,color:l.keyword,fontWeight:"bold"},{tag:[i.pJ.name,i.pJ.deleted,i.pJ.character,i.pJ.macroName],color:l.variable},{tag:[i.pJ.propertyName],color:l.function},{tag:[i.pJ.processingInstruction,i.pJ.string,i.pJ.inserted,i.pJ.special(i.pJ.string)],color:l.string},{tag:[i.pJ.function(i.pJ.variableName),i.pJ.labelName],color:l.function},{tag:[i.pJ.color,i.pJ.constant(i.pJ.name),i.pJ.standard(i.pJ.name)],color:l.constant},{tag:[i.pJ.definition(i.pJ.name),i.pJ.separator],color:l.variable},{tag:[i.pJ.className],color:l.class},{tag:[i.pJ.typeName],color:l.type,fontStyle:l.type},{tag:[i.pJ.url,i.pJ.escape,i.pJ.regexp,i.pJ.link],color:l.regexp},{tag:[i.pJ.meta,i.pJ.comment],color:l.comment},{tag:i.pJ.tagName,color:l.tag},{tag:i.pJ.strong,fontWeight:"bold"},{tag:i.pJ.emphasis,fontStyle:"italic"},{tag:i.pJ.link,textDecoration:"underline"},{tag:i.pJ.heading,fontWeight:"bold",color:l.heading},{tag:[i.pJ.atom,i.pJ.special(i.pJ.variableName)],color:l.variable},{tag:i.pJ.invalid,color:l.invalid},{tag:i.pJ.strikethrough,textDecoration:"line-through"},{tag:[i.pJ.operatorKeyword,i.pJ.bool,i.pJ.null,i.pJ.variableName],color:l.constant},{tag:[i.pJ.operator],color:"#bb9af7"},{tag:[i.pJ.number],color:"#a8a8b1"},{tag:[i.pJ.bracket],color:"#bb9af7"},...o]})})(),h={background:"#fff",foreground:"#000",selection:"#0064ff26",selectionMatch:"#0064ff4c",cursor:"#004bff",activeLine:"#0064ff0c",keyword:null,variable:null,function:null,string:"#6b7a88",constant:null,type:null,class:null,comment:"#bec9d3",heading:null,invalid:null,regexp:"#6b7a88",tag:null},f={background:h.background,foreground:h.foreground,caret:h.cursor,selection:h.selection,selectionMatch:h.selectionMatch,gutterBackgroun
1d:h.background,gutterForeground:h.foreground,lineHighlight:h.activeLine},d=(t=>{var{theme:e="light",settings:n={},styles:o=[]}={};return a({theme:e,settings:(0,r.Z)({},f,n),styles:[{tag:i.pJ.keyword,color:h.keyword,fontWeight:"bold"},{tag:[i.pJ.name,i.pJ.deleted,i.pJ.character,i.pJ.macroName],color:h.variable},{tag:[i.pJ.propertyName],color:h.function},{tag:[i.pJ.processingInstruction,i.pJ.string,i.pJ.inserted,i.pJ.special(i.pJ.string)],color:h.string},{tag:[i.pJ.function(i.pJ.variableName),i.pJ.labelName],color:h.function},{tag:[i.pJ.color,i.pJ.constant(i.pJ.name),i.pJ.standard(i.pJ.name)],color:h.constant},{tag:[i.pJ.definition(i.pJ.name),i.pJ.separator],color:h.variable},{tag:[i.pJ.className],color:h.class},{tag:[i.pJ.typeName],color:h.type,fontStyle:h.type},{tag:[i.pJ.url,i.pJ.escape,i.pJ.regexp,i.pJ.link],color:h.regexp},{tag:[i.pJ.meta,i.pJ.comment],color:h.comment},{tag:i.pJ.tagName,color:h.tag},{tag:i.pJ.strong,fontWeight:"bold"},{tag:i.pJ.emphasis,fontStyle:"italic"},{tag:i.pJ.link,textDecoration:"underline"},{tag:i.pJ.heading,fontWeight:"bold",color:h.heading},{tag:[i.pJ.atom,i.pJ.special(i.pJ.variableName)],color:h.variable},{tag:i.pJ.invalid,color:h.invalid},{tag:i.pJ.strikethrough,textDecoration:"line-through"},{tag:[i.pJ.operatorKeyword,i.pJ.bool,i.pJ.null,i.pJ.variableName],color:h.constant},{tag:[i.pJ.operator],color:"#0431fa"},{tag:[i.pJ.number],color:"#a8a8b1"},{tag:[i.pJ.bracket],color:"#0431fa"},...o]})})()},28547:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}n.d(e,{ZP:function(){return t2}});var i=n(52983),o=n(68341),s=n(23131),a=n(6250),l=n(91641);function c(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return!!i&&(r(n.update(i)),!0)}}let u=c(function(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:t,to:o}of n){let n=r.length,s=1e9,a=d(e,t).line;if(a){for(let n=t;n<=o;){let l=e.doc.lineAt(n);if(l.from>i&&(t==o||o>l.from)){i=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+a.length)==a?t:-1;t<l.text.length&&t<s&&(s=t),r.push({line:l,comment:n,token:a,indent:t,empty:e,single:!1})}n=l.to+1}if(s<1e9)for(let t=n;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=s);r.length==n+1&&(r[n].single=!0)}}if(2!=t&&r.some(t=>t.comment<0&&(!t.empty||t.single))){let t=[];for(let{line:e,token:n,indent:i,empty:o,single:s}of r)(s||!o)&&t.push({from:e.from+i,insert:n+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&r.some(t=>t.comment>=0)){let t=[];for(let{line:e,comment:n,token:i}of r)if(n>=0){let r=e.from+n,o=r+i.length;" "==e.text[o-e.from]&&o++,t.push({from:r,to:o})}return{changes:t}}return null},0),h=c(p,0),f=c((t,e)=>p(t,e,function(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}(e)),0);function d(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}function p(t,e,n=e.selection.ranges){let r=n.map(t=>d(e,t.from).block);if(!r.every(t=>t))return null;let i=n.map((t,n)=>(function(t,{open:e,close:n},r,i){let o,s,a=t.sliceDoc(r-50,r),l=t.sliceDoc(i,i+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,h=a.length-c;if(a.slice(h-e.length,h)==e&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=s=t.sliceDoc(r,i):(o=t.sliceDoc(r,r+50),s=t.sliceDoc(i-50,i));let f=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,p=s.length-d-n.length;return o.slice(f,f+e.length)==e&&s.slice(p,p+n.length)==n?{open:{pos:r+f+e.length,margin:/\s/.test(o.charAt(f+e.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null})(e,r[n],t.from,t.to));if(2!=t&&!i.every(t=>t))return{changes:e.changes(n.map((t,e)=>i[e]?[]:[{from:t.from,insert:r[e].open+" "},{from:t.to,insert:" "+r[e].close}]))};if(1!=t&&i.some(t=>t)){let t=[];for(let e=0,n;e<i.length;e++)if(n=i[e]){let i=r[e],{open:o,close:s}=n;t.push({from:o.pos-i.open.length,to:o.pos+o.margin}
1,{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:t}}return null}let m=o.q6.define(),g=o.q6.define(),y=o.r$.define(),v=o.r$.define({combine:t=>(0,o.BO)(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}),b=o.QQ.define({create:()=>O.empty,update(t,e){let n=e.state.facet(v),r=e.annotation(m);if(r){let i=A.fromTransaction(e,r.selection),o=r.side,s=0==o?t.undone:t.done;return s=i?M(s,s.length,n.minDepth,i):D(s,e.startState.selection),new O(0==o?r.rest:s,0==o?s:r.rest)}let i=e.annotation(g);if(("full"==i||"before"==i)&&(t=t.isolate()),!1===e.annotation(o.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let s=A.fromTransaction(e),a=e.annotation(o.YW.time),l=e.annotation(o.YW.userEvent);return s?t=t.addChanges(s,a,l,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,l,n.newGroupDelay)),("full"==i||"after"==i)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new O(t.done.map(A.fromJSON),t.undone.map(A.fromJSON))});function x(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(b,!1);if(!i)return!1;let o=i.pop(t,n,e);return!!o&&(r(o),!0)}}let _=x(0,!1),w=x(1,!1),k=x(0,!0),S=x(1,!0);class A{constructor(t,e,n,r,i){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new A(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new A(t.changes&&o.as.fromJSON(t.changes),[],t.mapped&&o.n0.fromJSON(t.mapped),t.startSelection&&o.jT.fromJSON(t.startSelection),t.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(t,e){let n=C;for(let e of t.startState.facet(y)){let r=e(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new A(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,C)}static selection(t){return new A(void 0,C,void 0,void 0,t)}}function M(t,e,n,r){let i=t.slice(e+1>n+20?e-n-1:0,e);return i.push(r),i}function T(t,e){return t.length?e.length?t.concat(e):t:e}let C=[];function D(t,e){if(!t.length)return[A.selection([e])];{let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),M(t,t.length-1,1e9,n.setSelAfter(r)))}}function E(t,e){if(!t.length)return t;let n=t.length,r=C;for(;n;){let i=function(t,e,n){let r=T(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):C,n);if(!t.changes)return A.selection(r);let i=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new A(i,o.Py.mapEffects(t.effects,e),a,t.startSelection.map(s),r)}(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let e=t.slice(0,n);return e[n-1]=i,e}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[A.selection(r)]:C}let N=/^(input\.type|delete)($|\.)/;class O{constructor(t,e,n=0,r){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new O(this.done,this.undone):this}addChanges(t,e,n,r,i){var o,s;let a,l,c=this.done,u=c[c.length-1];return new O(c=u&&u.changes&&!u.changes.empty&&t.changes&&(!n||N.test(n))&&(!u.selectionsAfter.length&&e-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,(o=u.changes,s=t.changes,a=[],l=!1,o.iterChangedRanges((t,e)=>a.push(t,e)),s.iterChangedRanges((t,e,n,r)=>{for(let t=0;t<a.length;){let e=a[t++],i=a[t++];r>=e&&n<=i&&(l=!0)}}),l))||"input.type.compose"==n)?M(c,c.length-1,r.minDepth,new A(t.changes.compose(u.changes),T(t.effects,u.effects),u.mapped,u.startSelection,C)):M(c,c.length,r.minDepth,t),C,e,n)}addSelection(t,e,n,r){var i;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return o.length>0&&e-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=o[o.length-1]).ranges.length==t.ranges.length&&0===i.ranges.filter((e,n
1)=>e.empty!=t.ranges[n].empty).length?this:new O(D(this.done,t),this.undone,e,n)}addMapping(t){return new O(E(this.done,t),E(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let r=0==t?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||e.selection;if(n&&i.selectionsAfter.length){let n,s;return e.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:m.of({side:t,rest:(n=r[r.length-1],(s=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),s),selection:o}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0})}if(!i.changes)return null;{let n=1==r.length?C:r.slice(0,r.length-1);return i.mapped&&(n=E(n,i.mapped)),e.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:m.of({side:t,rest:n,selection:o}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}}}O.empty=new O(C,C);let I=[{key:"Mod-z",run:_,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:w,preventDefault:!0},{linux:"Ctrl-Shift-z",run:w,preventDefault:!0},{key:"Mod-u",run:k,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function P(t,e){return o.jT.create(t.ranges.map(e),t.mainIndex)}function Z(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function L({state:t,dispatch:e},n){let r=P(t.selection,n);return!r.eq(t.selection)&&(e(Z(t,r)),!0)}function R(t,e){return o.jT.cursor(e?t.to:t.from)}function $(t,e){return L(t,n=>n.empty?t.moveByChar(n,e):R(n,e))}function z(t){return t.textDirectionAt(t.state.selection.main.head)==s.Nm.LTR}let j=t=>$(t,!z(t)),B=t=>$(t,z(t));function J(t,e){return L(t,n=>n.empty?t.moveByGroup(n,e):R(n,e))}function F(t,e,n){let r,i,s=(0,a.qz)(t).resolveInner(e.head),c=n?l.md.closedBy:l.md.openedBy;for(let r=e.head;;){let e=n?s.childAfter(r):s.childBefore(r);if(!e)break;!function(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}(t,e,c)?r=n?e.to:e.from:s=e}return i=s.type.prop(c)&&(r=n?(0,a.Um)(t,s.from,1):(0,a.Um)(t,s.to,-1))&&r.matched?n?r.end.to:r.end.from:n?s.to:s.from,o.jT.cursor(i,n?-1:1)}function U(t,e){return L(t,n=>{if(!n.empty)return R(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}"undefined"!=typeof Intl&&Intl.Segmenter;let q=t=>U(t,!1),H=t=>U(t,!0);function W(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let e of t.state.facet(s.tk.scrollMargins)){let i=e(t);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function Y(t,e){let n,r=W(t),{state:i}=t,o=P(i.selection,n=>n.empty?t.moveVertically(n,e,r.height):R(n,e));if(o.eq(i.selection))return!1;if(r.selfScroll){let e=t.coordsAtPos(i.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,c=a.bottom-r.marginBottom;e&&e.top>l&&e.bottom<c&&(n=s.tk.scrollIntoView(o.main.head,{y:"start",yMargin:e.top-l}))}return t.dispatch(Z(i,o),{effects:n}),!0}let V=t=>Y(t,!1),G=t=>Y(t,!0);function Q(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&e.head!=r.from+n&&(i=o.jT.cursor(r.from+n))}return i}function K(t,e){let n=P(t.state.selection,t=>{let n=e(t);return o.jT.range(t.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(t.state.selection)&&(t.dispatch(Z(t.state,n)),!0)}function X(t,e){return K(t,n=>t.moveByChar(n,e))}let tt=t=>X(t,!z(t)),te=t=>X(t,z(t));function tn(t,e){return K(t,n=>t.moveByGroup(n,e))}function tr(t,e){return K(t,n=>t.moveVertically(n,e))}let ti=t=>tr(t,!1),to=t=>tr(t,!0);function ts(t,e){return K(t,n=>t.moveVertically(n,e,W(t).height))}let ta=t=>ts(t,!1),tl=t=>ts(t,!0),tc=({state:t,dispatch:e})=>(e(Z(t,{anchor:0})),!0),tu=({state:t,dispatch:e})=>(e(Z(t,{anchor:t.doc.length})),!0),th=({state:t,dispatch:e})=>(e(Z(t,{anchor:t.selection.main.anchor,head:0})),!0),tf=({state:t,dispatch:e})=>(e(Z(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function td(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(r=>{let{from:i,to:s}=r;if(i==s){let o=e(r);
1o<i?(n="delete.backward",o=tp(t,o,!1)):o>i&&(n="delete.forward",o=tp(t,o,!0)),i=Math.min(i,o),s=Math.max(s,o)}else i=tp(t,i,!1),s=tp(t,s,!0);return i==s?{range:r}:{changes:{from:i,to:s},range:o.jT.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?s.tk.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function tp(t,e,n){if(t instanceof s.tk)for(let r of t.state.facet(s.tk.atomicRanges).map(e=>e(t)))r.between(e,e,(t,r)=>{t<e&&r>e&&(e=n?r:t)});return e}let tm=(t,e)=>td(t,n=>{let r=n.from,{state:i}=t,s=i.doc.lineAt(r),l,c;if(!e&&r>s.from&&r<s.from+200&&!/[^ \t]/.test(l=s.text.slice(0,r-s.from))){if(" "==l[l.length-1])return r-1;let t=(0,o.IS)(l,i.tabSize)%(0,a.y1)(i)||(0,a.y1)(i);for(let e=0;e<t&&" "==l[l.length-1-e];e++)r--;c=r}else(c=(0,o.cp)(s.text,r-s.from,e,e)+s.from)==r&&s.number!=(e?i.doc.lines:1)?c+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(s.text.slice(c-s.from,r-s.from))&&(c=(0,o.cp)(s.text,c-s.from,!1,!1)+s.from);return c}),tg=t=>tm(t,!1),ty=t=>tm(t,!0),tv=(t,e)=>td(t,n=>{let r=n.head,{state:i}=t,s=i.doc.lineAt(r),a=i.charCategorizer(r);for(let t=null;;){if(r==(e?s.to:s.from)){r==n.head&&s.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=(0,o.cp)(s.text,r-s.from,e)+s.from,c=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),u=a(c);if(null!=t&&u!=t)break;(" "!=c||r!=n.head)&&(t=u),r=l}return r}),tb=t=>tv(t,!1);function tx(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=t.doc.lineAt(r.to-1)),n>=i.number){let t=e[e.length-1];t.to=o.to,t.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function t_(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let e of tx(t)){if(n?e.to==t.doc.length:0==e.from)continue;let s=t.doc.lineAt(n?e.to+1:e.from-1),a=s.length+1;if(n)for(let n of(r.push({from:e.to,to:s.to},{from:e.from,insert:s.text+t.lineBreak}),e.ranges))i.push(o.jT.range(Math.min(t.doc.length,n.anchor+a),Math.min(t.doc.length,n.head+a)));else for(let n of(r.push({from:s.from,to:e.from},{from:e.to,insert:t.lineBreak+s.text}),e.ranges))i.push(o.jT.range(n.anchor-a,n.head-a))}return!!r.length&&(e(t.update({changes:r,scrollIntoView:!0,selection:o.jT.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0)}function tw(t,e,n){if(t.readOnly)return!1;let r=[];for(let e of tx(t))n?r.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):r.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let tk=tA(!1),tS=tA(!0);function tA(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(n=>{let{from:r,to:i}=n,s=e.doc.lineAt(r),c=!t&&r==i&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=(0,a.qz)(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),o;return r&&i&&r.to<=e&&i.from>=e&&(o=r.type.prop(l.md.closedBy))&&o.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(e,r);t&&(r=i=(i<=s.to?s:e.doc.lineAt(i)).to);let u=new a.Gn(e,{simulateBreak:r,simulateDoubleBreak:!!c}),h=(0,a.K0)(u,r);for(null==h&&(h=(0,o.IS)(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));i<s.to&&/\s/.test(s.text[i-s.from]);)i++;c?{from:r,to:i}=c:r>s.from&&r<s.from+100&&!/\S/.test(s.text.slice(0,r))&&(r=s.from);let f=["",(0,a.SS)(e,h)];return c&&f.push((0,a.SS)(e,u.lineIndent(s.from,-1))),{changes:{from:r,to:i,insert:o.xv.of(f)},range:o.jT.cursor(r+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function tM(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let s=t.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),o=s.to+1}let s=t.changes(i);return{changes:i,range:o.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}let tT=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tM(t,(e,n)=>{n.push({from:e.from,insert:t.facet(a.c)})}),{userEvent:"input.indent"})),!0),tC=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tM(t,(e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=(0,o.IS)(r,t.tabSize),s=0,l=(0,a.SS)(t,Math.max(0,i-(0,a.y1)(t)));for(;s<r.length&&s<l.length&&r.charCodeAt(s)==l.charCodeAt(s);)s++;n.push({from:e.from+s,to:e.from+r.length,insert:l.slice(s)})}),{userEvent:"delete.dedent"})),!0),tD=[{key:"Ctrl-b",run:j,shift:tt,preventDefault:!0},{key:"Ctrl-f",run:B,shift:te},{key:"Ctrl-p",run:q,shift:ti},{key:"Ctrl-n",run:H,shift:to},{key:"Ctrl-a",run:t=>L(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>K(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>L(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>K(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:ty},{key:"Ctrl-h",run:tg},{key:"Ctrl-k",run:t=>td(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})},{key:"Ctrl-Alt-h",run:tb},{key:"Ctrl-o",run:({state:t,dispatch:e})=>
1{if(t.readOnly)return!1;let n=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:o.xv.of(["",""])},range:o.jT.cursor(t.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,o.cp)(r.text,n-r.from,!1)+r.from,s=n==r.to?n+1:(0,o.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(i,n))},range:o.jT.cursor(s)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:G}],tE=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>L(t,e=>F(t.state,e,!z(t))),shift:t=>K(t,e=>F(t.state,e,!z(t)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>L(t,e=>F(t.state,e,z(t))),shift:t=>K(t,e=>F(t.state,e,z(t)))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>t_(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>tw(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>t_(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>tw(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=o.jT.create([n.main]):n.main.empty||(r=o.jT.create([o.jT.cursor(n.main.head)])),!!r&&(e(Z(t,r)),!0)}},{key:"Mod-Enter",run:tS},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=tx(t).map(({from:e,to:n})=>o.jT.range(e,Math.min(n+1,t.doc.length)));return e(t.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=P(t.selection,e=>{var n;let r=(0,a.qz)(t).resolveStack(e.from,1);for(let t=r;t;t=t.next){let{node:r}=t;if((r.from<e.from&&r.to>=e.to||r.to>e.to&&r.from<=e.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent))return o.jT.range(r.to,r.from)}return e});return e(Z(t,n)),!0},preventDefault:!0},{key:"Mod-[",run:tC},{key:"Mod-]",run:tT},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new a.Gn(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),i=tM(t,(e,i,o)=>{let s=(0,a.K0)(r,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let l=/^\s*/.exec(e.text)[0],c=(0,a.SS)(t,s);(l!=c||o.from<e.from+l.length)&&(n[e.from]=s,i.push({from:e.from,to:e.from+l.length,insert:c}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(tx(e).map(({from:t,to:n})=>(t>0?t--:n<e.doc.length&&n++,{from:t,to:n}))),r=P(e.selection,e=>t.moveVertically(e,!0)).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>{let n,r;return n=!1,r=P(t.selection,e=>{let r=(0,a.Um)(t,e.head,-1)||(0,a.Um)(t,e.head,1)||e.head>0&&(0,a.Um)(t,e.head-1,1)||e.head<t.doc.length&&(0,a.Um)(t,e.head+1,-1);if(!r||!r.end)return e;n=!0;let i=r.start.from==e.head?r.end.to:r.end.from;return o.jT.cursor(i)}),!!n&&(e(Z(t,r)),!0)}},{key:"Mod-/",run:t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=d(t.state,n.from);return r.line?u(t):!!r.block&&f(t)}},{key:"Alt-A",run:h}].concat([{key:"ArrowLeft",run:j,shift:tt,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>J(t,!z(t)),shift:t=>tn(t,!z(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>L(t,e=>Q(t,e,!z(t))),shift:t=>K(t,e=>Q(t,e,!z(t))),preventDefault:!0},{key:"ArrowRight",run:B,shift:te,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>J(t,z(t)),shift:t=>tn(t,z(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>L(t,e=>Q(t,e,z(t))),shift:t=>K(t,e=>Q(t,e,z(t))),preventDefault:!0},{key:"ArrowUp",run:q,shift:ti,preventDefault:!0},{mac:"Cmd-ArrowUp",run:tc,shift:th},{mac:"Ctrl-ArrowUp",run:V,shift:ta},{key:"ArrowDown",run:H,shift:to,preventDefault:!0},{mac:"Cmd-ArrowDown",run:tu,shift:tf},{mac:"Ctrl-ArrowDown",run:G,shift:tl},{key:"PageUp",run:V,shift:ta},{key:"PageDown",run:G,shift:tl},{key:"Home",run:t=>L(t,e=>Q(t,e,!1)),shift:t=>K(t,e=>Q(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:tc,shift:th},{key:"End",run:t=>L(t,e=>Q(t,e,!0)),shift:t=>K(t,e=>Q(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:tu,shift:tf},{key:"Enter",run:tk},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:tg,shift:tg},{key:"Delete",run:ty},{key:"Mod-Backspace",mac:"Alt-Backspace",run:tb},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>tv(t,!0)},{mac:"Mod-Backspace",run:t=>td(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:t=>td(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})}].concat(tD.map(t=>({mac:t.key,run:t.run,shift:t.shift})))),tN={key:"Tab",run:tT,shift:tC};var tO=n(76139),tI=n(63766),tP=n(3943),tZ=function(t){void 0===t&&(t={});var{crosshairCursor:e=!1}=t,n=[];!1!==t.closeBracketsKeymap&&(n=n.concat(tI.GA)),!1!==t.defaultKeymap&&(n=n.concat(tE)),!1!==t.searchKeymap&&(n=n.concat(tO.Lp)),!1!==t.historyKeymap&&(n=n.concat(I
1)),!1!==t.foldKeymap&&(n=n.concat(a.e7)),!1!==t.completionKeymap&&(n=n.concat(tI.B1)),!1!==t.lintKeymap&&(n=n.concat(tP.Fv));var r=[];return!1!==t.lineNumbers&&r.push((0,s.Eu)()),!1!==t.highlightActiveLineGutter&&r.push((0,s.HQ)()),!1!==t.highlightSpecialChars&&r.push((0,s.AE)()),!1!==t.history&&r.push(function(t={}){return[b,v.of(t),s.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?_:"historyRedo"==t.inputType?w:null;return!!n&&(t.preventDefault(),n(e))}})]}()),!1!==t.foldGutter&&r.push((0,a.mi)()),!1!==t.drawSelection&&r.push((0,s.Uw)()),!1!==t.dropCursor&&r.push((0,s.qr)()),!1!==t.allowMultipleSelections&&r.push(o.yy.allowMultipleSelections.of(!0)),!1!==t.indentOnInput&&r.push((0,a.nY)()),!1!==t.syntaxHighlighting&&r.push((0,a.nF)(a.R_,{fallback:!0})),!1!==t.bracketMatching&&r.push((0,a.n$)()),!1!==t.closeBrackets&&r.push((0,tI.vQ)()),!1!==t.autocompletion&&r.push((0,tI.ys)()),!1!==t.rectangularSelection&&r.push((0,s.Zs)()),!1!==e&&r.push((0,s.S2)()),!1!==t.highlightActiveLine&&r.push((0,s.ZO)()),!1!==t.highlightSelectionMatches&&r.push((0,tO.sW)()),t.tabSize&&"number"==typeof t.tabSize&&r.push(a.c.of(" ".repeat(t.tabSize))),r.concat([s.$f.of(n.flat())]).filter(Boolean)},tL=n(58606);let tR="#e06c75",t$="#abb2bf",tz="#7d8799",tj="#d19a66",tB="#2c313a",tJ="#282c34",tF="#353a42",tU="#528bff",tq=s.tk.theme({"&":{color:t$,backgroundColor:tJ},".cm-content":{caretColor:tU},".cm-cursor, .cm-dropCursor":{borderLeftColor:tU},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:t$},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:tJ,color:tz,border:"none"},".cm-activeLineGutter":{backgroundColor:tB},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tF},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tF,borderBottomColor:tF},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:tB,color:t$}}},{dark:!0}),tH=a.Qf.define([{tag:tL.pJ.keyword,color:"#c678dd"},{tag:[tL.pJ.name,tL.pJ.deleted,tL.pJ.character,tL.pJ.propertyName,tL.pJ.macroName],color:tR},{tag:[tL.pJ.function(tL.pJ.variableName),tL.pJ.labelName],color:"#61afef"},{tag:[tL.pJ.color,tL.pJ.constant(tL.pJ.name),tL.pJ.standard(tL.pJ.name)],color:tj},{tag:[tL.pJ.definition(tL.pJ.name),tL.pJ.separator],color:t$},{tag:[tL.pJ.typeName,tL.pJ.className,tL.pJ.number,tL.pJ.changed,tL.pJ.annotation,tL.pJ.modifier,tL.pJ.self,tL.pJ.namespace],color:"#e5c07b"},{tag:[tL.pJ.operator,tL.pJ.operatorKeyword,tL.pJ.url,tL.pJ.escape,tL.pJ.regexp,tL.pJ.link,tL.pJ.special(tL.pJ.string)],color:"#56b6c2"},{tag:[tL.pJ.meta,tL.pJ.comment],color:tz},{tag:tL.pJ.strong,fontWeight:"bold"},{tag:tL.pJ.emphasis,fontStyle:"italic"},{tag:tL.pJ.strikethrough,textDecoration:"line-through"},{tag:tL.pJ.link,color:tz,textDecoration:"underline"},{tag:tL.pJ.heading,fontWeight:"bold",color:tR},{tag:[tL.pJ.atom,tL.pJ.bool,tL.pJ.special(tL.pJ.variableName)],color:tj},{tag:[tL.pJ.processingInstruction,tL.pJ.string,tL.pJ.inserted],color:"#98c379"},{tag:tL.pJ.invalid,color:"#ffffff"}]),tW=[tq,(0,a.nF)(tH)];var tY=s.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),tV=function(t){void 0===t&&(t={});var{indentWithTab:e=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:a="",basicSetup:l=!0}=t,c=[];switch(e&&c.unshift(s.$f.of([tN])),l&&("boolean"==typeof l?c.unshift(tZ()):c.unshift(tZ(l))),a&&c.unshift((0,s.W$)(a)),i){case"light":c.push(tY);break;case"dark":c.push(tW);break;case"none":break;default:c.push(i)}return!1===n&&c.push(s.tk.editable.of(!1)),r&&c.push(o.yy.readOnly.of(!0)),[...c]},tG=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(t=>!t.empty)}),tQ=o.q6.define(),tK=[],tX=n(97458),t0=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoF
1ocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],t1=(0,i.forwardRef)((t,e)=>{var{className:n,value:a="",selection:l,extensions:c=[],onChange:u,onStatistics:h,onCreateEditor:f,onUpdate:d,autoFocus:p,theme:m="light",height:g,minHeight:y,maxHeight:v,width:b,minWidth:x,maxWidth:_,basicSetup:w,placeholder:k,indentWithTab:S,editable:A,readOnly:M,root:T,initialState:C}=t,D=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,t0),E=(0,i.useRef)(null),{state:N,view:O,container:I}=function(t){var{value:e,selection:n,onChange:r,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:u=tK,autoFocus:h,theme:f="light",height:d=null,minHeight:p=null,maxHeight:m=null,width:g=null,minWidth:y=null,maxWidth:v=null,placeholder:b="",editable:x=!0,readOnly:_=!1,indentWithTab:w=!0,basicSetup:k=!0,root:S,initialState:A}=t,[M,T]=(0,i.useState)(),[C,D]=(0,i.useState)(),[E,N]=(0,i.useState)(),O=s.tk.theme({"&":{height:d,minHeight:p,maxHeight:m,width:g,minWidth:y,maxWidth:v},"& .cm-scroller":{height:"100% !important"}}),I=[s.tk.updateListener.of(t=>{t.docChanged&&"function"==typeof r&&!t.transactions.some(t=>t.annotation(tQ))&&r(t.state.doc.toString(),t),a&&a(tG(t))}),O,...tV({theme:f,editable:x,readOnly:_,placeholder:b,indentWithTab:w,basicSetup:k})];return c&&"function"==typeof c&&I.push(s.tk.updateListener.of(c)),I=I.concat(u),(0,i.useEffect)(()=>{if(M&&!E){var t={doc:e,selection:n,extensions:I},r=A?o.yy.fromJSON(A.json,t,A.fields):o.yy.create(t);if(N(r),!C){var i=new s.tk({state:r,parent:M,root:S});D(i),l&&l(i,r)}}return()=>{C&&(N(void 0),D(void 0))}},[M,E]),(0,i.useEffect)(()=>T(t.container),[t.container]),(0,i.useEffect)(()=>()=>{C&&(C.destroy(),D(void 0))},[C]),(0,i.useEffect)(()=>{h&&C&&C.focus()},[h,C]),(0,i.useEffect)(()=>{C&&C.dispatch({effects:o.Py.reconfigure.of(I)})},[f,u,d,p,m,g,y,v,b,x,_,w,k,r,c]),(0,i.useEffect)(()=>{if(void 0!==e){var t=C?C.state.doc.toString():"";C&&e!==t&&C.dispatch({changes:{from:0,to:t.length,insert:e||""},annotations:[tQ.of(!0)]})}},[e,C]),{state:E,setState:N,view:C,setView:D,container:M,setContainer:T}}({container:E.current,root:T,value:a,autoFocus:p,theme:m,height:g,minHeight:y,maxHeight:v,width:b,minWidth:x,maxWidth:_,basicSetup:w,placeholder:k,indentWithTab:S,editable:A,readOnly:M,selection:l,onChange:u,onStatistics:h,onCreateEditor:f,onUpdate:d,extensions:c,initialState:C});if((0,i.useImperativeHandle)(e,()=>({editor:E.current,state:N,view:O}),[E,I,N,O]),"string"!=typeof a)throw Error("value must be typeof string but got "+typeof a);var P="string"==typeof m?"cm-theme-"+m:"cm-theme";return(0,tX.jsx)("div",r({ref:E,className:""+P+(n?" "+n:"")},D))});t1.displayName="CodeMirror";var t2=t1},27860:function(t){var e,n,r,i,o,s,a,l,c,u,h,f,d,p,m,g,y,v,b,x,_,w;t.exports=(e="millisecond",n="second",r="minute",i="hour",o="week",s="month",a="quarter",l="year",c="date",u="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},(m={})[p="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||"th")+"]"}},g="$isDayjsObject",y=function(t){return t instanceof _||!(!t||!t[g])},v=function t(e,n,r){var i;if(!e)return p;if("string"==typeof e){var o=e.toLowerCase();m[o]&&(i=o),n&&(m[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;m[a]=e,i=a}return!r&&i&&(p=i),i||!r&&p},b=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},(x={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,s),o=n-i<0,a=e.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return({M:s,y:l,w:o,d:"day",D:c,h:i,m:r,s:n,ms:e,Q:a})[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}}).l=v,x.i=y,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},w=(_=function(){function t(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var d=t.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return x},d.isValid=function(){return this.$d.toString()!==u},d.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},d.isAfter=function(t,e){return b(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<b(t)},d.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,e){var a=this,u=!!x.u(e)||e,h=x.p(t),f=function(t,e){var n=x.w(a.$u?Date.UTC(a.$y,e,t):new Date(a.$y,e,t),a);return u?n:n.endOf("day")},d=function(t,e){return x.w(a.toDate()[t].apply(a.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),a)},p=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case l:return u?f(1,0):f(31,11);case s:return u?f(1,m):f(0,m+1);case o:var v=this.$locale().weekStart||0,b=(p<v?p+7:p)-v;return f(u?g-b:g+(6-b),m);case"day":case c:return d(y+"Hours",0);case i:return d(y+"Minutes",1);case r:return d(y+"Seconds",2);case n:return d(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(t,o){var a,u=x.p(t),h="set"+(this.$u?"UTC":""),f=((a={}).day=h+"Date",a[c]=h+"Date",a[s]=h+"Month",a[l]=h+"FullYear",a[i]=h+"Hours",a[r]=h+"Minutes",a[n]=h+"Seconds",a[e]=
1h+"Milliseconds",a)[u],d="day"===u?this.$D+(o-this.$W):o;if(u===s||u===l){var p=this.clone().set(c,1);p.$d[f](d),p.init(),this.$d=p.set(c,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](d);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[x.p(t)]()},d.add=function(t,e){var a,c=this;t=Number(t);var u=x.p(e),h=function(e){var n=b(c);return x.w(n.date(n.date()+Math.round(e*t)),c)};if(u===s)return this.set(s,this.$M+t);if(u===l)return this.set(l,this.$y+t);if("day"===u)return h(1);if(u===o)return h(7);var f=((a={})[r]=6e4,a[i]=36e5,a[n]=1e3,a)[u]||1,d=this.$d.getTime()+t*f;return x.w(d,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,h=n.meridiem,d=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},p=function(t){return x.s(o%12||12,t,"0")},m=h||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(n.weekdaysMin,e.$W,l,2);case"ddd":return d(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return x.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return x.s(s,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(t,e,c){var u,h=this,f=x.p(e),d=b(t),p=(d.utcOffset()-this.utcOffset())*6e4,m=this-d,g=function(){return x.m(h,d)};switch(f){case l:u=g()/12;break;case s:u=g();break;case a:u=g()/3;break;case o:u=(m-p)/6048e5;break;case"day":u=(m-p)/864e5;break;case i:u=m/36e5;break;case r:u=m/6e4;break;case n:u=m/1e3;break;default:u=m}return c?u:x.a(u)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return m[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},d.clone=function(){return x.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},t}()).prototype,b.prototype=w,[["$ms",e],["$s",n],["$m",r],["$H",i],["$W","day"],["$M",s],["$y",l],["$D",c]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=v,b.isDayjs=y,b.unix=function(t){return b(1e3*t)},b.en=m[p],b.Ls=m,b.p={},b)},51076:function(t){t.exports=function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),s||(s=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});let u=_(Array.prototype.forEach),h=_(Array.prototype.pop),f=_(Array.prototype.push),d=_(String.prototype.toLowerCase),p=_(String.prototype.toString),m=_(String.prototype.match),g=_(String.prototype.replace),y=_(String.prototype.indexOf),v=_(String.prototype.trim),b=_(RegExp.prototype.test),x=(q=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(q,e)});function _(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return l(t,e,r)}}function w(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let o=r.length;for(;o--;){let e=r[o];if("string"==typeof e){let t=i(e);t!==e&&(n(r)||(r[o]=t),e=t)}t[e]=!0}return t}function k(e){let n=a(null);for(let[r,o]of t(e))void 0!==i(e,r)&&(n[r]=o);return n}function S(t,e){for(;null!==t;){let n=i(t,e);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}t=r(t)}return function(t){return console.warn("fallback value for",t),null}}let A=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),T=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),E=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),R=s(/<%[\w\W]*|[\w\W]*%>/gm),$=s(/\${[\w\W]*}/gm),z=s(/^data-[\-\w.\u00B7-\uFFFF]/),j=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=s(/^(?:\w+script|data):/i),F=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U=s(/^html$/i);var q,H=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:R,TMPLIT_EXPR:$,DATA_ATTR:z,ARIA_ATTR:j,IS_ALLOWED_URI:B,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:F,DOCTYPE_NAME:U});let W=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null,r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.0.6",i.removed=[],!r||!r.document||9!==r.document.nodeType)return i.isSupported=!1,i;let{document:s}=r,l=s,c=l.currentScript,{DocumentFragment:_,HTMLTemplateElement:L,Node:R,Element:$,NodeFilter:z,NamedNodeMap:j=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:J,DOMParser:F,trustedTypes:q}=r,Y=$.prototype,V=S(Y,"cloneNode"),G=S(Y,"nextSibling"),Q=S(Y,"childNodes"),K=S(Y,"parentNode");if("function"==typeof L){let t=s.createElement("template");t.content&&t.content.ownerDocument&&(s=t.content.ownerDocument)}let X="",{implementation:tt,createNodeIterator:te,createDocumentFragment:tn,getElementsByTagName:tr}=s,{importNode:ti}=l,to={};i.isSupported="function"==typeof t&&"function"==typeof K&&tt&&void 0!==tt.createHTMLDocument;let{MUSTACHE_EXPR:ts,ERB_EXPR:ta,TMPLIT_EXPR:tl,DATA_ATTR:tc,ARIA_ATTR:tu,IS_SCRIPT_OR_DATA:th,ATTR_WHITESPACE:tf}=H,{IS_ALLOWED_URI:td}=H,tp=null,tm=w({},[...A,...M,...T,...D,...N]),tg=null,ty=w({},[...O,...I,...P,...Z]),tv=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tb=null,tx=null,t_=!0,tw=!0,tk=!1,tS=!0,tA=!1,tM=!1,tT=!1,tC=!1,tD=!1,tE=!1,tN=!1,tO=!0,tI=!1,tP=!0,tZ=!1,tL={},tR=null,t$=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tz=null,tj=w({},["audio","video","img","source","image","track"]),tB=null,tJ=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tF="http://www.w3.org/1998/Math/MathML",tU="http://www.w3.org/2000/svg",tq="http://www.w3.org/1999/xhtml",tH=tq,tW=!1,tY=null,tV=w({},[tF,tU,tq],p),tG=null,tQ=["application/xhtml+xml","text/html"],tK=null,tX=null,t0=s.createElement("form"),t1=function(t){return t instanceof RegExp||t instanceof Function},t2=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!tX||tX!==t){if(t&&"object"==typeof t||(t={}),t=k(t),tK="application/xhtml+xml"===(tG=tG=-1===tQ.indexOf(t.PARSER_MEDIA_TYPE
1)?"text/html":t.PARSER_MEDIA_TYPE)?p:d,tp="ALLOWED_TAGS"in t?w({},t.ALLOWED_TAGS,tK):tm,tg="ALLOWED_ATTR"in t?w({},t.ALLOWED_ATTR,tK):ty,tY="ALLOWED_NAMESPACES"in t?w({},t.ALLOWED_NAMESPACES,p):tV,tB="ADD_URI_SAFE_ATTR"in t?w(k(tJ),t.ADD_URI_SAFE_ATTR,tK):tJ,tz="ADD_DATA_URI_TAGS"in t?w(k(tj),t.ADD_DATA_URI_TAGS,tK):tj,tR="FORBID_CONTENTS"in t?w({},t.FORBID_CONTENTS,tK):t$,tb="FORBID_TAGS"in t?w({},t.FORBID_TAGS,tK):{},tx="FORBID_ATTR"in t?w({},t.FORBID_ATTR,tK):{},tL="USE_PROFILES"in t&&t.USE_PROFILES,t_=!1!==t.ALLOW_ARIA_ATTR,tw=!1!==t.ALLOW_DATA_ATTR,tk=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tS=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tA=t.SAFE_FOR_TEMPLATES||!1,tM=t.WHOLE_DOCUMENT||!1,tD=t.RETURN_DOM||!1,tE=t.RETURN_DOM_FRAGMENT||!1,tN=t.RETURN_TRUSTED_TYPE||!1,tC=t.FORCE_BODY||!1,tO=!1!==t.SANITIZE_DOM,tI=t.SANITIZE_NAMED_PROPS||!1,tP=!1!==t.KEEP_CONTENT,tZ=t.IN_PLACE||!1,td=t.ALLOWED_URI_REGEXP||B,tH=t.NAMESPACE||tq,tv=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&t1(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tv.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&t1(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tv.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(tv.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tA&&(tw=!1),tE&&(tD=!0),tL&&(tp=w({},[...N]),tg=[],!0===tL.html&&(w(tp,A),w(tg,O)),!0===tL.svg&&(w(tp,M),w(tg,I),w(tg,Z)),!0===tL.svgFilters&&(w(tp,T),w(tg,I),w(tg,Z)),!0===tL.mathMl&&(w(tp,D),w(tg,P),w(tg,Z))),t.ADD_TAGS&&(tp===tm&&(tp=k(tp)),w(tp,t.ADD_TAGS,tK)),t.ADD_ATTR&&(tg===ty&&(tg=k(tg)),w(tg,t.ADD_ATTR,tK)),t.ADD_URI_SAFE_ATTR&&w(tB,t.ADD_URI_SAFE_ATTR,tK),t.FORBID_CONTENTS&&(tR===t$&&(tR=k(tR)),w(tR,t.FORBID_CONTENTS,tK)),tP&&(tp["#text"]=!0),tM&&w(tp,["html","head","body"]),tp.table&&(w(tp,["tbody"]),delete tb.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');X=(n=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=W(q,c)),null!==n&&"string"==typeof X&&(X=n.createHTML(""));o&&o(t),tX=t}},t3=w({},["mi","mo","mn","ms","mtext"]),t5=w({},["foreignobject","desc","title","annotation-xml"]),t4=w({},["title","style","font","a","script"]),t6=w({},M);w(t6,T),w(t6,C);let t7=w({},D);w(t7,E);let t9=function(t){let e=K(t);e&&e.tagName||(e={namespaceURI:tH,tagName:"template"});let n=d(t.tagName),r=d(e.tagName);return!!tY[t.namespaceURI]&&(t.namespaceURI===tU?e.namespaceURI===tq?"svg"===n:e.namespaceURI===tF?"svg"===n&&("annotation-xml"===r||t3[r]):!!t6[n]:t.namespaceURI===tF?e.namespaceURI===tq?"math"===n:e.namespaceURI===tU?"math"===n&&t5[r]:!!t7[n]:t.namespaceURI===tq?(e.namespaceURI!==tU||!!t5[r])&&(e.namespaceURI!==tF||!!t3[r])&&!t7[n]&&(t4[n]||!t6[n]):"application/xhtml+xml"===tG&&!!tY[t.namespaceURI])},t8=function(t){f(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},et=function(t,e){try{f(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!tg[t]){if(tD||tE)try{t8(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}},ee=function(t){let e=null,r=null;if(tC)t="<remove></remove>"+t;else{let e=m(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===tG&&tH===tq&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=n?n.createHTML(t):t;if(tH===tq)try{e=new F().parseFromString(i,tG)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(tH,"template",null);try{e.documentElement.innerHTML=tW?X:i}catch(t){}}let o=e.body||e.documentElement;return(t&&r&&o.insertBefore(s.createTextNode(r),o.childNodes[0]||null),tH===tq)?tr.call(e,tM?"html":"body")[0]:tM?e.documentElement:o},en=function(t){return te.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT,null)},er=function(t){return"function"==typeof R&&t instanceof R},ei=function(t,e,n){to[t]&&u(to[t],t=>
1{t.call(i,e,n,tX)})},eo=function(t){let e=null;if(ei("beforeSanitizeElements",t,null),t instanceof J&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof j)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes))return t8(t),!0;let n=tK(t.nodeName);if(ei("uponSanitizeElement",t,{tagName:n,allowedTags:tp}),t.hasChildNodes()&&!er(t.firstElementChild)&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return t8(t),!0;if(!tp[n]||tb[n]){if(!tb[n]&&ea(n)&&(tv.tagNameCheck instanceof RegExp&&b(tv.tagNameCheck,n)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(n)))return!1;if(tP&&!tR[n]){let e=K(t)||t.parentNode,n=Q(t)||t.childNodes;if(n&&e){let r=n.length;for(let i=r-1;i>=0;--i)e.insertBefore(V(n[i],!0),G(t))}}return t8(t),!0}return t instanceof $&&!t9(t)||("noscript"===n||"noembed"===n||"noframes"===n)&&b(/<\/no(script|embed|frames)/i,t.innerHTML)?(t8(t),!0):(tA&&3===t.nodeType&&(e=t.textContent,u([ts,ta,tl],t=>{e=g(e,t," ")}),t.textContent!==e&&(f(i.removed,{element:t.cloneNode()}),t.textContent=e)),ei("afterSanitizeElements",t,null),!1)},es=function(t,e,n){if(tO&&("id"===e||"name"===e)&&(n in s||n in t0))return!1;if(tw&&!tx[e]&&b(tc,e));else if(t_&&b(tu,e));else if(!tg[e]||tx[e]){if(!(ea(t)&&(tv.tagNameCheck instanceof RegExp&&b(tv.tagNameCheck,t)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(t))&&(tv.attributeNameCheck instanceof RegExp&&b(tv.attributeNameCheck,e)||tv.attributeNameCheck instanceof Function&&tv.attributeNameCheck(e))||"is"===e&&tv.allowCustomizedBuiltInElements&&(tv.tagNameCheck instanceof RegExp&&b(tv.tagNameCheck,n)||tv.tagNameCheck instanceof Function&&tv.tagNameCheck(n))))return!1}else if(tB[e]);else if(b(td,g(n,tf,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===y(n,"data:")&&tz[t]);else if(tk&&!b(th,g(n,tf,"")));else if(n)return!1;return!0},ea=function(t){return t.indexOf("-")>0},el=function(t){ei("beforeSanitizeAttributes",t,null);let{attributes:e}=t;if(!e)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tg},o=e.length;for(;o--;){let{name:s,namespaceURI:a,value:l}=e[o],c=tK(s),f="value"===s?l:v(l);if(r.attrName=c,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ei("uponSanitizeAttribute",t,r),f=r.attrValue,r.forceKeepAttr||(et(s,t),!r.keepAttr))continue;if(!tS&&b(/\/>/i,f)){et(s,t);continue}tA&&u([ts,ta,tl],t=>{f=g(f,t," ")});let d=tK(t.nodeName);if(es(d,c,f)){if(tI&&("id"===c||"name"===c)&&(et(s,t),f="user-content-"+f),n&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(a);else switch(q.getAttributeType(d,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}}try{a?t.setAttributeNS(a,s,f):t.setAttribute(s,f),h(i.removed)}catch(t){}}}ei("afterSanitizeAttributes",t,null)},ec=function t(e){let n=null,r=en(e);for(ei("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ei("uponSanitizeShadowNode",n,null),eo(n)||(n.content instanceof _&&t(n.content),el(n));ei("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,a=null;if((tW=!t)&&(t="<!-->"),"string"!=typeof t&&!er(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}else throw x("toString is not a function")}if(!i.isSupported)return t;if(tT||t2(e),i.removed=[],"string"==typeof t&&(tZ=!1),tZ){if(t.nodeName){let e=tK(t.nodeName);if(!tp[e]||tb[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof R)1===(o=(r=ee("<!---->")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===o.nodeName?r=o:"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!tD&&!tA&&!tM&&-1===t.indexOf("<"))return n&&tN?n.createHTML(t):t;if(!(r=ee(t)))return tD?null:tN?X:""}r&&tC&&t8(r.firstChild);let c=en(tZ?t:r);for(;s=c.nextNode();)eo(s)||(s.content instanceof _&&ec(s.content),el(s));if(tZ)return t;if(tD){if(tE)for(a=tn.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(tg.shadowroot||tg.shadowrootmode)&&(a=ti.call(l,a,!0)),a}let h=tM?r.outerHTML:r.innerHTML;return tM&&tp["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&b(U,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),tA&&u([ts,ta,tl],t=>{h=g(h,t," ")}),n&&tN?n.createHTML(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t2(t),tT=!0},i.clearConfig=function(){tX=null,tT=!1},i.isValidAttribute=function(t,e,n){return tX||t2({}),es(tK(t),tK(e),n)},i.addHook=function(t,e){"function"==typeof e&&(to[t]=to[t]||[],f(to[t],e))},i.removeHook=function(t){if(to[t])return h(to[t])},i.removeHooks=function(t){to[t]&&(to[t]=[])},i.removeAllHooks=function(){to={}},i}()}()},14978:function(t,e,n){var r="Expected a function",i=0/0,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,f=u||h||Function("return this")(),d=Object.prototype.toString,p=Math.max,m=Math.min,g=function(){return f.Date.now()};function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==d.call(e))return i;if(y(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=y(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var r=a.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):s.test(t)?i:+t}t.exports=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw TypeError(r);return y(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),function(t,e,n){var i,o,s,a,l,c,u=0,h=!1,f=!1,d=!0;if("function"!=typeof t)throw TypeError(r);function b(e){var n=i,r=o;return i=o=void 0,u=e,a=t.apply(r,n)}function x(t){var n=t-c,r=t-u;return void 0===c||n>=e||n<0||f&&r>=s}function _(){var t,n,r,i=g();if(x(i))return w(i);l=setTimeout(_,(t=i-c,n=i-u,r=e-t,f?m(r,s-n):r))}function w(t){return(l=void 0,d&&i)?b(t):(i=o=void 0,a)}function k(){var t,n=g(),r=x(n);if(i=arguments,o=this,c=n,r){if(void 0===l)return u=t=c,l=setTimeout(_,e),h?b(t):a;if(f)return l=setTimeout(_,e),b(c)}return void 0===l&&(l=setTimeout(_,e)),a}return e=v(e)||0,y(n)&&(h=!!n.leading,s=(f="maxWait"in n)?p(v(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d),k.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0}
1,k.flush=function(){return void 0===l?a:w(g())},k}(t,e,{leading:i,maxWait:e,trailing:o})}},72303:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** 2 * @license lucide-react v0.294.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,n(61348).Z)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},8662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{noSSR:function(){return s},default:function(){return a}});let r=n(83166);n(97458),n(52983);let i=r._(n(55819));function o(t){return{default:(null==t?void 0:t.default)||t}}function s(t,e){return delete e.webpack,delete e.modules,t(e)}function a(t,e){let n=i.default,r={loading:t=>{let{error:e,isLoading:n,pastDelay:r}=t;return null}};t instanceof Promise?r.loader=()=>t:"function"==typeof t?r.loader=t:"object"==typeof t&&(r={...r,...t});let a=(r={...r,...e}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,s(n,r))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},80162:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(83166)._(n(52983)).default.createContext(null)},55819:function(t,e,n){"use strict";/** 7@copyright (c) 2017-present James Kyle <[email protected]> 8 MIT License 9 Permission is hereby granted, free of charge, to any person obtaining 10a copy of this software and associated documentation files (the 11"Software"), to deal in the Software without restriction, including 12without limitation the rights to use, copy, modify, merge, publish, 13distribute, sublicense, and/or sell copies of the Software, and to 14permit persons to whom the Software is furnished to do so, subject to 15the following conditions: 16 The above copyright notice and this permission notice shall be 17included in all copies or substantial portions of the Software. 18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE 25*/Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});let r=n(83166)._(n(52983)),i=n(80162),o=[],s=[],a=!1;function l(t){let e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then(t=>(n.loading=!1,n.loaded=t,t)).catch(t=>{throw n.loading=!1,n.error=t,t}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:t,_opts:e}=this;t.loading&&("number"==typeof e.delay&&(0===e.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},e.delay)),"number"==typeof e.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},e.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(t=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(t){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...t},this._callbacks.forEach(t=>t())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(t){return this._callbacks.add(t),()=>{this._callbacks.delete(t)}}constructor(t,e){this._loadFn=t,this._opts=e,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(t){return function(t,e){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},e),o=null;function l(){if(!o){let e=new c(t,n);o={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return o.promise()}if(!a){let t=n.webpack?n.webpack():n.modules;t&&s.push(e=>{for(let n of t)if(e.includes(n))return l()})}function u(t,e){!function(){l();let t=r.default.useContext(i.LoadableContext);
25t&&Array.isArray(n.modules)&&n.modules.forEach(e=>{t(e)})}();let s=r.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return r.default.useImperativeHandle(e,()=>({retry:o.retry}),[]),r.default.useMemo(()=>{var e;return s.loading||s.error?r.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?r.default.createElement((e=s.loaded)&&e.default?e.default:e,t):null},[t,s])}return u.preload=()=>l(),u.displayName="LoadableComponent",r.default.forwardRef(u)}(l,t)}function h(t,e){let n=[];for(;t.length;){let r=t.pop();n.push(r(e))}return Promise.all(n).then(()=>{if(t.length)return h(t,e)})}u.preloadAll=()=>new Promise((t,e)=>{h(o).then(t,e)}),u.preloadReady=t=>(void 0===t&&(t=[]),new Promise(e=>{let n=()=>(a=!0,e());h(s,t).then(n,n)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},19631:function(t,e,n){t.exports=n(8662)},17537:function(t,e,n){"use strict";n.d(e,{OT:function(){return ta},eh:function(){return to},s_:function(){return k}});var r,i=n(52983);let{createElement:o,createContext:s,createRef:a,forwardRef:l,useCallback:c,useContext:u,useEffect:h,useImperativeHandle:f,useLayoutEffect:d,useMemo:p,useRef:m,useState:g}=r||(r=n.t(i,2)),y=(r||(r=n.t(i,2)))["useId".toString()],v=s(null);v.displayName="PanelGroupContext";let b="function"==typeof y?y:()=>null,x=0;function _(t=null){let e=b(),n=m(t||e||null);return null===n.current&&(n.current=""+x++),null!=t?t:n.current}function w({children:t,className:e="",collapsedSizePercentage:n,collapsedSizePixels:r,collapsible:i,dataAttributes:s,defaultSizePercentage:a,defaultSizePixels:l,forwardedRef:c,id:h,maxSizePercentage:p,maxSizePixels:g,minSizePercentage:y,minSizePixels:b,onCollapse:x,onExpand:w,onResize:k,order:S,style:A,tagName:M="div"}){let T=u(v);if(null===T)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:C,expandPanel:D,getPanelSize:E,getPanelStyle:N,groupId:O,isPanelCollapsed:I,registerPanel:P,resizePanel:Z,unregisterPanel:L}=T,R=_(h),$=m({callbacks:{onCollapse:x,onExpand:w,onResize:k},constraints:{collapsedSizePercentage:n,collapsedSizePixels:r,collapsible:i,defaultSizePercentage:a,defaultSizePixels:l,maxSizePercentage:p,maxSizePixels:g,minSizePercentage:y,minSizePixels:b},id:R,idIsFromProps:void 0!==h,order:S});return m({didLogMissingDefaultSizeWarning:!1}),d(()=>{let{callbacks:t,constraints:e}=$.current;$.current.id=R,$.current.idIsFromProps=void 0!==h,$.current.order=S,t.onCollapse=x,t.onExpand=w,t.onResize=k,e.collapsedSizePercentage=n,e.collapsedSizePixels=r,e.collapsible=i,e.defaultSizePercentage=a,e.defaultSizePixels=l,e.maxSizePercentage=p,e.maxSizePixels=g,e.minSizePercentage=y,e.minSizePixels=b}),d(()=>{let t=$.current;return P(t),()=>{L(t)}},[S,R,P,L]),f(c,()=>({collapse:()=>{C($.current)},expand:()=>{D($.current)},getId:()=>R,getSize:()=>E($.current),isCollapsed:()=>I($.current),isExpanded:()=>!I($.current),resize:t=>{Z($.current,t)}}),[C,D,E,I,R,Z]),o(M,{children:t,className:e,style:{...N($.current),...A},...s,"data-panel":"","data-panel-id":R,"data-panel-group-id":O,"data-panel-collapsible":void 0,"data-panel-size":void 0})}let k=l((t,e)=>o(w,{...t,forwardedRef:e}));function S(t,e){let{collapsedSizePercentage:n=0,collapsedSizePixels:r,defaultSizePercentage:i,defaultSizePixels:o,maxSizePercentage:s=100,maxSizePixels:a,minSizePercentage:l=0,minSizePixels:c}=t;return(null!=r||null!=o||null!=c||null!=a)&&e<=0?(console.warn(`WARNING: Invalid group size: ${e}px`),{collapsedSizePercentage:0,defaultSizePercentage:i,maxSizePercentage:0,minSizePercentage:0}):(null!=r&&(n=r/e*100),null!=o&&(i=o/e*100),null!=c&&(l=c/e*100),null!=a&&(s=a/e*100),{collapsedSizePercentage:n,defaultSizePercentage:i,maxSizePercentage:s,minSizePercentage:l})}function A(t,e,n){let r=0,i=0;for(let o=0;o<t.length;o++)if(o!==e){let{collapsible:e}=t[o],{collapsedSizePercentage:s,maxSizePercentage:a,minSizePercentage:l}=S(t[o],n);i+=a,r+=e?s:l}let{collapsedSizePercentage:o,defaultSizePercentage:s,maxSizePercentage:a,minSizePercentage:l}=S(t[e],n);return{collapsedSizePercentage:o,defaultSizePercentage:s,maxSizePercentage:t.length>1?Math.min(a,100-r):a,minSizePercentage:t.length>1?Math.max(l,100-i):l}}function M(t,e,n=10){let r=(t=parseFloat(t.toFixed(n)))-(e=parseFloat(e.toFixed(n)));return 0===r?0:r>0?1:-1}function T(t,e,n){return 0===M(t,e,n)}function C({groupSizePixels:t,panelConstraints:e,panelIndex:n,size:r}){if(e.some(({collapsedSizePixels:t,defaultSizePixels:e,minSizePixels:n,maxSizePixels:r})=>null!=t||null!=e||null!=n||null!=r)&&t<=0)return console.warn(`WARNING: Invalid group size: ${t}px`),0;let{collapsible:i}=e[n],{collapsedSizePercentage:o,maxSizePercentage:s,minSizePercentage:a}=A(e,n,t);return null!=a&&0>M(r,a)&&(r=i&&0>M(r,(o+a)/2)?o:a),null!=s&&(r=Math.min(s,r)),r}function D({delta:t,groupSizePixels:e,layout:n,panelConstraints:r,pivotIndices:i,trigger:o}){if(T(t,0))return n;let s=[...n],a=0;if("keyboard"===o){{let o=t<0?i[1]:i[0];if(r[o].collapsible){let i=n[o],{collapsedSizePercentage:s,minSizePercentage:a}=A(r,o,e);if(T(i,s)){let e=a-i;M(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{let o=t<0?i[0]:i[1];if(r[o].collapsible){let i=n[o],{collapsedSizePercentage:s,minSizePercentage:a}=A(r,o,e);if(T(i,a)){let e=i-s;M(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}{let o=t<0?1:-1,s=t<0?i[1]:i[0],a=0;for(;;){let t=n[s];if(a+=C({groupSizePixels:e,panelConstraints:r,panelIndex:s,size:100})-t,(s+=o)<0||s>=r.length)break}
25let l=Math.min(Math.abs(t),Math.abs(a));t=t<0?0-l:l}{let o=t<0?i[0]:i[1];for(;o>=0&&o<r.length;){let i=Math.abs(t)-Math.abs(a),l=n[o],c=C({groupSizePixels:e,panelConstraints:r,panelIndex:o,size:l-i});if(!T(l,c)&&(a+=l-c,s[o]=c,a.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?o--:o++}}if(T(a,0))return n;{let o=t<0?i[1]:i[0],l=n[o]+a,c=C({groupSizePixels:e,panelConstraints:r,panelIndex:o,size:l});if(s[o]=c,!T(c,l)){let n=l-c,o=t<0?i[1]:i[0];for(;o>=0&&o<r.length;){let i=s[o],a=C({groupSizePixels:e,panelConstraints:r,panelIndex:o,size:i+n});if(T(i,a)||(n-=a-i,s[o]=a),T(n,0))break;t>0?o--:o++}}}let l=s.reduce((t,e)=>e+t,0);return(a=100-l,T(l,100))?s:n}function E(t,e="Assertion failed!"){if(!t)throw console.error(e),Error(e)}function N({sizePercentage:t,sizePixels:e},n){return null!=t?t:null!=e?e/n*100:void 0}function O(t){return Array.from(document.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function I(t,e){let n=O(t).findIndex(t=>t.getAttribute("data-panel-resize-handle-id")===e);return null!=n?n:null}function P(t,e){let n=I(t,e);return null!=n?[n,n+1]:[-1,-1]}
25function Z(t){return document.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`)||null}function L(t){let e=Z(t);if(null==e)return NaN;let n=e.getAttribute("data-panel-group-direction"),r=O(t);return"horizontal"===n?e.offsetWidth-r.reduce((t,e)=>t+e.offsetWidth,0):e.offsetHeight-r.reduce((t,e)=>t+e.offsetHeight,0)}function R(t){return document.querySelector(`[data-panel-resize-handle-id="${t}"]`)||null}function $(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function z(t){return"keydown"===t.type}function j(t){return t.type.startsWith("mouse")}function B(t){return t.type.startsWith("touch")}function J(t,e){let n="horizontal"===t;if(j(e))return n?e.clientX:e.clientY;if(B(e)){let t=e.touches[0];return n?t.screenX:t.screenY}throw Error(`Unsupported event type "${e.type}"`)}function F({groupSizePixels:t,panelDataArray:e}){let n=Array(e.length),r=e.map(t=>t.constraints),i=0,o=100;for(let s=0;s<e.length;s++){let{defaultSizePercentage:e}=A(r,s,t);null!=e&&(i++,n[s]=e,o-=e)}for(let s=0;s<e.length;s++){let{defaultSizePercentage:a}=A(r,s,t);if(null!=a)continue;let l=o/(e.length-i);i++,n[s]=l,o-=l}return n}function U(t,e,n,r){let i=L(t);n.forEach((t,n)=>{let o=e[n];if(!o)return;let{callbacks:s,constraints:a,id:l}=o,{collapsible:c}=a,u={sizePercentage:t,sizePixels:t/100*i},h=r[l];if(null==h||u.sizePercentage!==h.sizePercentage||u.sizePixels!==h.sizePixels){r[l]=u;let{onCollapse:t,onExpand:e,onResize:n}=s;if(n&&n(u,h),c&&(t||e)){var f;let n=null!==(f=N({sizePercentage:a.collapsedSizePercentage,sizePixels:a.collapsedSizePixels},i))&&void 0!==f?f:0,r=N(u,i);e&&(null==h||h.sizePercentage===n)&&r!==n&&e(),t&&(null==h||h.sizePercentage!==n)&&r===n&&t()}}})}function q(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}w.displayName="Panel",k.displayName="forwardRef(Panel)";let H=null,W=null;function Y(t){switch(t){case"horizontal":return"ew-resize";case"horizontal-max":return"w-resize";case"horizontal-min":return"e-resize";case"vertical":return"ns-resize";case"vertical-max":return"n-resize";case"vertical-min":return"s-resize"}}function V(t){if(H===t)return;H=t;let e=Y(t);null===W&&(W=document.createElement("style"),document.head.appendChild(W)),W.innerHTML=`*{cursor: ${e}!important;}`}function G(t){try{if("undefined"!=typeof localStorage)t.getItem=t=>localStorage.getItem(t),t.setItem=(t,e)=>{localStorage.setItem(t,e)};else throw Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Q(t){return t.map(t=>{let{constraints:e,id:n,idIsFromProps:r,order:i}
25=t;return r?n:`${i}:${JSON.stringify(e)}`}).sort((t,e)=>t.localeCompare(e)).join(",")}function K(t,e){try{let n=e.getItem(`PanelGroup:sizes:${t}`);if(n){let t=JSON.parse(n);if("object"==typeof t&&null!=t)return t}}catch(t){}return null}function X(t,e,n,r){let i=Q(e),o=K(t,r)||{};o[i]=n;try{r.setItem(`PanelGroup:sizes:${t}`,JSON.stringify(o))}catch(t){console.error(t)}}function tt(t){return t.some(t=>void 0!==t.collapsedSizePixels||void 0!==t.maxSizePixels||void 0!==t.minSizePixels)}function te({groupSizePixels:t,layout:e,panelConstraints:n}){let r=[...e];if(r.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${r.map(t=>`${t}%`).join(", ")}`);T(r.reduce((t,e)=>t+e,0),100);let i=0;for(let e=0;e<n.length;e++){let o=r[e],s=C({groupSizePixels:t,panelConstraints:n,panelIndex:e,size:o});o!=s&&(i+=o-s,r[e]=s)}if(!T(i,0))for(let e=0;e<n.length;e++){let o=r[e],s=C({groupSizePixels:t,panelConstraints:n,panelIndex:e,size:o+i});if(o!==s&&(i-=s-o,r[e]=s,T(i,0)))break}return r}let tn={getItem:t=>(G(tn),tn.getItem(t)),setItem:(t,e)=>{G(tn),tn.setItem(t,e)}},tr={};function ti({autoSaveId:t=null,children:e,className:n="",dataAttributes:r,direction:i,forwardedRef:s,id:a,onLayout:l=null,keyboardResizeByPercentage:u=null,keyboardResizeByPixels:y=null,storage:b=tn,style:x,tagName:w="div"}){let k=_(a),[S,A]=g(null),[M,C]=g([]),I=m({}),Y=m(new Map),G=m(0),ti=m({autoSaveId:t,direction:i,dragState:S,id:k,keyboardResizeByPercentage:u,keyboardResizeByPixels:y,onLayout:l,storage:b}),to=m({layout:M,panelDataArray:[]});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f(s,()=>({getId:()=>ti.current.id,getLayout:()=>{let{id:t}=ti.current,{layout:e}=to.current,n=L(t);return e.map(t=>({sizePercentage:t,sizePixels:t/100*n}))},setLayout:t=>{let{id:e,onLayout:n}=ti.current,{layout:r,panelDataArray:i}=to.current,o=L(e),s=t.map(t=>N(t,o)),a=te({groupSizePixels:o,layout:s,panelConstraints:i.map(t=>t.constraints)});$(r,a)||(C(a),to.current.layout=a,n&&n(a.map(t=>({sizePercentage:t,sizePixels:t/100*o}))),U(e,i,a,I.current))}}),[]),d(()=>{ti.current.autoSaveId=t,ti.current.direction=i,ti.current.dragState=S,ti.current.id=k,ti.current.onLayout=l,ti.current.storage=b}),function({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:i,setLayout:o}){m({didWarnAboutMissingResizeHandle:!1}),d(()=>{let t=L(n),e=O(n);for(let n=0;n<i.length-1;n++){let{valueMax:o,valueMin:s,valueNow:a}=function({groupSizePixels:t,layout:e,panelsArray:n,pivotIndices:r}){let i=0,o=100,s=0,a=0;return n.forEach((e,n)=>{var l,c;let{constraints:u}=e,{maxSizePercentage:h,maxSizePixels:f,minSizePercentage:d,minSizePixels:p}=u,m=null!==(l=N({sizePercentage:d,sizePixels:p},t))&&void 0!==l?l:0,g=null!==(c=N({sizePercentage:h,sizePixels:f},t))&&void 0!==c?c:100;n===r[0]?(i=m,o=g):(s+=m,a+=g)}),{valueMax:Math.min(o,100-s),valueMin:Math.max(i,100-a),valueNow:e[r[0]]}}({groupSizePixels:t,layout:r,panelsArray:i,pivotIndices:[n,n+1]}),l=e[n];null==l||(l.setAttribute("aria-controls",i[n].id),l.setAttribute("aria-valuemax",""+Math.round(o)),l.setAttribute("aria-valuemin",""+Math.round(s)),l.setAttribute("aria-valuenow",""+Math.round(a)))}return()=>{e.forEach((t,e)=>{t.removeAttribute("aria-controls"),t.removeAttribute("aria-valuemax"),t.removeAttribute("aria-valuemin"),t.removeAttribute("aria-valuenow")})}},[n,r,i]),h(()=>{let{panelDataArray:t}=e.current;E(null!=Z(n),`No group found for id "${n}"`);let i=O(n).map(e=>{let i=e.getAttribute("data-panel-resize-handle-id"),[s,a]=function(t,e,n){var r,i,o,s;let a=R(e),l=O(t),c=a?l.indexOf(a):-1;return[null!==(r=null===(i=n[c])||void 0===i?void 0:i.id)&&void 0!==r?r:null,null!==(o=null===(s=n[c+1])||void 0===s?void 0:s.id)&&void 0!==o?o:null]}(n,i,t);if(null==s||null==a)return()=>{};let l=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let c=t.findIndex(t=>t.id===s);if(c>=0){let e=t[c],s=r[c];if(null!=s&&e.constraints.collapsible){var a,l;
25let c=function(t){let e=Z(t);if(null==e)return NaN;let n=e.getAttribute("data-panel-group-direction"),r=O(t);return"horizontal"===n?e.offsetWidth-r.reduce((t,e)=>t+e.offsetWidth,0):e.offsetHeight-r.reduce((t,e)=>t+e.offsetHeight,0)}(n),u=null!==(a=N({sizePercentage:e.constraints.collapsedSizePercentage,sizePixels:e.constraints.collapsedSizePixels},c))&&void 0!==a?a:0,h=null!==(l=N({sizePercentage:e.constraints.minSizePercentage,sizePixels:e.constraints.minSizePixels},c))&&void 0!==l?l:0,f=D({delta:T(s,u)?h-u:u-s,groupSizePixels:c,layout:r,panelConstraints:t.map(t=>t.constraints),pivotIndices:P(n,i),trigger:"keyboard"});r!==f&&o(f)}}}};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}});return()=>{i.forEach(t=>t())}},[t,e,n,r,i,o])}({committedValuesRef:ti,eagerValuesRef:to,groupId:k,layout:M,panelDataArray:to.current.panelDataArray,setLayout:C}),h(()=>{let{panelDataArray:e}=to.current;if(t){if(0===M.length||M.length!==e.length)return;tr[t]||(tr[t]=function(t,e=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}}(X,100)),tr[t](t,e,M,b)}},[t,M,b]),d(()=>{let{layout:t,panelDataArray:e}=to.current;if(tt(e.map(({constraints:t})=>t))){if("undefined"==typeof ResizeObserver)console.warn("WARNING: Pixel based constraints require ResizeObserver but it is not supported by the current browser.");else{let n=new ResizeObserver(()=>{let n=L(k),{onLayout:r}=ti.current,i=te({groupSizePixels:n,layout:t,panelConstraints:e.map(t=>t.constraints)});$(t,i)||(C(i),to.current.layout=i,r&&r(i.map(t=>({sizePercentage:t,sizePixels:t/100*n}))),U(k,e,i,I.current))});return n.observe(Z(k)),()=>{n.disconnect()}}}},[k]),h(()=>{});let ta=c(t=>{let{onLayout:e}=ti.current,{layout:n,panelDataArray:r}=to.current;if(t.constraints.collapsible){let i=r.map(t=>t.constraints),{collapsedSizePercentage:o,panelSizePercentage:s,pivotIndices:a,groupSizePixels:l}=ts(k,r,t,n);if(s!==o){Y.current.set(t.id,s);let c=D({delta:r.indexOf(t)===r.length-1?s-o:o-s,groupSizePixels:l,layout:n,panelConstraints:i,pivotIndices:a,trigger:"imperative-api"});q(n,c)||(C(c),to.current.layout=c,e&&e(c.map(t=>({sizePercentage:t,sizePixels:t/100*l}))),U(k,r,c,I.current))}}},[k]),tl=c(t=>{let{onLayout:e}=ti.current,{layout:n,panelDataArray:r}=to.current;if(t.constraints.collapsible){let i=r.map(t=>t.constraints),{collapsedSizePercentage:o,panelSizePercentage:s,minSizePercentage:a,pivotIndices:l,groupSizePixels:c}=ts(k,r,t,n);if(s===o){let o=Y.current.get(t.id),u=null!=o&&o>=a?o:a,h=D({delta:r.indexOf(t)===r.length-1?s-u:u-s,groupSizePixels:c,layout:n,panelConstraints:i,pivotIndices:l,trigger:"imperative-api"});q(n,h)||(C(h),to.current.layout=h,e&&e(h.map(t=>({sizePercentage:t,sizePixels:t/100*c}))),U(k,r,h,I.current))}}},[k]),tc=c(t=>{let{layout:e,panelDataArray:n}=to.current,{panelSizePercentage:r,panelSizePixels:i}=ts(k,n,t,e);return{sizePercentage:r,sizePixels:i}},[k]),tu=c(t=>{let{panelDataArray:e}=to.current,n=e.indexOf(t);return function({dragState:t,layout:e,panelData:n,panelIndex:r,precision:i=3}){let o=e[r];return{flexBasis:0,flexGrow:1===n.length?"1":null==o?"1":o.toPrecision(i),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({dragState:S,layout:M,panelData:e,panelIndex:n})},[S,M]),th=c(t=>{let{layout:e,panelDataArray:n}=to.current,{collapsedSizePercentage:r,collapsible:i,panelSizePercentage:o}=ts(k,n,t,e);return!0===i&&o===r},[k]),tf=c(t=>{let{layout:e,panelDataArray:n}=to.current,{collapsedSizePercentage:r,collapsible:i,panelSizePercentage:o}=ts(k,n,t,e);return!i||o>r},[k]),td=c(t=>{let{autoSaveId:e,id:n,onLayout:r,storage:i}=ti.current,{layout:o,panelDataArray:s}=to.current;if(s.push(t),s.sort((t,e)=>{let n=t.order,r=e.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),Array.from(document.querySelectorAll(`[data-panel][data-panel-group-id="${n}"]`)).length!==s.length)return;let a=null;e&&(a=function(t,e,n){let r=K(t,n);if(r){var i;return null!==(i=r[Q(e)])&&void 0!==i?i:null}return null}(e,s,i));let l=L(n);if(l<=0&&tt(s.map(({constraints:t})=>t)))return;null==a&&(a=F({groupSizePixels:l,panelDataArray:s}));let c=te({groupSizePixels:l,layout:a,panelConstraints:s.map(t=>t.constraints)});C(c),to.current.layout=c,$(o,c)||(r&&r(c.map(t=>({sizePercentage:t,sizePixels:t/100*l}))),U(n,s,c,I.current))},[]),tp=c(t=>function(e){e.preventDefault();let{direction:n,dragState:r,id:i,keyboardResizeByPercentage:o,keyboardResizeByPixels:s,onLayout:a}=ti.current,{layout:l,panelDataArray:c}=to.current,{initialLayout:u}=null!=r?r:{},h=P(i,t),f=function(t,e,n,r,i,o){if(!z(t))return function(t,e,n,r){let i="horizontal"===n,o=R(e).getAttribute("data-panel-group-id"),{initialCursorPosition:s}=r,a=J(n,t),l=Z(o).getBoundingClientRect();return(a-s)/(i?l.width:l.height)*100}(t,n,r,i);{let n="horizontal"===r,i=Z(e).getBoundingClientRect(),s=n?i.width:i.height,a=0;a=t.shiftKey?100:null!=o.percentage?o.percentage:null!=o.pixels?o.pixels/s:10;let l=0;switch(t.key){case"ArrowDown":l=n?0:a;break;case"ArrowLeft":l=n?-a:0;break;case"ArrowRight":l=n?a:0;break;case"ArrowUp":l=n?0:-a;break;case"End":l=100;break;case"Home":l=-100}return l}}(e,i,t,n,r,{percentage:o,pixels:s});if(0===f)return;let d="horizontal"===n;"rtl"===document.dir&&d&&(f=-f);let p=L(i),m=D({delta:f,groupSizePixels:p,layout:null!=u?u:l,panelConstraints:c.map(t=>t.constraints),pivotIndices:h,trigger:z(e)?"keyboard":"mouse-or-touch"}),g=!q(l,m);(j(e)||B(e))&&G.current!=f&&(G.current=f,g?V(d?"horizontal":"vertical"):d?V(f<0?"horizontal-min":"horizontal-max"):V(f<0?"vertical-min":"vertical-max")),g&&(C(m),to.current.layout=m,a&&a(m.map(t=>({sizePercentage:t,sizePixels:t/100*p}))),U(i,c,m,I.current))},[]),tm=c((t,e)=>{let{onLayout:n}=ti.current,{layout:r,panelDataArray:i}=to.current,o=i.map(t=>t.constraints),{groupSizePixels:s,panelSizePercentage:a,pivotIndices:l}=ts(k,i,t,r),c=N(e,s),u=D({delta:i.indexOf(t)===i.length-1?a-c:c-a,groupSizePixels:s,layout:r,panelConstraints:o,pivotIndices:l,trigger:"imperative-api"});q(r,u)||(C(u),to.current.layout=u,n&&n(u.map(t=>({sizePercentage:t,sizePixels:t/100*s}))),U(k,i,u,I.current))},[k]),tg=c((t,e)=>{let{direction:n}=ti.current,{layout:r}=to.current,i=R(t),o=J(n,e);A({dragHandleId:t,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),ty=c(()=>{null!==W&&(document.head.removeChild(W),H=null,W=null),A(null)},[]),tv=m({pendingPanelIds:new Set,timeout:null}),tb=c(t=>{let{id:e,onLayout:n}=ti.current,{layout:r,panelDataArray:i}=to.current,o=i.indexOf(t);o>
25=0&&(i.splice(o,1),tv.current.pendingPanelIds.add(t.id)),null!=tv.current.timeout&&clearTimeout(tv.current.timeout),tv.current.timeout=setTimeout(()=>{let{pendingPanelIds:o}=tv.current,s=I.current,a=!1;if(o.forEach(e=>{o.delete(e),null==i.find(({id:t})=>t===e)&&(a=!0,delete s[t.id])}),!a||0===i.length)return;let l=L(e),c=F({groupSizePixels:l,panelDataArray:i}),u=te({groupSizePixels:l,layout:c,panelConstraints:i.map(t=>t.constraints)});$(r,u)||(C(u),to.current.layout=u,n&&n(u.map(t=>({sizePercentage:t,sizePixels:t/100*l}))),U(e,i,u,I.current))},0)},[]),tx=p(()=>({collapsePanel:ta,direction:i,dragState:S,expandPanel:tl,getPanelSize:tc,getPanelStyle:tu,groupId:k,isPanelCollapsed:th,isPanelExpanded:tf,registerPanel:td,registerResizeHandle:tp,resizePanel:tm,startDragging:tg,stopDragging:ty,unregisterPanel:tb}),[ta,S,i,tl,tc,tu,k,th,tf,td,tp,tm,tg,ty,tb]);return o(v.Provider,{value:tx},o(w,{children:e,className:n,style:{display:"flex",flexDirection:"horizontal"===i?"row":"column",height:"100%",overflow:"hidden",width:"100%",...x},...r,"data-panel-group":"","data-panel-group-direction":i,"data-panel-group-id":k}))}let to=l((t,e)=>o(ti,{...t,forwardedRef:e}));function ts(t,e,n,r){let i=e.map(t=>t.constraints),o=e.indexOf(n),s=i[o],a=L(t),l=A(i,o,a),c=o===e.length-1?[o-1,o]:[o,o+1],u=r[o],h=u/100*a;return{...l,collapsible:s.collapsible,panelSizePercentage:u,panelSizePixels:h,groupSizePixels:a,pivotIndices:c}}function ta({children:t=null,className:e="",dataAttributes:n,disabled:r=!1,id:i=null,onDragging:s,style:a={},tagName:l="div"}){let f=m(null),d=m({onDragging:s});h(()=>{d.current.onDragging=s});let p=u(v);if(null===p)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:y,dragState:b,groupId:x,registerResizeHandle:w,startDragging:k,stopDragging:S}=p,A=_(i),M=(null==b?void 0:b.dragHandleId)===A,[T,C]=g(!1),[D,N]=g(null),P=c(()=>{f.current.blur(),S();let{onDragging:t}=d.current;t&&t(!1)},[S]);return h(()=>{if(r)N(null);else{let t=w(A);N(()=>t)}},[r,A,w]),h(()=>{if(r||null==D||!M)return;let t=t=>{D(t)},e=t=>{D(t)},n=f.current.ownerDocument;return n.body.addEventListener("contextmenu",P),n.body.addEventListener("mousemove",t),n.body.addEventListener("touchmove",t),n.body.addEventListener("mouseleave",e),window.addEventListener("mouseup",P),window.addEventListener("touchend",P),()=>{n.body.removeEventListener("contextmenu",P),n.body.removeEventListener("mousemove",t),n.body.removeEventListener("touchmove",t),n.body.removeEventListener("mouseleave",e),window.removeEventListener("mouseup",P),window.removeEventListener("touchend",P)}},[y,r,M,D,P]),!function({disabled:t,handleId:e,resizeHandler:n}){h(()=>{if(t||null==n)return;let r=R(e);if(null==r)return;let i=t=>{if(!t.defaultPrevented)switch(t.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":t.preventDefault(),n(t);break;case"F6":{t.preventDefault();let n=r.getAttribute("data-panel-group-id"),i=O(n),o=I(n,e);E(null!==o);let s=t.shiftKey?o>0?o-1:i.length-1:o+1<i.length?o+1:0;i[s].focus()}}};return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}},[t,e,n])}({disabled:r,handleId:A,resizeHandler:D}),o(l,{children:t,className:e,onBlur:()=>C(!1),onFocus:()=>C(!0),onMouseDown:t=>{k(A,t.nativeEvent);let{onDragging:e}=d.current;e&&e(!0)},onMouseUp:P,onTouchCancel:P,onTouchEnd:P,onTouchStart:t=>{k(A,t.nativeEvent);let{onDragging:e}=d.current;e&&e(!0)},ref:f,role:"separator",style:{cursor:Y(y),touchAction:"none",userSelect:"none",...a},tabIndex:0,...n,"data-panel-group-direction":y,"data-panel-group-id":x,"data-resize-handle":"","data-resize-handle-active":M?"pointer":T?"keyboard":void 0,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":A})}ti.displayName="PanelGroup",to.displayName="forwardRef(PanelGroup)",ta.displayName="PanelResizeHandle"},29541:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map(function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0})):t},[]);if(i.length){var o=RegExp("\n[ ]{"+Math.min.apply(Math,i)+"}","g");r=r.map(function(t){return t.replace(o,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(t,e){var n=s.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map(function(t,e){return 0===e?t:""+i+t}).join("\n")),s+=o+r[e+1]}),s}n.d(e,{Z:function(){return r}})},63766:function(t,e,n){"use strict";n.d(e,{B1:function(){return tp}
25,GA:function(){return tl},vQ:function(){return tn},ys:function(){return td}});var r=n(68341),i=n(23131),o=n(6250);class s{constructor(t,e,n,r){this.state=t,this.pos=e,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=(0,o.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),r=e.text.slice(n-e.from,this.pos-e.from),i=r.search(u(t,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,n){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function a(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}class l{constructor(t,e,n,r){this.completion=t,this.source=e,this.match=n,this.score=r}}function c(t){return t.selection.main.from}function u(t,e){var n;let{source:r}=t,i=e&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}let h=r.q6.define(),f=new WeakMap;function d(t){if(!Array.isArray(t))return t;let e=f.get(t);return e||f.set(t,e=function(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,r]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let t=1;t<r.length;t++)n[r[t]]=!0}let r=a(e)+a(n)+"*$";return[RegExp("^"+r),new RegExp(r)]}(e);return t=>{let i=t.matchBefore(r);return i||t.explicit?{from:i?i.from:t.pos,options:e,validFor:n}:null}}(t)),e}let p=r.Py.define(),m=r.Py.define();class g{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let n=(0,r.gm)(t,e),i=(0,r.nZ)(n);this.chars.push(n);let o=t.slice(e,e+i),s=o.toUpperCase();this.folded.push((0,r.gm)(s==o?o.toLowerCase():s,0)),e+=i}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(0==this.pattern.length)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:n,any:i,precise:o,byWord:s}=this;if(1==e.length){let i=(0,r.gm)(t,0),o=(0,r.nZ)(i),s=o==t.length?0:-100;if(i==e[0]);else{if(i!=n[0])return null;s+=-200}return this.ret(s,[0,o])}let a=t.indexOf(this.pattern);if(0==a)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=e.length,c=0;if(a<0){for(let o=0,s=Math.min(t.length,200);o<s&&c<l;){let s=(0,r.gm)(t,o);(s==e[c]||s==n[c])&&(i[c++]=o),o+=(0,r.nZ)(s)}if(c<l)return null}let u=0,h=0,f=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(t),y=!0;for(let i=0,c=Math.min(t.length,200),v=0;i<c&&h<l;){let c=(0,r.gm)(t,i);a<0&&(u<l&&c==e[u]&&(o[u++]=i),d<l&&(c==e[d]||c==n[d]?(0==d&&(p=i),m=i+1,d++):d=0));let b,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(b=(0,r.bg)(c))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!i||1==x&&g||0==v&&0!=x)&&(e[h]==c||n[h]==c&&(f=!0)?s[h++]=i:s.length&&(y=!1)),v=x,i+=(0,r.nZ)(c)}return h==l&&0==s[0]&&y?this.result(-100+(f?-200:0),s,t):d==l&&0==p?this.ret(-200-t.length+(m==t.length?0:-100),[0,m]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):d==l?this.ret(-900-t.length,[p,m]):h==l?this.result(-100+(f?-200:0)+-700+(y?0:-1100),s,t):2==e.length?null:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,e,n){let i=[],o=0;for(let t of e){let e=t+(this.astral?(0,r.nZ)((0,r.gm)(n,t)):1);o&&i[o-1]==t?i[o-1]=e:(i[o++]=t,i[o++]=e)}return this.ret(t-n.length,i)}}class y{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),n=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,e.length],this.score=n+(t.length==this.pattern.length?0:-100),this)}}let v=r.r$.define({combine:t=>(0,r.BO)(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x,filterStrict:!1,compareCompletions:(t,e)=>(t.sortText||t.label).localeCompare(e.sortText||e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>b(t(n),e(n)),optionClass:(t,e)=>n=>b(t(n),e(n)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function b(t,e){return t?e?t+" "+e:t:e}function x(t,e,n,r,o,s){let a=t.textDirection==i.Nm.RTL,l=a,c=!1,u="top",h,f,d=e.left-o.left,p=o.right-e.right,m=r.right-r.left,g=r.bottom-r.top;if(l&&d<Math.min(m,p)?l=!1:!l&&p<Math.min(m,d)&&(l=!0),m<=(l?d:p))h=Math.max(o.top,Math.min(n.top,o.bottom-g))-e.top,f=Math.min(400,l?d:p);else{c=!0,f=Math.min(400,(a?e.right:o.right-e.left)-30);let t=o.bottom-e.bottom;t>=g||t>e.top?h=n.bottom-e.top:(u="bottom",h=e.bottom-n.top)}let y=(e.bottom-e.top)/s.offsetHeight,v=(e.right-e.left)/s.offsetWidth;return{style:`${u}: ${h/y}px; max-width: ${f/v}px`,class:"cm-completionInfo-"+(c?a?"left-narrow":"right-narrow":l?"left"
25:"right")}}let _=r.Py.define();function w(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/n);return{from:t*n,to:(t+1)*n}}let r=Math.ceil((t-e)/n);return{from:t-r*n,to:t-(r-1)*n}}class k{constructor(t,e,n){let r;this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:o,selected:s}=i.open,a=t.state.facet(v);this.optionContent=(r=a.addToOptions.slice(),a.icons&&r.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),r.push({render(t,e,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=t.displayLabel||t.label,s=0;for(let t=0;t<r.length;){let e=r[t++],n=r[t++];e>s&&i.appendChild(document.createTextNode(o.slice(s,e)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(o.slice(e,n))),a.className="cm-completionMatchedText",s=n}return s<o.length&&i.appendChild(document.createTextNode(o.slice(s))),i},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),r.sort((t,e)=>t.position-e.position).map(t=>t.render)),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=w(o.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",n=>{let{options:r}=t.state.field(e).open;for(let e=n.target,i;e&&e!=this.dom;e=e.parentNode)if("LI"==e.nodeName&&(i=/-(\d+)$/.exec(e.id))&&+i[1]<r.length){this.applyCompletion(t,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let e=this.list.classList.contains("cm-completionListIncompleteTop")&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=e&&(t.dispatch({effects:_.of(e)}
vendor: 1,542 bytes, line 25
25),n.preventDefault())}}),this.dom.addEventListener("focusout",e=>{let n=t.state.field(this.stateField,!1);n&&n.tooltip&&t.state.facet(v).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:m.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=r){let{options:i,selected:o,disabled:s}=n.open;r.open&&r.open.options==i||(this.range=w(i.length,o,t.state.facet(v).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null===(e=r.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;(e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=w(e.options.length,e.selected,this.view.state.facet(v).maxRenderedOptions),this.showOptions(e.options,t.id));let n=this.updateSelectedOption(e.selected);if(n){this.destroyInfo();
25let{completion:r}=e.options[e.selected],{info:o}=r;if(!o)return;let s="string"==typeof o?document.createTextNode(o):o(r);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,r)}).catch(t=>(0,i.OO)(this.view.state,t,"completion info")):(this.addInfoPane(s,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:r}=t;n.appendChild(e),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){var e,n;let r,i,o,s=null;for(let e=this.list.firstChild,n=this.range.from;e;e=e.nextSibling,n++)"LI"==e.nodeName&&e.id?n==t?e.hasAttribute("aria-selected")||(e.setAttribute("aria-selected","true"),s=e):e.hasAttribute("aria-selected")&&(e.removeAttribute("aria-selected"),e.removeAttribute("aria-describedby")):n--;return s&&(e=this.list,n=s,r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height/e.offsetHeight,i.top<r.top?e.scrollTop-=(r.top-i.top)/o:i.bottom>r.bottom&&(e.scrollTop+=(i.bottom-r.bottom)/o)),s}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.space;if(!i){let t=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}return r.top>Math.min(i.bottom,e.bottom)-10||r.bottom<Math.max(i.top,e.top)+10?null:this.view.state.facet(v).positionInfo(this.view,e,r,n,i,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,n){let r=document.createElement("ul");r.id=e,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",t=>{t.target==r&&t.preventDefault()});let i=null;for(let o=n.from;o<n.to;o++){let{completion:s,match:a}=t[o],{section:l}=s;if(l){let t="string"==typeof l?l:l.name;t!=i&&(o>n.from||0==n.from)&&(i=t,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=t)}let c=r.appendChild(document.createElement("li"));c.id=e+"-"+o,c.setAttribute("role","option");let u=this.optionClass(s);for(let t of(u&&(c.className=u),this.optionContent)){let e=t(s,this.view.state,this.view,a);e&&c.appendChild(e)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<t.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function S(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class A{constructor(t,e,n,r,i,o){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new A(this.options,D(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,r,i,o){if(r&&!o&&t.some(t=>t.isPending))return r.setDisabled();let s=function(t,e){let n=[],r=null,i=null,o=t=>{n.push(t);let{section:e}=t.completion;if(e){r||(r=[]);let t="string"==typeof e?e:e.name;r.some(e=>e.name==t)||r.push("string"==typeof e?{name:t}:e)}},s=e.facet(v);for(let r of t)if(r.hasResult()){let t=r.result.getMatch;if(!1===r.result.filter)for(let e of r.result.options)o(new l(e,r.source,t?t(e):[],1e9-n.length));else{let n=e.sliceDoc(r.from,r.to),a,c=s.filterStrict?new y(n):new g(n);for(let e of r.result.options)if(a=c.match(e.label)){let n=e.displayLabel?t?t(e,a.matched):[]:a.matched,s=a.score+(e.boost||0);if(o(new l(e,r.source,n,s)),"object"==typeof e.section&&"dynamic"===e.section.rank){let{name:t}=e.section;i||(i=Object.create(null)),i[t]=Math.max(s,i[t]||-1e9)}}}}if(r){let t=Object.create(null),e=0;for(let n of r.sort((t,e)=>("dynamic"===t.rank&&"dynamic"===e.rank?i[e.name]-i[t.name]:0)||("number"==typeof t.rank?t.rank:1e9)-("number"==typeof e.rank?e.rank:1e9)||(t.name<e.name?-1:1)))e-=1e5,t[n.name]=e;for(let e of n){let{section:n}=e.completion;n&&(e.score+=t["string"==typeof n?n:n.name])}}let a=[],c=null,u=s.compareCompletions;for(let t of n.sort((t,e)=>e.score-t.score||u(t.completion,e.completion))){let e=t.completion;c&&c.label==e.label&&c.detail==e.detail&&(null==c.type||null==e.type||c.type==e.type)&&c.apply==e.apply&&c.boost==e.boost?S(t.completion)>S(c)&&(a[a.length-1]=t):a.push(t),c=t.completion}return a}(t,e);if(!s.length)return r&&t.some(t=>t.isPending)?r.setDisabled():null;let a=e.facet(v).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let t=r.options[r.selected].completion;for(let e=0;e<s.length;e++)if(s[e].completion==t){a=e;break}}return new A(s,D(n,a),{pos:t.reduce((t,e)=>e.hasResult()?Math.min(t,e.from):t,1e8),create:R,above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(t){return new A(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new A(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class M{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new M(E,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(v),r=(n.override||e.languageDataAt("autocomplete",c(e)).map(d)).map(e=>(this.active.find(t=>t.source==e)||new O(e,this.active.some(t=>0!=t.state)?1:0)).update(t,n));r.length==this.active.length&&r.every((t,e)=>t==this.active[e])&&(r=this.active);let i=this.open,o=t.effects.some(t=>t.is(P));for(let s of(i&&t.docChanged&&(i=i.map(t.changes)),t.selection||r.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let i=n==t.length,o=r==e.length;if(i||o)return i==o;if(t[n++].result!=e[r++].result)return!1}}(r,this.active)||o?i=A.build(r,e,this.id,i,n,o):i&&i.disabled&&!r.some(t=>t.isPending)&&(i=null),!i&&r.every(t=>!t.isPending)&&r.some(t=>t.hasResult())&&(r=r.map(t=>
25t.hasResult()?new O(t.source,0):t)),t.effects))s.is(_)&&(i=i&&i.setSelected(s.value,this.id));return r==this.active&&i==this.open?this:new M(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?T:C}}let T={"aria-autocomplete":"list"},C={};function D(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}let E=[];function N(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(h);if(n&&e.activateOnCompletion(n))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class O{constructor(t,e,n=!1){this.source=t,this.state=e,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(t,e){let n=N(t,e),r=this;for(let e of((8&n||16&n&&this.touches(t))&&(r=new O(r.source,0)),4&n&&0==r.state&&(r=new O(this.source,1)),r=r.updateFor(t,n),t.effects))if(e.is(p))r=new O(r.source,1,e.value);else if(e.is(m))r=new O(r.source,0);else if(e.is(P))for(let t of e.value)t.source==r.source&&(r=t);return r}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(c(t.state))}}class I extends O{constructor(t,e,n,r,i,o){super(t,3,e),this.limit=n,this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(t,e){var n;if(!(3&e))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),a=c(t.state);if(a>o||!r||2&e&&(c(t.startState)==this.from||a<this.limit))return new O(this.source,4&e?1:0);let l=t.changes.mapPos(this.limit);return!function(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return"function"==typeof t?t(i,n,r,e):u(t,!0).test(i)}(r.validFor,t.state,i,o)?r.update&&(r=r.update(r,i,o,new s(t.state,a,!1)))?new I(this.source,this.explicit,l,r,r.from,null!==(n=r.to)&&void 0!==n?n:c(t.state)):new O(this.source,1,this.explicit):new I(this.source,this.explicit,l,r,i,o)}map(t){if(t.empty)return this;let e=this.result.map?this.result.map(this.result,t):this.result;return e?new I(this.source,this.explicit,t.mapPos(this.limit),e,t.mapPos(this.from),t.mapPos(this.to,1)):new O(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}let P=r.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),Z=r.QQ.define({create:()=>M.start(),update:(t,e)=>t.update(e),provide:t=>[i.hJ.from(t,t=>t.tooltip),i.tk.contentAttributes.from(t,t=>t.attrs)]});function L(t,e){let n=e.completion.apply||e.completion.label,i=t.state.field(Z).active.find(t=>t.source==e.source);return i instanceof I&&("string"==typeof n?t.dispatch({...function(t,e,n,i){let{main:o}=t.selection,s=n-o.from,a=i-o.from;return{...t.changeByRange(l=>{if(l!=o&&n!=i&&t.sliceDoc(l.from+s,l.from+a)!=t.sliceDoc(n,i))return{range:l};let c=t.toText(e);return{changes:{from:l.from+s,to:i==o.from?l.to:l.from+a,insert:c},range:r.jT.cursor(l.from+s+c.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(t.state,n,i.from,i.to),annotations:h.of(e.completion)}):n(t,e.completion,i.from,i.to),!0)}let R=t=>new k(t,Z,L);function $(t,e="option"){return n=>{let r=n.state.field(Z,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(v).interactionDelay)return!1;let o=1,s;"page"==e&&(s=(0,i.gB)(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,l=r.open.selected>-1?r.open.selected+o*(t?1:-1):t?0:a-1;return l<0?l="page"==e?0:a-1:l>=a&&(l="page"==e?a-1:0),n.dispatch({effects:_.of(l)}),!0}}let z=t=>!!t.state.field(Z,!1)&&(t.dispatch({effects:p.of(!0)}),!0);class j{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}let B=i.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,t.state.field(Z).active))e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(Z),n=t.state.facet(v);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Z)==e)return;let r=t.transactions.some(t=>{let e=N(t,n);return 8&e||(t.selection||t.docChanged)&&!(3&e)});for(let e=0;e<this.running.length;e++){let n=this.running[e];if(r||n.context.abortOnDocChange&&t.docChanged||n.updates.length+t.transactions.length>50&&Date.now()-n.time>1e3){for(let t of n.context.abortListeners)try{t()}catch(t){(0,i.OO)(this.view.state,t)}n.context.abortListeners=null,this.running.splice(e--,1)}else n.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(t=>t.effects.some(t=>t.is(p)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(t=>t.isPending&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>
vendor: 5,499 bytes, line 25
25this.startUpdate(),o):-1,0!=this.composing)for(let e of t.transactions)e.isUserEvent("input.type")?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Z);for(let t of e.active)t.isPending&&!this.running.some(e=>e.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(v).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=c(e),r=new s(e,n,t.explicit,this.view),o=new j(t,r);this.running.push(o),Promise.resolve(t.source(r)).then(t=>{o.context.aborted||(o.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:m.of(null)}),(0,i.OO)(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(v).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(v),r=this.view.state.field(Z);for(let i=0;i<this.running.length;i++){let o=this.running[i];if(void 0===o.done)continue;if(this.running.splice(i--,1),o.done){let r=c(o.updates.length?o.updates[0].startState:this.view.state),i=Math.min(r,o.done.from+(o.active.explicit?0:1)),s=new I(o.active.source,o.active.explicit,i,o.done,o.done.from,null!==(t=o.done.to)&&void 0!==t?t:r);for(let t of o.updates)s=s.update(t,n);if(s.hasResult()){e.push(s);continue}}let s=r.active.find(t=>t.source==o.active.source);if(s&&s.isPending){if(null==o.done){let t=new O(o.active.source,0);for(let e of o.updates)t=t.update(e,n);t.isPending||e.push(t)}else this.startQuery(s)}}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:P.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Z,!1);if(e&&e.tooltip&&this.view.state.facet(v).closeOnBlur){let n=e.open&&(0,i.gB)(this.view,e.open.tooltip);n&&n.dom.contains(t.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:m.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:p.of(!1)}),20),this.composing=0}}}),J="object"==typeof navigator&&/Win/.test(navigator.platform),F=r.Wl.highest(i.tk.domEventHandlers({keydown(t,e){let n=e.state.field(Z,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(J&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(t=>t.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&L(e,r),!1}})),U=i.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'Æ'"}},".cm-completionIcon-class":{"&:after":{content:"'â'"}},".cm-completionIcon-interface":{"&:after":{content:"'â'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'âª'"}},".cm-completionIcon-property":{"&:after":{content:"'â¡'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11ï¸'"}},".cm-completionIcon-namespace":{"&:after":{content:"'â¢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),q=i.p.widget({widget:new class extends i.l9{toDOM(){let t=document.createElement("span");
25return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),H=i.p.mark({class:"cm-snippetField"});class W{constructor(t,e){this.ranges=t,this.active=e,this.deco=i.p.set(t.map(t=>(t.from==t.to?q:H).range(t.from,t.to)),!0)}map(t){let e=[];for(let n of this.ranges){let r=n.map(t);if(!r)return null;e.push(r)}return new W(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let Y=r.Py.define({map:(t,e)=>t&&t.map(e)}),V=r.Py.define(),G=r.QQ.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(Y))return n.value;if(n.is(V)&&t)return new W(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>i.tk.decorations.from(t,t=>t?t.deco:i.p.none)});function Q(t){return({state:e,dispatch:n})=>{var i;let o=e.field(G,!1);if(!o||t<0&&0==o.active)return!1;let s=o.active+t,a=t>0&&!o.ranges.some(e=>e.field==s+t);return n(e.update({selection:(i=o.ranges,r.jT.create(i.filter(t=>t.field==s).map(t=>r.jT.range(t.from,t.to)))),effects:Y.of(a?null:new W(o.ranges,s)),scrollIntoView:!0})),!0}}({state:t,dispatch:e})=>!!t.field(G,!1)&&(e(t.update({effects:Y.of(null)})),!0);let K={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},X=r.Py.define({map(t,e){let n=e.mapPos(t,-1,r.gc.TrackAfter);return null==n?void 0:n}}),tt=new class extends r.uU{};tt.startSide=1,tt.endSide=-1;let te=r.QQ.define({create:()=>r.Xs.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=n.from&&t<=n.to})}for(let n of e.effects)n.is(X)&&(t=t.update({add:[tt.range(n.value,n.value+1)]}));return t}});function tn(){return[ta,te]}let tr="()[]{}<>\xab\xbb\xbb\xab[]ï½ï½";function ti(t){for(let e=0;e<tr.length;e+=2)if(tr.charCodeAt(e)==t)return tr.charAt(e+1);return(0,r.bg)(t<128?t:t+1)}function to(t,e){return t.languageDataAt("closeBrackets",e)[0]||K}let ts="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ta=i.tk.inputHandler.of((t,e,n,i)=>{if((ts?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let s=t.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.nZ)((0,r.gm)(i,0))||e!=s.from||n!=s.to)return!1;let a=function(t,e){let n=to(t,t.selection.main.head),i=n.brackets||K.brackets;for(let s of i){let a=ti((0,r.gm)(s,0));if(e==s)return a==s?function(t,e,n,i){let s=i.stringPrefixes||K.stringPrefixes,a=null,l=t.changeByRange(i=>{if(!i.empty)return{changes:[{insert:e,from:i.from},{insert:e,from:i.to}],effects:X.of(i.to+e.length),range:r.jT.range(i.anchor+e.length,i.head+e.length)};let l=i.head,c=tu(t.doc,l),u;if(c==e){if(th(t,l))return{changes:{insert:e+e,from:l},effects:X.of(l+e.length),range:r.jT.cursor(l+e.length)};if(tc(t,l)){let i=n&&t.sliceDoc(l,l+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+i.length,insert:i},range:r.jT.cursor(l+i.length)}}}else if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(u=tf(t,l-2*e.length,s))>-1&&th(t,u))return{changes:{insert:e+e+e+e,from:l},effects:X.of(l+e.length),range:r.jT.cursor(l+e.length)};else if(t.charCategorizer(l)(c)!=r.D0.Word&&tf(t,l,s)>-1&&!function(t,e,n,r){let i=(0,o.qz)(t).resolveInner(e,-1),s=r.reduce((t,e)=>Math.max(t,e.length),0);for(let o=0;o<5;o++){let o=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),a=o.indexOf(n);if(!a||a>-1&&r.indexOf(o.slice(0,a))>-1){let e=i.firstChild;for(;e&&e.from==i.from&&e.to-e.from>n.length+a;){if(t.sliceDoc(e.to-n.length,e.to)==n)return!1;e=e.firstChild}return!0}let l=i.to==e&&i.parent;if(!l)break;i=l}return!1}(t,l,e,s))return{changes:{insert:e+e,from:l},effects:X.of(l+e.length),range:r.jT.cursor(l+e.length)};return{range:a=i}});return a?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(t,s,i.indexOf(s+s+s)>-1,n):function(t,e,n,i){let o=null,s=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:n,from:s.to}],effects:X.of(s.to+e.length),range:r.jT.range(s.anchor+e.length,s.head+e.length)};let a=tu(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:e+n,from:s.head},effects:X.of(s.head+e.length),range:r.jT.cursor(s.head+e.length)}:{range:o=s}});return o?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(t,s,a,n.before||K.before);if(e==a&&tc(t,t.selection.main.from))return function(t,e,n){let i=null,o=t.changeByRange(e=>e.empty&&tu(t.doc,e.head)==n?{changes:{from:e.head,to:e.head+n.length,insert:n},range:r.jT.cursor(e.head+n.length)}:i={range:e});return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(t,0,a)}return null}(t.state,i);return!!a&&(t.dispatch(a),!0)}),tl=[{key:"Backspace",run:({state:t,dispatch:e})=>
25{if(t.readOnly)return!1;let n=to(t,t.selection.main.head).brackets||K.brackets,i=null,o=t.changeByRange(e=>{if(e.empty){var o,s;let i;let a=(o=t.doc,s=e.head,i=o.sliceString(s-2,s),(0,r.nZ)((0,r.gm)(i,0))==i.length?i:i.slice(1));for(let i of n)if(i==a&&tu(t.doc,e.head)==ti((0,r.gm)(i,0)))return{changes:{from:e.head-i.length,to:e.head+i.length},range:r.jT.cursor(e.head-i.length)}}return{range:i=e}});return i||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function tc(t,e){let n=!1;return t.field(te).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function tu(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,r.nZ)((0,r.gm)(n,0)))}function th(t,e){let n=(0,o.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function tf(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=r.D0.Word)return e;for(let o of n){let n=e-o.length;if(t.sliceDoc(n,e)==o&&i(t.sliceDoc(n-1,n))!=r.D0.Word)return n}return -1}function td(t={}){return[F,Z,v.of(t),B,tm,U]}let tp=[{key:"Ctrl-Space",run:z},{mac:"Alt-`",run:z},{mac:"Alt-i",run:z},{key:"Escape",run:t=>{let e=t.state.field(Z,!1);return!!(e&&e.active.some(t=>0!=t.state))&&(t.dispatch({effects:m.of(null)}),!0)}},{key:"ArrowDown",run:$(!0)},{key:"ArrowUp",run:$(!1)},{key:"PageDown",run:$(!0,"page")},{key:"PageUp",run:$(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(Z,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(v).interactionDelay)&&L(t,e.open.options[e.open.selected])}}],tm=r.Wl.highest(i.$f.computeN([v],t=>t.facet(v).defaultKeymap?[tp]:[]))},6250:function(t,e,n){"use strict";n.d(e,{Gn:function(){return N},K0:function(){return E},Qf:function(){return ts},R_:function(){return td},SS:function(){return D},Um:function(){return tM},c:function(){return T},c6:function(){return A},e7:function(){return V},mi:function(){return ti},n$:function(){return tw},nF:function(){return tu},nY:function(){return L},qp:function(){return d},qz:function(){return p},ri:function(){return S},y1:function(){return C}});var r,i=n(91641),o=n(68341),s=n(23131),a=n(58606),l=n(30156);let c=new i.md,u=new i.md;class h{constructor(t,e,n=[],r=""){this.data=t,this.name=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return p(this)}}),this.parser=e,this.extension=[k.of(this),o.yy.languageData.of((t,e,n)=>{let r=f(t,e,n),i=r.type.prop(c);if(!i)return[];let o=t.facet(i),s=r.type.prop(u);if(s){let i=r.resolve(e-r.from,n);for(let e of s)if(e.test(i,t)){let n=t.facet(e.facet);return"replace"==e.type?n:n.concat(o)}}return o})].concat(n)}isActiveAt(t,e,n=-1){return f(t,e,n).type.prop(c)==this.data}findRegions(t){let e=t.facet(k);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],r=(t,e)=>{if(t.prop(c)==this.data){n.push({from:e,to:e+t.length});return}let o=t.prop(i.md.mounted);if(o){if(o.tree.prop(c)==this.data){if(o.overlay)for(let t of o.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}if(o.overlay){let t=n.length;if(r(o.tree,o.overlay[0].from+e),n.length>t)return}}for(let n=0;n<t.children.length;n++){let o=t.children[n];o instanceof i.mp&&r(o,t.positions[n]+e)}};return r(p(t),0),n}get allowsNesting(){return!0}}function f(t,e,n){let r=t.facet(k),o=p(t).topNode;if(!r||r.allowsNesting)for(let t=o;t;t=t.enter(e,n,i.vj.ExcludeBuffers|i.vj.EnterBracketed))t.type.isTop&&(o=t);return o}h.setState=o.Py.define();class d extends h{constructor(t,e,n){super(t,e,[],n),this.parser=e}static define(t){var e;let n=(e=t.languageData,o.r$.define({combine:e?t=>t.concat(e):void 0}));return new d(n,t.parser.configure({props:[c.add(t=>t.isTop?n:void 0)]}),t.name)}configure(t,e){return new d(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(t){let e=t.field(h.state,!1);return e?e.tree:i.mp.empty}class m{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t<n||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let g=null;class y{constructor(t,e,n=[],r,i,o,s,a){this.parser=t,this.state=e,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new y(t,e,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=i.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.i9.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=g;g=this;try{return t()}finally{g=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=v(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!t.empty){let e=[];
vendor: 4,587 bytes, line 25
25if(t.iterChangedRanges((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})),n=i.i9.applyChanges(n,e),r=i.mp.empty,o=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length)for(let e of(a=[],this.skipped)){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);n<r&&a.push({from:n,to:r})}}return new y(this.parser,e,n,r,o,s,a,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:n,to:r}=this.skipped[e];n<t.to&&r>t.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends i._b{createParse(e,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let e=g;if(e){for(let t of r)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new i.mp(i.Jq.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return g}}function v(t,e,n){return i.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class b{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new b(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=y.create(t.facet(k).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new b(n)}}h.state=o.QQ.define({create:b.init,update(t,e){for(let t of e.effects)if(t.is(h.setState))return t.value;return e.startState.facet(k)!=e.state.facet(k)?b.init(e.state):t.apply(e)}});let x=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(x=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let _="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,w=s.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(h.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(h.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=x(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(h.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,t&&!_?Math.max(25,t.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>_&&_()||Date.now()>o,r+(s?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:h.setState.of(new b(i.context))})),this.chunkBudget>0&&!(a&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,s.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),k=o.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[h.state,w,s.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class S{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class A{constructor(t,e,n,r,i,o){this.name=t,this.alias=e,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;
25if(!e){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new A(t.name,(t.alias||[]).concat(t.name).map(t=>t.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let n of t)if(n.filename&&n.filename.test(e))return n;let n=/\.([^.]+)$/.exec(e);if(n){for(let e of t)if(e.extensions.indexOf(n[1])>-1)return e}return null}static matchLanguageName(t,e,n=!0){for(let n of(e=e.toLowerCase(),t))if(n.alias.some(t=>t==e))return n;if(n)for(let n of t)for(let t of n.alias){let r=e.indexOf(t);if(r>-1&&(t.length>2||!/\w/.test(e[r-1])&&!/\w/.test(e[r+t.length])))return n}return null}}let M=o.r$.define(),T=o.r$.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function C(t){let e=t.facet(T);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function D(t,e){let n="",r=t.tabSize,i=t.facet(T)[0];if(" "==i){for(;e>=r;)n+=" ",e-=r;i=" "}for(let t=0;t<e;t++)n+=i;return n}function E(t,e){for(let n of(t instanceof o.yy&&(t=new N(t)),t.state.facet(M))){let r=n(t,e);if(void 0!==r)return r}let n=p(t.state);return n.length>=e?function(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let t=[];for(let e=i;e&&!(e.from<r.node.from||e.to>r.node.to||e.from==r.node.from&&e.type==r.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return I(r,t,n)}(t,n,e):null}class N{constructor(t,e={}){this.state=t,this.options=e,this.unit=C(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==t?{text:"",from:t}:(e<0?r<t:r<=t)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(t,e);return n.slice(t-r,Math.min(n.length,t+100-r))}column(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.countColumn(n,t-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(t,e=t.length){return(0,o.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e),i=this.options.overrideIndentation;if(i){let t=i(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let O=new i.md;function I(t,e,n){for(let r=t;r;r=r.next){let t=function(t){let e=t.type.prop(O);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(i.md.closedBy))){let e=t.lastChild,n=e&&r.indexOf(e.name)>-1;return t=>(function(t,e,n,r,i){let o=t.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==t.pos+s,l=e?function(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let t=n.to;;){let i=e.childAfter(t);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=s)return null;let t=/^ */.exec(o.text.slice(n.to-o.from))[0].length;return{from:n.from,to:n.to+t}}t=i.to}}(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:1*t.unit)})(t,!0,0,void 0,n&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?e.from:void 0)}return null==t.parent?P:null}(r.node);if(t)return t(Z.create(e,n,r))}return 0}function P(){return 0}class Z extends N{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.context=n}get node(){return this.context.node}static create(t,e,n){return new Z(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return I(this.context.next,this.base,this.pos)}}function L(){return o.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return t;let o=n.sliceString(i.from,r);if(!e.some(t=>t.test(o)))return t;let{state:s}=t,a=-1,l=[];for(let{head:t}of s.selection.ranges){let e=s.doc.lineAt(t);if(e.from==a)continue;a=e.from;let n=E(s,e.from);if(null==n)continue;let r=/^\s*/.exec(e.text)[0],i=D(s,n);r!=i&&l.push({from:e.from,to:e.from+r.length,insert:i})}return l.length?[t,{changes:l,sequential:!0}]:t})}let R=o.r$.define(),$=new i.md;function z(t,e,n){for(let r of t.facet(R)){let i=r(t,e,n);if(i)return i}return function(t,e,n){let r=p(t);if(r.length<n)return null;let i=r.resolveStack(n,1),o=null;for(let s=i;s;s=s.next){let i=s.node;if(i.to<=n||i.from>n)continue;if(o&&i.from<e)break;let a=i.type.prop($);
25if(a&&(i.to<r.length-50||r.length==t.doc.length||!function(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}(i))){let r=a(i,t);r&&r.from<=n&&r.from>=e&&r.to>n&&(o=r)}}return o}(t,e,n)}function j(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}let B=o.Py.define({map:j}),J=o.Py.define({map:j});function F(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(t=>t.from<=n&&t.to>=n)||e.push(t.lineBlockAt(n));return e}let U=o.QQ.define({create:()=>s.p.none,update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((e,n)=>t=q(t,e,n)),t=t.map(e.changes);let n=[];for(let r of e.effects)r.is(B)&&!function(t,e,n){let r=!1;return t.between(e,e,(t,i)=>{t==e&&i==n&&(r=!0)}),r}(t,r.value.from,r.value.to)?n.push(r.value):r.is(J)&&(t=t.update({filter:(t,e)=>r.value.from!=t||r.value.to!=e,filterFrom:r.value.from,filterTo:r.value.to}));if(n.length){let{preparePlaceholder:r}=e.state.facet(Q),i=n.map(t=>(r?s.p.replace({widget:new te(r(e.state,t))}):tt).range(t.from,t.to));t=t.update({add:i})}return e.selection&&(t=q(t,e.selection.main.head)),t},provide:t=>s.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");e.push(tt.range(r,i))}return s.p.set(e,!0)}});function q(t,e,n=e){let r=!1;return t.between(e,n,(t,i)=>{t<n&&i>e&&(r=!0)}),r?t.update({filterFrom:e,filterTo:n,filter:(t,r)=>t>=n||r<=e}):t}function H(t,e,n){var r;let i=null;return null===(r=t.field(U,!1))||void 0===r||r.between(e,n,(t,e)=>{(!i||i.from>t)&&(i={from:t,to:e})}),i}function W(t,e){return t.field(U,!1)?e:e.concat(o.Py.appendConfig.of(K()))}function Y(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return s.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}let V=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of F(t)){let n=z(t.state,e.from,e.to);if(n)return t.dispatch({effects:W(t.state,[B.of(n),Y(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(U,!1))return!1;let e=[];for(let n of F(t)){let r=H(t.state,n.from,n.to);r&&e.push(J.of(r),Y(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),o=z(e,i.from,i.to);o&&n.push(B.of(o)),r=(o?t.lineBlockAt(o.to):i).to+1}return n.length&&t.dispatch({effects:W(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(U,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(J.of({from:t,to:e}))}),t.dispatch({effects:n}),!0}}],G={placeholderDOM:null,preparePlaceholder:null,placeholderText:"â¦"},Q=o.r$.define({combine:t=>(0,o.BO)(t,G)});function K(t){let e=[U,to];return t&&e.push(Q.of(t)),e}function X(t,e){let{state:n}=t,r=n.facet(Q),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),r=H(t.state,n.from,n.to);r&&t.dispatch({effects:J.of(r)}),e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}let tt=s.p.replace({widget:new class extends s.l9{toDOM(t){return X(t,null)}}});class te extends s.l9{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return X(t,this.value)}}let tn={openText:"â",closedText:"âº",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class tr extends s.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function ti(t={}){let e={...tn,...t},n=new tr(e,!0),r=new tr(e,!1),i=s.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(k)!=t.state.facet(k)||t.startState.field(U,!1)!=t.state.field(U,!1)||p(t.startState)!=p(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new o.f_;for(let i of t.viewportLineBlocks){let o=H(t.state,i.from,i.to)?r:z(t.state,i.from,i.to)?n:null;o&&e.add(i.from,i.from,o)}return e.finish()}}),{domEventHandlers:a}=e;return[i,(0,s.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(i))||void 0===e?void 0:e.markers)||o.Xs.empty},initialSpacer:()=>new tr(e,!1),domEventHandlers:{...a,click:(t,e,n)=>{if(a.click&&a.click(t,e,n))return!0;let r=H(t.state,e.from,e.to);if(r)return t.dispatch({effects:J.of(r)}),!0;let i=z(t.state,e.from,e.to);return!!i&&(t.dispatch({effects:B.of(i)}),!0)}}}),K()]}let to=s.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ts{constructor(t,e){let n;function r(t){let e=l.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let i="string"==typeof e.all?e.all:e.all?r(e.all):void 0,o=e.scope;this.scope=o instanceof h?t=>t.prop(c)==o.data:o?t=>t==o:void 0,this.style=(0,a.QR)(t.map(t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))})),{all:i}).style,this.module=n?new l.V(n):null,this.themeType=e.themeType}static define(t,e){return new ts(t,e||{})}}let ta=o.r$.define(),tl=o.r$.define({combine:t=>t.length?[t[0]]:null});function tc(t){let e=t.facet(ta);return e.length?e:t.facet(tl)}function tu(t,e){let n=[tf],r;return t instanceof ts&&(t.module&&n.push(s.tk.styleModule.of(t.module)),r=t.themeType),
25(null==e?void 0:e.fallback)?n.push(tl.of(t)):r?n.push(ta.computeN([s.tk.darkTheme],e=>e.facet(s.tk.darkTheme)==("dark"==r)?[t]:[])):n.push(ta.of(t)),n}class th{constructor(t){this.markCache=Object.create(null),this.tree=p(t.state),this.decorations=this.buildDeco(t,tc(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=p(t.state),n=tc(t.state),r=n!=tc(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length<i.to&&!r&&e.type==this.tree.type&&o>=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,n),this.decoratedTo=i.to)}buildDeco(t,e){if(!e||!this.tree.length)return s.p.none;let n=new o.f_;for(let{from:r,to:i}of t.visibleRanges)(0,a.bW)(this.tree,e,(t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=s.p.mark({class:r})))},r,i);return n.finish()}}let tf=o.Wl.high(s.lg.fromClass(th,{decorations:t=>t.decorations})),td=ts.define([{tag:a.pJ.meta,color:"#404740"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),tp=s.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tm="()[]{}",tg=o.r$.define({combine:t=>(0,o.BO)(t,{afterCursor:!0,brackets:tm,maxScanDistance:1e4,renderMatch:tb})}),ty=s.p.mark({class:"cm-matchingBracket"}),tv=s.p.mark({class:"cm-nonmatchingBracket"});function tb(t){let e=[],n=t.matched?ty:tv;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}function tx(t){let e=[],n=t.facet(tg);for(let r of t.selection.ranges){if(!r.empty)continue;let i=tM(t,r.head,-1,n)||r.head>0&&tM(t,r.head-1,1,n)||n.afterCursor&&(tM(t,r.head,1,n)||r.head<t.doc.length&&tM(t,r.head+1,-1,n));i&&(e=e.concat(n.renderMatch(i,t)))}return s.p.set(e,!0)}let t_=[s.lg.fromClass(class{constructor(t){this.paused=!1,this.decorations=tx(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=tx(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),tp];function tw(t={}){return[tg.of(t),t_]}let tk=new i.md;function tS(t,e,n){let r=t.prop(e<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function tA(t){let e=t.type.prop(tk);return e?e(t.node):t}function tM(t,e,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||tm,s=p(t),a=s.resolveInner(e,n);for(let t=a;t;t=t.parent){let r=tS(t.type,n,o);if(r&&t.from<t.to){let i=tA(t);if(i&&(n>0?e>=i.from&&e<i.to:e>i.from&&e<=i.to))return function(t,e,n,r,i,o,s){let a=r.parent,l={from:i.from,to:i.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from<u.to){let t=tA(u);return{start:l,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(tS(u.type,n,s))c++;else if(tS(u.type,-n,s)){if(0==c){let t=tA(u);return{start:l,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}(0,0,n,t,i,r,o)}}return function(t,e,n,r,i,o,s){if(n<0?!e:e==t.doc.length)return null;let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;
25let c={from:n<0?e-1:e,to:n>0?e+1:e},u=t.doc.iterRange(e,n>0?t.doc.length:0),h=0;for(let t=0;!u.next().done&&t<=o;){let o=u.value;n<0&&(t+=o.length);let a=e+t*n;for(let t=n>0?0:o.length-1,e=n>0?o.length:-1;t!=e;t+=n){let e=s.indexOf(o[t]);if(!(e<0)&&r.resolveInner(a+t,1).type==i){if(e%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:a+t,to:a+t+1},matched:e>>1==l>>1};h--}}}n>0&&(t+=o.length)}return u.done?{start:c,matched:!1}:null}(t,e,n,s,a.type,i,o)}let tT=Object.create(null),tC=[i.Jq.none],tD=[],tE=Object.create(null),tN=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])tN[t]=function(t,e){let n=[];for(let r of e.split(" ")){let e=[];for(let n of r.split(".")){let r=t[n]||a.pJ[n];r?"function"==typeof r?e.length?e=e.map(r):tO(n,`Modifier ${n} used at start of tag`):e.length?tO(n,`Tag ${n} used as modifier`):e=Array.isArray(r)?r:[r]:tO(n,`Unknown highlighting tag ${n}`)}for(let t of e)n.push(t)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),o=r+" "+n.map(t=>t.id),s=tE[o];if(s)return s.id;let l=tE[o]=i.Jq.define({id:tC.length,name:r,props:[(0,a.Gv)({[r]:n})]});return tC.push(l),l.id}(tT,e);function tO(t,e){tD.indexOf(t)>-1||(tD.push(t),console.warn(e))}s.Nm.RTL,s.Nm.LTR},3943:function(t,e,n){"use strict";n.d(e,{Fv:function(){return y},ir:function(){return _}});var r=n(23131),i=n(68341),o=n(97384);class s{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class a{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let o=n.facet(b).markerFilter;o&&(t=o(t,n));let s=t.slice().sort((t,e)=>t.from-e.from||t.to-e.to),c=new i.f_,u=[],h=0,f=n.doc.iter(),d=0,p=n.doc.length;for(let t=0;;){let e,n,i=t==s.length?null:s[t];if(!i&&!u.length)break;if(u.length)e=h,n=u.reduce((t,e)=>Math.min(t,e.to),i&&i.from>e?i.from:1e8);else{if((e=i.from)>p)break;n=i.to,u.push(i),t++}for(;t<s.length;){let r=s[t];if(r.from==e&&(r.to>r.from||r.to==e))u.push(r),t++,n=Math.min(r.to,n);else{n=Math.min(r.from,n);break}}n=Math.min(n,p);let o=!1;if(u.some(t=>t.from==e&&(t.to==n||n==p))&&!(o=e==n)&&n-e<10){let t=e-(d+f.value.length);t>0&&(f.next(t),d=e);for(let t=e;;){if(t>=n){o=!0;break}if(!f.lineBreak&&d+f.value.length>t)break;t=d+f.value.length,d+=f.value.length,f.next()}}let a=function(t){let e="hint",n=1;for(let i of t){var r;let t="error"==(r=i.severity)?4:"warning"==r?3:"info"==r?2:1;t>n&&(n=t,e=i.severity)}return e}(u);if(o)c.add(e,e,r.p.widget({widget:new S(a),diagnostics:u.slice()}));else{let t=u.reduce((t,e)=>e.markClass?t+" "+e.markClass:t,"");c.add(e,n,r.p.mark({class:"cm-lintRange cm-lintRange-"+a+t,diagnostics:u.slice(),inclusiveEnd:u.some(t=>t.to>n)}))}if((h=n)==p)break;for(let t=0;t<u.length;t++)u[t].to<=h&&u.splice(t--,1)}let m=c.finish();return new a(m,e,l(m))}}function l(t,e=null,n=0){let r=null;return t.between(n,1e9,(t,n,{spec:i})=>{if(!(e&&0>i.diagnostics.indexOf(e))){if(r){if(0>i.diagnostics.indexOf(r.diagnostic))return!1;r=new s(r.from,n,r.diagnostic)}else r=new s(t,n,e||i.diagnostics[0])}}),r}function c(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(b).hideOn(t,n,r);if(null!=i)return i;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(t=>t.is(h))||t.changes.touchesRange(o.from,Math.max(o.to,r)))}function u(t,e){return t.field(p,!1)?e:e.concat(i.Py.appendConfig.of(N))}let h=i.Py.define(),f=i.Py.define(),d=i.Py.define(),p=i.QQ.define({create:()=>new a(r.p.none,null,null),update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);r=l(n,t.selected.diagnostic,i)||l(n,null,i)}!n.size&&i&&e.state.facet(b).autoPanel&&(i=null),t=new a(n,i,r)}for(let n of e.effects)if(n.is(h)){let r=e.state.facet(b).autoPanel?n.value.length?M.open:null:t.panel;t=a.init(n.value,r,e.state)}else n.is(f)?t=new a(t.diagnostics,n.value?M.open:null,t.selected):n.is(d)&&(t=new a(t.diagnostics,t.panel,n.value));return t},provide:t=>[r.mH.from(t,t=>t.panel),r.tk.decorations.from(t,t=>t.diagnostics)]}),m=r.p.mark({class:"cm-lintRange cm-lintRange-active"}),g=t=>{let e=t.state.field(p,!1);return!!e&&!!e.panel&&(t.dispatch({effects:f.of(!1)}),!0)}
25,y=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(p,!1);e&&e.panel||t.dispatch({effects:u(t.state,[f.of(!0)])});let n=(0,r.Sd)(t,M.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(p,!1);if(!e)return!1;let n=t.state.selection.main,i=l(e.diagnostics,null,n.to+1);return!!(i||(i=l(e.diagnostics,null,0))&&(i.from!=n.from||i.to!=n.to))&&(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),(0,r.iH)(t,i.from,1,{tooltip:E,until:t=>t.docChanged||t.newSelection.main.head<i.from||t.newSelection.main.head>i.to}),!0)}}],v=r.lg.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(b);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(t<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-t);else{this.set=!1;let{state:t}=this.view,{sources:e}=t.facet(b);e.length&&function(t,e,n){let r=[],i=-1;for(let o of t)o.then(n=>{r.push(n),clearTimeout(i),r.length==t.length?e(r):i=setTimeout(()=>e(r),200)},n)}(e.map(t=>Promise.resolve(t(this.view))),e=>{if(this.view.state.doc==t.doc){var n,r;this.view.dispatch((n=this.view.state,r=e.reduce((t,e)=>t.concat(e)),{effects:u(n,[h.of(r)])}))}},t=>{(0,r.OO)(this.view.state,t)})}}update(t){let e=t.state.facet(b);(t.docChanged||e!=t.startState.facet(b)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),b=i.r$.define({combine:t=>({sources:t.map(t=>t.source).filter(t=>null!=t),...(0,i.BO)(t.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:x,tooltipFilter:x,needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e,hideOn:(t,e)=>t?e?(n,r,i)=>t(n,r,i)||e(n,r,i):t:e,autoPanel:(t,e)=>t||e})})});function x(t,e){return t?e?(n,r)=>e(t(n,r),r):t:e}function _(t,e={}){return[b.of({source:t,config:e}),v,N]}function w(t){let e=[];
25if(t)t:for(let{name:n}of t){for(let t=0;t<n.length;t++){let r=n[t];if(/[a-zA-Z]/.test(r)&&!e.some(t=>t.toLowerCase()==r.toLowerCase())){e.push(r);continue t}}e.push("")}return e}function k(t,e,n){var r;let i=n?w(e.actions):[];return(0,o.Z)("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},(0,o.Z)("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),null===(r=e.actions)||void 0===r?void 0:r.map((n,r)=>{let s=!1,a=r=>{if(r.preventDefault(),s)return;s=!0;let i=l(t.state.field(p).diagnostics,e);i&&n.apply(t,i.from,i.to)},{name:c}=n,u=i[r]?c.indexOf(i[r]):-1,h=u<0?c:[c.slice(0,u),(0,o.Z)("u",c.slice(u,u+1)),c.slice(u+1)],f=n.markClass?" "+n.markClass:"";return(0,o.Z)("button",{type:"button",class:"cm-diagnosticAction"+f,onclick:a,onmousedown:a,"aria-label":` Action: ${c}${u<0?"":` (access key "${i[r]})"`}.`},h)}),e.source&&(0,o.Z)("div",{class:"cm-diagnosticSource"},e.source))}class S extends r.l9{constructor(t){super(),this.sev=t}eq(t){return t.sev==this.sev}toDOM(){return(0,o.Z)("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class A{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=k(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class M{constructor(t){this.view=t,this.items=[],this.list=(0,o.Z)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e=>{if(!e.ctrlKey&&!e.altKey&&!e.metaKey){if(27==e.keyCode)g(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65)||!(e.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],r=w(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==e.keyCode){let e=l(this.view.state.field(p).diagnostics,n);e&&n.actions[i].apply(t,e.from,e.to)}}e.preventDefault()}},onclick:t=>{for(let e=0;e<this.items.length;e++)this.items[e].dom.contains(t.target)&&this.moveSelection(e)}}),this.dom=(0,o.Z)("div",{class:"cm-panel-lint"},this.list,(0,o.Z)("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>g(this.view)},"\xd7")),this.update()}get selectedIndex(){let t=this.view.state.field(p).selected;if(!t)return -1;for(let e=0;e<this.items.length;e++)if(this.items[e].diagnostic==t.diagnostic)return e;return -1}update(){let{diagnostics:t,selected:e}=this.view.state.field(p),n=0,r=!1,i=null,o=new Set;for(t.between(0,this.view.state.doc.length,(t,s,{spec:a})=>{for(let t of a.diagnostics){if(o.has(t))continue;o.add(t);let s=-1,a;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==t){s=e;break}s<0?(a=new A(this.view,t),this.items.splice(n,0,a),r=!0):(a=this.items[s],s>n&&(this.items.splice(n,s-n),r=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new A(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let n=e.height/this.list.offsetHeight;t.top<e.top?this.list.scrollTop-=(e.top-t.top)/n:t.bottom>e.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=l(this.view.state.field(p).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:d.of(e)})}static open(t){return new M(t)}}function T(t){return function(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let C=r.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:T("#f11")},".cm-lintRange-warning":{backgroundImage:T("orange")},".cm-lintRange-info":{backgroundImage:T("#999")},".cm-lintRange-hint":{backgroundImage:T("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});r.SJ;let D=i.Py.define(),E=(0,r.bF)(function(t,e,n){let{diagnostics:r}=t.state.field(p),i,s=-1,a=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(t,r,{spec:o})=>{if(e>=t&&e<=r&&(t==r||(e>t||n>0)&&(e<r||n<0)))return i=o.diagnostics,s=t,a=r,!1});let l=t.state.facet(b).tooltipFilter;
25return(i&&l&&(i=l(i,t.state)),i)?{pos:s,end:a,above:!0,create:()=>{var e,n;return{dom:(e=t,n=i,(0,o.Z)("ul",{class:"cm-tooltip-lint"},n.map(t=>k(e,t,!1))))}}}:null},{hideOn:c}),N=[p,r.tk.decorations.compute([p],t=>{let{selected:e,panel:n}=t.field(p);return e&&n&&e.from!=e.to?r.p.set([m.range(e.from,e.to)]):r.p.none}),E,C]},76139:function(t,e,n){"use strict";n.d(e,{Lp:function(){return K},sW:function(){return y}});var r=n(23131),i=n(68341),o=n(97384);let s="function"==typeof String.prototype.normalize?t=>t.normalize("NFKD"):t=>t;class a{constructor(t,e,n=0,r=t.length,i,o){this.test=o,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,r),this.bufferStart=n,this.normalize=i?t=>i(s(t)):s,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,i.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=(0,i.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.nZ)(t);let r=this.normalize(e);if(r.length)for(let t=0,i=n,o=!0;;t++){let n=r.charCodeAt(t),s=this.match(n,i,o,this.bufferPos+this.bufferStart,t==r.length-1);if(s)return this.value=s,this;if(t==r.length-1)break;o&&t<e.length&&e.charCodeAt(t)==n?i++:o=!1}}}match(t,e,n,r,i){let o=null;for(let e=0;e<this.matches.length;){let n=this.matches[e],s=!1;this.query.charCodeAt(n.index)==t&&(n.index==this.query.length-1?o={from:n.from,to:r,precise:i&&n.precise}:(n.index++,s=!0)),s?e++:this.matches.splice(e,1)}return this.query.charCodeAt(0)==t&&(1==this.query.length?o={from:e,to:r,precise:n&&i}:this.matches.push({from:e,index:1,precise:n})),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}}"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this});let l={from:-1,to:-1,match:/.*/.exec(""),precise:!0},c="gm"+(null==/x/.unicode?"":"u");class u{constructor(t,e,n,r=0,i=t.length){if(this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new d(t,e,n,r,i);this.re=new RegExp(e,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=t.iter();let o=t.lineAt(r);this.curLineStart=o.from,this.matchPos=p(t,r),this.getLine(this.curLineStart)}getLine(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=p(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,e)))return this.value={from:n,to:r,precise:!0,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),t=0}}}}let h=new WeakMap;class f{constructor(t,e){this.from=t,this.text=e}get to(){return this.from+this.text.length}static get(t,e,n){let r=h.get(t);if(!r||r.from>=n||r.to<=e){let r=new f(e,t.sliceString(e,n));return h.set(t,r),r}if(r.from==e&&r.to==n)return r;let{text:i,from:o}=r;return o>e&&(i=t.sliceString(e,o)+i,o=e),r.to<n&&(i+=t.sliceString(r.to,n)),h.set(t,new f(o,i)),new f(e,i.slice(e-o,n-o))}}class d{constructor(t,e,n,r,i){this.text=t,this.to=i,this.done=!1,this.value=l,this.matchPos=p(t,r),this.re=new RegExp(e,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=f.get(t,r,this.chunkEnd(r+5e3))}chunkEnd(t){return t>=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let t=this.flat.from+e.index,n=t+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(t,n,e)))return this.value={from:t,to:n,precise:!0,match:e},this.matchPos=p(this.text,n+(t==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=f.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function p(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});let m={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},g=i.r$.define({combine:t=>(0,i.BO)(t,m,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});function y(t){let e=[w,_];return t&&e.push(g.of(t)),e}let v=r.p.mark({class:"cm-selectionMatch"}),b=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function x(t,e,n,r){return(0==n||t(e.sliceDoc(n-1,n))!=i.D0.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=i.D0.Word)}let _=r.lg.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(g),{state:n}=t,o=n.selection;if(o.ranges.length>1)return r.p.none;let s=o.main,l,c=null;
25if(s.empty){if(!e.highlightWordAroundCursor)return r.p.none;let t=n.wordAt(s.head);if(!t)return r.p.none;c=n.charCategorizer(s.head),l=n.sliceDoc(t.from,t.to)}else{let t=s.to-s.from;if(t<e.minSelectionLength||t>200)return r.p.none;if(e.wholeWords){var u,h,f;if(l=n.sliceDoc(s.from,s.to),!(x(c=n.charCategorizer(s.head),n,s.from,s.to)&&(u=c,h=s.from,f=s.to,u(n.sliceDoc(h,h+1))==i.D0.Word&&u(n.sliceDoc(f-1,f))==i.D0.Word)))return r.p.none}else if(!(l=n.sliceDoc(s.from,s.to)))return r.p.none}let d=[];for(let i of t.visibleRanges){let t=new a(n.doc,l,i.from,i.to);for(;!t.next().done;){let{from:i,to:o}=t.value;if((!c||x(c,n,i,o))&&(s.empty&&i<=s.from&&o>=s.to?d.push(b.range(i,o)):(i>=s.to||o<=s.from)&&d.push(v.range(i,o)),d.length>e.maxMatches))return r.p.none}}return r.p.set(d)}},{decorations:t=>t.decorations}),w=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),k=({state:t,dispatch:e})=>{let{selection:n}=t,r=i.jT.create(n.ranges.map(e=>t.wordAt(e.head)||i.jT.cursor(e.head)),n.mainIndex);return!r.eq(n)&&(e(t.update({selection:r})),!0)},S=i.r$.define({combine:t=>(0,i.BO)(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new X(t),scrollToMatch:t=>r.tk.scrollIntoView(t)})});class A{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return new RegExp(t,c),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord,this.test=t.test}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord&&this.test==t.test}create(){return this.regexp?new O(this):new C(this)}getCursor(t,e=0,n){let r=t.doc?t:i.yy.create({doc:t});return null==n&&(n=r.doc.length),this.regexp?D(this,r,e,n):T(this,r,e,n)}}class M{constructor(t){this.spec=t}}function T(t,e,n,r){var o,s,l,c;let u;return t.wholeWord&&(o=e.doc,s=e.charCategorizer(e.selection.main.head),u=(t,e,n,r)=>((r>t||r+n.length<e)&&(r=Math.max(0,t-2),n=o.sliceString(r,Math.min(o.length,e+2))),(s(E(n,t-r))!=i.D0.Word||s(N(n,t-r))!=i.D0.Word)&&(s(N(n,e-r))!=i.D0.Word||s(E(n,e-r))!=i.D0.Word))),t.test&&(l=t.test,c=u,u=(t,n,r,i)=>(!c||!!c(t,n,r,i))&&l(t>=i&&n<=i+r.length?r.slice(t-i,n-i):e.doc.sliceString(t,n),e,t,n)),new a(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:t=>t.toLowerCase(),u)}class C extends M{constructor(t){super(t)}nextMatch(t,e,n){let r=T(this.spec,t,n,t.doc.length).nextOverlapping();if(r.done){let n=Math.min(t.doc.length,e+this.spec.unquoted.length);r=T(this.spec,t,0,n).nextOverlapping()}return r.done||r.value.from==e&&r.value.to==n?null:r.value}prevMatchInRange(t,e,n){for(let r=n;;){let n=Math.max(e,r-1e4-this.spec.unquoted.length),i=T(this.spec,t,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==e)return null;r-=1e4}}prevMatch(t,e,n){let r=this.prevMatchInRange(t,0,e);return r||(r=this.prevMatchInRange(t,Math.max(0,n-this.spec.unquoted.length),t.doc.length)),r&&(r.from!=e||r.to!=n)?r:null}getReplacement(t){return this.spec.unquote(this.spec.replace)}matchAll(t,e){let n=T(this.spec,t,0,t.doc.length),r=[];for(;!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let i=T(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function D(t,e,n,r){var o,s,a;let l;return t.wholeWord&&(o=e.charCategorizer(e.selection.main.head),l=(t,e,n)=>!n[0].length||(o(E(n.input,n.index))!=i.D0.Word||o(N(n.input,n.index))!=i.D0.Word)&&(o(N(n.input,n.index+n[0].length))!=i.D0.Word||o(E(n.input,n.index+n[0].length))!=i.D0.Word)),t.test&&(s=t.test,a=l,l=(t,n,r)=>(!a||a(t,n,r))&&s(r[0],e,t,n)),new u(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:l},n,r)}function E(t,e){return t.slice((0,i.cp)(t,e,!1),e)}function N(t,e){return t.slice(e,(0,i.cp)(t,e))}class O extends M{nextMatch(t,e,n){let r=D(this.spec,t,n,t.doc.length).next();return r.done&&(r=D(this.spec,t,0,e).next()),r.done?null:r.value}prevMatchInRange(t,e,n){for(let r=1;;r++){let i=Math.max(e,n-1e4*r),o=D(this.spec,t,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==e||s.from>i+10))return s;if(i==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(e,n)=>{if("&"==n)return t.match[0];if("$"==n)return"$";for(let e=n.length;e>0;e--){let r=+n.slice(0,e);if(r>0&&r<t.match.length)return t.match[r]+n.slice(e)}return e})}matchAll(t,e){let n=D(this.spec,t,0,t.doc.length),r=[];for(;!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}highlight(t,e,n,r){let i=D(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}let I=i.Py.define(),P=i.Py.define(),Z=i.QQ.define({create:t=>new L(W(t).create(),null),update(t,e){for(let n of e.effects)n.is(I)?t=new L(n.value.create(),t.panel):n.is(P)&&(t=new L(t.query,n.value?H:null));return t},provide:t=>r.mH.from(t,t=>t.panel)});class L{constructor(t,e){this.query=t,this.panel=e}}let R=r.p.mark({class:"cm-searchMatch"}),$=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),z=r.lg.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Z))}update(t){let e=t.state.field(Z);(e!=t.startState.field(Z)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return r.p.none;let{view:n}=this,o=new i.f_;for(let e=0,r=n.visibleRanges,i=r.length;e<i;e++){let{from:s,to:a}=r[e];for(;e<i-1&&a>r[e+1].from-500;)a=r[++e].to;t.highlight(n.state,s,a,(t,e)=>{let r=n.state.selection.ranges.some(n=>n.from==t&&n.to==e);o.add(t,e,r?$:R)})}return o.finish()}},{decorations:t=>t.decorations});function j(t){return e=>{let n=e.state.field(Z,!1);return n&&n.query.spec.valid?t(e,n):G(e)}}let B=j((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let o=i.jT.single(r.from,r.to),s=t.state.facet(S);return t.dispatch({selection:o,effects:[tn(t,r),s.scrollToMatch(o.main,t)],userEvent:"select.search"}),V(t),!0}),J=j((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,o=e.prevMatch(n,r,r);if(!o)return!1;let s=i.jT.single(o.from,o.to),a=t.state.facet(S);return t.dispatch({selection:s,effects:[tn(t,o),a.scrollToMatch(s.main,t)],userEvent:"select.search"}),V(t),!0}),F=j((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!!n&&!!n.length&&(t.dispatch({selection:i.jT.create(n.map(t=>i.jT.range(t.from,t.to))),userEvent:"select.search.matches"}),!0)}),U=j((t,{query:e})=>{let{state:n}=t,{from:o,to:s}=n.selection.main;if(n.readOnly)return!1;let a=e.nextMatch(n,o,o);if(!a)return!1;let l=a,c=[],u,h,f=[];l.precise?l.from==o&&l.to==s&&(h=n.toText(e.getReplacement(l)),c.push({from:l.from,to:l.to,insert:h}),l=e.nextMatch(n,l.from,l.to),f.push(r.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(o).number)+"."))):l=e.nextMatch(n,l.from,l.to);let d=t.state.changes(c);return l&&(u=i.jT.single(l.from,l.to).map(d),f.push(tn(t,l)),f.push(n.facet(S).scrollToMatch(u.main,t))),t.dis
25patch({changes:d,selection:u,effects:f,userEvent:"input.replace"}),!0}),q=j((t,{query:e})=>{if(t.state.readOnly)return!1;let n=[];for(let r of e.matchAll(t.state,1e9)){let{from:t,to:i,precise:o}=r;o&&n.push({from:t,to:i,insert:e.getReplacement(r)})}if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:r.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function H(t){return t.state.facet(S).createPanel(t)}function W(t,e){var n,r,i,o,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=t.facet(S);return new A({search:(null!==(n=null==e?void 0:e.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==e?void 0:e.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null==e?void 0:e.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null==e?void 0:e.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=null==e?void 0:e.wholeWord)&&void 0!==s?s:c.wholeWord})}function Y(t){let e=(0,r.Sd)(t,H);return e&&e.dom.querySelector("[main-field]")}function V(t){let e=Y(t);e&&e==t.root.activeElement&&e.select()}let G=t=>{let e=t.state.field(Z,!1);if(e&&e.panel){let n=Y(t);if(n&&n!=t.root.activeElement){let r=W(t.state,e.query.spec);r.valid&&t.dispatch({effects:I.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[P.of(!0),e?I.of(W(t.state,e.query.spec)):i.Py.appendConfig.of(ti)]});return!0},Q=t=>{let e=t.state.field(Z,!1);if(!e||!e.panel)return!1;let n=(0,r.Sd)(t,H);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:P.of(!1)}),!0},K=[{key:"Mod-f",run:G,scope:"editor search-panel"},{key:"F3",run:B,shift:J,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:B,shift:J,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Q,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,s=[],l=0;for(let e=new a(t.doc,t.sliceDoc(r,o));!e.next().done;){if(s.length>1e3)return!1;e.value.from==r&&(l=s.length),s.push(i.jT.range(e.value.from,e.value.to))}return e(t.update({selection:i.jT.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let{state:e}=t,n=String(e.doc.lineAt(t.state.selection.main.head).number),{close:o,result:s}=(0,r.vC)(t,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:e.phrase("go")});return s.then(n=>{let s=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!s){t.dispatch({effects:o});return}let a=e.doc.lineAt(e.selection.main.head),[,l,c,u,h]=s,f=u?+u.slice(1):0,d=c?+c:a.number;if(c&&h){let t=d/100;l&&(t=t*("-"==l?-1:1)+a.number/e.doc.lines),d=Math.round(e.doc.lines*t)}else c&&l&&(d=d*("-"==l?-1:1)+a.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,d))),m=i.jT.cursor(p.from+Math.max(0,Math.min(f,p.length)));t.dispatch({effects:[o,r.tk.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(t=>t.from===t.to))return k({state:t,dispatch:e});let o=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(e=>t.sliceDoc(e.from,e.to)!=o))return!1;let s=function(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new a(t.doc,e,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new a(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(t=>t.from==i.value.from))continue;if(o){let e=t.wordAt(i.value.from);if(!e||e.from!=i.value.from||e.to!=i.value.to)continue}return i.value}}(t,o);return!!s&&(e(t.update({selection:t.selection.addRange(i.jT.range(s.from,s.to),!1),effects:r.tk.scrollIntoView(s.to)})),!0)},preventDefault:!0}];class X{constructor(t){this.view=t;let e=this.query=t.state.field(Z).query.spec;function n(t,e,n){return(0,o.Z)("button",{class:"cm-button",name:t,onclick:e,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,o.Z)("input",{value:e.search,placeholder:tt(t,"Find"),"aria-label":tt(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,o.Z)("input",{value:e.replace,placeholder:tt(t,"Replace"),"aria-label":tt(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,o.Z)("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=(0,o.Z)("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=(0,o.Z)("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=(0,o.Z)("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,n("next",()=>B(t),[tt(t,"next")]),n("prev",()=>J(t),[tt(t,"previous")]),n("select",()=>F(t),[tt(t,"all")]),(0,o.Z)("label",null,[this.caseField,tt(t,"match case")]),(0,o.Z)("label",null,[this.reField,tt(t,"regexp")]),(0,o.Z)("label",null,[this.wordField,tt(t,"by w
25ord")]),...t.state.readOnly?[]:[(0,o.Z)("br"),this.replaceField,n("replace",()=>U(t),[tt(t,"replace")]),n("replaceAll",()=>q(t),[tt(t,"replace all")])],(0,o.Z)("button",{name:"close",onclick:()=>Q(t),"aria-label":tt(t,"close"),type:"button"},["\xd7"])])}commit(){let t=new A({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:I.of(t)}))}keydown(t){(0,r.$1)(this.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?J:B)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),U(this.view))}update(t){for(let e of t.transactions)for(let t of e.effects)t.is(I)&&!t.value.eq(this.query)&&this.setQuery(t.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(S).top}}function tt(t,e){return t.state.phrase(e)}let te=/[\s\.,:;?!]/;function tn(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),o=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-30),a=Math.min(o,n+30),l=t.state.sliceDoc(s,a);if(s!=i.from){for(let t=0;t<30;t++)if(!te.test(l[t+1])&&te.test(l[t])){l=l.slice(t);break}}if(a!=o){for(let t=l.length-1;t>l.length-30;t--)if(!te.test(l[t-1])&&te.test(l[t])){l=l.slice(0,t);break}}return r.tk.announce.of(`${t.state.phrase("current match")}. ${l} ${t.state.phrase("on line")} ${i.number}.`)}let tr=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ti=[Z,i.Wl.low(z),tr]},68341:function(t,e,n){"use strict";let r;n.d(e,{q6:function(){return tu},n0:function(){return D},as:function(){return E},D0:function(){return tb},jT:function(){return $},yy:function(){return t_},r$:function(){return B},gc:function(){return C},Wl:function(){return G},Xs:function(){return tC},f_:function(){return tD},uU:function(){return tk},Py:function(){return td},QQ:function(){return W},xv:function(){return f},YW:function(){return tp},gm:function(){return w},nZ:function(){return S},BO:function(){return tw},IS:function(){return tj},cp:function(){return _},Gz:function(){return tB},bg:function(){return k}});let i=[],o=[];function s(t){return t>=127462&&t<=127487}function a(t,e,n){if(e==t.length)return e;e&&c(t.charCodeAt(e))&&u(t.charCodeAt(e-1))&&e--;let r=l(t,e);for(e+=h(r);e<t.length;){let a=l(t,e);if(8205==r||8205==a||n&&function(t){if(t<768)return!1;for(let e=0,n=i.length;;){let r=e+n>>1;if(t<i[r])n=r;else{if(!(t>=o[r]))return!0;e=r+1}if(e==n)return!1}}(a))e+=h(a),r=a;else if(s(a)){let n=0,r=e-2;for(;r>=0&&s(l(t,r));)n++,r-=2;if(n%2==0)break;e+=2}else break}return e}function l(t,e){let n=t.charCodeAt(e);if(!u(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return c(r)?(n-55296<<10)+(r-56320)+65536:n}function c(t){return t>=56320&&t<57344}function u(t){return t>=55296&&t<56320}function h(t){return t<65536?1:2}(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>
vendor: 12,224 bytes, line 25
25t?parseInt(t,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?o:i).push(n+=t[e])})();class f{lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){[t,e]=x(this,t,e);let r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),p.from(r,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=x(this,t,e);let n=[];return this.decompose(t,e,n,0),p.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),r=new g(this),i=new g(t);for(let t=e,o=e;;){if(r.next(t),i.next(t),t=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(t=1){return new g(this,t)}iterRange(t,e=this.length){return new y(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new v(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new d(t):p.from(d.split(t,[])):f.empty}}class d extends f{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((e?n:s)>=t)return new b(r,s,n,o);r=s+1,n++}}decompose(t,e,n,r){let i=t<=0&&e>=this.length?this:new d(m(this.text,[""],t,e),Math.min(e,this.length)-Math.max(0,t));if(1&r){let t=n.pop(),e=m(i.text,t.text.slice(),0,i.length);if(e.length<=32)n.push(new d(e,t.length+i.length));else{let t=e.length>>1;n.push(new d(e.slice(0,t)),new d(e.slice(t)))}}else n.push(i)}replace(t,e,n){if(!(n instanceof d))return super.replace(t,e,n);[t,e]=x(this,t,e);let r=m(this.text,m(n.text,m(this.text,[""],0,t)),e),i=this.length+n.length-(e-t);return r.length<=32?new d(r,i):p.from(d.split(r,[]),i)}sliceString(t,e=this.length,n="\n"){[t,e]=x(this,t,e);let r="";for(let i=0,o=0;i<=e&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>t&&o&&(r+=n),t<a&&e>i&&(r+=s.slice(Math.max(0,t-i),e-i)),i=a+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],r=-1;for(let i of t)n.push(i),r+=i.length+1,32==n.length&&(e.push(new d(n,r)),n=[],r=-1);return r>-1&&e.push(new d(n,r)),e}}class p extends f{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((e?a:s)>=t)return o.lineInner(t,e,n,r);r=s+1,n=a+1}}decompose(t,e,n,r){for(let i=0,o=0;o<=e&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(t<=a&&e>=o){let i=r&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!i?n.push(s):s.decompose(t-o,e-o,n,i)}o=a+1}}replace(t,e,n){if([t,e]=x(this,t,e),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],s=i+o.length;if(t>=i&&e<=s){let a=o.replace(t-i,e-i,n),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let i=this.children.slice();return i[r]=a,new p(i,this.length-(e-t)+n.length)}return super.replace(i,s,a)}i=s+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=x(this,t,e);let r="";for(let i=0,o=0;i<this.children.length&&o<=e;i++){let s=this.children[i],a=o+s.length;o>t&&i&&(r+=n),t<a&&e>o&&(r+=s.sliceString(t-o,e-o,n)),o=a+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof p))return 0;let n=0,[r,i,o,s]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,i+=e){if(r==o||i==s)return n;let a=this.children[r],l=t.children[i];if(a!=l)return n+a.scanIdentical(l,e);n+=a.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new d(n,e)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,s=[],a=0,l=-1,c=[];function u(){0!=a&&(s.push(1==c.length?c[0]:p.from(c,l)),l=-1,a=c.length=0)}for(let e of t)!function t(e){let n;if(e.lines>i&&e instanceof p)for(let n of e.children)t(n);else e.lines>o&&(a>o||!a)?(u(),s.push(e)):e instanceof d&&a&&(n=c[c.length-1])instanceof d&&e.lines+n.lines<=32?(a+=e.lines,l+=e.length+1,c[c.length-1]=new d(n.text.concat(e.text),n.length+1+e.length)):(a+e.lines>r&&u(),a+=e.lines,l+=e.length+1,c.push(e))}(e);return u(),1==s.length?s[0]:new p(s,e)}}function m(t,e,n=0,r=1e9){for(let i=0,o=0,s=!0;o<t.length&&i<=r;o++){let a=t[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(e[e.length-1]+=a,s=!1):e.push(a)),i=l+1}return e}f.empty=new d([""],0);class g{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof d?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof d?r.text.length:r.children.length;if(o==(e>0?s:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof d){let i=r.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,i.length>Math.max(0,t))return this.value=0==t?i:e>0?i.slice(t):i.slice(0,i.length-t),this;t-=i.length}else{let i=r.children[o+(e<0?-1:0)];t>i.length?(t-=i.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(e>0?1:(i instanceof d?i.text.length:i.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class y{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new g(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class v{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:r}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(f.prototype[Symbol.iterator]=function(){return this.iter()},g.prototype[Symbol.iterator]=y.prototype[Symbol.iterator]=v.prototype[Symbol.iterator]=function(){return this});class b{constructor(t,e,n,r){this.from=t,this.to=e,this.number=n,this.text=r}get length(){return this.to-this.from}}function x(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}function _(t,e,n=!0,r=!0){return function(t,e,n=!0,r=!0){return(n?a:function(t,e,n){for(;e>1;){let r=a(t,e-2,n);if(r<e)return r;e--}return 0})(t,e,r)}(t,e,n,r)}function w(t,e){let n=t.charCodeAt(e);if(!(n>=55296&&n<56320)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function k(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function S(t){return t<65536?1:2}let A=/\r\n?|\n/;var M,T,C=((M=C||(C={}))[M.Simple=0]="Simple",M[M.TrackDel=1]="TrackDel",M[M.TrackBefore=2]="TrackBefore",M[M.TrackAfter=3]="TrackAfter",M);class D{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e+1];t+=n<0?this.sections[e]:n}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,n=0,r=0;e<this.sections.length;){let i=this.sections[e++],o=this.sections[e++];o<0?(t(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(t,e=!1){I(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new D(t)}composeDesc(t){return this.empty?t:t.empty?this:Z(this,t)}mapDesc(t,e=!1){return t.empty?this:P(this,t,e)}mapPos(t,e=-1,n=C.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>t)return i+(t-r);i+=s}else{if(n!=C.Simple&&l>=t&&(n==C.TrackDel&&r<t&&l>t||n==C.TrackBefore&&r<t||n==C.TrackAfter&&l>t))return null;if(l>t||l==t&&e<0&&!s)return t==r||e<0?i:i+a;i+=a}r=l}if(t>r)throw RangeError(`Position ${t} is out of range for changeset of length ${r}`);return i}touchesRange(t,e=t){for(let n=0,r=0;n<this.sections.length&&r<=e;){let i=this.sections[n++],o=this.sections[n++],s=r+i;if(o>=0&&r<=e&&s>=t)return!(r<t)||!(s>e)||"cover";r=s}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];t+=(t?" ":"")+n+(r>=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new D(t)}static create(t){return new D(t)}}class E extends D{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return I(this,(e,n,r,i,o)=>t=t.replace(r,r+(n-e),o),!1),t}mapDesc(t,e=!1){return P(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let r=0,i=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s>=0){e[r]=s,e[r+1]=o;let a=r>>1;for(;n.length<a;)n.push(f.empty);n.push(o?t.slice(i,i+o):f.empty)}i+=o}return new E(e,n)}compose(t){return this.empty?t:t.empty?this:Z(this,t,!0)}map(t,e=!1){return t.empty?this:P(this,t,e,!0)}iterChanges(t,e=!1){I(this,t,e)}get desc(){return D.create(this.sections)}filter(t){let e=[],n=[],r=[],i=new L(this);e:for(let o=0,s=0;;){let a=o==t.length?1e9:t[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break e;let t=Math.min(i.len,a-s);N(r,t,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;N(e,t,o),o>0&&O(n,e,i.text),i.forward(t),s+=t}let l=t[o++];for(;s<l;){if(i.done)break e;let t=Math.min(i.len,l-s);N(e,t,-1),N(r,t,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(t),s+=t}}return{changes:new E(e,n),filtered:D.create(r)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let n=this.sections[e],r=this.sections[e+1];r<0?t.push(n):0==r?t.push([n]):t.push([n].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,n){let r=[],i=[],o=0,s=null;function a(t=!1){if(!t&&!r.length)return;o<e&&N(r,e-o,-1);let n=new E(r,i);s=s?s.compose(n.map(s)):n,r=[],i=[],o=0}return!function t(l){if(Array.isArray(l))for(let e of l)t(e);else if(l instanceof E){if(l.length!=e)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${e})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:t,to:s=t,insert:c}=l;if(t>s||t<0||s>e)throw RangeError(`Invalid change range ${t} to ${s} (in doc of length ${e})`);let u=c?"string"==typeof c?f.of(c.split(n||A)):c:f.empty,h=u.length;if(t==s&&0==h)return;t<o&&a(),t>o&&N(r,t-o,-1),N(r,s-t,h),O(i,r,u),o=s}}(t),a(!s),s}static empty(t){return new E(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let r=0;r<t.length;r++){let i=t[r];
25if("number"==typeof i)e.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((t,e)=>e&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)e.push(i[0],0);else{for(;n.length<r;)n.push(f.empty);n[r]=f.of(i.slice(1)),e.push(i[0],n[r].length)}}return new E(e,n)}static createSet(t,e){return new E(t,e)}}function N(t,e,n,r=!1){if(0==e&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:i>=0&&0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function O(t,e,n){if(0==n.length)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(f.empty);t.push(n)}}function I(t,e,n){let r=t.inserted;for(let i=0,o=0,s=0;s<t.sections.length;){let a=t.sections[s++],l=t.sections[s++];if(l<0)i+=a,o+=a;else{let c=i,u=o,h=f.empty;for(;c+=a,u+=l,l&&r&&(h=h.append(r[s-2>>1])),!n&&s!=t.sections.length&&!(t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];e(i,c,o,u,h),i=c,o=u}}}function P(t,e,n,r=!1){let i=[],o=r?[]:null,s=new L(t),a=new L(e);for(let t=-1;;){if(s.done&&a.len||a.done&&s.len)throw Error("Mismatched change set lengths");if(-1==s.ins&&-1==a.ins){let t=Math.min(s.len,a.len);N(i,t,-1),s.forward(t),a.forward(t)}else if(a.ins>=0&&(s.ins<0||t==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let e=a.len;for(N(i,a.ins,-1);e;){let n=Math.min(s.len,e);s.ins>=0&&t<s.i&&s.len<=n&&(N(i,0,s.ins),o&&O(o,i,s.text),t=s.i),s.forward(n),e-=n}a.next()}else if(s.ins>=0){let e=0,n=s.len;for(;n;)if(-1==a.ins){let t=Math.min(n,a.len);e+=t,n-=t,a.forward(t)}else if(0==a.ins&&a.len<n)n-=a.len,a.next();else break;N(i,e,t<s.i?s.ins:0),o&&t<s.i&&O(o,i,s.text),t=s.i,s.forward(s.len-n)}else if(s.done&&a.done)return o?E.createSet(i,o):D.create(i);else throw Error("Mismatched change set lengths")}}function Z(t,e,n=!1){let r=[],i=n?[]:null,o=new L(t),s=new L(e);for(let t=!1;;){if(o.done&&s.done)return i?E.createSet(r,i):D.create(r);if(0==o.ins)N(r,o.len,0,t),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw Error("Mismatched change set lengths");{let e=Math.min(o.len2,s.len),n=r.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;N(r,e,n,t),i&&n&&O(i,r,s.text)}else -1==s.ins?(N(r,o.off?0:o.len,e,t),i&&O(i,r,o.textBit(e))):(N(r,o.off?0:o.len,s.off?0:s.ins,t),i&&!s.off&&O(i,r,s.text));t=(o.ins>e||s.ins>=0&&s.len>e)&&(t||r.length>n),o.forward2(e),s.forward(e)}}else N(r,0,s.ins,t),i&&O(i,r,s.text),s.next()}}class L{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?f.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?f.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class R{constructor(t,e,n,r){this.from=t,this.to=e,this.flags=n,this.goalColumn=r}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}map(t,e=-1){let n,r;return this.empty?n=r=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new R(n,r,this.flags,this.goalColumn)}extend(t,e=t,n=0){if(t<=this.anchor&&e>=this.anchor)return $.range(t,e,void 0,void 0,n);let r=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return $.range(this.anchor,r,void 0,void 0,n)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return $.range(t.anchor,t.head)}static create(t,e,n,r){return new R(t,e,n,r)}}class ${constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:$.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new $([this.main],0)}addRange(t,e=!0){return $.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let n=this.ranges.slice();return n[e]=t,$.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new $(t.ranges.map(t=>R.fromJSON(t)),t.main)}static single(t,e=t){return new $([$.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<t.length;r++){let i=t[r];
25if(i.empty?i.from<=n:i.from<n)return $.normalized(t.slice(),e);n=i.to}return new $(t,e)}static cursor(t,e=0,n,r){return R.create(t,t,(0==e?0:e<0?8:16)|(null==n?7:Math.min(6,n)),r)}static range(t,e,n,r,i){let o=null==r?7:Math.min(6,r);return i||t==e||(i=e<t?1:-1),i&&(o|=i<0?8:16),e<t?R.create(e,t,32|o,n):R.create(t,e,o,n)}static undirectionalRange(t,e){return R.create(t,e,64,void 0)}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let n=1;n<t.length;n++){let r=t[n],i=t[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,s=Math.max(r.to,i.to);n<=e&&e--,t.splice(--n,2,r.anchor>r.head?$.range(s,o):$.range(o,s))}}return new $(t,e)}}function z(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let j=0;class B{constructor(t,e,n,r,i){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=r,this.id=j++,this.default=t([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(t={}){return new B(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:J),!!t.static,t.enables)}of(t){return new F([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new F(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new F(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function J(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class F{constructor(t,e,n,r){this.dependencies=t,this.facet=e,this.type=n,this.value=r,this.id=j++}dynamicSlot(t){var e;let n=this.value,r=this.facet.compareInput,i=this.id,o=t[i]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:((null!==(e=t[n.id])&&void 0!==e?e:1)&1)==0&&c.push(t[n.id]);return{create:t=>(t.values[o]=n(t),1),update(t,e){if(a&&e.docChanged||l&&(e.docChanged||e.selection)||q(t,c)){let e=n(t);if(s?!U(e,t.values[o],r):!r(e,t.values[o]))return t.values[o]=e,1}return 0},reconfigure:(t,e)=>{let a,l=e.config.address[i];if(null!=l){let i=tn(e,l);if(this.dependencies.every(n=>n instanceof B?e.facet(n)===t.facet(n):!(n instanceof W)||e.field(n,!1)==t.field(n,!1))||(s?U(a=n(t),i,r):r(a=n(t),i)))return t.values[o]=i,0}else a=n(t);return t.values[o]=a,1}}}}function U(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function q(t,e){let n=!1;for(let r of e)1&te(t,r)&&(n=!0);return n}let H=B.define({static:!0});class W{constructor(t,e,n,r,i){this.id=t,this.createF=e,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let e=new W(j++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(H).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let r=t.values[e],i=this.updateF(r,n);return this.compareF(r,i)?0:(t.values[e]=i,1)},reconfigure:(t,n)=>{let r=t.facet(H),i=n.facet(H),o;return(o=r.find(t=>t.field==this))&&o!=i.find(t=>t.field==this)?(t.values[e]=o.create(t),1):null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}}init(t){return[this,H.of({field:this,create:t})]}get extension(){return this}}let Y={lowest:4,low:3,default:2,high:1,highest:0};function V(t){return e=>new Q(e,t)}let G={highest:V(Y.highest),high:V(Y.high),default:V(Y.default),low:V(Y.low),lowest:V(Y.lowest)};class Q{constructor(t,e){this.inner=t,this.prec=e}}class K{of(t){return new X(this,t)}reconfigure(t){return K.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class X{constructor(t,e){this.compartment=t,this.inner=e}}class tt{constructor(t,e,n,r,i,o){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,n){let r,i,o=[],s=Object.create(null),a=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function t(n,o){let s=i.get(n);if(null!=s){if(s<=o)return;let t=r[s].indexOf(n);t>-1&&r[s].splice(t,1),n instanceof X&&a.delete(n.compartment)}if(i.set(n,o),Array.isArray(n))for(let e of n)t(e,o);else if(n instanceof X){if(a.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=e.get(n.compartment)||n.inner;a.set(n.compartment,r),t(r,o)}else if(n instanceof Q)t(n.inner,n.prec);else if(n instanceof W)r[o].push(n),n.provides&&t(n.provides,o);else if(n instanceof F)r[o].push(n),n.facet.extensions&&t(n.facet.extensions,Y.default);else{let e=n.extension;if(!e)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(e,o)}}(t,Y.default),r.reduce((t,e)=>t.concat(e))))n instanceof W?o.push(n):(s[n.facet.id]||(s[n.facet.id]=[])).push(n);let l=Object.create(null),c=[],u=[];for(let t of o)l[t.id]=u.length<<1,u.push(e=>t.slot(e));let h=null==n?void 0:n.config.facets;for(let t in s){let e=s[t],r=e[0].facet,i=h&&h[t]||[];if(e.every(t=>0==t.type)){if(l[r.id]=c.length<<1|1,J(i,e))c.push(n.facet(r));else{let t=r.combine(e.map(t=>t.value));c.push(n&&r.compare(t,n.facet(r))?n.facet(r):t)}}else{for(let t of e)0==t.type?(l[t.id]=c.length<<1|1,c.push(t.value)):(l[t.id]=u.length<<1,u.push(e=>t.dynamicSlot(e)));l[r.id]=u.length<<1,u.push(t=>(function(t,e,n){let r=n.map(e=>t[e.id]),i=n.map(t=>t.type),o=r.filter(t=>!(1&t)),s=t[e.id]>>1;function a(t){let n=[];for(let e=0;e<r.length;e++){let o=tn(t,r[e]);if(2==i[e])for(let t of o)n.push(t);else n.push(o)}return e.combine(n)}return{create(t){for(let e of r)te(t,e);return t.values[s]=a(t),1},update(t,n){if(!q(t,o))return 0;let r=a(t);return e.compare(r,t.values[s])?0:(t.values[s]=r,1)},reconfigure(t,i){let o=q(t,r),l=i.config.facets[e.id],c=i.facet(e);if(l&&!o&&J(n,l))return t.values[s]=c,0;let u=a(t);return e.compare(u,c)?(t.values[s]=c,0):(t.values[s]=u,1)}}})(t,r,e))}}return new tt(t,a,u.map(t=>t(l)),l,c,s)}}function te(t,e){if(1&e)return 2;let n=e>>1,r=t.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function tn(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let tr=B.define(),ti=B.define({combine:t=>t.some(t=>t),static:!0}),to=B.define({combine:t=>t.length?t[0]:void 0,static:!0}),ts=B.define(),ta=B.define(),tl=B.define(),tc=B.define({combine:t=>!!t.length&&t[0]});class tu{constructor(t,e){this.type=t,this.value=e}static define(){return new th}
25}class th{of(t){return new tu(this,t)}}class tf{constructor(t){this.map=t}of(t){return new td(this,t)}}class td{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new td(this.type,e)}is(t){return this.type==t}static define(t={}){return new tf(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let r of t){let t=r.map(e);t&&n.push(t)}return n}}td.reconfigure=td.define(),td.appendConfig=td.define();class tp{constructor(t,e,n,r,i,o){this.startState=t,this.changes=e,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&z(n,e.newLength),i.some(t=>t.type==tp.time)||(this.annotations=i.concat(tp.time.of(Date.now())))}static create(t,e,n,r,i,o){return new tp(t,e,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(tp.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function tm(t,e,n){var r;let i,o,s;return n?(i=e.changes,o=E.empty(e.changes.length),s=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),s=t.changes.compose(i)),{changes:s,selection:e.selection?e.selection.map(o):null===(r=t.selection)||void 0===r?void 0:r.map(i),effects:td.mapEffects(t.effects,i).concat(td.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function tg(t,e,n){let r=e.selection,i=tv(e.annotations);return e.userEvent&&(i=i.concat(tp.userEvent.of(e.userEvent))),{changes:e.changes instanceof E?e.changes:E.of(e.changes||[],n,t.facet(to)),selection:r&&(r instanceof $?r:$.single(r.anchor,r.head)),effects:tv(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}tp.time=tu.define(),tp.userEvent=tu.define(),tp.addToHistory=tu.define(),tp.remote=tu.define();let ty=[];function tv(t){return null==t?ty:Array.isArray(t)?t:[t]}var tb=((T=tb||(tb={}))[T.Word=0]="Word",T[T.Space=1]="Space",T[T.Other=2]="Other",T);let tx=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}class t_{constructor(t,e,n,r,i,o){this.config=t,this.doc=e,this.selection=n,this.values=r,this.status=t.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let t=0;t<this.config.dynamicSlots.length;t++)te(this,t<<1);this.computeSlot=null}field(t,e=!0){let n=this.config.address[t.id];if(null==n){if(e)throw RangeError("Field is not present in this state");return}return te(this,n),tn(this,n)}update(...t){return function t(e,n,r){let i=tg(e,n.length?n[0]:{},e.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let t=1;t<n.length;t++){!1===n[t].filter&&(r=!1);let o=!!n[t].sequential;i=tm(i,tg(e,n[t],o?i.changes.newLength:e.doc.length),o)}let o=tp.create(e,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(t){let e=t.startState,n=e.facet(tl),r=t;for(let i=n.length-1;i>=0;i--){let o=n[i](t);o&&Object.keys(o).length&&(r=tm(r,tg(e,o,t.changes.newLength),!0))}return r==t?t:tp.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(e){let n=e.startState,r=!0;for(let t of n.facet(ts)){let n=t(e);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(t,e){let n=[];for(let r=0,i=0;;){let o,s;if(r<t.length&&(i==e.length||e[i]>=t[r]))o=t[r++],s=t[r++];else{if(!(i<e.length))return n;o=e[i++],s=e[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}(r,n))}if(!0!==r){let t,i;if(!1===r)i=e.changes.invertedDesc,t=E.empty(n.doc.length);else{let n=e.changes.filter(r);t=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}e=tp.create(n,t,e.selection&&e.selection.map(i),td.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let i=n.facet(ta);for(let r=i.length-1;r>=0;r--){let o=i[r](e);e=o instanceof tp?o:Array.isArray(o)&&1==o.length&&o[0]instanceof tp?o[0]:t(n,tv(o),!1)}return e}(o):o)}(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(K.reconfigure)?(n&&(i=new Map,n.compartments.forEac
vendor: 4,368 bytes, line 25
25h((t,e)=>i.set(e,t)),n=null),i.set(e.value.compartment,e.value.extension)):e.is(td.reconfigure)?(n=null,r=e.value):e.is(td.appendConfig)&&(n=null,r=tv(r).concat(e.value));e=n?t.startState.values.slice():new t_(n=tt.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values;let o=t.startState.facet(ti)?t.newSelection:t.newSelection.asSingle();new t_(n,t.newDoc,o,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:$.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),r=this.changes(n.changes),i=[n.range],o=tv(n.effects);for(let n=1;n<e.ranges.length;n++){let s=t(e.ranges[n]),a=this.changes(s.changes),l=a.map(r);for(let t=0;t<n;t++)i[t]=i[t].map(l);let c=r.mapDesc(a,!0);i.push(s.range.map(c)),r=r.compose(l),o=td.mapEffects(o,l).concat(td.mapEffects(tv(s.effects),c))}return{changes:r,selection:$.create(i,e.mainIndex),effects:o}}changes(t=[]){return t instanceof E?t:E.of(t,this.doc.length,this.facet(t_.lineSeparator))}toText(t){return f.of(t.split(this.facet(t_.lineSeparator)||A))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(te(this,e),tn(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let r=t[n];r instanceof W&&null!=this.config.address[r.id]&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}static fromJSON(t,e={},n){if(!t||"string"!=typeof t.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let e in n)if(Object.prototype.hasOwnProperty.call(t,e)){let i=n[e],o=t[e];r.push(i.init(t=>i.spec.fromJSON(o,t)))}}return t_.create({doc:t.doc,selection:$.fromJSON(t.selection),extensions:e.extensions?r.concat([e.extensions]):r})}static create(t={}){let e=tt.resolve(t.extensions||[],new Map),n=t.doc instanceof f?t.doc:f.of((t.doc||"").split(e.staticFacet(t_.lineSeparator)||A)),r=t.selection?t.selection instanceof $?t.selection:$.single(t.selection.anchor,t.selection.head):$.single(0);return z(r,n.length),e.staticFacet(ti)||(r=r.asSingle()),new t_(e,n,r,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(t_.tabSize)}get lineBreak(){return this.facet(t_.lineSeparator)||"\n"}get readOnly(){return this.facet(tc)}phrase(t,...e){for(let e of this.facet(t_.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>e.length?t:e[r-1]})),t}languageDataAt(t,e,n=-1){let r=[];for(let i of this.facet(tr))for(let o of i(this,e,n))Object.prototype.hasOwnProperty.call(o,t)&&r.push(o[t]);return r}charCategorizer(t){var e;let n=this.languageDataAt("wordChars",t);return e=n.length?n[0]:"",t=>{if(!/\S/.test(t))return tb.Space;if(function(t){if(r)return r.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||tx.test(n)))return!0}return!1}(t))return tb.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return tb.Word;return tb.Other}}wordAt(t){let{text:e,from:n,length:r}=this.doc.lineAt(t),i=this.charCategorizer(t),o=t-n,s=t-n;for(;o>0;){let t=_(e,o,!1);if(i(e.slice(t,o))!=tb.Word)break;o=t}for(;s<r;){let t=_(e,s);if(i(e.slice(s,t))!=tb.Word)break;s=t}return o==s?null:$.range(o+n,s+n)}}function tw(t,e,n={}){let r={};for(let e of t)for(let t of Object.keys(e)){let i=e[t],o=r[t];if(void 0===o)r[t]=i;else if(o===i||void 0===i);else if(Object.hasOwnProperty.call(n,t))r[t]=n[t](o,i);else throw Error("Config merge conflict for field "+t)}for(let t in e)void 0===r[t]&&(r[t]=e[t]);return r}t_.allowMultipleSelections=ti,t_.tabSize=B.define({combine:t=>t.length?t[0]:4}),t_.lineSeparator=to,t_.readOnly=tc,t_.phrases=B.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(n=>t[n]==e[n])}}),t_.languageData=tr,t_.changeFilter=ts,t_.transactionFilter=ta,t_.transactionExtender=tl,K.reconfigure=td.define();class tk{eq(t){return this==t}range(t,e=t){return tA.create(t,e,this)}}function tS(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}tk.prototype.startSide=tk.prototype.endSide=0,tk.prototype.point=!1,tk.prototype.mapM
vendor: 4,132 bytes, line 25
25ode=C.TrackDel;class tA{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tA(t,e,n)}}function tM(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tT{constructor(t,e,n,r){this.from=t,this.to=e,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-t||(n?this.value[r].endSide:this.value[r].startSide)-e;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(t,e,n,r){for(let i=this.findIndex(e,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+t,this.to[i]+t,this.value[i]))return!1}map(t,e){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l=this.value[a],c=this.from[a]+t,u=this.to[a]+t,h,f;if(c==u){let t=e.mapPos(c,l.startSide,l.mapMode);if(null==t||(h=f=t,l.startSide!=l.endSide&&(f=e.mapPos(c,l.endSide))<h))continue}else if((h=e.mapPos(c,l.startSide))>(f=e.mapPos(u,l.endSide))||h==f&&l.startSide>0&&l.endSide<=0)continue;0>(f-h||l.endSide-l.startSide)||(o<0&&(o=h),l.point&&(s=Math.max(s,f-h)),n.push(l),r.push(h-o),i.push(f-o))}return{mapped:n.length?new tT(r,i,n,s):null,pos:o}}}class tC{constructor(t,e,n,r){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=r}static create(t,e,n,r){return new tC(t,e,n,r)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=t,o=t.filter;if(0==e.length&&!o)return this;if(n&&(e=e.slice().sort(tM)),this.isEmpty)return e.length?tC.of(e):this;let s=new tN(this,null,-1).goto(0),a=0,l=[],c=new tD;for(;s.value||a<e.length;)if(a<e.length&&(s.from-e[a].from||s.startSide-e[a].value.startSide)>=0){let t=e[a++];c.addInner(t.from,t.to,t.value)||l.push(t)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==e.length||this.chunkEnd(s.chunkIndex)<e[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&!c.addInner(s.from,s.to,s.value)&&l.push(tA.create(s.from,s.to,s.value)),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?tC.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],s=this.chunk[i],a=t.touchesRange(o,o+s.length);if(!1===a)r=Math.max(r,s.maxPoint),e.push(s),n.push(t.mapPos(o));else if(!0===a){let{mapped:i,pos:a}=s.map(o,t);i&&(r=Math.max(r,i.maxPoint),e.push(i),n.push(a))}}let i=this.nextLayer.map(t);return 0==e.length?i:new tC(n,e,i||tC.empty,r)}between(t,e,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(e>=i&&t<=i+o.length&&!1===o.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tO.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tO.from(t).goto(e)}static compare(t,e,n,r,i=-1){let o=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i),s=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=i),a=tE(o,s,n),l=new tP(o,a,i),c=new tP(s,a,i);n.iterGaps((t,e,n)=>tZ(l,t,c,e,n,r)),n.empty&&0==n.length&&tZ(l,0,c,0,0,r)}static eq(t,e,n=0,r){null==r&&(r=999999999);let i=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),o=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=tE(i,o),a=new tP(i,s,0).goto(n),l=new tP(o,s,0).goto(n);for(;;){if(a.to!=l.to||!tL(a.active,l.active)||a.point&&(!l.point||!tS(a.point,l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(t,e,n,r,i=-1){let o=new tP(t,null,i).goto(e),s=e,a=o.openStart;for(;;){let t=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<e?n.length+1:o.point.startSide<0?n.length:Math.min(n.length,a);
vendor: 5,139 bytes, line 25
25r.point(s,t,o.point,n,i,o.pointRank),a=Math.min(o.openEnd(t),n.length)}else t>s&&(r.span(s,t,o.active,a),a=o.openEnd(t));if(o.to>n)return a+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(t,e=!1){let n=new tD;for(let r of t instanceof tA?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(tM(e,r)>0)return t.slice().sort(tM);e=r}return t}(t):t)n.add(r.from,r.to,r.value);return n.finish()}static join(t){if(!t.length)return tC.empty;let e=t[t.length-1];for(let n=t.length-2;n>=0;n--)for(let r=t[n];r!=tC.empty;r=r.nextLayer)e=new tC(r.chunkPos,r.chunk,e,Math.max(r.maxPoint,e.maxPoint));return e}}tC.empty=new tC([],[],null,-1),tC.empty.nextLayer=tC.empty;class tD{finishChunk(t){this.chunks.push(new tT(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new tD)).add(t,e,n)}addInner(t,e,n){let r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(tC.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=tC.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tE(t,e,n){let r=new Map;for(let e of t)for(let t=0;t<e.chunk.length;t++)e.chunk[t].maxPoint<=0&&r.set(e.chunk[t],e.chunkPos[t]);let i=new Set;for(let t of e)for(let e=0;e<t.chunk.length;e++){let o=r.get(t.chunk[e]);null==o||(n?n.mapPos(o):o)!=t.chunkPos[e]||(null==n?void 0:n.touchesRange(o,o+t.chunk[e].length))||i.add(t.chunk[e])}return i}class tN{constructor(t,e,n,r=0){this.layer=t,this.skip=e,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,n){for(;this.chunkIndex<this.layer.chunk.length;){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(t,e){0>(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class tO{constructor(t){this.heap=t}static from(t,e=null,n=-1){let r=[];for(let i=0;i<t.length;i++)for(let o=t[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new tN(o,e,n,i));return 1==r.length?r[0]:new tO(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)tI(this.heap,t);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)tI(this.heap,t);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tI(this.heap,0)}}}function tI(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];
25if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),0>n.compare(i))break;t[r]=n,t[e]=i,e=r}}class tP{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tO.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tR(this.active,t),tR(this.activeTo,t),tR(this.activeRank,t),this.minActive=tz(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:r,rank:i}=this.cursor;for(;e<this.activeRank.length&&(i-this.activeRank[e]||r-this.activeTo[e])>0;)e++;t$(this.active,e,n),t$(this.activeTo,e,r),t$(this.activeRank,e,i),t&&t$(t,e,this.cursor.from),this.minActive=tz(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&tR(n,r)}else if(this.cursor.value){if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(n),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let e=n.length-1;e>=0&&n[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tZ(t,e,n,r,i,o){t.goto(e),n.goto(r);let s=r+i,a=r,l=r-e,c=!!o.boundChange;for(let e=!1;;){let r=t.to+l-n.to,i=r||t.endSide-n.endSide,u=i<0?t.to+l:n.to,h=Math.min(u,s);if(t.point||n.point?(t.point&&n.point&&tS(t.point,n.point)&&tL(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(a,h,t.point,n.point),e=!1):(e&&o.boundChange(a),h>a&&!tL(t.active,n.active)&&o.compareRange(a,h,t.active,n.active),c&&h<s&&(r||t.openEnd(u)!=n.openEnd(u))&&(e=!0)),u>s)break;a=u,i<=0&&t.next(),i>=0&&n.next()}}function tL(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!tS(t[n],e[n]))return!1;return!0}function tR(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function t$(t,e,n){for(let n=t.length-1;n>=e;n--)t[n+1]=t[n];t[e]=n}function tz(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)0>(e[i]-r||t[i].endSide-t[n].endSide)&&(n=i,r=e[i]);return n}function tj(t,e,n=t.length){let r=0;for(let i=0;i<n&&i<t.length;)9==t.charCodeAt(i)?(r+=e-r%e,i++):(r++,i=_(t,i));return r}function tB(t,e,n,r){for(let r=0,i=0;;){if(i>=e)return r;if(r==t.length)break;i+=9==t.charCodeAt(r)?n-i%n:1,r=_(t,r)}return!0===r?-1:t.length}},91641:function(t,e,n){"use strict";var r,i;n.d(e,{Jq:function(){return h},L3:function(){return o},Lj:function(){return f},_b:function(){return P},i9:function(){return I},md:function(){return l},mp:function(){return m},vj:function(){return r}});let o=1024,s=0;class a{constructor(t,e){this.from=t,this.to=e}}class l{constructor(t={}){this.id=s++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=h.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:t=>t.split(" ")}),l.openedBy=new l({deserialize:t=>t.split(" ")}),l.group=new l({deserialize:t=>t.split(" ")}),l.isolate=new l({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw RangeError("Invalid value for isolate: "+t);return t||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class c{constructor(t,e,n,r=!1){this.tree=t,this.overlay=e,this.parser=n,this.bracketed=r}static get(t){return t&&t.props&&t.props[l.mounted.id]}}let u=Object.create(null);class h{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):u,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),r=new h(t.name||"",e,t.id,n);if(t.props){for(let n of t.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(l.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(l.group),r=-1;r<(n?n.length:0);r++){let i=e[r<0?t.name:n[r]];if(i)return i}}}}h.none=new h("",Object.create(null),0,8);class f{constructor(t){this.types=t;
25for(let e=0;e<t.length;e++)if(t[e].id!=e)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);if(t){r||(r=Object.assign({},n.props));let e=t[1],i=t[0];i.combine&&i.id in r&&(e=i.combine(r[i.id],e)),r[i.id]=e}}e.push(r?new h(n.name,r,n.id,n.flags):n)}return new f(e)}}let d=new WeakMap,p=new WeakMap;(i=r||(r={}))[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed";class m{constructor(t,e,n,r,i){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[t,e]of(this.props=Object.create(null),i))this.props["number"==typeof t?t:t.id]=e}toString(){let t=c.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.t
25ype.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new C(this.topNode,t)}cursorAt(t,e=0,n=0){let r=new C(d.get(this)||this.topNode);return r.moveTo(t,e),d.set(this,r._tree),r}get topNode(){return new _(this,0,0,null)}resolve(t,e=0){let n=b(d.get(this)||this.topNode,t,e,!1);return d.set(this,n),n}resolveInner(t,e=0){let n=b(p.get(this)||this.topNode,t,e,!0);return p.set(this,n),n}resolveStack(t,e=0){return function(t,e,n){let r=t.resolveInner(e,n),i=null;for(let t=r instanceof _?r:r.context.parent;t;t=t.parent)if(t.index<0){let o=t.parent;(i||(i=[r])).push(o.resolve(e,n)),t=o}else{let o=c.get(t.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new _(o.tree,o.overlay[0].from+t.from,-1,t);(i||(i=[r])).push(b(s,e,n,!1))}}return i?M(i):r}(this,t,e)}iterate(t){let{enter:e,leave:n,from:i=0,to:o=this.length}=t,s=t.mode||0,a=(s&r.IncludeAnonymous)>0;for(let t=this.cursor(s|r.IncludeAnonymous);;){let r=!1;if(t.from<=o&&t.to>=i&&(!a&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;r=!0}for(;r&&n&&(a||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;r=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:O(h.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new m(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new m(h.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=o,reused:s=[],minRepeatType:a=r.types.length}=t,c=Array.isArray(n)?new g(n,n.length):n,u=r.types,h=0,f=0;function d(t,e,n,i,o,s,a,l,c){let u=[],h=[];for(;t.length>i;)u.push(t.pop()),h.push(e.pop()+n-o);t.push(p(r.types[a],u,h,s-o,l-s,c)),e.push(o-n)}function p(t,e,n,r,i,o,s){if(o){let t=[l.contextHash,o];s=s?[t].concat(s):[t]}if(i>25){let t=[l.lookAhead,i];s=s?[t].concat(s):[t]}return new m(t,e,n,r,s)}let v=[],b=[];for(;c.pos>0;)!function t(e,n,o,g,v,b){let{id:x,start:_,end:w,size:k}=c,S=f,A=h;if(k<0){if(c.next(),-1==k){let t=s[x];o.push(t),g.push(_-e);return}if(-3==k){h=x;return}if(-4==k){f=x;return}throw RangeError(`Unrecognized record size: ${k}`)}let M=u[x],T,C,D=_-e;if(w-_<=i&&(C=function(t,e){let n=c.fork(),r=0,o=0,s=0,l=n.end-i,u={size:0,start:0,skip:0};n:for(let i=n.pos-t;n.pos>i;){let t=n.size;if(n.id==e&&t>=0){u.size=r,u.start=o,u.skip=s,s+=4,r+=4,n.next();continue}let c=n.pos-t;if(t<0||c<i||n.start<l)break;let h=n.id>=a?4:0,f=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3==n.size||-4==n.size)h+=4;else break n}else n.id>=a&&(h+=4);n.next()}o=f,r+=t,s+=h}return(e<0||r==t)&&(u.size=r,u.start=o,u.skip=s),u.size>4?u:void 0}(c.pos-n,v))){let t=new Uint16Array(C.size-C.skip),n=c.pos-C.size,i=t.length;for(;c.pos>n;)i=function t(e,n,r){let{id:i,start:o,end:s,size:l}=c;if(c.next(),l>=0&&i<a){let a=r;if(l>4){let i=c.pos-(l-4);for(;c.pos>i;)r=t(e,n,r)}n[--r]=a,n[--r]=s-e,n[--r]=o-e,n[--r]=i}else -3==l?h=i:-4==l&&(f=i);return r}(C.start,t,i);T=new y(t,w-C.start,r),D=C.start-e}else{let e=c.pos-k;c.next();let n=[],o=[],s=x>=a?x:-1,u=0,h=w;for(;c.pos>e;)s>=0&&c.id==s&&c.size>=0?(c.end<=h-i&&(d(n,o,_,u,c.end,h,s,S,A),u=n.length,h=c.end),c.next()):b>2500?function(t,e,n,o){let s=[],a=0,l=-1;for(;c.pos>e;){let{id:t,start:e,end:n,size:r}=c;if(r>4)c.next();else if(l>-1&&e<l)break;else l<0&&(l=n-i),s.push(t,e,n),a++,c.next()}if(a){let e=new Uint16Array(4*a),i=s[s.length-2];for(let t=s.length-3,n=0;t>=0;t-=3)e[n++]=s[t],e[n++]=s[t+1]-i,e[n++]=s[t+2]-i,e[n++]=n;n.push(new y(e,s[2]-i,r)),o.push(i-t)}}(_,e,n,o):t(_,e,n,o,s,b+1);if(s>=0&&u>0&&u<n.length&&d(n,o,_,u,_,h,s,S,A),n.reverse(),o.reverse(),s>-1&&u>0){let t=function(t,e){return(n,r,i)=>{let o=0,s=n.length-1,a,c;if(s>=0&&(a=n[s])instanceof m){if(!s&&a.type==t&&a.length==i)return a;(c=a.prop(l.lookAhead))&&(o=r[s]+a.length+c)}return p(t,n,r,i,o,e)}}(M,A);T=O(M,n,o,0,n.length,0,w-_,t,t)}else T=p(M,n,o,w-_,S-w,A)}o.push(T),g.push(D)}(t.start||0,t.bufferStart||0,v,b,-1,0);let x=null!==(e=t.length)&&void 0!==e?e:v.length?b[0]+v[0].length:0;return new m(u[t.topID],v.reverse(),b.reverse(),x)}(t)}}m.empty=new m(h.none,[],[],0);class g{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class y{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return h.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],i=r.name;
vendor: 4,707 bytes, line 25
25if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(t+=4))return i;let o=[];for(;t<n;)o.push(this.childString(t)),t=this.buffer[t+3];return i+"("+o.join(",")+")"}findChild(t,e,n,r,i){let{buffer:o}=this,s=-1;for(let a=t;a!=e&&(!v(i,r,o[a+1],o[a+2])||(s=a,!(n>0)));a=o[a+3]);return s}slice(t,e,n){let r=this.buffer,i=new Uint16Array(e-t),o=0;for(let s=t,a=0;s<e;){i[a++]=r[s++],i[a++]=r[s++]-n;let e=i[a++]=r[s++]-n;i[a++]=r[s++]-t,o=Math.max(o,e)}return new y(i,o,this.set)}}function v(t,e,n,r){switch(t){case -2:return n<e;case -1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function b(t,e,n,i){for(var o;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!i&&t instanceof _&&t.index<0?null:t.parent;if(!e)return t;t=e}let s=i?0:r.IgnoreOverlays;if(i)for(let r=t,i=r.parent;i;i=(r=i).parent)r instanceof _&&r.index<0&&(null===(o=i.enter(e,n,s))||void 0===o?void 0:o.from)!=r.from&&(t=i);for(;;){let r=t.enter(e,n,s);if(!r)return t;t=r}}class x{cursor(t=0){return new C(this,t)}getChild(t,e=null,n=null){let r=w(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return w(this,t,e,n)}resolve(t,e=0){return b(this,t,e,!1)}resolveInner(t,e=0){return b(this,t,e,!0)}matchContext(t){return k(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class _ extends x{constructor(t,e,n,r){super(),this._tree=t,this.from=e,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,n,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,u=e>0?a.length:-1;t!=u;t+=e){let u=a[t],h=l[t]+s.from,f;if(o&r.EnterBracketed&&u instanceof m&&(f=c.get(u))&&!f.overlay&&f.bracketed&&n>=h&&n<=h+u.length||v(i,n,h,h+u.length)){if(u instanceof y){if(o&r.ExcludeBuffers)continue;let a=u.findChild(0,u.buffer.length,e,n-h,i);if(a>-1)return new A(new S(s,u,t,h),null,a)}else if(o&r.IncludeAnonymous||!u.type.isAnonymous||D(u)){let a;if(!(o&r.IgnoreMounts)&&(a=c.get(u))&&!a.overlay)return new _(a.tree,h,t,s);let l=new _(u,h,t,s);return o&r.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(e<0?u.children.length-1:0,e,n,i,o)}}}if(o&r.IncludeAnonymous||!s.type.isAnonymous||(t=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,!(s=s._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,n=0){let i;if(!(n&r.IgnoreOverlays)&&(i=c.get(this._tree))&&i.overlay){let o=t-this.from,s=n&r.EnterBracketed&&i.bracketed;for(let{from:t,to:n}of i.overlay)if((e>0||s?t<=o:t<o)&&(e<0||s?n>=o:n>o))return new _(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w(t,e,n,r){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(null!=n){for(let t=!1;!t;)if(t=i.type.is(n),!i.nextSibling())return o}for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function k(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class S{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class A extends x{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new A(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}
vendor: 1,658 bytes, line 25
25prop(t){return this.type.prop(t)}enter(t,e,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return o<0?null:new A(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new A(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new A(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];t.push(n.slice(r,i,o)),e.push(0)}return new m(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function M(t){if(!t.length)return null;let e=0,n=t[0];for(let r=1;r<t.length;r++){let i=t[r];(i.from>n.from||i.to<n.to)&&(n=i,e=r)}let r=n instanceof _&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new T(i,n)}class T{constructor(t,e){this.heads=t,this.node=e}get next(){return M(this.heads)}}class C{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~r.EnterBracketed,t instanceof _)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;
vendor: 8,711 bytes, line 25
25for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof _?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(i.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=i)}else({index:e,_parent:n}=this._tree);for(;n;{index:e,_parent:n}=n)if(e>-1)for(let i=e+t,o=t<0?-1:n._tree.children.length;i!=o;i+=t){let t=n._tree.children[i];if(this.mode&r.IncludeAnonymous||t instanceof y||!t.type.isAnonymous||D(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)n:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=t;o;o=o._parent)if(o.index==r){if(r==this.index)return o;e=o,n=i+1;break n}r=this.stack[--i]}for(let t=n;t<this.stack.length;t++)e=new A(this.buffer,e,this.stack[t]);return this.bufferNode=new A(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&e&&e(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return k(this.node.parent,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return k(this._tree,t,r);let o=n[e.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[r]&&t[r]!=o.name)return!1;r--}}return!0}}function D(t){return t.children.some(t=>t instanceof y||!t.type.isAnonymous||D(t))}let E=new WeakMap;function N(t,e){if(!t.isAnonymous||e instanceof y||e.type!=t)return 1;let n=E.get(e);if(null==n){for(let r of(n=1,e.children)){if(r.type!=t||!(r instanceof m)){n=1;break}n+=N(t,r)}E.set(e,n)}return n}function O(t,e,n,r,i,o,s,a,l){let c=0;for(let n=r;n<i;n++)c+=N(t,e[n]);let u=Math.ceil(1.5*c/8),h=[],f=[];return!function e(n,r,i,s,a){for(let c=i;c<s;){let i=c,d=r[c],p=N(t,n[c]);for(c++;c<s;c++){let e=N(t,n[c]);if(p+e>=u)break;p+=e}if(c==i+1){if(p>u){let t=n[i];e(t.children,t.positions,0,t.children.length,r[i]+a);continue}h.push(n[i])}else{let e=r[c-1]+n[c-1].length-d;h.push(O(t,n,r,i,c,d,e,null,l))}f.push(d+a-o)}}(e,n,r,i,0),(a||l)(h,f,s)}class I{constructor(t,e,n,r,i=!1,o=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new I(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&r.push(n);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],i=1,o=t.length?t[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<e.length?e[s]:null,u=c?c.fromA:1e9;if(u-a>=n)for(;o&&o.from<u;){let e=o;if(a>=e.from||u<=e.to||l){let t=Math.max(e.from,a)-l,n=Math.min(e.to,u)-l;e=t>=n?null:new I(t,n,e.tree,e.offset+l,s>0,!!c)}if(e&&r.push(e),o.to>u)break;o=i<t.length?t[i++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return r}}class P{startParse(t,e,n){return"string"==typeof t&&(t=new Z(t)),n=n?n.length?n.map(t=>new a(t.from,t.to)):[new a(0,0)]:[new a(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class Z{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new l({perNode:!0})},58606:function(t,e,n){"use strict";n.d(e,{Gv:function(){return l},QR:function(){return h},bW:function(){return f},pJ:function(){return D}});var r=n(91641);let i=0;class o{constructor(t,e,n,r){this.name=t,this.set=e,this.base=n,this.modified=r,this.id=i++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){if(t instanceof o&&(e=t),null==e?void 0:e.base)throw Error("Can not derive from a modified tag");let n=new o("string"==typeof t?t:"?",[],null,[]);if(n.set.push(n),e)for(let t of e.set)n.set.push(t);return n}static defineModifier(t){let e=new a(t);return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort((t,e)=>t.id-e.id))}}let s=0;class a{constructor(t){this.name=t,this.instances=[],this.id=s++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{var r;return n.base==t&&(r=n.modified,e.length==r.length&&e.every((t,e)=>t==r[e]))});if(n)return n;let r=[],i=new o(t.name,r,t,e);for(let t of e)t.instances.push(i);let s=function(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of s)r.push(a.get(e,t));return i}}function l(t){let e=Object.create(null);for(let n in t){let r=t[n];for(let t of(Array.isArray(r)||(r=[r]),n.split(" ")))if(t){let n=[],i=2,o=t;for(let e=0;;){if("..."==o&&e>0&&e+3==t.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw RangeError("Invalid path: "+t);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(e+=r[0].length)==t.length)break;let s=t[e++];if(e==t.length&&"!"==s){i=0;break}if("/"!=s)throw RangeError("Invalid path: "+t);o=t.slice(e)}let s=n.length-1,a=n[s];if(!a)throw RangeError("Invalid path: "+t);let l=new u(r,i,s>0?n.slice(0,s):null);e[a]=l.sort(e[a])}}return c.add(e)}let c=new r.md({combine(t,e){let n,r,i;for(;t||e;){if(!t||e&&t.depth>=e.depth?(i=e,e=e.next):(i=t,t=t.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new u(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});class u{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function h(t,e){let n=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)n[t.id]=e.class;else n[e.tag.id]=e.class;let{scope:r,all:i=null}=e||{};return{style:t=>{let e=i;for(let r of t)for(let t of r.set){let r=n[t.id];if(r){e=e?e+" "+r:r;break}}return e},scope:r}}function f(t,e,n,r=0,i=t.length){let o=new d(r,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),r,i,"",o.highlighters),o.flush(i)}u.empty=new u([],2,null);class d{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}
25startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,i,o){let{type:s,from:a,to:l}=t;if(a>=n||l<=e)return;s.isTop&&(o=this.highlighters.filter(t=>!t.scope||t.scope(s)));let h=i,f=function(t){let e=t.type.prop(c);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||u.empty,d=function(t,e){let n=null;for(let r of t){let t=r.style(e);t&&(n=n?n+" "+t:t)}return n}(o,f.tags);if(d&&(h&&(h+=" "),h+=d,1==f.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(e,a),h),f.opaque)return;let p=t.tree&&t.tree.prop(r.md.mounted);if(p&&p.overlay){let r=t.node.enter(p.overlay[0].from+a,1),s=this.highlighters.filter(t=>!t.scope||t.scope(p.tree.type)),c=t.firstChild();for(let u=0,f=a;;u++){let d=u<p.overlay.length?p.overlay[u]:null,m=d?d.from+a:l,g=Math.max(e,f),y=Math.min(n,m);if(g<y&&c)for(;t.from<y&&(this.highlightRange(t,g,y,i,o),this.startSpan(Math.min(y,t.to),h),!(t.to>=m)&&t.nextSibling()););if(!d||m>n)break;(f=d.to+a)>e&&(this.highlightRange(r.cursor(),Math.max(e,d.from+a),Math.min(n,f),"",s),this.startSpan(Math.min(n,f),h))}c&&t.parent()}else if(t.firstChild()){p&&(i="");do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,i,o),this.startSpan(Math.min(n,t.to),h)}while(t.nextSibling());t.parent()}}}let p=o.define,m=p(),g=p(),y=p(g),v=p(g),b=p(),x=p(b),_=p(b),w=p(),k=p(w),S=p(),A=p(),M=p(),T=p(M),C=p(),D={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:y,tagName:p(y),propertyName:v,attributeName:p(v),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:b,string:x,docString:p(x),character:p(x),attributeValue:p(x),number:_,integer:p(_),float:p(_),bool:p(b),regexp:p(b),escape:p(b),color:p(b),url:p(b),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:A,derefOperator:p(A),arithmeticOperator:p(A),logicOperator:p(A),bitwiseOperator:p(A),compareOperator:p(A),updateOperator:p(A),definitionOperator:p(A),typeOperator:p(A),controlOperator:p(A),punctuation:M,separator:p(M),bracket:T,angleBracket:p(T),squareBracket:p(T),paren:p(T),brace:p(T),content:w,heading:k,heading1:p(k),heading2:p(k),heading3:p(k),heading4:p(k),heading5:p(k),heading6:p(k),contentSeparator:p(w),list:p(w),quote:p(w),emphasis:p(w),strong:p(w),link:p(w),monospace:p(w),strikethrough:p(w),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:C,documentMeta:p(C),annotation:p(C),processingInstruction:p(C),definition:o.defineModifier("definition"),constant:o.defineModifier("constant"),function:o.defineModifier("function"),standard:o.defineModifier("standard"),local:o.defineModifier("local"),special:o.defineModifier("special")};for(let t in D){let e=D[t];e instanceof o&&(e.name=t)}h([{tag:D.link,class:"tok-link"},{tag:D.heading,class:"tok-heading"},{tag:D.emphasis,class:"tok-emphasis"},{tag:D.strong,class:"tok-strong"},{tag:D.keyword,class:"tok-keyword"},{tag:D.atom,class:"tok-atom"},{tag:D.bool,class:"tok-bool"},{tag:D.url,class:"tok-url"},{tag:D.labelName,class:"tok-labelName"},{tag:D.inserted,class:"tok-inserted"},{tag:D.deleted,class:"tok-deleted"},{tag:D.literal,class:"tok-literal"},{tag:D.string,class:"tok-string"},{tag:D.number,class:"tok-number"},{tag:[D.regexp,D.escape,D.special(D.string)],class:"tok-string2"},{tag:D.variableName,class:"tok-variableName"},{tag:D.local(D.variableName),class:"tok-variableName tok-local"},{tag:D.definition(D.variableName),class:"tok-variableName tok-definition"},{tag:D.special(D.variableName),class:"tok-variableName2"},{tag:D.definition(D.propertyName),class:"tok-propertyName tok-definition"},{tag:D.typeName,class:"tok-typeName"},{tag:D.namespace,class:"tok-namespace"},{tag:D.className,class:"tok-className"},{tag:D.macroName,class:"tok-macroName"},{tag:D.propertyName,class:"tok-propertyName"},{tag:D.operator,class:"tok-operator"},{tag:D.comment,class:"tok-comment"},{tag:D.meta,class:"tok-meta"},{tag:D.invalid,class:"tok-invalid"},{tag:D.punctuation,class:"tok-punctuation"}])},76711:function(t,e,n){"use strict";n.d(e,{Xy:function(){return tE}});var r=n(23131),i=n(68341),o=n(6250),s=n(91641);function a(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return!!i&&(r(n.update(i)),!0)}}let l=a(function(t,e,n=e.selection.ranges){let r=[],i=-1;r:for(let{from:t,to:o}of n){let n=r.length,s=1e9,a;for(let n=t;n<=o;){let l=e.doc.lineAt(n);if(void 0==a&&!(a=h(e,l.from).line))continue r;if(l.from>i&&(t==o||o>l.from)){i=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+a.length)==a?t:-1;t<l.text.length&&t<s&&(s=t),r.push({line:l,comment:n,token:a,indent:t,empty:e,single:!1})}n=l.to+1}if(s<1e9)for(let t=n;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=s);r.length==n+1&&(r[n].single=!0)}if(2!=t&&r.some(t=>t.comment<0&&(!t.empty||t.single))){let t=[];for(let{line:e,token:n,indent:i,empty:o,single:s}
25of r)(s||!o)&&t.push({from:e.from+i,insert:n+" "});let n=e.changes(t);return{changes:n,selection:e.selection.map(n,1)}}if(1!=t&&r.some(t=>t.comment>=0)){let t=[];for(let{line:e,comment:n,token:i}of r)if(n>=0){let r=e.from+n,o=r+i.length;" "==e.text[o-e.from]&&o++,t.push({from:r,to:o})}return{changes:t}}return null},0),c=a(f,0),u=a((t,e)=>f(t,e,function(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:t.doc.lineAt(n.to-1));let o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}(e)),0);function h(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}function f(t,e,n=e.selection.ranges){let r=n.map(t=>h(e,t.from).block);if(!r.every(t=>t))return null;let i=n.map((t,n)=>(function(t,{open:e,close:n},r,i){let o,s,a=t.sliceDoc(r-50,r),l=t.sliceDoc(i,i+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,h=a.length-c;if(a.slice(h-e.length,h)==e&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=s=t.sliceDoc(r,i):(o=t.sliceDoc(r,r+50),s=t.sliceDoc(i-50,i));let f=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,p=s.length-d-n.length;return o.slice(f,f+e.length)==e&&s.slice(p,p+n.length)==n?{open:{pos:r+f+e.length,margin:/\s/.test(o.charAt(f+e.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null})(e,r[n],t.from,t.to));if(2!=t&&!i.every(t=>t))return{changes:e.changes(n.map((t,e)=>i[e]?[]:[{from:t.from,insert:r[e].open+" "},{from:t.to,insert:" "+r[e].close}]))};if(1!=t&&i.some(t=>t)){let t=[];for(let e=0,n;e<i.length;e++)if(n=i[e]){let i=r[e],{open:o,close:s}=n;t.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:t}}return null}let d=i.q6.define(),p=i.q6.define(),m=i.r$.define(),g=i.r$.define({combine:t=>(0,i.BO)(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,r)=>t(n,r)||e(n,r)})}),y=i.QQ.define({create:()=>E.empty,update(t,e){let n=e.state.facet(g),r=e.annotation(d);if(r){let i=k.fromTransaction(e,r.selection),o=r.side,s=0==o?t.undone:t.done;return s=i?S(s,s.length,n.minDepth,i):T(s,e.startState.selection),new E(0==o?r.rest:s,0==o?s:r.rest)}let o=e.annotation(p);if(("full"==o||"before"==o)&&(t=t.isolate()),!1===e.annotation(i.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let s=k.fromTransaction(e),a=e.annotation(i.YW.time),l=e.annotation(i.YW.userEvent);return s?t=t.addChanges(s,a,l,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,l,n.newGroupDelay)),("full"==o||"after"==o)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new E(t.done.map(k.fromJSON),t.undone.map(k.fromJSON))});function v(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(y,!1);if(!i)return!1;let o=i.pop(t,n,e);return!!o&&(r(o),!0)}}let b=v(0,!1),x=v(1,!1),_=v(0,!0),w=v(1,!0);class k{constructor(t,e,n,r,i){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new k(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new k(t.changes&&i.as.fromJSON(t.changes),[],t.mapped&&i.n0.fromJSON(t.mapped),t.startSelection&&i.jT.fromJSON(t.startSelection),t.selectionsAfter.map(i.jT.fromJSON))}static fromTransaction(t,e){let n=M;for(let e of t.startState.facet(m)){let r=e(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new k(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,M)}static selection(t){return new k(void 0,M,void 0,void 0,t)}}function S(t,e,n,r){let i=t.slice(e+1>n+20?e-n-1:0,e);return i.push(r),i}function A(t,e){return t.length?e.length?t.concat(e):t:e}let M=[];function T(t,e){if(!t.length)return[k.selection([e])];{let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),S(t,t.length-1,1e9,n.setSelAfter(r)))}}function C(t,e){if(!t.length)return t;let n=t.length,r=M;for(;n;){let o=function(t,e,n){let r=A(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):M,n);if(!t.changes)return k.selection(r);let o=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new k(o,i.Py.mapEffects(t.effects,e),a,t.startSelection.map(s),r)}(t[n-1],e,r);if(o.changes&&!o.changes.empty||o.effects.length){let e=t.slice(0,n);return e[n-1]=o,e}e=o.mapped,n--,r=o.selectionsAfter}return r.length?[k.selection(r)]:M}let D=/^(input\.type|delete)($|\.)/;class E{constructor(t,e,n=0,r){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new E(this.done,this.undone):this}addChanges(t,e,n,r,o){var s,a;let l,c,u=this.done,h=u[u.length-1];return new E(u=h&&h.changes&&!h.changes.empty&&t.changes&&(!n||D.test(n))&&(!
25h.selectionsAfter.length&&e-this.prevTime<r.newGroupDelay&&r.joinToEvent(o,(s=h.changes,a=t.changes,l=[],c=!1,s.iterChangedRanges((t,e)=>l.push(t,e)),a.iterChangedRanges((t,e,n,r)=>{for(let t=0;t<l.length;){let e=l[t++],i=l[t++];r>=e&&n<=i&&(c=!0)}}),c))||"input.type.compose"==n)?S(u,u.length-1,r.minDepth,new k(t.changes.compose(h.changes),A(i.Py.mapEffects(t.effects,h.changes),h.effects),h.mapped,h.startSelection,M)):S(u,u.length,r.minDepth,t),M,e,n)}addSelection(t,e,n,r){var i;let o=this.done.length?this.done[this.done.length-1].selectionsAfter:M;return o.length>0&&e-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=o[o.length-1]).ranges.length==t.ranges.length&&0===i.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length?this:new E(T(this.done,t),this.undone,e,n)}addMapping(t){return new E(C(this.done,t),C(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let r=0==t?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):e.selection);if(n&&i.selectionsAfter.length){let n,s;return e.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:d.of({side:t,rest:(n=r[r.length-1],(s=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),s),selection:o}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0})}if(!i.changes)return null;{let n=1==r.length?M:r.slice(0,r.length-1);return i.mapped&&(n=C(n,i.mapped)),e.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:d.of({side:t,rest:n,selection:o}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}}}function N(t,e){return i.jT.create(t.ranges.map(e),t.mainIndex)}function O(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function I({state:t,dispatch:e},n){let r=N(t.selection,n);return!r.eq(t.selection,!0)&&(e(O(t,r)),!0)}function P(t,e){return i.jT.cursor(e?t.to:t.from)}function Z(t,e){return I(t,n=>n.empty?t.moveByChar(n,e):P(n,e))}function L(t){return t.textDirectionAt(t.state.selection.main.head)==r.Nm.LTR}E.empty=new E(M,M);let R=t=>Z(t,!L(t)),$=t=>Z(t,L(t));function z(t,e){return I(t,n=>n.empty?t.moveByGroup(n,e):P(n,e))}function j(t,e,n){let r,a,l=(0,o.qz)(t).resolveInner(e.head),c=n?s.md.closedBy:s.md.openedBy;for(let r=e.head;;){let e=n?l.childAfter(r):l.childBefore(r);if(!e)break;!function(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}(t,e,c)?r=n?e.to:e.from:l=e}return a=l.type.prop(c)&&(r=n?(0,o.Um)(t,l.from,1):(0,o.Um)(t,l.to,-1))&&r.matched?n?r.end.to:r.end.from:n?l.to:l.from,i.jT.cursor(a,n?-1:1)}function B(t,e){return I(t,n=>{if(!n.empty)return P(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}"undefined"!=typeof Intl&&Intl.Segmenter;let J=t=>B(t,!1),F=t=>B(t,!0);function U(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,i=0,o;if(e){for(let e of t.state.facet(r.tk.scrollMargins)){let r=e(t);(null==r?void 0:r.top)&&(n=Math.max(null==r?void 0:r.top,n)),(null==r?void 0:r.bottom)&&(i=Math.max(null==r?void 0:r.bottom,i))}o=t.scrollDOM.clientHeight-n-i}else o=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:e,height:Math.max(t.defaultLineHeight,o-5)}}function q(t,e){let n,i=U(t),{state:o}=t,s=N(o.selection,n=>n.empty?t.moveVertically(n,e,i.height):P(n,e));if(s.eq(o.selection))return!1;if(i.selfScroll){let e=t.coordsAtPos(o.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+i.marginTop,c=a.bottom-i.marginBottom;e&&e.top>l&&e.bottom<c&&(n=r.tk.scrollIntoView(s.main.head,{y:"start",yMargin:e.top-l}))}return t.dispatch(O(o,s),{effects:n}),!0}let H=t=>q(t,!1),W=t=>q(t,!0);function Y(t,e,n){let r=t.lineBlockAt(e.head),o=t.moveToLineBoundary(e,n);if(o.head==e.head&&o.head!=(n?r.to:r.from)&&(o=t.moveToLineBoundary(e,n,!1)),!n&&o.head==r.from&&r.length){let n=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&e.head!=r.from+n&&(o=i.jT.cursor(r.from+n))}return o}function V(t,e,n){let r=N(t.state.selection,t=>{t.undirectional&&t.head>=t.anchor!=e&&(t=i.jT.range(t.head,t.anchor));let r=n(t);return i.jT.range(t.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return!r.eq(t.state.selection)&&(t.dispatch(O(t.state,r)),!0)}function G(t,e){return V(t,e,n=>t.moveByChar(n,e))}let Q=t=>G(t,!L(t)),K=t=>G(t,L(t));function X(t,e){return V(t,e,n=>t.moveByGroup(n,e))}function tt(t,e){return V(t,e,n=>t.moveVertically(n,e))}let te=t=>tt(t,!1),tn=t=>tt(t,!0);function tr(t,e){return V(t,e,n=>t.moveVertically(n,e,U(t).height))}let ti=t=>tr(t,!1),to=t=>tr(t,!0),ts=({state:t,dispatch:e})=>(e(O(t,{anchor:0})),!0),ta=({state:t,dispatch:e})=>(e(O(t,{anchor:t.doc.length})),!0),tl=({state:t,dispatch:e})=>(e(O(t,{anchor:t.selection.main.anchor,head:0})),!0),tc=({state:t,dispatch:e})=>(e(O(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function tu(t,e){let{state:n}=t,r=n.selection,o=n.selection.ranges.slice();for(let r of n.selection.ranges){let i=n.doc.lineAt(r.head);if(e?i.to<t.state.doc.length:i.from>0)for(let n=r;;){let r=t.moveVertically(n,e);if(r.head<i.from||r.head>i.to){o.some(t=>t.head==r.head)||o.push(r);break}if(r.head==n.head)break;n=r}}return o.length!=r.ranges.length&&(t.dispatch(O(n,i.jT.create(o,o.length-1))),!0)}function th(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:o}=t,s=o.changeByRange(r=>{let{from:o,to:s}=r;if(o==s){let i=e(r);i<o?(n="delete.backward",i=tf(t,i,!1)):i>o&&(n="delete.forward",i=tf(t,i,!0)),o=Math.min(o,i),s=Math.max(s,i)}else o=tf(t,o,!1),s=tf(t,s,!0);return o==s?{range:r}:{changes:{from:o,to:s},range:i.jT.cursor(o,o<r.head?-1:1)}});return!s.changes.empty&&(t.dispatch(o.update(s,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?r.tk.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function tf(t,e,n){if(t instanceof r.tk)for(let i of t.state.facet(r.tk.atomicRanges).map(e=>e(t)))i.between(e,e,(t,r)=>{t<e&&r>e&&(e=n?r:t)});return e}let td=(t,e,n)=>th(t,r=>{let s=r.from,{state:a}=t,l=a.doc.lineAt(s),c,u;if(n&&!e&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(c=l.text.slice(0,s-l.from))){if(" "==c[c.length-1])return s-1;let t=(0,i.IS)(c,a.tabSize)%(0,o.y1)(a)||(0,o.y1)(a);for(let e=0;e<t&&" "==c[c.length-1-e];e++)s--;u=s}else(u=(0,i.cp)(l.text,s-l.from,e,e)+l.from)==s&&l.number!=(e?a.doc.lines:1)?u+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(l.text.slice(u-l.from,s-l.from))&&(u=(0,i.cp)(l.text,u-l.from,!1,!1)+l.from);return u}),tp=t=>td(t,!1,!0),tm=t=>td(t,!0,!1),tg=(t,e)=>th(t,n=>{let r=n.head,{state:o}=t,s=o.doc.lineAt(r),a=o.charCategorizer(r);for(let t=null;;){if(r==(e?s.to:s.from)){r==n.head&&s.number!=(e?o.doc.lines:1)&&(r+=e?1:-1);break}let l=(0,i.cp)(s.text,r-s.from,e)+s.from,c=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),u=a(c);if(null!=t&&u!=t)break;(" "!=c||r!=n.head)&&(t=u),r=l}return r}),ty=t=>tg(t,!1);function tv(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=t.doc.lineAt(r.to-1)),n>=i.number){let t=e[e.length-1];t.to=o.to,t.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function tb(t,e,n){if(t.readOnly)return!1;let r=[],o=[];for(let e of tv(t)){if(n?e.to==t.doc.length:0==e.from)continue;let s=t.doc.lineAt(n?e.to+1:e.from-1),a=s.length+1;if(n)for(let n of(r.push({from:e.to,to:s.to},{from:e.from,insert:s.text+t.lineBreak}),e.ranges))o.push(i.jT.range(Math.min(t.doc.length,n.anchor+a),Math.min(t.doc.length,n.head+a)));else for(let n of(r.push({from:s.from,to:e.from},{from:e.to,insert:t.lineBreak+s.text}),e.ranges))o.push(i.jT.range(n.anchor-a,n.head-a))}return!!r.length&&(e(t.update({changes:r,scrollIntoView:!0,selection:i.jT.create(o,t.selection.mainIndex),userEvent:"move.line"})),!0)}function tx(t,e,n){if(t.readOnly)return!1;let r=[];for(let e of tv(t))n?r.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):r.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});let i=t.changes(r);return e(t.update({changes:i,selection:t.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}let t_=tk(!1),tw=tk(!0);function tk(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(n=>{let{from:r,to:a}=n,l=e.doc.lineAt(r),c=!t&&r==a&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=(0,o.qz)(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),a;return r&&i&&r.to<=e&&i.from>=e&&(a=r.type.prop(s.md.closedBy))&&a.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(e,r);t&&(r=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new o.Gn(e,{simulateBreak:r,simulateDoubleBreak:!!c}),h=(0,o.K0)(u,r);for(null==h&&(h=(0,i.IS)(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));a<l.to&&/\s/.test(l.text[a-l.from]);)a++;c?{from:r,to:a}=c:r>l.from&&r<l.from+100&&!/\S/.test(l.text.slice(0,r))&&(r=l.from);let f=["",(0,o.SS)(e,h)];return c&&f.push((0,o.SS)(e,u.lineIndent(l.from,-1))),{changes:{from:r,to:a,insert:i.xv.of(f)},range:i.jT.cursor(r+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function tS(t,e){let n=-1;return t.changeByRange(r=>{let o=[];for(let i=r.from;i<=r.to;){let s=t.doc.lineAt(i);s.number>n&&(r.empty||r.to>s.from)&&(e(s,o,r),n=s.number),i=s.to+1}let s=t.changes(o);return{changes:o,range:i.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}let tA=[{key:"Ctrl-b",run:R,shift:Q,preventDefault:!0},{key:"Ctrl-f",run:$,shift:K},{key:"Ctrl-p",run:J,shift:te},{key:"Ctrl-n",run:F,shift:tn},{key:"Ctrl-a",run:t=>I(t,e=>i.jT.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>V(t,!1,e=>i.jT.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>I(t,e=>i.jT.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>V(t,!0,e=>i.jT.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:tm},{key:"Ctrl-h",run:tp},{key:"Ctrl-k",run:t=>th(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)})},{key:"Ctrl-Alt-h",run:ty},{key:"Ctrl-o",run:({state:t,dispatch:e})=>
25{if(t.readOnly)return!1;let n=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:i.xv.of(["",""])},range:i.jT.cursor(t.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),o=n==r.from?n-1:(0,i.cp)(r.text,n-r.from,!1)+r.from,s=n==r.to?n+1:(0,i.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(o,n))},range:i.jT.cursor(s)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:W}],tM=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>I(t,e=>j(t.state,e,!L(t))),shift:t=>{let e=!L(t);return V(t,e,n=>j(t.state,n,e))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>I(t,e=>j(t.state,e,L(t))),shift:t=>{let e=L(t);return V(t,e,n=>j(t.state,n,e))}},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>tb(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>tx(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>tb(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>tx(t,e,!0)},{key:"Mod-Alt-ArrowUp",run:t=>tu(t,!1)},{key:"Mod-Alt-ArrowDown",run:t=>tu(t,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=i.jT.create([n.main]):n.main.empty||(r=i.jT.create([i.jT.cursor(n.main.head)])),!!r&&(e(O(t,r)),!0)}},{key:"Mod-Enter",run:tw},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=tv(t).map(({from:e,to:n})=>i.jT.range(e,Math.min(n+1,t.doc.length)));return e(t.update({selection:i.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=N(t.selection,e=>{let n=(0,o.qz)(t),r=n.resolveStack(e.from,1);if(e.empty){let t=n.resolveStack(e.from,-1);t.node.from>=r.node.from&&t.node.to<=r.node.to&&(r=t)}for(let t=r;t;t=t.next){let{node:n}=t;if((n.from<e.from&&n.to>=e.to||n.to>e.to&&n.from<=e.from)&&t.next)return i.jT.range(n.to,n.from)}return e});return!n.eq(t.selection)&&(e(O(t,n)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tS(t,(e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let s=(0,i.IS)(r,t.tabSize),a=0,l=(0,o.SS)(t,Math.max(0,s-(0,o.y1)(t)));for(;a<r.length&&a<l.length&&r.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:e.from+a,to:e.from+r.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(tS(t,(e,n)=>{n.push({from:e.from,insert:t.facet(o.c)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new o.Gn(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),i=tS(t,(e,i,s)=>{let a=(0,o.K0)(r,e.from);if(null==a)return;/\S/.test(e.text)||(a=0);let l=/^\s*/.exec(e.text)[0],c=(0,o.SS)(t,a);(l!=c||s.from<e.from+l.length)&&(n[e.from]=a,i.push({from:e.from,to:e.from+l.length,insert:c}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(tv(e).map(({from:t,to:n})=>(t>0?t--:n<e.doc.length&&n++,{from:t,to:n}))),r=N(e.selection,e=>{let n;if(t.lineWrapping){let r=t.lineBlockAt(e.head),i=t.coordsAtPos(e.head,e.assoc||1);i&&(n=r.bottom+t.documentTop-i.bottom+t.defaultLineHeight/2)}return t.moveVertically(e,!0,n)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>{let n,r;return n=!1,r=N(t.selection,e=>{let r=(0,o.Um)(t,e.head,-1)||(0,o.Um)(t,e.head,1)||e.head>0&&(0,o.Um)(t,e.head-1,1)||e.head<t.doc.length&&(0,o.Um)(t,e.head+1,-1);if(!r||!r.end)return e;n=!0;let s=r.start.from==e.head?r.end.to:r.end.from;return i.jT.cursor(s)}),!!n&&(e(O(t,r)),!0)}},{key:"Mod-/",run:t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=h(t.state,n.from);return r.line?l(t):!!r.block&&u(t)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:t=>(t.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:R,shift:Q,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>z(t,!L(t)),shift:t=>X(t,!L(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>I(t,e=>Y(t,e,!L(t))),shift:t=>{let e=!L(t);return V(t,e,n=>Y(t,n,e))},preventDefault:!0},{key:"ArrowRight",run:$,shift:K,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>z(t,L(t)),shift:t=>X(t,L(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>I(t,e=>Y(t,e,L(t))),shift:t=>{let e=L(t);return V(t,e,n=>Y(t,n,e))},preventDefault:!0},{key:"ArrowUp",run:J,shift:te,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ts,shift:tl},{mac:"Ctrl-ArrowUp",run:H,shift:ti},{key:"ArrowDown",run:F,shift:tn,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ta,shift:tc},{mac:"Ctrl-ArrowDown",run:W,shift:to},{key:"PageUp",run:H,shift:ti},{key:"PageDown",run:W,shift:to},{key:"Home",run:t=>I(t,e=>Y(t,e,!1)),shift:t=>V(t,!1,e=>Y(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:ts,shift:tl},{key:"End",run:t=>I(t,e=>Y(t,e,!0)),shift:t=>V(t,!0,e=>Y(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:ta,shift:tc},{key:"Enter",run:t_,shift:t_},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:tp,shift:tp,preventDefault:!0},{key:"Delete",run:tm,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ty,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>tg(t,!0),preventDefault:!0},{mac:"Mod-Backspace",run:t=>th(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:t=>th(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),preventDefault:!0}].concat(tA.map(t=>({mac:t.key,run:t.run,shift:t.shift}))));var tT=n(76139),tC=n(63766),tD=n(3943);let tE=[(0,r.Eu)(),(0,r.HQ)(),(0,r.AE)(),function(t={}){return[y,g.of(t),r.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?b:"historyRedo"==t.inputType?x:null;return!!n&&(t.preventDefault(),n(e))}})]}(),(0,o.mi)(),(0,r.Uw)(),(0,r.qr)(),i.yy.allowMultipleSelections.of(!0),(0,o.nY)(),(0,o.nF)(o.R_,{fallback:!0}),(0,o.n$)(),(0,tC.vQ)(),(0,tC.ys)(),(0,r.Zs)(),(0,r.S2)(),(0,r.ZO)(),(0,tT.sW)(),r.$f.of([...tC.GA,...tM,...tT.Lp,{key:"Mod-z",run:b,preventDefault:!0}
25,{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{linux:"Ctrl-Shift-z",run:x,preventDefault:!0},{key:"Mod-u",run:_,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:w,preventDefault:!0},...o.e7,...tC.B1,...tD.Fv])]},97384:function(t,e,n){"use strict";function r(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?t.setAttribute(r,i):null!=i&&(t[r]=i)}e++}for(;e<arguments.length;e++)!function t(e,n){if("string"==typeof n)e.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)e.appendChild(n);else if(Array.isArray(n))for(var r=0;r<n.length;r++)t(e,n[r]);else throw RangeError("Unsupported child node: "+n)}(t,arguments[e]);return t}n.d(e,{Z:function(){return r}})},51785:function(t,e,n){"use strict";n.d(e,{B8:function(){return w},Il:function(){return i},SU:function(){return _},Ss:function(){return k},ZP:function(){return v}});var r=n(84084);function i(){}var o="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${o},${o},${o}\\)$`),u=RegExp(`^rgb\\(${a},${a},${a}\\)$`),h=RegExp(`^rgba\\(${o},${o},${o},${s}\\)$`),f=RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),d=RegExp(`^hsl\\(${s},${a},${a}\\)$`),p=RegExp(`^hsla\\(${s},${a},${a},${s}\\)$`),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function v(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?b(e):3===n?
25new k(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=c.exec(t))?new k(e[1],e[2],e[3],1):(e=u.exec(t))?new k(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new k(NaN,NaN,NaN,0):null}function b(t){return new k(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new k(t,e,n,r)}function _(t){return(t instanceof i||(t=v(t)),t)?new k((t=t.rgb()).r,t.g,t.b,t.opacity):new k}function w(t,e,n,r){return 1==arguments.length?_(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return`#${C(this.r)}${C(this.g)}${C(this.b)}`}function A(){let t=M(this.opacity);return`${1===t?"rgb(":"rgba("}${T(this.r)}, ${T(this.g)}, ${T(this.b)}${1===t?")":`, ${t})`}`}function M(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function T(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function C(t){return((t=T(t))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new N(t,e,n,r)}function E(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=v(t)),!t)return new N;if(t instanceof N)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,l=s-o,c=(s+o)/2;return l?(a=e===s?(n-r)/l+(n<r)*6:n===s?(r-e)/l+2:(e-n)/l+4,l/=c<.5?s+o:2-s-o,a*=60):l=c>0&&c<1?0:a,new N(a,l,c,t.opacity)}function N(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function O(t){return(t=(t||0)%360)<0?t+360:t}function I(t){return Math.max(0,Math.min(1,t||0))}function P(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}(0,r.Z)(i,v,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:g,formatHex:g,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return E(this).formatHsl()},formatRgb:y,toString:y}),(0,r.Z)(k,w,(0,r.l)(i,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new k(T(this.r),T(this.g),T(this.b),M(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${C(this.r)}${C(this.g)}${C(this.b)}${C((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:A,toString:A})),(0,r.Z)(N,function(t,e,n,r){return 1==arguments.length?E(t):new N(t,e,n,null==r?1:r)},(0,r.l)(i,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new N(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new k(P(t>=240?t-240:t+120,i,r),P(t,i,r),P(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new N(O(this.h),I(this.s),I(this.l),M(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=M(this.opacity);return`${1===t?"hsl(":"hsla("}${O(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===t?")":`, ${t})`}`}}))},84084:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},6718:function(t,e){"use strict";var n={value:()=>{}};function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function o(t,e,r){for(var i=0,o=t.length;i<o;
25++i)if(t[i].name===e){t[i]=n,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(t=i[s]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++s<a;)if(n=(t=i[s]).type)r[n]=o(r[n],t.name,e);else if(null==e)for(n in r)r[n]=o(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e.Z=r},21617:function(t,e,n){"use strict";n.d(e,{D:function(){return s},Z:function(){return o}});var r=n(72905),i=n(87317);function o(t){var e=t.document.documentElement,n=(0,r.Z)(t).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in e?n.on("selectstart.drag",i.ZP,i.Dd):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function s(t,e){var n=t.document.documentElement,o=(0,r.Z)(t).on("dragstart.drag",null);e&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},87317:function(t,e,n){"use strict";n.d(e,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return s},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(t){t.stopImmediatePropagation()}function s(t){t.preventDefault(),t.stopImmediatePropagation()}},35585:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a},wx:function(){return o},yi:function(){return s}});var r=n(77446);function i(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function s(t){return 1==(t=+t)?a:function(e,n){var i,o,s;return n-e?(i=e,o=n,i=Math.pow(i,s=t),o=Math.pow(o,s)-i,s=1/s,function(t){return Math.pow(i+t*o,s)}):(0,r.Z)(isNaN(e)?n:e)}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},77446:function(t,e){"use strict";e.Z=t=>()=>t},55965:function(t,e,n){"use strict";function r(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{Z:function(){return r}})},52769:function(t,e,n){"use strict";n.d(e,{ZP:function(){return s}});var r=n(51785);function i(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}var o=n(35585),s=function t(e){var n=(0,o.yi)(e);function i(t,e){var i=n((t=(0,r.B8)(t)).r,(e=(0,r.B8)(e)).r),s=n(t.g,e.g),a=n(t.b,e.b),l=(0,o.ZP)(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=s(e),t.b=a(e),t.opacity=l(e),t+""}}return i.gamma=t,i}(1);function a(t){return function(e){var n,i,o=e.length,s=Array(o),a=Array(o),l=Array(o);for(n=0;n<o;++n)i=(0,r.B8)(e[n]),s[n]=i.r||0,a[n]=i.g||0,l[n]=i.b||0;return s=t(s),a=t(a),l=t(l),i.opacity=1,function(t){return i.r=s(t),i.g=a(t),i.b=l(t),i+""}}}a(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],s=t[r+1],a=r>0?t[r-1]:2*o-s,l=r<e-1?t[r+2]:2*s-o;return i((n-r/e)*e,a,o,s,l)}}),a(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],s=t[r%e],a=t[(r+1)%e],l=t[(r+2)%e];return i((n-r/e)*e,o,s,a,l)}})},55384:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(55965),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=RegExp(i.source,"g");function s(t,e){var n,s,a,l,c,u=i.lastIndex=o.lastIndex=0,h=-1,f=[],d=[];for(t+="",e+="";(a=i.exec(t))&&(l=o.exec(e));)(c=l.index)>u&&(c=e.slice(u,c),f[h]?f[h]+=c:f[++h]=c),(a=a[0])===(l=l[0])?f[h]?f[h]+=l:f[++h]=l:(f[++h]=null,d.push({i:h,x:(0,r.Z)(a,l)})),u=o.lastIndex;return u<e.length&&(c=e.slice(u),f[h]?f[h]+=c:f[++h]=c),f.length<2?d[0]?(n=d[0].x,function(t){return n(t)+""}):(s=e,function(){return s}):(e=d.length,function(t){for(var n,r=0;r<e;++r)f[(n=d[r]).i]=n.x(t);return f.join("")})}},44020:function(t,e,n){"use strict";function r(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}n.d(e,{Z:function(){return r}})},93753:function(t,e,n){"use strict";function r(t){return function(){return this.matches(t)}}function i(t){return function(e){return e.matches(t)}}n.d(e,{P:function(){return i},Z:function(){return r}})},99573:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(41977);function i(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},41977:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},30271:function(t,e,n){"use strict";function r(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}n.d(e,{Z:function(){return r}})},72905:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(77437);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},77437:function(t,e,n){"use strict";n.d(e,{Y1:function(){return z},ZP:function(){return B},Jz:function(){return $}});var r=n(9588),i=n(44020),o=n(86513),s=n(93753),a=Array.prototype.find;function l(){return this.firstElementChild}var c=Array.prototype.filter;function u(){return Array.from(this.children)}function h(t){return Array(t.length)}function f(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function d(t,e,n,r,i,o){for(var s,a=0,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new f(t,o[a]);for(;a<l;++a)(s=e[a])&&(i[a]=s)}function p(t,e,n,r,i,o,s){var a,l,c,u=new Map,h=e.length,d=o.length,p=Array(h);for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=s.call(l,l.__data__,a,e)+"",u.has(c)?i[a]=l:u.set(c,l));for(a=0;a<d;++a)c=s.call(t,o[a],a,o)+"",(l=u.get(c))?(r[a]=l,l.__data__=o[a],u.delete(c)):n[a]=new f(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&u.get(p[a])===l&&(i[a]=l)}function m(t){return t.__data__}function g(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}f.prototype={constructor:f,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var y=n(99573),v=n(79210);function b(t){return t.trim().split(/^|\s+/)}function x(t){return t.classList||new _(t)}function _(t){this._node=t,this._names=b(t.getAttribute("class")||"")}function w(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function k(t,e){for(var n=x(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function S(){this.textContent=""}function A(){this.innerHTML=""}function M(){this.nextSibling&&this.parentNode.appendChild(this)}function T(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}_.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};
25var C=n(41977);function D(t){var e=(0,y.Z)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===C.P&&e.documentElement.namespaceURI===C.P?e.createElement(t):e.createElementNS(n,t)}})(e)}function E(){return null}function N(){var t=this.parentNode;t&&t.removeChild(this)}function O(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function I(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function P(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Z(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var L=n(71236);function R(t,e,n){var r=(0,L.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}var $=[null];function z(t,e){this._groups=t,this._parents=e}function j(){return new z([[document.documentElement]],$)}z.prototype=j.prototype={constructor:z,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=Array(n),o=0;o<n;++o)for(var s,a,l=e[o],c=l.length,u=i[o]=Array(c),h=0;h<c;++h)(s=l[h])&&(a=t.call(s,s.__data__,h,l))&&("__data__"in s&&(a.__data__=s.__data__),u[h]=a);return new z(i,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){return(0,i.Z)(e.apply(this,arguments))}}else t=(0,o.Z)(t);for(var n=this._groups,r=n.length,s=[],a=[],l=0;l<r;++l)for(var c,u=n[l],h=u.length,f=0;f<h;++f)(c=u[f])&&(s.push(t.call(c,c.__data__,f,u)),a.push(c));return new z(s,a)},selectChild:function(t){var e;return this.select(null==t?l:(e="function"==typeof t?t:(0,s.P)(t),function(){return a.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?u:(e="function"==typeof t?t:(0,s.P)(t),function(){return c.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=(0,s.Z)(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a=e[i],l=a.length,c=r[i]=[],u=0;u<l;++u)(o=a[u])&&t.call(o,o.__data__,u,a)&&c.push(o);return new z(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,m);var n=e?p:d,r=this._parents,i=this._groups;"function"!=typeof t&&(_=t,t=function(){return _});for(var o=i.length,s=Array(o),a=Array(o),l=Array(o),c=0;c<o;++c){var u=r[c],h=i[c],f=h.length,g="object"==typeof(x=t.call(u,u&&u.__data__,c,r))&&"length"in x?x:Array.from(x),y=g.length,v=a[c]=Array(y),b=s[c]=Array(y);n(u,h,v,b,l[c]=Array(f),g,e);for(var x,_,w,k,S=0,A=0;S<y;++S)if(w=v[S]){for(S>=A&&(A=S+1);!(k=b[A])&&++A<y;);w._next=k||null}}return(s=new z(s,r))._enter=a,s._exit=l,s},enter:function(){return new z(this._enter||this._groups.map(h),this._parents)},exit:function(){return new z(this._exit||this._groups.map(h),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=Array(i),l=0;l<s;++l)for(var c,u=n[l],h=r[l],f=u.length,d=a[l]=Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<i;++l)a[l]=n[l];return new z(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,
25s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=g);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var s,a=n[o],l=a.length,c=i[o]=Array(l),u=0;u<l;++u)(s=a[u])&&(c[u]=s);c.sort(e)}return new z(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=(0,y.Z)(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:v.Z,property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=b(t+"");if(arguments.length<2){for(var r=x(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?w:k)(this,t)}}:e?function(t){return function(){w(this,t)}}:function(t){return function(){k(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?S:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?A:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(M)},lower:function(){return this.each(T)},append:function(t){var e="function"==typeof t?t:D(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:D(t),i=null==e?E:"function"==typeof e?e:(0,r.Z)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(N)},clone:function(t){return this.select(t?I:O)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),s=o.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var l,c=0,u=a.length;c<u;++c)for(r=0,l=a[c];r<s;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,a=e?Z:P;r<s;++r)this.each(a(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return R(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return R(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};var B=j},79210:function(t,e,n){"use strict";n.d(e,{S:function(){return o},Z:function(){return i}});var r=n(71236);function i(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):o(this.node(),t)}function o(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},9588:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},86513:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},71236:function(t,e,n){"use strict";function r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}n.d(e,{Z:function(){return r}})},58912:function(t,e,n){"use strict";n.d(e,{e1:function(){return E}});var r,i,o,s=n(77437),a=n(6718),l=0,c=0,u=0,h=0,f=0,d=0,p="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return f||(m(y),f=p.now()+d)}function y(){f=0}function v(){this._call=this._time=this._next=null}function b(t,e,n){var r=new v;return r.restart(t,e,n),r}function x(){f=(h=p.now())+d,l=c=0;try{!function(){g(),++l;for(var t,e=i;e;)(t=f-e._time)>=0&&e._call.call(void 0,t),e=e._next;--l}()}finally{l=0,function(){for(var t,e,n=i,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);o=t,w(r)}(),f=0}}function _(){var t=p.now(),e=t-h;e>1e3&&(d-=e,h=t)}function w(t){!l&&(c&&(c=clearTimeout(c)),t-f>24?(t<1/0&&(c=setTimeout(x,t-p.now()-d)),u&&(u=clearInterval(u))):(u||(h=p.now(),u=setInterval(_,1e3)),l=1,m(x)))}function k(t,e,n){var r=new v;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}v.prototype=b.prototype={constructor:v,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:i=this,o=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}};var S=(0,a.Z)("start","end","cancel","interrupt"),A=[];function M(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,u,h,f;if(1!==n.state)return a();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return k(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(k(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(h=n.tween.length),u=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1
25),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=b(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:S,tween:A,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function T(t,e){var n=D(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function C(t,e){var n=D(t,e);if(n.state>3)throw Error("too late; already running");return n}function D(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function E(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}s&&delete t.__transition}}var N=n(55965),O=180/Math.PI,I={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function P(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*O,skewX:Math.atan(l)*O,scaleX:s,scaleY:a}}function Z(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a,l,c,u,h=[],f=[];return o=t(o),s=t(s),!function(t,r,i,o,s,a){if(t!==i||r!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,N.Z)(t,i)},{i:l-2,x:(0,N.Z)(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,h,f),(a=o.rotate)!==(l=s.rotate)?(a-l>180?l+=360:l-a>180&&(a+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:(0,N.Z)(a,l)})):l&&h.push(i(h)+"rotate("+l+r),(c=o.skewX)!==(u=s.skewX)?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:(0,N.Z)(c,u)}):u&&h.push(i(h)+"skewX("+u+r),!function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:(0,N.Z)(t,n)},{i:a-2,x:(0,N.Z)(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,h,f),o=s=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var L=Z(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?I:P(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),R=Z(function(t){return null==t?I:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?P((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):I},", ",")",")"),$=n(99573);function z(t,e,n){var r=t._id;return t.each(function(){var t=C(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return D(t,r).value[e]}}var j=n(51785),B=n(52769),J=n(55384);function F(t,e){var n;return("number"==typeof e?N.Z:e instanceof j.ZP?B.ZP:(n=(0,j.ZP)(e))?(e=n,B.ZP):J.Z)(t,e)}var U=n(93753),q=n(9588),H=n(86513),W=s.ZP.prototype.constructor,Y=n(79210);function V(t){return function(){this.style.removeProperty(t)}}var G=0;function Q(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var K=s.ZP.prototype;Q.prototype=(function(t){return(0,s.ZP)().transition(t)}).prototype={constructor:Q,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,q.Z)(t));for(var r=this._groups,i=r.length,o=Array(i),s=0;s<i;++s)for(var a,l,c=r[s],u=c.length,h=o[s]=Array(u),f=0;f<u;++f)(a=c[f])&&(l=t.call(a,a.__data__,f,c))&&("__data__"in a&&(l.__data__=a.__data__),h[f]=l,M(h[f],e,n,f,h,D(a,n)));return new Q(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,H.Z)(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l,c=r[a],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=D(l,n),m=0,g=d.length;m<g;++m)(f=d[m])&&M(f,e,n,m,d,p);o.push(d),s.push(l)}return new Q(o,s,e,n)},selectChild:K.selectChild,selectChildren:K.selectChildren,filter:function(t){"function"!=typeof t&&(t=(0,U.Z)(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,l=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Q(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=Array(r),a=0;a<o;++a)for(var l,c=e[a],u=n[a],h=c.length,f=s[a]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;a<r;++a)s[a]=e[a];return new Q(s,this._parents,this._name,this._id)},selection:function(){return new W(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++G,r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var u=D(s,e);M(s,t,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Q(r,this._parents,t,n)},call:K.call,nodes:K.nodes,node:K.node,size:K.size,empty:K.empty,each:K.each,on:function(t,e){var n,r,i,o=this._id;return arguments.length<2?D(this.node(),o).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>
25=0&&(t=t.slice(0,e)),!t||"start"===t})?T:C,function(){var s=i(this,o),a=s.on;a!==n&&(r=(n=a).copy()).on(t,e),s.on=r}))},attr:function(t,e){var n=(0,$.Z)(t),r="transform"===n?R:F;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var s,a,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l))}}:function(t,e,n){var r,i,o;return function(){var s,a,l=n(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===(a=l+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,l))}})(n,r,z(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}:function(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=(0,$.Z)(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,o,s,a,l,c,u,h,f,d,p,m,g,y,v,b,x,_,w,k,S="transform"==(t+="")?L:F;return null==e?this.styleTween(t,(r=t,function(){var t=(0,Y.S)(this,r),e=(this.style.removeProperty(r),(0,Y.S)(this,r));return t===e?null:t===i&&e===o?s:s=S(i=t,o=e)})).on("end.style."+t,V(t)):"function"==typeof e?this.styleTween(t,(a=t,l=z(this,"style."+t,e),function(){var t=(0,Y.S)(this,a),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=(0,Y.S)(this,a)),t===n?null:t===c&&n===u?h:(u=n,h=S(c=t,e))})).each((f=this._id,b="end."+(v="style."+(d=t)),function(){var t=C(this,f),e=t.on,n=null==t.value[v]?y||(y=V(d)):void 0;(e!==p||g!==n)&&(m=(p=e).copy()).on(b,g=n),t.on=m})):this.styleTween(t,(x=t,k=e+"",function(){var t=(0,Y.S)(this,x);return t===k?null:t===_?w:w=S(_=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=z(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=D(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=C(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=C(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){T(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){T(this,t).delay=e}})(e,t)):D(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){C(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){C(this,t).duration=e}})(e,t)):D(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){C(this,t).ease=e}}(e,t)):D(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();C(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0==--i&&o()}};n.each(function(){var n=C(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===i&&o()})},[Symbol.iterator]:K[Symbol.iterator]};var X={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};s.ZP.prototype.interrupt=function(t){return this.each(function(){E(this,t)})},s.ZP.prototype.transition=function(t){var e,n;t instanceof Q?(e=t._id,t=t._name):(e=++G,(n=X).time=g(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],l=a.length,c=0;c<l;++c)(s=a[c])&&M(s,t,e,c,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(s,e));return new Q(r,this._parents,t,e)}},98949:function(t,e,n){"use strict";n.d(e,{sP:function(){return k},CR:function(){return d},P2:function(){return p}});var r=n(6718),i=n(21617);function o(t){return((t=Math.exp(t))+1/t)/2}var s=function t(e,n,r){function i(t,i){var s,a,l=t[0],c=t[1],u=t[2],h=i[0],f=i[1],d=i[2],p=h-l,m=f-c,g=p*p+m*m;if(g<1e-12)a=Math.log(d/u)/e,s=function(t){return[l+t*p,c+t*m,u*Math.exp(e*t*a)]};else{var y=Math.sqrt(g),v=(d*d-u*u+r*g)/(2*u*n*y),b=(d*d-u*u-r*g)/(2*d*n*y),x=Math.log(Math.sqrt(v*v+1)-v);a=(Math.log(Math.sqrt(b*b+1)-b)-x)/e,s=function(t){var r,i,s=t*a,h=o(x),f=u/(n*y)*(((r=Math.exp(2*(r=e*s+x)))-1)/(r+1)*h-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,c+f*m,u*h/o(e*s+x)]}}return s.duration=1e3*a*e/Math.SQRT2,s}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),a=n(72905),l=n(30271),c=n(58912),u=t=>()=>t;function h(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function f(t,e,n){this.k=t,this.x=e,this.y=n}f.prototype={constructor:f,scale:function(t){return 1===t?this:new f(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new f(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var d=new f(1,0,0);function p(t){for(;!t.__zoom;)if(!(t=t.parentNode))return d;return t.__zoom}function m(t){t.stopImmediatePropagation()}function g(t){t.preventDefault(),t.stopImmediatePropagation()}function y(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function v(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function b(){return this.__zoom||d}
25function x(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function _(){return navigator.maxTouchPoints||"ontouchstart"in this}function w(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function k(){var t,e,n,o=y,p=v,k=w,S=x,A=_,M=[0,1/0],T=[[-1/0,-1/0],[1/0,1/0]],C=250,D=s,E=(0,r.Z)("start","zoom","end"),N=0,O=10;function I(t){t.property("__zoom",b).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",B).on("dblclick.zoom",J).filter(A).on("touchstart.zoom",F).on("touchmove.zoom",U).on("touchend.zoom touchcancel.zoom",q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function P(t,e){return(e=Math.max(M[0],Math.min(M[1],e)))===t.k?t:new f(e,t.x,t.y)}function Z(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new f(t.k,r,i)}function L(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function R(t,e,n,r){t.on("start.zoom",function(){$(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=$(this,t).event(r),o=p.apply(this,t),s=null==n?L(o):"function"==typeof n?n.apply(this,t):n,a=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=this.__zoom,c="function"==typeof e?e.apply(this,t):e,u=D(l.invert(s).concat(a/l.k),c.invert(s).concat(a/c.k));return function(t){if(1===t)t=c;else{var e=u(t),n=a/e[2];t=new f(n,s[0]-e[0]*n,s[1]-e[1]*n)}i.zoom(null,t)}})}function $(t,e,n){return!n&&t.__zooming||new z(t,e)}function z(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=p.apply(t,e),this.taps=0}function j(t,...e){if(o.apply(this,arguments)){var n=$(this,e).event(t),r=this.__zoom,i=Math.max(M[0],Math.min(M[1],r.k*Math.pow(2,S.apply(this,arguments)))),s=(0,l.Z)(t);if(n.wheel)(n.mouse[0][0]!==s[0]||n.mouse[0][1]!==s[1])&&(n.mouse[1]=r.invert(n.mouse[0]=s)),clearTimeout(n.wheel);else{if(r.k===i)return;n.mouse=[s,r.invert(s)],(0,c.e1)(this),n.start()}g(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",k(Z(P(r,i),n.mouse[0],n.mouse[1]),n.extent,T))}}function B(t,...e){if(!n&&o.apply(this,arguments)){var r=t.currentTarget,s=$(this,e,!0).event(t),u=(0,a.Z)(t.view).on("mousemove.zoom",function(t){if(g(t),!s.moved){var e=t.clientX-f,n=t.clientY-d;s.moved=e*e+n*n>N}s.event(t).zoom("mouse",k(Z(s.that.__zoom,s.mouse[0]=(0,l.Z)(t,r),s.mouse[1]),s.extent,T))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(t.view,s.moved),g(t),s.event(t).end()},!0),h=(0,l.Z)(t,r),f=t.clientX,d=t.clientY;(0,i.Z)(t.view),m(t),s.mouse=[h,this.__zoom.invert(h)],(0,c.e1)(this),s.start()}}function J(t,...e){if(o.apply(this,arguments)){var n=this.__zoom,r=(0,l.Z)(t.changedTouches?t.changedTouches[0]:t,this),i=n.invert(r),s=n.k*(t.shiftKey?.5:2),c=k(Z(P(n,s),r,i),p.apply(this,e),T);g(t),C>0?(0,a.Z)(this).transition().duration(C).call(R,c,r,t):(0,a.Z)(this).call(I.transform,c,r,t)}}function F(n,...r){if(o.apply(this,arguments)){var i,s,a,u,h=n.touches,f=h.length,d=$(this,r,n.changedTouches.length===f).event(n);for(m(n),s=0;s<f;++s)a=h[s],u=[u=(0,l.Z)(a,this),this.__zoom.invert(u),a.identifier],d.touch0?d.touch1||d.touch0[2]===u[2]||(d.touch1=u,d.taps=0):(d.touch0=u,i=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),i&&(d.taps<2&&(e=u[0],t=setTimeout(function(){t=null},500)),(0,c.e1)(this),d.start())}}function U(t,...e){if(this.__zooming){var n,r,i,o,s=$(this,e).event(t),a=t.changedTouches,c=a.length;for(g(t),n=0;n<c;++n)r=a[n],i=(0,l.Z)(r,this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var u=s.touch0[0],h=s.touch0[1],f=s.touch1[0],d=s.touch1[1],p=(p=f[0]-u[0])*p+(p=f[1]-u[1])*p,m=(m=d[0]-h[0])*m+(m=d[1]-h[1])*m;r=P(r,Math.sqrt(p/m)),i=[(u[0]+f[0])/2,(u[1]+f[1])/2],o=[(h[0]+d[0])/2,(h[1]+d[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",k(Z(r,i,o),s.extent,T))}}function q(t,...r){if(this.__zooming){var i,o,s=$(this,r).event(t),c=t.changedTouches,u=c.length;for(m(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<u;++i)o=c[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=(0,l.Z)(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<O)){var h=(0,a.Z)(this).on("dblclick.zoom");h&&h.apply(this,arguments)}}}return I.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",b),t!==i?R(t,e,n,r):i.interrupt().each(function(){$(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},I.scaleBy=function(t,e,n,r){I.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},I.scaleTo=function(t,e,n,r){I.transform(t,function(){var t=p.apply(this,arguments),r=this.__zoom,i=null==n?L(t):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),s="function"==typeof e?e.apply(this,arguments):e;return k(Z(P(r,s),i,o),t,T)},n,r)},I.translateBy=function(t,e,n,r){I.transform(t,function(){return k(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),p.apply(this,arguments),T)},null,r)},I.translateTo=function(t,e,n,r,i){I.transform(t,function(){var t=p.apply(this,arguments),i=this.__zoom,o=null==r?L(t):"function"==typeof r?r.apply(this,arguments):r;return k(d.translate(o[0],o[1]).scale(i.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,T)},r,i)},z.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
25("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=(0,a.Z)(this.that).datum();E.call(t,this.that,new h(t,{sourceEvent:this.sourceEvent,target:I,type:t,transform:this.that.__zoom,dispatch:E}),e)}},I.wheelDelta=function(t){return arguments.length?(S="function"==typeof t?t:u(+t),I):S},I.filter=function(t){return arguments.length?(o="function"==typeof t?t:u(!!t),I):o},I.touchable=function(t){return arguments.length?(A="function"==typeof t?t:u(!!t),I):A},I.extent=function(t){return arguments.length?(p="function"==typeof t?t:u([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),I):p},I.scaleExtent=function(t){return arguments.length?(M[0]=+t[0],M[1]=+t[1],I):[M[0],M[1]]},I.translateExtent=function(t){return arguments.length?(T[0][0]=+t[0][0],T[1][0]=+t[1][0],T[0][1]=+t[0][1],T[1][1]=+t[1][1],I):[[T[0][0],T[0][1]],[T[1][0],T[1][1]]]},I.constrain=function(t){return arguments.length?(k=t,I):k},I.duration=function(t){return arguments.length?(C=+t,I):C},I.interpolate=function(t){return arguments.length?(D=t,I):D},I.on=function(){var t=E.on.apply(E,arguments);return t===E?I:t},I.clickDistance=function(t){return arguments.length?(N=(t=+t)*t,I):Math.sqrt(N)},I.tapDistance=function(t){return arguments.length?(O=+t,I):O},I}p.prototype=f.prototype},7165:function(t,e,n){"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function o(t){return t}function s(t){return"translate("+t+",0)"}function a(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function c(t,e){var n=[],r=null,i=null,c=6,u=6,h=3,f="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,d=1===t||4===t?-1:1,p=4===t||2===t?"x":"y",m=1===t||3===t?s:a;function g(s){var a=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,g=null==i?e.tickFormat?e.tickFormat.apply(e,n):o:i,y=Math.max(c,0)+h,v=e.range(),b=+v[0]+f,x=+v[v.length-1]+f,_=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}:function(t){return e=>+t(e)})(e.copy(),f),w=s.selection?s.selection():s,k=w.selectAll(".domain").data([null]),S=w.selectAll(".tick").data(a,e).order(),A=S.exit(),M=S.enter().append("g").attr("class","tick"),T=S.select("line"),C=S.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(M),T=T.merge(M.append("line").attr("stroke","currentColor").attr(p+"2",d*c)),C=C.merge(M.append("text").attr("fill","currentColor").attr(p,d*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==w&&(k=k.transition(s),S=S.transition(s),T=T.transition(s),C=C.transition(s),A=A.transition(s).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=_(t))?m(t+f):this.getAttribute("transform")}),M.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return m((e&&isFinite(e=e(t))?e:_(t))+f)})),A.remove(),k.attr("d",4===t||2===t?u?"M"+d*u+","+b+"H"+f+"V"+x+"H"+d*u:"M"+f+","+b+"V"+x:u?"M"+b+","+d*u+"V"+f+"H"+x+"V"+d*u:"M"+b+","+f+"H"+x),S.attr("opacity",1).attr("transform",function(t){return m(_(t)+f)}),T.attr(p+"2",d*c),C.attr(p,d*y).text(g),w.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each(function(){this.__axis=_})}return g.scale=function(t){return arguments.length?(e=t,g):e},g.ticks=function(){return n=Array.from(arguments),g},g.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),g):n.slice()},g.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),g):r&&r.slice()},g.tickFormat=function(t){return arguments.length?(i=t,g):i},g.tickSize=function(t){return arguments.length?(c=u=+t,g):c},g.tickSizeInner=function(t){return arguments.length?(c=+t,g):c},g.tickSizeOuter=function(t){return arguments.length?(u=+t,g):u},g.tickPadding=function(t){return arguments.length?(h=+t,g):h},g.offset=function(t){return arguments.length?(f=+t,g):f},g}function u(t){return c(1,t)}function h(t){return c(3,t)}n.d(e,{Nb1:function(){return nW},LLu:function(){return h},F5q:function(){return u},$0Z:function(){return n6},Dts:function(){return n9},WQY:function(){return rt},qpX:function(){return rn},u93:function(){return rr},tFB:function(){return ro},YY7:function(){return rl},OvA:function(){return ru},dCK:function(){return rf},zgE:function(){return rm},fGX:function(){return ry},$m7:function(){return rb},c_6:function(){return nG},fxm:function(){return r_},FdL:function(){return rC},ak_:function(){return rD},SxZ:function(){return rO},eA_:function(){return rP},jsv:function(){return rL},iJ:function(){return rZ},JHv:function(){return U},jvg:function(){return nX},Fp7:function(){return r},VV$:function(){return i},ve8:function(){return n2},tiA:function(){return function t(){var e,n,r=G().unknown(void 0),i=r.domain,o=r.range,s=0,a=1,l=!1,c=0,u=0,h=.5;function f(){var t=i().length,r=a<s,f=r?a:s,d=r?s:a;e=(d-f)/Math.max(1,t-c+2*u),l&&(e=Math.floor(e)),f+=(d-f-e*(t-c))*h,n=e*(1-c),l&&(f=Math.round(f),n=Math.round(n));var p=(function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=Array(i);++r<i;)o[r]=t+r*n;return o}
25)(t).map(function(t){return f+e*t});return o(r?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),f()):i()},r.range=function(t){return arguments.length?([s,a]=t,s=+s,a=+a,f()):[s,a]},r.rangeRound=function(t){return[s,a]=t,s=+s,a=+a,l=!0,f()},r.bandwidth=function(){return n},r.step=function(){return e},r.round=function(t){return arguments.length?(l=!!t,f()):l},r.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},r.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},r.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),f()):h},r.copy=function(){return t(i(),[s,a]).round(l).paddingInner(c).paddingOuter(u).align(h)},q.apply(f(),arguments)}},BYU:function(){return function t(){var e,n=t_();return n.copy=function(){return tx(n,t())},q.apply(n,arguments),e=n.domain,n.ticks=function(t){var n=e();return function(t,e,n){if(e=+e,t=+t,!((n=+n)>0))return[];if(t===e)return[t];let r=e<t,[i,o,s]=r?tt(e,t,n):tt(t,e,n);if(!(o>=i))return[];let a=o-i+1,l=Array(a);if(r){if(s<0)for(let t=0;t<a;++t)l[t]=-((o-t)/s);else for(let t=0;t<a;++t)l[t]=(o-t)*s}else if(s<0)for(let t=0;t<a;++t)l[t]=-((i+t)/s);else for(let t=0;t<a;++t)l[t]=(i+t)*s;return l}(n[0],n[n.length-1],null==t?10:t)},n.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o,s=tn(t,e,n);switch((r=tk(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tM(a)/3)))-tM(Math.abs(s))))||(r.precision=o),_(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,tM(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=s)))-tM(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-tM(Math.abs(s))))||(r.precision=o-("%"===r.type)*2)}return x(r)}(r[0],r[r.length-1],null==t?10:t,n)},n.nice=function(t){null==t&&(t=10);var r,i,o=e(),s=0,a=o.length-1,l=o[s],c=o[a],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);u-- >0;){if((i=te(l,c,t))===r)return o[s]=l,o[a]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n}},PKp:function(){return G},Xf:function(){return ny},K2I:function(){return nv},Ys:function(){return nb.Z},td_:function(){return nw},YPS:function(){return S},rr1:function(){return tB},i$Z:function(){return k},y2j:function(){return tG},WQD:function(){return tz},U8T:function(){return tZ},Z_i:function(){return tR},Ox9:function(){return tH},F0B:function(){return t6},LqH:function(){return tQ},S1K:function(){return tL},Zyz:function(){return tq},Igq:function(){return tV},YDX:function(){return tW},EFj:function(){return tY}}),n(58912);let{abs:f,max:d,min:p}=Math;function m(t){return{type:t}}function g(t){if(!t.ok)throw Error(t.status+" "+t.statusText);return t.text()}function y(t){return(e,n)=>fetch(e,n).then(g).then(e=>(new DOMParser).parseFromString(e,t))}["w","e"].map(m),["n","s"].map(m),["n","w","e","s","nw","ne","sw","se"].map(m),y("application/xml"),y("text/html");var v,b,x,_,w,k,S=y("image/svg+xml"),A=n(84084),M=n(51785);let T=Math.PI/180,C=180/Math.PI,D=4/29,E=6/29,N=6/29*3*(6/29),O=6/29*(6/29)*(6/29);function I(t){if(t instanceof P)return new P(t.l,t.a,t.b,t.opacity);if(t instanceof j)return B(t);t instanceof M.Ss||(t=(0,M.SU)(t));var e,n,r=$(t.r),i=$(t.g),o=$(t.b),s=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=s:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new P(116*s-16,500*(e-s),200*(s-n),t.opacity)}function P(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>O?Math.pow(t,1/3):t/N+D}function L(t){return t>E?t*t*t:N*(t-D)}
25function R(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function z(t,e,n,r){return 1==arguments.length?function(t){if(t instanceof j)return new j(t.h,t.c,t.l,t.opacity);if(t instanceof P||(t=I(t)),0===t.a&&0===t.b)return new j(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*C;return new j(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function B(t){if(isNaN(t.h))return new P(t.l,0,0,t.opacity);var e=t.h*T;return new P(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}(0,A.Z)(P,function(t,e,n,r){return 1==arguments.length?I(t):new P(t,e,n,null==r?1:r)},(0,A.l)(M.Il,{brighter(t){return new P(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new P(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*L(e),t=1*L(t),n=.82521*L(n),new M.Ss(R(3.1338561*e-1.6168667*t-.4906146*n),R(-.9787684*e+1.9161415*t+.033454*n),R(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),(0,A.Z)(j,z,(0,A.l)(M.Il,{brighter(t){return new j(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new j(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return B(this).rgb()}}));var J=n(35585);function F(t){return function(e,n){var r=t((e=z(e)).h,(n=z(n)).h),i=(0,J.ZP)(e.c,n.c),o=(0,J.ZP)(e.l,n.l),s=(0,J.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=s(t),e+""}}}var U=F(J.wx);function q(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}F(J.ZP);class H extends Map{constructor(t,e=Y){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(W(this,t))}has(t){return super.has(W(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function W({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function Y(t){return null!==t&&"object"==typeof t?t.valueOf():t}let V=Symbol("implicit");function G(){var t=new H,e=[],n=[],r=V;function i(i){let o=t.get(i);if(void 0===o){if(r!==V)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();for(let r of(e=[],t=new H,n))t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return G(e,n).unknown(r)},q.apply(i,arguments),i}let Q=Math.sqrt(50),K=Math.sqrt(10),X=Math.sqrt(2);function tt(t,e,n){let r,i,o;let s=(e-t)/Math.max(0,n),a=Math.floor(Math.log10(s)),l=s/Math.pow(10,a),c=l>=Q?10:l>=K?5:l>=X?2:1;return(a<0?(r=Math.round(t*(o=Math.pow(10,-a)/c)),i=Math.round(e*o),r/o<t&&++r,i/o>e&&--i,o=-o):(r=Math.round(t/(o=Math.pow(10,a)*c)),i=Math.round(e/o),r*o<t&&++r,i*o>e&&--i),i<r&&.5<=n&&n<2)?tt(t,e,2*n):[r,i,o]}function te(t,e,n){return tt(t=+t,e=+e,n=+n)[2]}function tn(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?te(e,t,n):te(t,e,n);return(r?-1:1)*(i<0?-(1/i):i)}function tr(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ti(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function to(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>n(t[e],r)?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=tr,n=(e,n)=>tr(t(e),n),r=(e,n)=>t(e)-n):(e=t===tr||t===ti?t:ts,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){let s=i(t,e,n,o-1);return s>n&&r(t[s-1],e)>-r(t[s],e)?s-1:s},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>=n(t[e],r)?i=e+1:o=e}while(i<o)}return i}}}function ts(){return 0}let ta=to(tr),tl=ta.right;ta.left,to(function(t){return null===t?NaN:+t}).center;var tc=n(52769),tu=n(55965),th=n(55384),tf=n(77446);function td(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function tp(t){return+t}var tm=[0,1];function tg(t){return t}function ty(t,e){var n;return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})}function tv(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=ty(i,r),o=n(s,o)):(r=ty(r,i),o=n(o,s)),function(t){return o(r(t))}}function tb(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),o=Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=ty(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=tl(t,e,1,r)-1;return o[n](i[n](e))}}function tx(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function t_(){return(function(){var t,e,n,r,i,o,s=tm,a=tm,l=function t(e,n){var r,i,o=typeof n;return null==n||"boolean"===o?(0,tf.Z)(n):("number"===o?tu.Z:"string"===o?(i=(0,M.ZP)(n))?(n=i,tc.ZP):th.Z:n instanceof M.ZP?tc.ZP:n instanceof Date?function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView)?Array.isArray(n)?function(e,n){var r,i=n?n.length:0,o=e?Math.min(i,e.length):0,s=Array(o),a=Array(i);for(r=0;r<o;++r)s[r]=t(e[r],n[r]);for(;r<i;++r)a[r]=n[r];return function(t){for(r=0;r<o;++r)a[r]=s[r](t);return a}}:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(e,n){var r,i={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)r in e?i[r]=t(e[r],n[r]):o[r]=n[r];return function(t){for(r in i)o[r]=i[r](t);return o}}:tu.Z:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}})(e,n)},c=tg;function u(){var t,e,n,l=Math.min(s.length,a.length);return c!==tg&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?tb:tv,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(a,s.map(t),tu.Z)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,tp),u()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),u()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=td,u()},h.clamp=function(t){return arguments.length?(c=!!t||tg,u()):c!==tg},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}})()(tg,tg)}var tw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tk(t){var e;if(!(e=tw.exec(t)))throw Error("invalid format: "+t);return new tS({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tS(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
25width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tA(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function tM(t){return(t=tA(Math.abs(t)))?t[1]:NaN}function tT(t,e){var n=tA(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}tk.prototype=tS.prototype,tS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tC={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tT(100*t,e),r:tT,s:function(t,e){var n=tA(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(v=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+tA(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tD(t){return t}var tE=Array.prototype.map,tN=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];x=(b=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thousands?tD:(e=tE.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(t.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tD:(r=tE.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"â":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=tk(t)).fill,n=t.align,r=t.sign,f=t.symbol,d=t.zero,p=t.width,m=t.comma,g=t.precision,y=t.trim,b=t.type;"n"===b?(m=!0,b="g"):tC[b]||(void 0===g&&(g=12),y=!0,b="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var x="$"===f?o:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===f?s:/[%p]/.test(b)?c:"",w=tC[b],k=/[defgprs%]/.test(b);function S(t){var o,s,c,f=x,S=_;if("c"===b)S=w(t)+S,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),g),y&&(t=function(t){i:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break i;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==r&&(A=!1),f=(A?"("===r?r:u:"-"===r||"("===r?"":r)+f,S=("s"===b?tN[8+v/3]:"")+S+(A&&"("===r?")":""),k){for(o=-1,s=t.length;++o<s;)if(48>(c=t.charCodeAt(o))||c>57){S=(46===c?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}}m&&!d&&(t=i(t,1/0));var M=f.length+t.length+S.length,T=M<p?Array(p-M+1).join(e):"";switch(m&&d&&(t=i(T+t,T.length?p-S.length:1/0),T=""),n){case"<":t=f+t+S+T;break;case"=":t=f+T+t+S;break;case"^":t=T.slice(0,M=T.length>>1)+f+t+S+T.slice(M);break;default:t=T+f+t+S}return l(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var n=f(((t=tk(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tM(e)/3))),i=Math.pow(10,-r),o=tN[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,_=b.formatPrefix;let tO=new Date,tI=new Date;function tP(t,e,n,r){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{let e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{let s;let a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do a.push(s=new Date(+n)),e(n,o),t(n);while(s<n&&n<r);return a},i.filter=n=>tP(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}}),n&&(i.count=(e,r)=>(tO.setTime(+e),tI.setTime(+r),t(tO),t(tI),Math.floor(n(tO,tI))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let tZ=tP(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);tZ.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?tP(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):tZ:null,tZ.range;let tL=tP(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());tL.range;let tR=tP(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());tR.range;let t$=tP(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());t$.range;let tz=tP(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());tz.range;let tj=tP(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());tj.range;let tB=tP(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);tB.range;let tJ=tP(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);tJ.range;let tF=tP(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function tU(t){return tP(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}tF.range;let tq=tU(0),tH=tU(1),tW=tU(2),tY=tU(3),tV=tU(4),tG=tU(5),tQ=tU(6);function tK(t){return tP(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}tq.range,tH.range,tW.range,tY.range,tV.range,tG.range,tQ.range;let tX=tK(0),t0=tK(1),t1=tK(2),t2=tK(3),t3=tK(4),t5=tK(5),t4=tK(6);tX.range,t0.range,t1.range,t2.range,t3.range,t5.range,t4.range;let t6=tP(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());t6.range;let t7=tP(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());t7.range;let t9=tP(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());t9.every=t=>isFinite(t=Math.floor(t))&&t>0?tP(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,t9.range;let t8=tP(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());
vendor: 5,690 bytes, line 25
25function et(t,e,n,r,i,o){let s=[[tL,1,1e3],[tL,5,5e3],[tL,15,15e3],[tL,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function a(e,n,r){let i=Math.abs(n-e)/r,o=to(([,,t])=>t).right(s,i);if(o===s.length)return t.every(tn(e/31536e6,n/31536e6,r));if(0===o)return tZ.every(Math.max(tn(e,n,r),1));let[a,l]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(l)}return[function(t,e,n){let r=e<t;r&&([t,e]=[e,t]);let i=n&&"function"==typeof n.range?n:a(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},a]}t8.every=t=>isFinite(t=Math.floor(t))&&t>0?tP(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,t8.range;let[ee,en]=et(t8,t7,tX,tF,tj,t$),[er,ei]=et(t9,t6,tq,tB,tz,tR);function eo(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function es(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ea(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var el={"-":"",_:" ",0:"0"},ec=/^\s*\d+/,eu=/^%/,eh=/[\\^$*+?|[\]().{}]/g;function ef(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?Array(n-o+1).join(e)+i:i)}function ed(t){return t.replace(eh,"\\$&")}function ep(t){return RegExp("^(?:"+t.map(ed).join("|")+")","i")}function em(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function eg(t,e,n){var r=ec.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ey(t,e,n){var r=ec.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ev(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function eb(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ex(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function e_(t,e,n){var r=ec.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ew(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ek(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function eS(t,e,n){var r=ec.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function eA(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function eM(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function eT(t,e,n){var r=ec.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function eC(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function eD(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function eE(t,e,n){var r=ec.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function eN(t,e,n){var r=ec.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function eO(t,e,n){var r=ec.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function eI(t,e,n){var r=eu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function eP(t,e,n){var r=ec.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function eZ(t,e,n){var r=ec.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function eL(t,e){return ef(t.getDate(),e,2)}function eR(t,e){return ef(t.getHours(),e,2)}function e$(t,e){return ef(t.getHours()%12||12,e,2)}function ez(t,e){return ef(1+tB.count(t9(t),t),e,3)}function ej(t,e){return ef(t.getMilliseconds(),e,3)}function eB(t,e){return ej(t,e)+"000"}function eJ(t,e){return ef(t.getMonth()+1,e,2)}function eF(t,e){return ef(t.getMinutes(),e,2)}function eU(t,e){return ef(t.getSeconds(),e,2)}function eq(t){var e=t.getDay();return 0===e?7:e}function eH(t,e){return ef(tq.count(t9(t)-1,t),e,2)}function eW(t){var e=t.getDay();return e>=4||0===e?tV(t):tV.ceil(t)}function eY(t,e){return t=eW(t),ef(tV.count(t9(t),t)+(4===t9(t).getDay()),e,2)}function eV(t){return t.getDay()}function eG(t,e){return ef(tH.count(t9(t)-1,t),e,2)}function eQ(t,e){return ef(t.getFullYear()%100,e,2)}function eK(t,e){return ef((t=eW(t)).getFullYear()%100,e,2)}function eX(t,e){return ef(t.getFullYear()%1e4,e,4)}function e0(t,e){var n=t.getDay();return ef((t=n>=4||0===n?tV(t):tV.ceil(t)).getFullYear()%1e4,e,4)}function e1(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ef(e/60|0,"0",2)+ef(e%60,"0",2)}function e2(t,e){return ef(t.getUTCDate(),e,2)}function e3(t,e){return ef(t.getUTCHours(),e,2)}function e5(t,e){return ef(t.getUTCHours()%12||12,e,2)}function e4(t,e){return ef(1+tJ.count(t8(t),t),e,3)}function e6(t,e){return ef(t.getUTCMilliseconds(),e,3)}function e7(t,e){return e6(t,e)+"000"}function e9(t,e){return ef(t.getUTCMonth()+1,e,2)}function e8(t,e){return ef(t.getUTCMinutes(),e,2)}function nt(t,e){return ef(t.getUTCSeconds(),e,2)}function ne(t){var e=t.getUTCDay();return 0===e?7:e}function nn(t,e){return ef(tX.count(t8(t)-1,t),e,2)}function nr(t){var e=t.getUTCDay();return e>=4||0===e?t3(t):t3.ceil(t)}function ni(t,e){return t=nr(t),ef(t3.count(t8(t),t)+(4===t8(t).getUTCDay()),e,2)}function no(t){return t.getUTCDay()}function ns(t,e){return ef(t0.count(t8(t)-1,t),e,2)}function na(t,e){return ef(t.getUTCFullYear()%100,e,2)}function nl(t,e){return ef((t=nr(t)).getUTCFullYear()%100,e,2)}function nc(t,e){return ef(t.getUTCFullYear()%1e4,e,4)}function nu(t,e){var n=t.getUTCDay();return ef((t=n>=4||0===n?t3(t):t3.ceil(t)).getUTCFullYear()%1e4,e,4)}function nh(){return"+0000"}function nf(){return"%"}
25function nd(t){return+t}function np(t){return Math.floor(+t/1e3)}function nm(t){return new Date(t)}function ng(t){return t instanceof Date?+t:+new Date(+t)}function ny(){return q.apply((function t(e,n,r,i,o,s,a,l,c,u){var h=t_(),f=h.invert,d=h.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),b=u("%b %d"),x=u("%B"),_=u("%Y");function w(t){return(c(t)<t?p:l(t)<t?m:a(t)<t?g:s(t)<t?y:i(t)<t?o(t)<t?v:b:r(t)<t?x:_)(t)}return h.invert=function(t){return new Date(f(t))},h.domain=function(t){return arguments.length?d(Array.from(t,ng)):d().map(nm)},h.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},h.tickFormat=function(t,e){return null==e?w:u(e)},h.nice=function(t){var e,r,i,o,s,a,l,c=d();return t&&"function"==typeof t.range||(t=n(c[0],c[c.length-1],null==t?10:t)),t?d((e=c,r=t,e=e.slice(),o=0,s=e.length-1,a=e[o],(l=e[s])<a&&(i=o,o=s,s=i,i=a,a=l,l=i),e[o]=r.floor(a),e[s]=r.ceil(l),e)):h},h.copy=function(){return tx(h,t(e,n,r,i,o,s,a,l,c,u))},h})(er,ei,t9,t6,tq,tB,tz,tR,tL,k).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}k=(w=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=ep(i),u=em(i),h=ep(o),f=em(o),d=ep(s),p=em(s),m=ep(a),g=em(a),y=ep(l),v=em(l),b={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:eL,e:eL,f:eB,g:eK,G:e0,H:eR,I:e$,j:ez,L:ej,m:eJ,M:eF,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nd,s:np,S:eU,u:eq,U:eH,V:eY,w:eV,W:eG,x:null,X:null,y:eQ,Y:eX,Z:e1,"%":nf},x={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:e2,e:e2,f:e7,g:nl,G:nu,H:e3,I:e5,j:e4,L:e6,m:e9,M:e8,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nd,s:np,S:nt,u:ne,U:nn,V:ni,w:no,W:ns,x:null,X:null,y:na,Y:nc,Z:nh,"%":nf},_={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:eM,e:eM,f:eO,g:ew,G:e_,H:eC,I:eC,j:eT,L:eN,m:eA,M:eD,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:eS,Q:eP,s:eZ,S:eE,u:ey,U:ev,V:eb,w:eg,W:ex,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:ew,Y:e_,Z:ek,"%":eI};function w(t,e){return function(n){var r,i,o,s=[],a=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(l,a)),null!=(i=el[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(t.slice(l,a)),s.join("")}}function k(t,e){return function(n){var r,i,o=ea(1900,void 0,1);if(S(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=es(ea(o.y,0,1))).getUTCDay())>4||0===i?t0.ceil(r):t0(r),r=tJ.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=eo(ea(o.y,0,1))).getDay())>4||0===i?tH.ceil(r):tH(r),r=tB.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?es(ea(o.y,0,1)).getUTCDay():eo(ea(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,es(o)):eo(o)}}function S(t,e,n,r){for(var i,o,s=0,a=e.length,l=n.length;s<a;){if(r>=l)return -1;if(37===(i=e.charCodeAt(s++))){if(!(o=_[(i=e.charAt(s++))in el?e.charAt(s++):i])||(r=o(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
25ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,w.parse,w.utcFormat,w.utcParse;var nv=function(t){for(var e=t.length/6|0,n=Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nb=n(72905),nx=n(44020),n_=n(77437);function nw(t){return"string"==typeof t?new n_.Y1([document.querySelectorAll(t)],[document.documentElement]):new n_.Y1([(0,nx.Z)(t)],n_.Jz)}function nk(t){return function(){return t}}let nS=Math.abs,nA=Math.atan2,nM=Math.cos,nT=Math.max,nC=Math.min,nD=Math.sin,nE=Math.sqrt,nN=Math.PI,nO=nN/2,nI=2*nN;function nP(t){return t>=1?nO:t<=-1?-nO:Math.asin(t)}let nZ=Math.PI,nL=2*nZ,nR=nL-1e-6;function n$(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class nz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?n$:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return n$;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,a=n-t,l=r-e,c=o-t,u=s-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>1e-6){if(Math.abs(u*a-l*c)>1e-6&&i){let f=n-o,d=r-s,p=a*a+l*l,m=Math.sqrt(p),g=Math.sqrt(h),y=i*Math.tan((nZ-Math.acos((p+h-(f*f+d*d))/(2*m*g)))/2),v=y/g,b=y/m;Math.abs(v-1)>1e-6&&this._append`L${t+v*c},${e+v*u}`,this._append`A${i},${i},0,0,${+(u*f>c*d)},${this._x1=t+b*a},${this._y1=e+b*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(r),a=n*Math.sin(r),l=t+s,c=e+a,u=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%nL+nL),h>nR?this._append`A${n},${n},0,1,${u},${t-s},${e-a}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=nZ)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function nj(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new nz(e)}function nB(t){return t.innerRadius}function nJ(t){return t.outerRadius}function nF(t){return t.startAngle}function nU(t){return t.endAngle}function nq(t){return t&&t.padAngle}function nH(t,e,n,r,i,o,s){var a=t-n,l=e-r,c=(s?o:-o)/nE(a*a+l*l),u=c*l,h=-c*a,f=t+u,d=e+h,p=n+u,m=r+h,g=(f+p)/2,y=(d+m)/2,v=p-f,b=m-d,x=v*v+b*b,_=i-o,w=f*m-p*d,k=(b<0?-1:1)*nE(nT(0,_*_*x-w*w)),S=(w*b-v*k)/x,A=(-w*v-b*k)/x,M=(w*b+v*k)/x,T=(-w*v+b*k)/x,C=S-g,D=A-y,E=M-g,N=T-y;return C*C+D*D>E*E+N*N&&(S=M,A=T),{cx:S,cy:A,x01:-u,y01:-h,x11:S*(i/_-1),y11:A*(i/_-1)}}function nW(){var t=nB,e=nJ,n=nk(0),r=null,i=nF,o=nU,s=nq,a=null,l=nj(c);function c(){var c,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=i.apply(this,arguments)-nO,p=o.apply(this,arguments)-nO,m=nS(p-d),g=p>d;if(a||(a=c=l()),f<h&&(u=f,f=h,h=u),f>1e-12){if(m>nI-1e-12)a.moveTo(f*nM(d),f*nD(d)),a.arc(0,0,f,d,p,!g),h>1e-12&&(a.moveTo(h*nM(p),h*nD(p)),a.arc(0,0,h,p,d,g));else{var y,v,b=d,x=p,_=d,w=p,k=m,S=m,A=s.apply(this,arguments)/2,M=A>1e-12&&(r?+r.apply(this,arguments):nE(h*h+f*f)),T=nC(nS(f-h)/2,+n.apply(this,arguments)),C=T,D=T;if(M>1e-12){var E=nP(M/h*nD(A)),N=nP(M/f*nD(A));(k-=2*E)>1e-12?(E*=g?1:-1,_+=E,w-=E):(k=0,_=w=(d+p)/2),(S-=2*N)>1e-12?(N*=g?1:-1,b+=N,x-=N):(S=0,b=x=(d+p)/2)}var O=f*nM(b),I=f*nD(b),P=h*nM(w),Z=h*nD(w);if(T>1e-12){var L,R=f*nM(x),$=f*nD(x),z=h*nM(_),j=h*nD(_);if(m<nN){if(L=function(t,e,n,r,i,o,s,a){var l=n-t,c=r-e,u=s-i,h=a-o,f=h*l-u*c;if(!(f*f<1e-12))return f=(u*(e-o)-h*(t-i))/f,[t+f*l,e+f*c]}(O,I,z,j,R,$,P,Z)){var B,J=O-L[0],F=I-L[1],U=R-L[0],q=$-L[1],H=1/nD(((B=(J*U+F*q)/(nE(J*J+F*F)*nE(U*U+q*q)))>1?0:B<-1?nN:Math.acos(B))/2),W=nE(L[0]*L[0]+L[1]*L[1]);
vendor: 18,994 bytes, line 25
25C=nC(T,(h-W)/(H-1)),D=nC(T,(f-W)/(H+1))}else C=D=0}}S>1e-12?D>1e-12?(y=nH(z,j,O,I,f,D,g),v=nH(R,$,P,Z,f,D,g),a.moveTo(y.cx+y.x01,y.cy+y.y01),D<T?a.arc(y.cx,y.cy,D,nA(y.y01,y.x01),nA(v.y01,v.x01),!g):(a.arc(y.cx,y.cy,D,nA(y.y01,y.x01),nA(y.y11,y.x11),!g),a.arc(0,0,f,nA(y.cy+y.y11,y.cx+y.x11),nA(v.cy+v.y11,v.cx+v.x11),!g),a.arc(v.cx,v.cy,D,nA(v.y11,v.x11),nA(v.y01,v.x01),!g))):(a.moveTo(O,I),a.arc(0,0,f,b,x,!g)):a.moveTo(O,I),h>1e-12&&k>1e-12?C>1e-12?(y=nH(P,Z,R,$,h,-C,g),v=nH(O,I,z,j,h,-C,g),a.lineTo(y.cx+y.x01,y.cy+y.y01),C<T?a.arc(y.cx,y.cy,C,nA(y.y01,y.x01),nA(v.y01,v.x01),!g):(a.arc(y.cx,y.cy,C,nA(y.y01,y.x01),nA(y.y11,y.x11),!g),a.arc(0,0,h,nA(y.cy+y.y11,y.cx+y.x11),nA(v.cy+v.y11,v.cx+v.x11),g),a.arc(v.cx,v.cy,C,nA(v.y11,v.x11),nA(v.y01,v.x01),!g))):a.arc(0,0,h,w,_,g):a.lineTo(P,Z)}}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-nN/2;return[nM(r)*n,nD(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:nk(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:nk(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:nk(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:nk(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:nk(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:nk(+t),c):o},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:nk(+t),c):s},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c}function nY(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function nV(t){this._context=t}function nG(t){return new nV(t)}function nQ(t){return t[0]}function nK(t){return t[1]}function nX(t,e){var n=nk(!0),r=null,i=nG,o=null,s=nj(a);function a(a){var l,c,u,h=(a=nY(a)).length,f=!1;for(null==r&&(o=i(u=s())),l=0;l<=h;++l)!(l<h&&n(c=a[l],l,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,l,a),+e(c,l,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?nQ:nk(t),e="function"==typeof e?e:void 0===e?nK:nk(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:nk(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:nk(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:nk(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function n0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function n1(t){return t}function n2(){var t=n1,e=n0,n=null,r=nk(0),i=nk(nI),o=nk(0);function s(s){var a,l,c,u,h,f=(s=nY(s)).length,d=0,p=Array(f),m=Array(f),g=+r.apply(this,arguments),y=Math.min(nI,Math.max(-nI,i.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/f,o.apply(this,arguments)),b=v*(y<0?-1:1);for(a=0;a<f;++a)(h=m[p[a]=a]=+t(s[a],a,s))>0&&(d+=h);for(null!=e?p.sort(function(t,n){return e(m[t],m[n])}):null!=n&&p.sort(function(t,e){return n(s[t],s[e])}),a=0,c=d?(y-f*b)/d:0;a<f;++a,g=u)u=g+((h=m[l=p[a]])>0?h*c:0)+b,m[l]={data:s[l],index:a,value:h,startAngle:g,endAngle:u,padAngle:v};return m}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:nk(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:nk(+t),s):r},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:nk(+t),s):i},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:nk(+t),s):o},s}function n3(){}function n5(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function n4(t){this._context=t}function n6(t){return new n4(t)}function n7(t){this._context=t}function n9(t){return new n7(t)}function n8(t){this._context=t}function rt(t){return new n8(t)}nz.prototype,Array.prototype.slice,nV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},n4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:n5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n7.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class re{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function rn(t){return new re(t,!0)}function rr(t){return new re(t,!1)}function ri(t,e){this._basis=new n4(t),this._beta=e}ri.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*s),this._beta*e[l]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ro=function t(e){function n(t){return 1===e?new n4(t):new ri(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function rs(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ra(t,e){this._context=t,this._k=(1-e)/6}ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:rs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rl=function t(e){function n(t){return new ra(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rc(t,e){this._context=t,this._k=(1-e)/6}rc.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ru=function t(e){function n(t){return new rc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rh(t,e){this._context=t,this._k=(1-e)/6}rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rs(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rf=function t(e){function n(t){return new rh(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rd(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function rp(t,e){this._context=t,this._alpha=e}rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:rd(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rm=function t(e){function n(t){return e?new rp(t,e):new ra(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function rg(t,e){this._context=t,this._alpha=e}rg.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rd(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ry=function t(e){function n(t){return e?new rg(t,e):new rc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function rv(t,e){this._context=t,this._alpha=e}rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rd(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rb=function t(e){function n(t){return e?new rv(t,e):new rh(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function rx(t){this._context=t}function r_(t){return new rx(t)}function rw(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0);return((o<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*i+s*r)/(r+i)))||0}function rk(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function rS(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*e,o-a,s-a*n,o,s)}function rA(t){this._context=t}function rM(t){this._context=new rT(t)}function rT(t){this._context=t}function rC(t){return new rA(t)}function rD(t){return new rM(t)}function rE(t){this._context=t}function rN(t){var e,n,r=t.length-1,i=Array(r),o=Array(r),s=Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(e=0,o[r-1]=(t[r]+i[r-1])/2;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function rO(t){return new rE(t)}function rI(t,e){this._context=t,this._t=e}function rP(t){return new rI(t,.5)}function rZ(t){return new rI(t,0)}function rL(t){return new rI(t,1)}rx.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},rA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rS(this,this._t0,rk(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,rS(this,rk(this,n=rw(this,t,e)),n);break;default:rS(this,this._t0,n=rw(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(rM.prototype=Object.create(rA.prototype)).point=function(t,e){rA.prototype.point.call(this,e,t)},rT.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},rE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n){if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=rN(t),i=rN(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s])}(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},rI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},n(98949)},37701:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(45395),i=n(61966);class o{constructor(){this.type=i.w.ALL}get(){return this.type}
25set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.w.ALL}is(t){return this.type===t}}class s{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.w.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=r.Z.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.Z.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.Z.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=r.Z.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.Z.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.Z.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.w.HSL)||void 0===e?(this._ensureHSL(),r.Z.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.w.RGB)||void 0===e?(this._ensureRGB(),r.Z.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.w.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.w.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.w.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.w.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.w.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.w.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}var a=new s({r:0,g:0,b:0,a:0},"transparent")},38456:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(37701),i=n(61966);let o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(o.re);if(!e)return;let n=e[1],i=parseInt(n,16),s=n.length,a=s%4==0,l=s>4,c=l?1:17,u=l?8:4,h=a?0:-1,f=l?255:15;return r.Z.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:a?(i&f)*c/255:1},t)},stringify:t=>{let{r:e,g:n,b:r,a:o}=t;return o<1?`#${i.Q[Math.round(e)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}${i.Q[Math.round(255*o)]}`:`#${i.Q[Math.round(e)]}${i.Q[Math.round(n)]}${i.Q[Math.round(r)]}`}};var s=n(45395);let a={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(a.hueRe);if(e){let[,t,n]=e;switch(n){case"grad":return s.Z.channel.clamp.h(.9*parseFloat(t));case"rad":return s.Z.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.Z.channel.clamp.h(360*parseFloat(t))}}return s.Z.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let n=t.match(a.re);if(!n)return;let[,i,o,l,c,u]=n;return r.Z.set({h:a._hue2deg(i),s:s.Z.channel.clamp.s(parseFloat(o)),l:s.Z.channel.clamp.l(parseFloat(l)),a:c?s.Z.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${s.Z.lang.round(e)}, ${s.Z.lang.round(n)}%, ${s.Z.lang.round(r)}%, ${i})`:`hsl(${s.Z.lang.round(e)}, ${s.Z.lang.round(n)}%, ${s.Z.lang.round(r)}%)`}},l={colors:{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",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",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",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
25almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return o.parse(e)},stringify:t=>{let e=o.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let n=t.match(c.re);if(!n)return;let[,i,o,a,l,u,h,f,d]=n;return r.Z.set({r:s.Z.channel.clamp.r(o?2.55*parseFloat(i):parseFloat(i)),g:s.Z.channel.clamp.g(l?2.55*parseFloat(a):parseFloat(a)),b:s.Z.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:f?s.Z.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)},stringify:t=>{let{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${s.Z.lang.round(e)}, ${s.Z.lang.round(n)}, ${s.Z.lang.round(r)}, ${s.Z.lang.round(i)})`:`rgb(${s.Z.lang.round(e)}, ${s.Z.lang.round(n)}, ${s.Z.lang.round(r)})`}};var u={format:{keyword:l,hex:o,rgb:c,rgba:c,hsl:a,hsla:a},parse:t=>{if("string"!=typeof t)return t;let e=o.parse(t)||c.parse(t)||a.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.w.HSL)||void 0===t.data.r?a.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?o.stringify(t):c.stringify(t)}},61966:function(t,e,n){"use strict";n.d(e,{Q:function(){return i},w:function(){return o}});var r=n(45395);let i={};for(let t=0;t<=255;t++)i[t]=r.Z.unit.dec2hex(t);let o={ALL:0,RGB:1,HSL:2}},18934:function(t,e,n){"use strict";var r=n(38456),i=n(96106);e.Z=(t,e)=>{let n=r.Z.parse(t),o={};for(let t in e)e[t]&&(o[t]=n[t]+e[t]);return(0,i.Z)(t,o)}},14480:function(t,e,n){"use strict";var r=n(45395),i=n(38456);e.Z=(t,e,n)=>{let o=i.Z.parse(t),s=o[e],a=r.Z.channel.clamp[e](s+n);return s!==a&&(o[e]=a),i.Z.stringify(o)}},96106:function(t,e,n){"use strict";var r=n(45395),i=n(38456);e.Z=(t,e)=>{let n=i.Z.parse(t);for(let t in e)n[t]=r.Z.channel.clamp[t](e[t]);return i.Z.stringify(n)}},5959:function(t,e,n){"use strict";var r=n(14480);e.Z=(t,e)=>(0,r.Z)(t,"l",-e)},34513:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(38456),i=n(85712),o=(t,e,n=50)=>{let{r:o,g:s,b:a,a:l}=r.Z.parse(t),{r:c,g:u,b:h,a:f}=r.Z.parse(e),d=n/100,p=2*d-1,m=l-f,g=((p*m==-1?p:(p+m)/(1+p*m))+1)/2,y=1-g;return(0,i.Z)(o*g+c*y,s*g+u*y,a*g+h*y,l*d+f*(1-d))},s=(t,e=100)=>{let n=r.Z.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,o(n,t,e)}},65440:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(45395),i=n(38456),o=t=>{let{r:e,g:n,b:o}=i.Z.parse(t),s=.2126*r.Z.channel.toLinear(e)+.7152*r.Z.channel.toLinear(n)+.0722*r.Z.channel.toLinear(o);return r.Z.lang.round(s)},s=t=>o(t)>=.5,a=t=>!s(t)},12724:function(t,e,n){"use strict";var r=n(14480);e.Z=(t,e)=>(0,r.Z)(t,"l",e)},85712:function(t,e,n){"use strict";var r=n(45395),i=n(37701),o=n(38456),s=n(96106);e.Z=(t,e,n=0,a=1)=>{if("number"!=typeof t)return(0,s.Z)(t,{a:e});let l=i.Z.set({r:r.Z.channel.clamp.r(t),g:r.Z.channel.clamp.g(e),b:r.Z.channel.clamp.b(n),a:r.Z.channel.clamp.a(a)});return o.Z.stringify(l)}},45395:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});let r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t,hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;let o=(n/=100)<.5?n*(1+e):n+e-n*e,s=2*n-o;switch(i){case"r":return 255*r.hue2rgb(s,o,t+1/3);case"g":return 255*r.hue2rgb(s,o,t);case"b":return 255*r.hue2rgb(s,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{let i=Math.max(t/=255,e/=255,n/=255),o=Math.min(t,e,n),s=(i+o)/2;if("l"===r)return 100*s;if(i===o)return 0;let a=i-o;if("s"===r)return 100*(s>.5?a/(2-i-o):a/(i+o));
25switch(i){case t:return((e-n)/a+(e<n?6:0))*60;case e:return((n-t)/a+2)*60;case n:return((t-e)/a+4)*60;default:return -1}}};var i={channel:r,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},81128:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(28782),i=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return -1},o=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)},s.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var a=s},7737:function(t,e,n){"use strict";var r=n(49287),i=n(47627),o=(0,r.Z)(i.Z,"Map");e.Z=o},61233:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=(0,n(49287).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},s.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};var a=n(81128),l=n(7737),c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},u=function(t,e){var n=t.__data__;return c(e)?n["string"==typeof e?"string":"hash"]:n.map};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(l.Z||a.Z),string:new s}},h.prototype.delete=function(t){var e=u(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return u(this,t).get(t)},h.prototype.has=function(t){return u(this,t).has(t)},h.prototype.set=function(t,e){var n=u(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var f=h},55088:function(t,e,n){"use strict";var r=n(49287),i=n(47627),o=(0,r.Z)(i.Z,"Set");e.Z=o},82631:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(81128),i=n(7737),o=n(61233);function s(t){var e=this.__data__=new r.Z(t);this.size=e.size}s.prototype.clear=function(){this.__data__=new r.Z,this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},s.prototype.get=function(t){return this.__data__.get(t)},s.prototype.has=function(t){return this.__data__.has(t)},s.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.Z){var s=n.__data__;if(!i.Z||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.Z(s)}return n.set(t,e),this.size=n.size,this};var a=s},344:function(t,e,n){"use strict";var r=n(47627).Z.Symbol;e.Z=r},78839:function(t,e,n){"use strict";var r=n(47627).Z.Uint8Array;e.Z=r},2259:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},i=n(2495),o=n(83788),s=n(22179),a=n(25281),l=n(22491),c=Object.prototype.hasOwnProperty,u=function(t,e){var n=(0,o.Z)(t),u=!n&&(0,i.Z)(t),h=!n&&!u&&(0,s.Z)(t),f=!n&&!u&&!h&&(0,l.Z)(t),d=n||u||h||f,p=d?r(t.length,String):[],m=p.length;for(var g in t)(e||c.call(t,g))&&!(d&&("length"==g||h&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.Z)(g,m)))&&p.push(g);return p}},23996:function(t,e,n){"use strict";var r=n(81186),i=n(28782),o=Object.prototype.hasOwnProperty;e.Z=function(t,e,n){var s=t[e];o.call(t,e)&&(0,i.Z)(s,n)&&(void 0!==n||e in t)||(0,r.Z)(t,e,n)}},81186:function(t,e,n){"use strict";var r=n(45402);e.Z=function(t,e,n){"__proto__"==e&&r.Z?(0,r.Z)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},49152:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),s=o.length;s--;){var a=o[++r];if(!1===e(i[a],a,i))break}return t}},71395:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(344),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.Z?r.Z.toStringTag:void 0,l=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i},c=Object.prototype.toString,u=r.Z?r.Z.toStringTag:void 0,h=function(t){return null==t?void 0===t?"[object Undef
25ined]":"[object Null]":u&&u in Object(t)?l(t):c.call(t)}},30498:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(12375),i=(0,n(91534).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,s=function(t){if(!(0,r.Z)(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},93092:function(t,e,n){"use strict";var r=n(35272),i=n(46262),o=n(20359);e.Z=function(t,e){return(0,o.Z)((0,i.Z)(t,e,r.Z),t+"")}},70544:function(t,e){"use strict";e.Z=function(t){return function(e){return t(e)}}},95146:function(t,e,n){"use strict";var r=n(78839);e.Z=function(t){var e=new t.constructor(t.byteLength);return new r.Z(e).set(new r.Z(t)),e}},95037:function(t,e,n){"use strict";var r=n(47627),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?r.Z.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.Z=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},93610:function(t,e,n){"use strict";var r=n(95146);e.Z=function(t,e){var n=e?(0,r.Z)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},82857:function(t,e){"use strict";e.Z=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},21169:function(t,e,n){"use strict";var r=n(23996),i=n(81186);e.Z=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var c=e[a],u=o?o(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),s?(0,i.Z)(n,c,u):(0,r.Z)(n,c,u)}return n}},45402:function(t,e,n){"use strict";var r=n(49287),i=function(){try{var t=(0,r.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.Z=i},96184:function(t,e){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;e.Z=n},49287:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r,i=n(89477),o=n(47627).Z["__core-js_shared__"],s=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",a=n(7247),l=n(27785),c=/^\[object .+?Constructor\]$/,u=Object.prototype,h=Function.prototype.toString,f=u.hasOwnProperty,d=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p=function(t,e){var n,r=null==t?void 0:t[e];return(n=r,(0,a.Z)(n)&&(!s||!(s in n))&&((0,i.Z)(n)?d:c).test((0,l.Z)(n)))?r:void 0}},98263:function(t,e,n){"use strict";var r=(0,n(91534).Z)(Object.getPrototypeOf,Object);e.Z=r},78308:function(t,e,n){"use strict";n.d(e,{Z:function(){return k}});var r=n(49287),i=n(47627),o=(0,r.Z)(i.Z,"DataView"),s=n(7737),a=(0,r.Z)(i.Z,"Promise"),l=n(55088),c=(0,r.Z)(i.Z,"WeakMap"),u=n(71395),h=n(27785),f="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",g="[object DataView]",y=(0,h.Z)(o),v=(0,h.Z)(s.Z),b=(0,h.Z)(a),x=(0,h.Z)(l.Z),_=(0,h.Z)(c),w=u.Z;(o&&w(new o(new ArrayBuffer(1)))!=g||s.Z&&w(new s.Z)!=f||a&&w(a.resolve())!=d||l.Z&&w(new l.Z)!=p||c&&w(new c)!=m)&&(w=function(t){var e=(0,u.Z)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,h.Z)(n):"";if(r)switch(r){case y:return g;case v:return f;case b:return d;case x:return p;case _:return m}return e});var k=w},93861:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(7247),i=Object.create,o=function(){function t(){}return function(e){if(!(0,r.Z)(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),s=n(98263),a=n(12375),l=function(t){return"function"!=typeof t.constructor||(0,a.Z)(t)?{}:o((0,s.Z)(t))}},25281:function(t,e){"use strict";var n=/^(?:0|[1-9]\d*)$/;e.Z=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},14026:function(t,e,n){"use strict";var r=n(28782),i=n(13932),o=n(25281),s=n(7247);e.Z=function(t,e,n){if(!(0,s.Z)(n))return!1;var a=typeof e;return("number"==a?!!((0,i.Z)(n)&&(0,o.Z)(e,n.length)):"string"==a&&e in n)&&(0,r.Z)(n[e],t)}},12375:function(t,e){"use strict";var n=Object.prototype;e.Z=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},13851:function(t,e,n){"use strict";var r=n(96184),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&r.Z.process,a=function(){try{var t=o&&o.require&&o.require("util").t
25ypes;if(t)return t;return s&&s.binding&&s.binding("util")}catch(t){}}();e.Z=a},91534:function(t,e){"use strict";e.Z=function(t,e){return function(n){return t(e(n))}}},46262:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},i=Math.max,o=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),l=Array(a);++s<a;)l[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(l),r(t,this,c)}}},47627:function(t,e,n){"use strict";var r=n(96184),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||i||Function("return this")();e.Z=o},20359:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r,i,o=n(61606),s=n(45402),a=n(35272),l=s.Z?function(t,e){return(0,s.Z)(t,"toString",{configurable:!0,enumerable:!1,value:(0,o.Z)(e),writable:!0})}:a.Z,c=Date.now,u=(r=0,i=0,function(){var t=c(),e=16-(t-i);if(i=t,e>0){if(++r>=800)return arguments[0]}else r=0;return l.apply(void 0,arguments)})},27785:function(t,e){"use strict";var n=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},61606:function(t,e){"use strict";e.Z=function(t){return function(){return t}}},28782:function(t,e){"use strict";e.Z=function(t,e){return t===e||t!=t&&e!=e}},35272:function(t,e){"use strict";e.Z=function(t){return t}},2495:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(71395),i=n(54764),o=function(t){return(0,i.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)},s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return(0,i.Z)(t)&&a.call(t,"callee")&&!l.call(t,"callee")}},83788:function(t,e){"use strict";var n=Array.isArray;e.Z=n},13932:function(t,e,n){"use strict";var r=n(89477),i=n(73277);e.Z=function(t){return null!=t&&(0,i.Z)(t.length)&&!(0,r.Z)(t)}},45408:function(t,e,n){"use strict";var r=n(13932),i=n(54764);e.Z=function(t){return(0,i.Z)(t)&&(0,r.Z)(t)}},22179:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(47627),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?r.Z.Buffer:void 0,a=(s?s.isBuffer:void 0)||function(){return!1}},67127:function(t,e,n){"use strict";var r=n(30498),i=n(78308),o=n(2495),s=n(83788),a=n(13932),l=n(22179),c=n(12375),u=n(22491),h=Object.prototype.hasOwnProperty;e.Z=function(t){if(null==t)return!0;if((0,a.Z)(t)&&((0,s.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.Z)(t)||(0,u.Z)(t)||(0,o.Z)(t)))return!t.length;var e=(0,i.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,c.Z)(t))return!(0,r.Z)(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},89477:function(t,e,n){"use strict";var r=n(71395),i=n(7247);e.Z=function(t){if(!(0,i.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},73277:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7247:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},54764:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},56643:function(t,e,n){"use strict";var r=n(71395),i=n(98263),o=n(54764),s=Object.prototype,a=Function.prototype.toString,l=s.hasOwnProperty,c=a.call(Object);e.Z=function(t){if(!(0,o.Z)(t)||"[object Object]"!=(0,r.Z)(t))return!1;var e=(0,i.Z)(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==c}},22491:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(71395),i=n(73277),o=n(54764),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var a=n(70544),l=n(13851),c=l.Z&&l.Z.isTypedArray,u=c?(0,a.Z)(c):function(t){return(0,o.Z)(t)&&(0,i.Z)(t.length)&&!!s[(0,r.Z)(t)]}},44399:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(2259),i=n(7247),o=n(12375),s=function(t){var e=[];
25if(null!=t)for(var n in Object(t))e.push(n);return e},a=Object.prototype.hasOwnProperty,l=function(t){if(!(0,i.Z)(t))return s(t);var e=(0,o.Z)(t),n=[];for(var r in t)"constructor"==r&&(e||!a.call(t,r))||n.push(r);return n},c=n(13932),u=function(t){return(0,c.Z)(t)?(0,r.Z)(t,!0):l(t)}},77184:function(t,e,n){"use strict";var r=n(61233);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z,e.Z=i},62170:function(t,e,n){"use strict";n.d(e,{Z:function(){return C}});var r,i=n(82631),o=n(81186),s=n(28782),a=function(t,e,n){(void 0===n||(0,s.Z)(t[e],n))&&(void 0!==n||e in t)||(0,o.Z)(t,e,n)},l=n(49152),c=n(95037),u=n(93610),h=n(82857),f=n(93861),d=n(2495),p=n(83788),m=n(45408),g=n(22179),y=n(89477),v=n(7247),b=n(56643),x=n(22491),_=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},w=n(21169),k=n(44399),S=function(t,e,n,r,i,o,s){var l=_(t,n),S=_(e,n),A=s.get(S);if(A){a(t,n,A);return}var M=o?o(l,S,n+"",t,e,s):void 0,T=void 0===M;if(T){var C=(0,p.Z)(S),D=!C&&(0,g.Z)(S),E=!C&&!D&&(0,x.Z)(S);(M=S,C||D||E)?(0,p.Z)(l)?M=l:(0,m.Z)(l)?M=(0,h.Z)(l):D?(T=!1,M=(0,c.Z)(S,!0)):E?(T=!1,M=(0,u.Z)(S,!0)):M=[]:(0,b.Z)(S)||(0,d.Z)(S)?(M=l,(0,d.Z)(l))?M=(0,w.Z)(l,(0,k.Z)(l)):(!(0,v.Z)(l)||(0,y.Z)(l))&&(M=(0,f.Z)(S)):T=!1}T&&(s.set(S,M),i(M,S,r,o,s),s.delete(S)),a(t,n,M)},A=function t(e,n,r,o,s){e!==n&&(0,l.Z)(n,function(l,c){if(s||(s=new i.Z),(0,v.Z)(l))S(e,n,c,r,t,o,s);else{var u=o?o(_(e,c),l,c+"",e,n,s):void 0;void 0===u&&(u=l),a(e,c,u)}},k.Z)},M=n(93092),T=n(14026),C=(r=function(t,e,n){A(t,e,n)},(0,M.Z)(function(t,e){var n=-1,i=e.length,o=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(o=r.length>3&&"function"==typeof o?(i--,o):void 0,s&&(0,T.Z)(e[0],e[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=e[n];a&&r(t,a,n,o)}return t}))},30156:function(t,e,n){"use strict";n.d(e,{V:function(){return s}});let r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(t,e){this.rules=[];let{finish:n}=e||{};function r(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let e in t)!function t(e,i,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==i)return o.push(e[0]+";");for(let n in i){let s=i[n];if(/&/.test(n))t(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),s,o);else if(s&&"object"==typeof s){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");t(r(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}(r(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=o[r]||1;return o[r]=t+1,"ͼ"+t.toString(36)}static mount(t,e,n){let r=t[i],o=n&&n.nonce;r?o&&r.setNonce(o):r=new l(t,o),r.mount(Array.isArray(e)?e:[e],t)}}let a=new Map;class l{constructor(t,e){let n=t.ownerDocument||t,r=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let e=a.get(n);if(e)return t[i]=e;this.sheet=new r.CSSStyleSheet,a.set(n,this)}else this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[i]=this}mount(t,e){let n=this.sheet,r=0,i=0;for(let e=0;e<t.length;e++){let o=t[e],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,o),n)for(let t=0;t<o.rules.length;t++)n.insertRule(o.rules[t],r++)}else{for(;i<s;)r+=this.modules[i++].rules.length;r+=o.rules.length,i++}}if(n)0>e.adoptedStyleSheets.indexOf(this.sheet)&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let n=e.head||e;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}},24136:function(t,e,n){"use strict";n.d(e,{Ab:function(){return r},Fr:function(){return i},JM:function(){return l},K$:function(){return s},h5:function(){return o},lK:function(){return a}});var r="comm",i="rule",o="decl",s="@import",a="@keyframes",l="@layer"},26471:function(t,e,n){"use strict";n.d(e,{MY:function(){return y}});var r=n(24136),i=n(1644),o=1,s=1,a=0,l=0,c=0,u="";function h(t,e,n,r,i,a,l,c){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:o,column:s,length:l,return:"",siblings:c}}function f(){return c=l<a?(0,i.uO)(u,l++):0,s++,10===c&&(s=1,o++),c}function d(){return(0,i.uO)(u,l)}function p(t,e){return(0,i.tb)(u,t,e)}function m(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function g(t){return(0,i.fy)(p(l-1,function t(e){for(;f();)switch(c){case e:return l;case 34:case 39:34!==e&&39!==e&&t(c);break;case 40:41===e&&t(e);break;case 92:f()}return l}(91===t?t+2:40===t?t+1:t)))}function y(t){var e,n;return n=function t(e,n,a,y,x,_,w,k,S){for(var A,M=0,T=0,C=w,D=0,E=0,N=0,O=1,I=1,P=1,Z=0,L="",R=x,$=_,z=y,j=L;I;)switch(N=Z,Z=f()){case 40:if(108!=N&&58==(0,i.uO)(j,C-1)){-1!=(0,i.Cw)(j+=(0,i.gx)(g(Z),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:j+=g(Z);break;case 9:case 10:case 13:case 32:j+=function(t){for(;c=d();)if(c<33)f();else break;return m(t)>2||m(c)>3?"":" "}(N);break;case 92:j+=function(t,e){for(;--e&&f()&&!(c<48)&&!(c>102)&&(!(c>57)||!(c<65))&&(!(c>70)||!(c<97)););return p(t,l+(e<6&&32==d()&&32==f()))}(l-1,7);continue;case 47:switch(d()){case 42:case 47:(0,i.R3)(h(A=function(t,e){for(;f();)if(t+c===57)break;else if(t+c===84&&47===d())break;return"/*"+p(e,l-1)+"*"+(0,i.Dp)(47===t?t:f())}(f(),l),n,a,r.Ab,(0,i.Dp)(c),(0,i.tb)(A,2,-2),0,S),S);break;default:j+="/"}break;case 123*O:k[M++]=(0,i.to)(j)*P;case 125*O:case 59:case 0:switch(Z){case 0:case 125:I=0;case 59+T:-1==P&&(j=(0,i.gx)(j,/\f/g,"")),E>0&&(0,i.to)(j)-C&&(0,i.R3)(E>32?b(j+";",y,a,C-1,S):b((0,i.gx)(j," ","")+";
25",y,a,C-2,S),S);break;case 59:j+=";";default:if((0,i.R3)(z=v(j,n,a,M,T,x,k,L,R=[],$=[],C,_),_),123===Z){if(0===T)t(j,n,z,z,R,_,C,k,$);else switch(99===D&&110===(0,i.uO)(j,3)?100:D){case 100:case 108:case 109:case 115:t(e,z,z,y&&(0,i.R3)(v(e,z,z,0,0,x,k,L,x,R=[],C,$),$),x,$,C,k,y?R:$);break;default:t(j,z,z,z,[""],$,0,k,$)}}}M=T=E=0,O=P=1,L=j="",C=w;break;case 58:C=1+(0,i.to)(j),E=N;default:if(O<1){if(123==Z)--O;else if(125==Z&&0==O++&&125==(c=l>0?(0,i.uO)(u,--l):0,s--,10===c&&(s=1,o--),c))continue}switch(j+=(0,i.Dp)(Z),Z*O){case 38:P=T>0?1:(j+="\f",-1);break;case 44:k[M++]=((0,i.to)(j)-1)*P,P=1;break;case 64:45===d()&&(j+=g(f())),D=d(),T=C=(0,i.to)(L=j+=function(t){for(;!m(d());)f();return p(t,l)}(l)),Z++;break;case 45:45===N&&2==(0,i.to)(j)&&(O=0)}}return _}("",null,null,null,[""],(e=t,o=s=1,a=(0,i.to)(u=e),l=0,t=[]),0,[0],t),u="",n}function v(t,e,n,o,s,a,l,c,u,f,d,p){for(var m=s-1,g=0===s?a:[""],y=(0,i.Ei)(g),v=0,b=0,x=0;v<o;++v)for(var _=0,w=(0,i.tb)(t,m+1,m=(0,i.Wn)(b=l[v])),k=t;_<y;++_)(k=(0,i.fy)(b>0?g[_]+" "+w:(0,i.gx)(w,/&\f/g,g[_])))&&(u[x++]=k);return h(t,e,n,0===s?r.Fr:c,u,f,d,p)}function b(t,e,n,o,s){return h(t,e,n,r.h5,(0,i.tb)(t,0,o),(0,i.tb)(t,o+1,-1),o,s)}},71790:function(t,e,n){"use strict";n.d(e,{P:function(){return s},q:function(){return o}});var r=n(24136),i=n(1644);function o(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function s(t,e,n,s){switch(t.type){case r.JM:if(t.children.length)break;case r.K$:case r.h5:return t.return=t.return||t.value;case r.Ab:return"";case r.lK:return t.return=t.value+"{"+o(t.children,s)+"}";case r.Fr:if(!(0,i.to)(t.value=t.props.join(",")))return""}return(0,i.to)(n=o(t.children,s))?t.return=t.value+"{"+n+"}":""}},1644:function(t,e,n){"use strict";n.d(e,{Cw:function(){return a},Dp:function(){return i},Ei:function(){return h},R3:function(){return f},Wn:function(){return r},fy:function(){return o},gx:function(){return s},tb:function(){return c},to:function(){return u},uO:function(){return l}});var r=Math.abs,i=String.fromCharCode;function o(t){return t.trim()}function s(t,e,n){return t.replace(e,n)}function a(t,e){return t.indexOf(e)}function l(t,e){return 0|t.charCodeAt(e)}function c(t,e,n){return t.slice(e,n)}function u(t){return t.length}function h(t){return t.length}function f(t,e){return e.push(t),t}},72791:function(t,e,n){"use strict";n.d(e,{YG:function(){return c},uY:function(){return i},ue:function(){return r}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function c(t){var e=!(o&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||s&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?i:r)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.