You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/static/js/async/7830.3554c497.js

29 lines
1.7 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*! For license information please see 7830.3554c497.js.LICENSE.txt */
(self.webpackChunk_coze_studio_app=self.webpackChunk_coze_studio_app||[]).push([["7830"],{916672:function(e,t,r){"use strict";r.d(t,{D:()=>j});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=r("252237"),s=r.n(i),a=r("455069"),l=0,u=1,c=2,d=3,p=4,h={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},f="bottom",m="left",g="right",y="top",x="bp5";"undefined"!=typeof BLUEPRINT_NAMESPACE?x=BLUEPRINT_NAMESPACE:"undefined"!=typeof REACT_APP_BLUEPRINT_NAMESPACE&&(x=REACT_APP_BLUEPRINT_NAMESPACE),C(y),C(f),C(m),C(g),_(l),_(u),_(c),_(d),_(p),k(h.PRIMARY),k(h.SUCCESS),k(h.WARNING),k(h.DANGER);var b="".concat(x,"-overflow-list"),w="".concat(b,"-spacer");function _(e){if(void 0!==e)return"".concat(x,"-elevation-").concat(e)}function k(e){if(null!=e&&e!==h.NONE)return"".concat(x,"-intent-").concat(e.toLowerCase())}function C(e){if(void 0!==e)return"".concat(x,"-position-").concat(e)}var A={START:"start",END:"end"},O="Blueprint5",D="[Blueprint] <OverflowList> does not support changing observeParents after mounting.";function S(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;else{if(null!=r)return T(e,t,r);var n=Object.keys(e),o=Object.keys(t);return T(e,t,{include:n})&&T(e,t,{include:o})}}function T(e,t,r){return(function(e,t,r){if(function(e){return null!=e&&null!=e.include}(r))return r.include;if(function(e){return null!=e&&null!=e.exclude}(r)){var n=Object.keys(e),o=Object.keys(t),i=function(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}(n.concat(o));return r.exclude.forEach(function(e){return delete i[e]}),Object.keys(i)}return[]})(e,t,r).every(function(r){return e.hasOwnProperty(r)===t.hasOwnProperty(r)&&e[r]===t[r]})}function E(e){return"production"===e}var M=function(e){function t(){var t,r=e.apply(this,arguments)||this;return r.targetRef=null!==(t=r.props.targetRef)&&void 0!==t?t:a.createRef(),r.prevElement=void 0,r}return o(t,e),t.prototype.render=function(){var e=a.Children.only(this.props.children);return void 0!==this.props.targetRef?e:a.cloneElement(e,{ref:this.targetRef})},t.prototype.componentDidMount=function(){var e=this;this.observer=null!=globalThis.ResizeObserver?new ResizeObserver(function(t){var r,n;return null===(n=(r=e.props).onResize)||void 0===n?void 0:n.call(r,t)}):void 0,this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.prevElement=void 0},t.prototype.observeElement=function(e){if(void 0===e&&(e=!1),void 0===this.observer)return;if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(this.targetRef.current!==this.prevElement||!!e){this.observer.disconnect(),this.prevElement=this.targetRef.current;if(this.observer.observe(this.targetRef.current),this.props.observeParents){for(var t=this.targetRef.current.parentElement;null!=t;)this.observer.observe(t),t=t.parentElement}}},t.displayName="".concat(O,".ResizeSensor"),t}(function(e){function t(t){var r=e.call(this,t)||this;return r.timeoutIds=[],r.requestIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var e=0,t=r.timeoutIds;e<t.length;e++){var n=t[e];window.clearTimeout(n)}r.timeoutIds=[]}},r.cancelAnimationFrames=function(){if(r.requestIds.length>0){for(var e=0,t=r.requestIds;e<t.length;e++){var n=t[e];window.cancelAnimationFrame(n)}r.requestIds=[]}},!E("production")&&r.validateProps(r.props),r}return o(t,e),t.prototype.componentDidUpdate=function(e,t,r){!E("production")&&this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var r=window.setTimeout(e,t);return this.timeoutIds.push(r),function(){return window.clearTimeout(r)}},t.prototype.validateProps=function(e){},t}(a.PureComponent)),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={chopSize:t.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!1,visible:t.props.items},t.spacer=null,t.resize=function(){t.repartition()},t}return o(t,e),t.ofType=function(){return t},t.prototype.componentDidMount=function(){this.repartition()},t.prototype.shouldComponentUpdate=function(e,t){return this.props!==e||!(this.state!==t&&S(this.state,t))},t.prototype.componentDidUpdate=function(e,t){e.observeParents!==this.props.observeParents&&console.warn(D),(e.collapseFrom!==this.props.collapseFrom||e.items!==this.props.items||e.minVisibleItems!==this.props.minVisibleItems||e.overflowRenderer!==this.props.overflowRenderer||e.alwaysRenderOverflow!==this.props.alwaysRenderOverflow||e.visibleItemRenderer!==this.props.visibleItemRenderer)&&this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!0,visible:this.props.items});var r,n,o=this.state,i=o.repartitioning,s=o.overflow,a=o.lastOverflowCount;!1===i&&!0===t.repartitioning?s.length!==a&&(null===(n=(r=this.props).onOverflow)||void 0===n||n.call(r,s.slice())):!S(t,this.state)&&this.repartition()},t.prototype.render=function(){var e=this,t=this.props,r=t.className,n=t.collapseFrom,o=t.observeParents,i=t.style,l=t.tagName,u=t.visibleItemRenderer,c=this.maybeRenderOverflow(),d=a.createElement(void 0===l?"div":l,{className:s()(b,r),style:i},n===A.START?c:null,this.state.visible.map(u),n===A.END?c:null,a.createElement("div",{className:w,ref:function(t){return e.spacer=t}}));return a.createElement(M,{onResize:this.resize,observeParents:o},d)},t.prototype.maybeRenderOverflow=function(){var e=this.state.overflow;return 0!==e.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(e.slice()):null},t.prototype.repartition=function(){var e,t=this;if(null!=this.spacer){var r=1===this.state.lastChopSize,n=null!==(e=this.props.minVisibleItems)&&void 0!==e?e:0,o=this.spacer.offsetWidth<.9&&this.state.visible.length>n,i=(this.spacer.offsetWidth>=1||this.state.visible.length<n)&&this.state.overflow.length>0&&!r;o||i?this.setState(function(e){if(t.props.collapseFrom===A.END){var r,n,i=P(e.visible,e.overflow,t.state.chopSize*(o?1:-1));r=i[0],n=i[1]}else{var i=P(e.overflow,e.visible,t.state.chopSize*(o?-1:1));n=i[0],r=i[1]}return{chopSize:N(e.chopSize),lastChopSize:e.chopSize,lastOverflowCount:t.isFirstPartitionCycle(e.chopSize)?e.overflow.length:e.lastOverflowCount,overflow:n,repartitioning:!0,visible:r}}):this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,repartitioning:!1})}},t.prototype.defaultChopSize=function(){return N(this.props.items.length)},t.prototype.isFirstPartitionCycle=function(e){return e===this.defaultChopSize()},t.displayName="".concat(O,".OverflowList"),t.defaultProps={alwaysRenderOverflow:!1,collapseFrom:A.START,minVisibleItems:0},t}(a.Component);function N(e){return Math.ceil(e/2)}function P(e,t,r){var n=e.concat(t),o=e.length-r;if(o<=0)return[[],n];if(o>=n.length)return[n,[]];var i=n.length-o;return[n.slice(0,-i),n.slice(-i)]}},121107:function(e,t,r){"use strict";r.d(t,{Ny:()=>h,tk:()=>L,sO:()=>u,JB:()=>E,T_:()=>c,RH:()=>f,W$:()=>M,uj:()=>A,Ah:()=>N,jw:()=>P,AI:()=>b,Gm:()=>X,Xe:()=>m,FF:()=>F,y:()=>H,Cb:()=>I,NA:()=>l,$Z:()=>C,Ee:()=>V,ej:()=>W,y2:()=>k,FW:()=>w,Yf:()=>z,Fb:()=>g,kC:()=>B,yv:()=>d,sR:()=>T,qt:()=>j,Rl:()=>Z,KX:()=>S,Cw:()=>p,Mf:()=>_,RB:()=>U,lp:()=>O,Yw:()=>D});var n=r("249294"),o=r("913693"),i=r("992814"),s=r("301411"),a=r("554011"),l=({view:e})=>()=>e.state.sliceDoc(),u=({view:e})=>t=>{let{state:r}=e;if(!r.readOnly)e.dispatch(r.update({changes:{from:0,to:r.doc.length,insert:t??""}}))},c=({view:e})=>()=>{e.focus()},d=({view:e})=>()=>{e.contentDOM.blur()},p=({view:e})=>t=>{e.dispatch({selection:{head:t,anchor:t}})},h=({view:e})=>()=>e.state.selection.main.head,f=({view:e})=>t=>{let r=e.state.selection.main.head,n=e.state.doc.lineAt(r),o=Math.max(n.from,r-250),i=n.text.slice(o-n.from,r-n.from);if(t instanceof RegExp){let e=i.search(function(e,t){let{source:r}=e,n=t&&"^"!==r[0],o="$"!==r[r.length-1];return n||o?RegExp(`${n?"^":""}(?:${r})${o?"$":""}`,e.flags??(e.ignoreCase?"i":"")):e}(t,!1));return e<0?null:{from:o+e,to:r,text:i.slice(e)}}return null},m=({view:e})=>()=>e,g=({view:e})=>({from:t,to:r,text:n,cursorOffset:i=0,userEvent:s})=>{let{state:a}=e;if(a.readOnly)return;let{main:l}=a.selection,u=t-l.from,c=r-l.from;e.dispatch({...e.state.changeByRange(e=>e!==l&&t!==r&&a.sliceDoc(e.from+u,e.from+c)!==a.sliceDoc(t,r)?{range:e}:{changes:{from:e.from+u,to:r===l.from?e.to:e.from+c,insert:n},range:o.jT.cursor(e.from+u+n.length+i)}),scrollIntoView:!0,userEvent:s})},y=o.Py.define(),x=()=>!0,b=o.QQ.define({create:()=>[],update(e,t){for(let e of t.effects)if(e.is(y))return e.value;return e},provide:e=>o.Wl.highest(n.$f.compute([e],t=>t.field(e).map(e=>({key:e,run:x}))))}),w=({view:e})=>t=>{e.dispatch({effects:y.of(t)})},_=({view:e})=>()=>{let{from:t,to:r,anchor:n,head:o}=e.state.selection.main;return{from:t,to:r,anchor:n,head:o}},k=({view:e})=>t=>e.state.doc.lineAt(t),C=({view:e})=>()=>e.hasFocus,A=({view:e})=>()=>n.dc.forRange(e,"",e.state.selection.main).map(e=>(function(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r})(e,["top","left","width","height"])),O=({view:e})=>t=>{let{state:r}=e;if(r.readOnly)return;let{from:n,to:i,text:s,cursorOffset:a=0,scrollIntoView:l=!0,userEvent:u}=t;e.dispatch({changes:{from:n,to:i,insert:s},selection:o.jT.cursor(n+s.length+a),scrollIntoView:l,userEvent:u})},D=({view:e})=>()=>{(0,i.Yw)({state:e.state,dispatch:e.dispatch})},S=({view:e})=>()=>{(0,i.KX)({state:e.state,dispatch:e.dispatch})},T=({view:e})=>t=>{let{from:r,to:n}=e.state.selection.main,i=t(e.state.sliceDoc(r,n));if("string"==typeof i)e.dispatch({changes:{from:r,to:n,insert:i},selection:o.jT.cursor(r+i.length)})},E=e=>void 0===e?[]:n.tk.theme({"&":{fontSize:"number"==typeof e?`${e}px`:"inherit"}}),M=e=>(0,s.W)(e??""),j=e=>o.yy.readOnly.of(e??!1),N=e=>n.tk.editable.of(e??!0),P=e=>void 0===e?[]:n.tk.theme({".cm-content, .cm-gutter, .cm-right-gutter":{minHeight:"number"==typeof e?`${e}px`:"string"==typeof e?e:"unset"}}),B=e=>void 0===e?[]:n.tk.theme({".cm-scroller":{maxHeight:"number"==typeof e?`${e}px`:"string"==typeof e?e:"unset"}}),I=e=>"string"==typeof e||"number"==typeof e?[o.Wl.high(n.tk.theme({".cm-content, .cm-gutter, .cm-right-gutter":{minHeight:"number"==typeof e?`${e}px`:e}})),n.tk.theme({".cm-scroller":{height:"number"==typeof e?`${e}px`:e}})]:[],L=e=>n.tk.contentAttributes.of(e??{}),F=e=>e?n.tk.lineWrapping:[],z=e=>e.docChanged?{value:e.state.sliceDoc()}:a.D4,R=o.Py.define(),X=n.lg.fromClass(class{hasFocus;constructor(e){this.hasFocus=e.hasFocus}update(e){e.view.hasFocus!==this.hasFocus&&(this.hasFocus=e.view.hasFocus,queueMicrotask(()=>{e.view.dispatch({effects:R.of(this.hasFocus)})}))}}),Z=e=>{for(let t of e.transactions)for(let e of t.effects)if(e.is(R)&&!0===e.value)return;return a.D4},W=e=>{for(let t of e.transactions)for(let e of t.effects)if(e.is(R)&&!1===e.value)return;return a.D4},V=e=>{if(!e.startState.selection.eq(e.state.selection)){let{from:t,to:r,anchor:n,head:o}=e.state.selection.main;return{selection:{from:t,to:r,head:o,anchor:n},update:e}}return a.D4},H=e=>e,U=()=>[o.Wl.low(n.tk.theme({"&.cm-focused":{outline:"none"},"& .cm-content":{cursor:"text"},"& .cm-placeholder":{wordBreak:"break-all"}}))]},554011:function(e,t,r){"use strict";r.d(t,{AO:function(){return d},B:function(){return u},D4:function(){return s},Gj:function(){return c},Kw:function(){return a},Ue:function(){return k},hi:function(){return l},vH:function(){return b}});var n=r(917085),o=r(249294),i=r(913693),s=Symbol("event/silent");function a(e,t){return{type:"option",name:e,handler:t}}function l(e,t){return{type:"api",name:e,handler:t}}function u(e,t){return{type:"event",name:e,handler:t}}function c(e){return{type:"domEventHandler",name:e}}function d(e){return{type:"extension",extension:e}}var p=class{constructor(e){this.fn=e}compartment=new i.F6;extension;value;init(e){this.value=e;let t=this.fn(e);return this.compartment.of(t??[])}set(e){if(e===this.value)return;this.value=e;let t=this.fn(e);return this.compartment.reconfigure(t??[])}},h=class{cachedValues=Object.create(null);handlers=Object.create(null);add(e,t){this.handlers[e]=this.handlers[e]??[],this.handlers[e].push(t)}init(e){let t=[];return Object.keys(this.handlers).map(r=>{let n=e[r];this.cachedValues[r]=n;let o=this.handlers[r];o&&o.forEach(e=>{let r=e.init(n);r&&t.push(r)})}),t}get(e){return this.cachedValues[e]}set(e){let t=[];return Object.keys(e).map(r=>{let n=e[r];this.cachedValues[r]=n;let o=this.handlers[r];o&&o.forEach(e=>{let r=e.set(n);r&&t.push(r)})}),t}},f=e=>({apply(t){t.hooks.setupOption.tap("option",t=>{let{key:r,options:n}=t;r===e.name&&n.add(e.name,new p(e.handler))})}}),m=e=>({apply(t){t.hooks.extendAPI.tap("api",t=>{let{context:r,api:n}=t,o=e.handler(r);n[e.name]=o})}}),g=e=>({apply(t){t.hooks.addExtension.tap("event",t=>{let{events:r,extensions:n}=t;n.push(o.tk.updateListener.of(t=>{let n=e.handler(t);n!==s&&r.emit(e.name,n)}))})}}),y=e=>({apply(t){t.hooks.addExtension.tap("domEventHandler",t=>{let{events:r,extensions:n}=t;n.push(o.tk.domEventHandlers({[e.name]:t=>{r.emit(e.name,t)}}))})}}),x=e=>({apply(t){t.hooks.addExtension.tap("extension",t=>{let{extensions:r}=t;r.push(e.extension)})}});function b(){let e=new i.F6,t=new i.F6,r=[],n=[];return{view:null,provideView(e){this.view=e},inject(o,i="tail"){let s="head"===i?e:t,a="head"===i?r:n;return a.push(o),queueMicrotask(()=>{this.view&&this.view.dispatch({effects:s.reconfigure(a)})}),()=>{let e=a.indexOf(o);~e&&a.splice(e,1),queueMicrotask(()=>{this.view&&this.view.dispatch({effects:s.reconfigure(a)})})}},getCompartment:o=>"head"===o?e.of(r):t.of(n)}}var w=class{#e=[];tap(e,t){this.#e.push([e,t])}call(...e){this.#e.forEach(t=>{let r=t[1];"function"==typeof r&&r(...e)})}};function _(){return new w}function k({plugins:e,injector:t=b()}){let r={extendAPI:_(),setupOption:_(),addExtension:_()},s={hooks:r},a=[],l=[];function u(e,{options:n,events:o}){a.forEach(e=>{r.setupOption.call({key:e,options:n})});let i=[];return r.addExtension.call({events:o,extensions:i}),[t.getCompartment("head"),...n.init(e),...i,t.getCompartment("tail")]}function c(){return new h}function d(){return(0,n.Z)()}function p({view:e,options:n,events:o}){function i(t){let r=n.set(t);if(0!==r.length)e.dispatch({effects:r})}function s(e){return n.get(e)}let a=Object.create(null);return r.extendAPI.call({context:{view:e,set:i,get:s},api:a}),a.$view=e,a.$on=o.on.bind(o),a.$off=o.off.bind(o),a.$get=s,a.$set=i,a.$inject=t.inject.bind(t),a.$destroy=()=>{e.destroy(),o.off("*")},a}return e.forEach(e=>{switch(e.type){case"option":a.push(e.name),f(e).apply(s);break;case"api":m(e).apply(s);break;case"event":l.push(e.name),g(e).apply(s);break;case"domEventHandler":l.push(e.name),y(e).apply(s);break;case"extension":x(e).apply(s)}}),{render:function(e){let{parent:r,root:n,defaultValue:s}=e,{extensions:a}=e;!Array.isArray(a)&&(a=[]);let l=c(),h=d(),f=u(e.options,{options:l,events:h}),m=new o.tk({parent:r,root:n,state:i.yy.create({doc:s??"",extensions:[...f,...a]})});return t.provideView(m),p({view:m,options:l,events:h})},getExtensions:u,createAPI:p,createOptions:c,createEvents:d,eventKeys:l}}o.tk.EDIT_CONTEXT=!1},301411:function(e,t,r){"use strict";r.d(t,{E:function(){return g},W:function(){return d}});var n,o=r(561700),i=r(249294),s=r(913693);function a(){return class extends i.l9{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.cssText=`
height: 0;
`,t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content),"string"==typeof this.content?t.setAttribute("aria-label",`placeholder ${this.content}`):t.setAttribute("aria-hidden","true"),t}coordsAt(e){var t;let r=e.firstChild?3==(t=e.firstChild).nodeType?(function(e,t,r=t){let o=n||(n=document.createRange());return o.setEnd(e,r),o.setStart(e,0),o})(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]:[];if(!r.length)return null;let o=window.getComputedStyle(e.parentNode),i=function(e,t){let r=t?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}(r[0],"rtl"!=o.direction),s=parseInt(o.lineHeight);return i.bottom-i.top>1.5*s?{left:i.left,right:i.right,top:i.top,bottom:i.top+s}:i}ignoreEvent(){return!1}}}var l=a(),u=s.r$.define({combine:o.wA.Last}),c=i.lg.fromClass(class{constructor(e){this.view=e;let t=e.state.facet(u);this.placeholder=this.getPlaceholder(t)}placeholder;content;update(e){let t=e.view.state.facet(u);this.content!==t&&(this.placeholder=this.getPlaceholder(t),this.content=t)}getPlaceholder(e){return e?i.p.set([i.p.widget({widget:new l(e),side:1}).range(0)]):i.p.none}get decorations(){return this.view.state.doc.length?i.p.none:this.placeholder}},{decorations:e=>e.decorations});function d(e){return[c,u.of(e)]}var p=a(),h=s.r$.define({combine:o.wA.Last}),f=i.lg.fromClass(class{decorations=i.p.none;constructor(e){e.hasFocus?this.decorations=m(e.state):this.decorations=i.p.none}update(e){if(!e.view.hasFocus){this.decorations=i.p.none;return}(e.selectionSet||e.docChanged)&&(this.decorations=m(e.state))}},{decorations:e=>e.decorations});function m(e){let t=e.selection.main.head;if(e.selection.main.empty){let r=e.doc.lineAt(t);if(r&&0===r.length){let t=e.facet(h);return i.p.set([i.p.widget({widget:new p(t),side:1}).range(r.from)])}}return i.p.none}var g=function(e){return[f,h.of(e)]}},642199:function(e,t,r){"use strict";function n(e,t){let r={...e};for(let e=0;e<t.length;e++){let n=t[e];delete r[n]}return r}r.d(t,{T9:()=>J,Gk:()=>en,Pu:()=>M,Hw:()=>z,m6:()=>er,Cj:()=>A,pt:()=>ei,bi:()=>I,j9:()=>Q,_h:()=>P,Tz:()=>et,U_:()=>y,ut:()=>R,cl:()=>D});var o,i=r("561700"),s=r("249294"),a=r("913693"),l=r("562312"),u=r("437254"),c=r("290483"),d=r("888855");let p=(0,d.Gv)({"{{ }}":d.pJ.separator}),h=c.WQ.deserialize({version:14,states:"!^QVOPOOO_QQO'#C^OOOO'#Cc'#CcQVOPOOOOQO'#Cd'#CdOgQQO,58xOOOO,58x,58xOOOO-E6a-E6aOOQO-E6b-E6bOOOO1G.d1G.d",stateData:"r~OZOS~ORPOUQO~OSSOTUO~OSSOTXO~OZS~",goto:"jXPPYPPPP^dTQORQRORVRQTPRWT",nodeNames:"⚠ Template Interpolation {{ InterpolationContent }} Text",maxTerm:11,nodeProps:[["closedBy",3,"InterpolationEnd"],["openedBy",5,"InterpolationOpen"]],propSources:[p],skippedNodes:[0],repeatNodeCount:2,tokenData:"+hRRkOX!vX^'Y^p!vpq'Yq#o!v#o#p)W#p#q!v#q#r*`#r#y!v#y#z'Y#z$f!v$f$g'Y$g#BY!v#BY#BZ'Y#BZ$IS!v$IS$I_'Y$I_$I|!v$I|$JO'Y$JO$JT!v$JT$JU'Y$JU$KV!v$KV$KW'Y$KW&FU!v&FU&FV'Y&FV;'S!v;'S;=`'S<%lO!vR!}VUPSQO#o!v#o#p#d#p#q!v#q#r%[#r;'S!v;'S;=`'S<%lO!vR#iXSQO#o!v#o#p$U#p#q!v#q#r%[#r;'S!v;'S;=`'S<%l~!v~O!v~~&}Q$ZTSQO#q$U#q#r$j#r;'S$U;'S;=`%P<%lO$UQ$mUO#q$U#r;'S$U;'S;=`%P<%l~$U~O$U~~%VQ%SP;=`<%l$UQ%[OSQR%aXUPO#o!v#o#p#d#p#q!v#q#r%|#r;'S!v;'S;=`'S<%l~!v~O!v~~%VP&RTUPO#o%|#o#p&b#p;'S%|;'S;=`&w<%lO%|P&eUO#o%|#p;'S%|;'S;=`&w<%l~%|~O%|~~&}P&zP;=`<%l%|P'SOUPR'VP;=`<%l!vR'ckUPZQSQOX!vX^'Y^p!vpq'Yq#o!v#o#p#d#p#q!v#q#r%[#r#y!v#y#z'Y#z$f!v$f$g'Y$g#BY!v#BY#BZ'Y#BZ$IS!v$IS$I_'Y$I_$I|!v$I|$JO'Y$JO$JT!v$JT$JU'Y$JU$KV!v$KV$KW'Y$KW&FU!v&FU&FV'Y&FV;'S!v;'S;=`'S<%lO!vR)]XSQO#o!v#o#p)x#p#q!v#q#r%[#r;'S!v;'S;=`'S<%l~!v~O!v~~&}R*PTRPSQO#q$U#q#r$j#r;'S$U;'S;=`%P<%lO$UR*eXUPO#o!v#o#p#d#p#q!v#q#r+Q#r;'S!v;'S;=`'S<%l~!v~O!v~~%VR+XTTQUPO#o%|#o#p&b#p;'S%|;'S;=`&w<%lO%|",tokenizers:[0,1],topRules:{Template:[0,1]},tokenPrec:31});var f=(0,s.EY)({above:!1,markers:e=>(function(e,t){let r=[];return e.forEach(e=>{let n=t.doc.lineAt(e.from),o=t.doc.lineAt(e.to);if(n.number!==o.number){let i=[],s=e.from;for(let r=n.number;r<o.number;r++){let n=t.doc.line(r);i.push({from:s,to:n.to,className:e.className}),s=n.to+1}i.push({from:s,to:e.to,className:e.className}),r.push(...i)}else r.push(e)}),r})(function(e){let t=[];return(function(e){let t=new Map;return e.forEach(e=>{!t.has(e.className)&&t.set(e.className,[]),t.get(e.className).push(e)}),t})(e).forEach((e,r)=>{let n=function(e){let t=[],r=e.map(e=>({start:e.from,end:e.to}));r.sort((e,t)=>e.start-t.start);let n=r[0];for(let e=1;e<r.length;e++){let o=r[e];o.start<=n.end?n.end=Math.max(n.end,o.end):(t.push(n),n=o)}return t.push(n),t}(e);t.push(...n.map(e=>({from:e.start,to:e.end,className:r})))}),t}(e.state.facet(m).reduce((t,r)=>[...t,...r(e)],[])),e.state).map(t=>s.dc.forRange(e,t.className,a.jT.range(t.from,t.to))).reduce((e,t)=>[...e,...t],[]),update:e=>{var t;return e.focusChanged||e.docChanged||e.selectionSet||e.viewportChanged||(t=e).startState.facet(m)!==t.state.facet(m)},class:"cm-backgroundDecoratorLayer"}),m=a.r$.define({enables:[f]}),g=a.Py.define();function y(e){e.dispatch({effects:g.of(null)})}var x=new Map;function b(e,t){let r=e.facet(_)??[],o=t.cursor(),l={highest:s.p.none,high:s.p.none,default:s.p.none,low:s.p.none,lowest:s.p.none},u=a.Xs.empty,c=[],d=e.doc.length;return(0,i.oO)(o,0,d,t=>{r.forEach(r=>{let o=r(t,e),i=[];Array.isArray(o)?i=o:o&&(i=[o]),i.forEach(e=>{let r=function(e,t,{decorations:r,backgroundDecorations:o,atomicRanges:i}){if(!t)return;let a=t.from??e.from,l=t.to??e.to,u=["type","from","to","atomicRange"],c=null;switch(t.type){case"className":var d;c=a===l?null:(d=t.className,!x.has(d)&&x.set(d,s.p.mark({class:d})),x.get(d)).range(a,l);break;case"replace":c=s.p.replace(n(t,u)).range(a,l);break;case"widget":c=s.p.widget(n(t,u)).range(a);break;case"background":o.push({from:t.from??e.from,to:t.to??e.to,className:t.className})}if(c){let e="className"===t.type?t.prec??"default":"default";r[e]&&(r[e]=r[e].update({add:[c],sort:!0}))}return"background"!==t.type&&c&&!0===t.atomicRange&&(i=i.update({add:[c],sort:!0})),{decorations:r,backgroundDecorations:o,atomicRanges:i}}(t,e,{decorations:l,backgroundDecorations:c,atomicRanges:u});if(!!r)c=r.backgroundDecorations,u=r.atomicRanges})})}),{decorations:l,atomicRanges:u,backgroundDecorations:c}}var w=a.QQ.define({create:e=>b(e,(0,l.qz)(e)),update(e,t){let r=(0,l.qz)(t.state),n=t.effects.some(e=>e.is(g));return((0,l.qz)(t.startState)!==r||n)&&(e=b(t.state,r)),e},provide:e=>[a.Wl.highest(s.tk.decorations.compute([e],t=>t.field(e).decorations.highest)),a.Wl.high(s.tk.decorations.compute([e],t=>t.field(e).decorations.high)),a.Wl.default(s.tk.decorations.compute([e],t=>t.field(e).decorations.default)),a.Wl.low(s.tk.decorations.compute([e],t=>t.field(e).decorations.low)),a.Wl.lowest(s.tk.decorations.compute([e],t=>t.field(e).decorations.lowest)),s.tk.atomicRanges.of(t=>t.state.field(e).atomicRanges),m.of(t=>t.state.field(e).backgroundDecorations)]}),_=a.r$.define({enables:[w,f]}),k=class{constructor(e){this.view=e}classNameDecorationCache=new Map;decorations=s.p.none;backgroundDecorations=[];getClassDecoration(e){return!this.classNameDecorationCache.has(e)&&this.classNameDecorationCache.set(e,s.p.mark({class:e})),this.classNameDecorationCache.get(e)}update(e){if(e.focusChanged&&e.view.hasFocus||!e.startState.selection.eq(e.state.selection)){let t=(0,l.qz)(e.state),r=e.state.selection.main.head,n=e.state.facet(C),o=t.cursorAt(r,0),i=new a.f_,s=[];do n.forEach(t=>{let r;let n=t(o,e.state);if(!!n){switch(n.type){case"className":r=this.getClassDecoration(n.className);break;case"background":s.push({from:n.from??o.from,to:n.to??o.to,className:n.className})}r&&i.add(n.from??o.from,n.to??o.to,r)}});while(o.parent());this.decorations=i.finish(),this.backgroundDecorations=s}e.focusChanged&&!e.view.hasFocus&&(this.decorations=s.p.none,this.backgroundDecorations=[])}},C=a.r$.define({enables:[s.lg.fromClass(k,{decorations:e=>e.decorations,provide:e=>[m.of(t=>{var r;return(null==(r=t.plugin(e))?void 0:r.backgroundDecorations)??[]})]})]}),A={whole:_,fromCursor:C};function O(e){let t=(0,l.qz)(e);console.groupCollapsed("Syntax Tree");let r=t.cursor();(0,i.oO)(r,0,t.length,t=>{console.group(`%c${t.name}(${t.from}:${t.to})`,"color: purple;"),console.log(e.sliceDoc(t.from,t.to)),console.groupEnd()}),console.groupEnd()}s.lg.fromClass(class{constructor(e){O(e.state)}update(e){e.docChanged&&O(e.state)}});var D=s.$f.of([{key:"ArrowLeft",run(e){let t=e.state.selection.main;if(!t.empty)return!1;let r=!1,n=t.from;for(let t of e.docView.children){for(let e of t.children)e.isWidget&&e.widget instanceof S&&e.posAtEnd===n&&(e.widget.focus(1),r=!0);if(r)break}return r}},{key:"ArrowRight",run(e){let t=e.state.selection.main;if(!t.empty)return!1;let r=!1,n=t.from;for(let t of e.docView.children){for(let e of t.children)if(e.isWidget&&e.widget instanceof S&&e.posAtStart===n){e.widget.focus(-1),r=!0;break}if(r)break}return r}}]),S=class extends s.l9{};function T(e,t){for(let r of e)if(t>=r.from&&t<=r.to)return r}var E=s.lg.fromClass(class{lastFocus=!1;constructor(e){this.lastFocus=e.hasFocus}update(e){let t=e.state.facet(j)??"select";if(e.transactions.some(e=>e.isUserEvent(t))){let t=this.lastFocus,r=e.startState.selection,{selection:n}=e.state,o=e.state.facet(M),s=function(e){if(0===e.length)return[];let t=[],r=e.map(e=>({from:e.from,to:e.to}));r.sort((e,t)=>e.from-t.from);let n=r[0];for(let e=1;e<r.length;e++){let o=r[e];o.from<=n.to?n.to=Math.max(n.to,o.to):(t.push(n),n=o)}return n&&t.push(n),t}((0,i.xH)(o.map(t=>t(e.view.state))).filter(Boolean)),l=T(s,n.main.from);n.main.empty&&l&&(!t||T(s,r.main.from)!==l||T(s,r.main.to)!==l)&&queueMicrotask(()=>{e.view.dispatch({selection:n.replaceRange(a.jT.range(l.from,l.to))})})}this.lastFocus!==e.view.hasFocus&&(this.lastFocus=e.view.hasFocus)}}),M=a.r$.define({enables:E}),j=a.r$.define({combine:i.wA.Last}),N=a.yy.transactionFilter.of(e=>{if(e.docChanged||e.newSelection.eq(e.startState.selection))return e;let t=e.startState.facet(P),r=(0,i.xH)(t.map(t=>t(e.startState))),{newSelection:n}=e;return n.ranges.forEach((e,t)=>{for(let o of r)if((0,i.A9)(e,o.source)){let r=e.head<e.anchor,i=Math.min(e.from,o.target.from),s=Math.max(e.to,o.target.to),l=r?a.jT.range(s,i,e.goalColumn,e.bidiLevel??void 0):a.jT.range(i,s,e.goalColumn,e.bidiLevel??void 0);n=n.replaceRange(l,t)}}),[e,{selection:n}]}),P=a.r$.define({enables:N}),B=a.yy.transactionFilter.of(e=>{let t=e.startState.facet(I),r=(0,i.xH)(t.map(t=>t(e.startState))),{length:n}=e.startState.doc,o=a.as.empty(n);e.changes.iterChanges((e,t,s,l)=>{if(s===l){for(let s of r)if((0,i.A9)({from:e,to:t},s.source)){let e=a.as.of([{...s.target,insert:""}],n);o=o.compose(e.map(o))}}});let s=o.map(e.changes);return s.empty?e:[e,{changes:s,sequential:!0}]}),I=a.r$.define({enables:B}),L="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),F=e=>!!e,z=e=>{let t=(e??[]).map(({type:e,triggerCharacter:t,handler:r})=>{if("character"===e)return s.tk.inputHandler.of((e,n,o,i)=>{if((L?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;return i===t&&n===s.from&&o===s.to&&r({view:e,state:e.state,from:n,to:o})})}).filter(e=>F(e));return a.Wl.high(t)};function R({name:e,outerLanguage:t,innerLanguage:r}){return l.qp.define({name:e,parser:h.configure({wrap:(0,u.FE)(e=>t&&e.type.isTop?{parser:t.parser,overlay:e=>"Text"===e.type.name}:r&&"InterpolationContent"===e.name?{parser:r.parser}:null)})})}var X=/^\s*/,Z=e=>e.match(X)[0].length,W=s.p.mark({class:"cm-indentation-guide"}),V=(function(e,t,r=1){if(null==t&&(t=e,e=0),!Number.isInteger(r)||0===r)throw Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=Array(n);for(let t=0;t<n;t++)o[t]=e+t*r;return o})(20).map(e=>s.p.line({class:`cm-indentation-level-${e}`})),H=class e extends s.l9{constructor(e){super(),this.indents=e}static create(t){return s.p.widget({widget:new e(t),side:1})}toDOM(){let e=document.createElement("span");for(let t of(e.className="cm-indentation-widget",this.indents)){let r=e.appendChild(document.createElement("span"));r.className="cm-indentation-guide",r.textContent=" ",e.append(" ".repeat(t-1))}return e}};function U(e,t,r,n,o){o.add(e,e,V[r/n]);for(let i=e;i<Math.min(e+r,t);i+=n)o.add(i,i+1,W)}function q(e){let t=new a.f_,r=Number(e.state.tabSize),{doc:n}=e.state,o=[],i=0;for(let{from:s,to:a}of e.visibleRanges){let e,l,u,c,d=s-1;for(;(e=d+1)<=a;){({from:l,to:d,length:u,text:c}=n.lineAt(e));let s=Z(c),a=s===u,p=0===s,h="/"===c[s];if(a){o.push({from:l,to:d});continue}if(p){o.length=0;continue}let f=Math.ceil(s/r)*r;for(let{from:e,to:n}of(!h&&(i=f),o))U(e,n,i,r,t),!function(e,t,r,n){if(0==t-e)r>2?n.add(t,t,H.create([r])):n.add(t,t,H.create([2,2*r]))}(e,n,r,t);o.length=0,U(l,d,f,r,t)}}return t.finish()}s.lg.fromClass(class{decorations;constructor(e){this.decorations=q(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=q(e.view))}},{decorations:e=>e.decorations}),s.tk.baseTheme({".cm-line":{paddingLeft:0,marginLeft:"2px"},".cm-indentation-guide":{position:"relative"},".cm-indentation-guide:after":{position:"absolute",content:"''",right:"0.9ch",height:"1.4em",borderLeft:"1px solid rgba(28, 31, 35, .08)"},...(e=>{let t=-1,r=null==e?0:e.length,n={};for(;++t<r;){let r=e[t];n[r[0]]=r[1]}return n})(V.map((e,t)=>[`.cm-indentation-level-${t}`,{textIndent:`-${2*t}ch`,paddingLeft:`${2*t}ch`}]))});var Y=class{constructor(e,t,r){this.lineNumber=e,this.contentHeight=t,this.scrollHeight=r}draw(){let e=document.createElement("div");return e.className="cm-empty-scroll-block-maker",this.adjust(e),e}update(e,t){return t.lineNumber===this.lineNumber&&t.contentHeight===this.contentHeight&&t.scrollHeight===this.scrollHeight}adjust(e){e.style.display="block",e.style.width="1px",this.lineNumber>1?e.style.height=`calc(${"number"==typeof this.scrollHeight?`${this.scrollHeight}px`:"100%"} + ${this.contentHeight}px)`:e.style.height="0"}eq(e){return this.lineNumber===e.lineNumber&&this.contentHeight===e.contentHeight&&this.scrollHeight===e.scrollHeight}},Q=e=>[(0,s.EY)({above:!1,updateOnDocViewUpdate:!0,class:"cm-empty-marker-layer",update:e=>e.state.doc.lines!==e.startState.doc.lines,markers:t=>[new Y(t.state.doc.lines,t.contentHeight,e)]}),s.tk.theme({"& .cm-empty-marker-layer":{height:"100%"}})],G={"(":")","{":"}","[":"]",")":"(","}":"{","]":"["},$=(e,t)=>{try{let r=e.doc.toString(),n=[],o=-1,i=-1;for(let e=t-1;e>=0;e--){let t=r[e];if(G[t]){if([")","}","]"].includes(t))n.push(t);else{if(0===n.length){o=e;break}let r=n.pop();if(G[t]!==r)return null}}}n=[];for(let e=t;e<r.length;e++){let t=r[e];if(G[t]){if(["(","{","["].includes(t))n.push(t);else{if(0===n.length){i=e;break}let r=n.pop();if(G[t]!==r)return null}}}if(-1!==o&&-1!==i)return[o,i];return null}catch(e){return console.error("findMatchingBracket failed",e),null}},K=e=>{let t=[];return t.push(s.p.mark({class:"cm-matchingBracket"}).range(e,e+1)),t},J=[a.QQ.define({create:()=>s.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let r=[];for(let e of t.state.selection.ranges){if(!e.empty)continue;let n=$(t.state,e.head);n&&(r=r.concat(K(n[0]),K(n[1])))}return s.p.set(r,!0)},provide:e=>s.tk.decorations.from(e)})],ee=["#ffd700","#da70d6","#179fff"],et=[s.lg.fromClass(class{decorations;constructor(e){this.decorations=this.getBracketDecorations(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.getBracketDecorations(e.view))}getBracketDecorations(e){let{doc:t}=e.state,r=[],n=[],o=["Comment","String"],i=(0,l.qz)(e.state);for(let e=0;e<t.length;e+=1){let a=t.sliceString(e,e+1),l=i.resolveInner(e);if(!o.includes(l.type.name)){if("("===a||"["===a||"{"===a)n.push({type:a,from:e});else if(")"===a||"]"===a||"}"===a){let t=n.pop();if(t&&t.type===this.getMatchingBracket(a)){let o=n.length%3;r.push(s.p.mark({class:`colorization-bracket-${o}`}).range(t.from,t.from+1),s.p.mark({class:`colorization-bracket-${o}`}).range(e,e+1))}}}}return r.sort((e,t)=>e.from-t.from||e.startSide-t.startSide),s.p.set(r)}getMatchingBracket(e){switch(e){case")":return"(";case"]":return"[";case"}":return"{";default:return null}}},{decorations:e=>e.decorations}),s.tk.baseTheme({".colorization-bracket-0":{color:"#ffd700"},".colorization-bracket-0 > span":{color:"#ffd700"},".colorization-bracket-1":{color:"#da70d6"},".colorization-bracket-1 > span":{color:"#da70d6"},".colorization-bracket-2":{color:"#179fff"},".colorization-bracket-2 > span":{color:"#179fff"}})];var er=((o=er||{}).Head="head",o.Anchor="anchor",o),en=a.r$.define(),eo=class{constructor(e,t){this.dom=e,this.rect=t}eq(e){return!!((!this.rect&&!e.rect||this.rect&&e.rect&&this.rect.left===e.rect.left&&this.rect.top===e.rect.top&&this.rect.width===e.rect.width&&this.rect.height===e.rect.height)&&this.dom===e.dom)}draw(){return this.adjust(this.dom),this.dom}update(){return this.adjust(this.dom),!0}adjust(e){if(e.style.pointerEvents="none",!!this.rect)e.style.left=`${this.rect.left}px`,e.style.top=`${this.rect.top}px`,e.style.width=`${this.rect.width}px`,e.style.height=`${this.rect.height}px`}},ei=(0,s.EY)({above:!0,markers(e){let t=e.state.facet(en);if(!t||0===t.length)return[];let r=function(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===s.Nm.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}(e),n=[],o=[];for(let{dom:i,pos:s}of t){if(!i)continue;let t=-1;"function"==typeof s?t=s(e):"number"==typeof s?t=s:"head"===s?t=e.state.selection.main.head:"anchor"===s&&(t=e.state.selection.main.anchor);let a=e.coordsAtPos(t);if(a){n.push(a);let e=a.left-r.left-.5,t=a.top-r.top,s=a.bottom-a.top;o.push(new eo(i,{left:e,top:t,width:1,height:s}))}else o.push(new eo(i))}return o},update:e=>{var t;return e.docChanged||e.selectionSet||e.viewportChanged||(t=e).startState.facet(en)!==t.state.facet(en)},class:"cm-positionReferenceLayer"}),es=new Map;a.r$.define({combine(e){let t=new a.f_;for(let r of function(e){let t=[];return(function(e){let t=new Map;return e.forEach(e=>{!t.has(e.className)&&t.set(e.className,[]),t.get(e.className).push(e)}),t})(e).forEach((e,r)=>{let n=function(e){let t=[],r=e.map(e=>({start:e.from,end:e.to}));r.sort((e,t)=>e.start-t.start);let n=r[0];for(let e=1;e<r.length;e++){let o=r[e];o.start<=n.end?n.end=Math.max(n.end,o.end):(t.push(n),n=o)}return t.push(n),t}(e);t.push(...n.map(e=>({from:e.start,to:e.end,className:r})))}),t.sort((e,t)=>e.from-t.from),t}(e.reduce((e,t)=>[...e,...t],[]))){let e=function(e){if(!es.has(e)){let t=s.p.mark({class:e});es.set(e,t)}return es.get(e)}(r.className);t.add(r.from,r.to,e)}return t.finish()},enables:e=>s.tk.decorations.compute([e],t=>t.facet(e))});var ea=[a.yy.changeFilter.of(e=>{let t=e.startState.facet(el).reduce((t,r)=>[...t,...r(e.startState)],[]);return!Array.isArray(t)||t.reduce((e,t)=>[...e,t.from,t.to],[])}),a.yy.transactionFilter.of(e=>{let t=e.startState.doc.length,r=e.startState.facet(el).reduce((t,r)=>[...t,...r(e.state)],[]).filter(e=>e.from>=0&&e.from<t&&e.to>=0&&e.to<t),{newSelection:n}=e;return(n.ranges.forEach((e,t)=>{for(let o of r)if(e.empty&&e.from>o.from&&e.to<o.to&&(n=n.replaceRange(a.jT.cursor(e.assoc>0?o.from:o.to,e.assoc),t)),!e.empty&&(0,i.A9)(e,o)){let r=e.head<e.anchor;e.anchor<o.from?n=n.replaceRange(a.jT.range(e.anchor,o.from,e.goalColumn,e.bidiLevel??void 0),t):e.anchor>o.to?n=n.replaceRange(a.jT.range(e.anchor,o.to,e.goalColumn,e.bidiLevel??void 0),t):e.anchor>=o.from&&e.anchor<=o.to&&(n=r?n.replaceRange(a.jT.range(o.from,Math.min(e.head,o.from),e.goalColumn,e.bidiLevel??void 0),t):n.replaceRange(a.jT.range(o.to,Math.max(e.head,o.to),e.goalColumn,e.bidiLevel??void 0),t))}}),n.eq(e.newSelection))?e:[e,{selection:n}]})],el=a.r$.define({enables:()=>ea})},740835:function(e,t,r){"use strict";r.d(t,{R:function(){return d},Z:function(){return p}});var n=r(642199),o=r(121107),i=r(554011),s=r(249294),a=r(913693),l=r(562312),u=r(992814),c=r(801138),d=[(0,i.AO)([(0,s.AE)(),(0,u.m8)(),s.$f.of([...u.wQ,...u.f$]),a.yy.tabSize.of(2),l.c.of(" ".repeat(2)),s.tk.lineWrapping,(0,o.RB)(),o.Gm]),(0,i.Kw)("fontSize",o.JB),(0,i.Kw)("placeholder",o.W$),(0,i.Kw)("readOnly",o.qt),(0,i.Kw)("editable",o.Ah),(0,i.Kw)("inputRules",n.Hw),(0,i.Kw)("contentAttributes",o.tk),(0,i.B)("change",o.Yf),(0,i.B)("focus",o.Rl),(0,i.B)("blur",o.ej),(0,i.B)("selectionChange",o.Ee),(0,i.B)("viewUpdate",o.y),(0,i.Gj)("compositionstart"),(0,i.Gj)("compositionend"),(0,i.Gj)("mousedown"),(0,i.Gj)("mouseup"),(0,i.AO)(o.AI),(0,i.hi)("disableKeybindings",o.FW),(0,i.hi)("getView",o.Xe),(0,i.hi)("matchBefore",o.RH),(0,i.hi)("updateWholeDecorations",({view:e})=>()=>{(0,n.U_)(e)}),(0,i.hi)("getValue",o.NA),(0,i.hi)("setValue",o.sO),(0,i.hi)("focus",o.T_),(0,i.hi)("blur",o.yv),(0,i.hi)("isFocused",o.$Z),(0,i.hi)("getCursorPosition",o.Ny),(0,i.hi)("setCursorPosition",o.Cw),(0,i.hi)("getSelection",o.Mf),(0,i.hi)("replaceTextByRange",o.Fb)],p=[...d,(0,i.AO)([(0,l.nF)(l.R_,{fallback:!0}),(0,c.vQ)()])]},665917:function(e,t,r){"use strict";r.d(t,{ZP:()=>tO,Q$:()=>tk});var n,o,i=r("740835"),s=r("642199"),a=r("121107"),l=r("554011"),u=r("913693"),c=r("562312"),d=r("801138"),p=r("437254"),h=r("290483");let f=["{%","endraw","%}"],m=new h.Jq(e=>{let t=f[0].charCodeAt(0),r=0,n=!1;for(;!(e.next<0);){;if(e.next===t){let t=0,o=0;for(;o<f.length;o++){let r=f[o];if(function(e,t,r){let n=0,o=0;for(;;)if(e.peek(t+n)===r.charCodeAt(n)&&o<r.length)n++,o++;else break;return o===r.length}(e,t,r)){if(t+=r.length,o<f.length-1){let r=y(e,t);t+=r}}else break}if(o===f.length){n=!0;break}e.advance(),r++}else e.advance(),r++}if(!!n||!(e.next<0))r>0&&e.acceptToken(4)}),g=/^\s+$/;function y(e,t){let r=t,n=0;for(;;){let t=String.fromCharCode(e.peek(r));if(g.test(t))r++,n++;else break}return n}let x=w(39),b=w(34);function w(e){let t=39===e?31:33,r=39===e?30:32;return new h.Jq(n=>{let o=0;for(;!(n.next<0);){;if(92===n.next&&92===n.peek(1)||92===n.next&&n.peek(1)===e){n.advance(2),o+=2;continue}if(n.next===e||37===n.next&&125===n.peek(1)||10===n.next||13===n.next)break;o++,n.advance()}o>0&&n.acceptToken(r),n.next===e&&n.advance(),n.acceptToken(t)})}let _=new h.Jq(e=>{if(45===e.next||43===e.next){let t=y(e,1);if(125===e.peek(t+1)&&125===e.peek(t+2)){e.advance(t+3),e.acceptToken(1);return}}if(125===e.next&&125===e.peek(1)){e.advance(2),e.acceptToken(1);return}if(123===e.next&&35===e.peek(1)||e.next<0){e.acceptToken(1);return}}),k=new h.Jq(e=>{if(45===e.next||43===e.next){let t=y(e,1);if(37===e.peek(t+1)&&125===e.peek(t+2)){e.advance(t+3),e.acceptToken(2);return}}if(37===e.next&&125===e.peek(1)){e.advance(2),e.acceptToken(2);return}if(123===e.next&&35===e.peek(1)||e.next<0){e.acceptToken(2);return}}),C=new h.Jq(e=>{35===e.next&&125===e.peek(1)?(e.advance(2),e.acceptToken(3)):123===e.next&&35===e.peek(1)&&e.acceptToken(3)}),A=new h.Jq(e=>{let t=0,r=0;for(;;){let n=e.peek(t);if(n<0)break;if(123!==n)t++,r++;else if(123===n&&123!==e.peek(t+1)&&35!==e.peek(t+1)&&37!==e.peek(t+1))t++,r++;else if(123===n&&123===e.peek(t+1)&&(123===e.peek(t+2)||35===e.peek(t+2)||37===e.peek(t+2)))t++,r++;else break}r>0&&(e.advance(r),e.acceptToken(5))});var O=r("888855");let D=(0,O.Gv)({"JinjaExpressionStart JinjaExpressionEnd JinjaStatementStart JinjaStatementEnd":O.pJ.angleBracket,"JinjaCommentStart JinjaCommentContent JinjaCommentEnd":O.pJ.blockComment}),S={__proto__:null,if:76,elif:78,else:80,endif:82,is:84,not:86,set:88,for:90,in:92,endfor:94,extends:96,macro:98,endmacro:100,block:102,endblock:104,call:106,endcall:108,include:110,from:112,import:114,as:116,raw:42,endraw:46},T=h.WQ.deserialize({version:14,states:"&`QYO%WOOOhO&zO'#CcO#jQ#xO'#CfO#qO$fO'#CnO%pQ,^O'#CtOOO!b'#DR'#DROOO!b'#Cu'#CuQYO%WOOOOO`'#Cv'#CvO%zO&zO,58}OOO!b,58},58}O&SOPO'#CjO&[OQO'#CjOOQS'#Cw'#CwO&dQ#xO,59QOOO!b,59Q,59QOOQ['#Ch'#ChO&kQ7[O'#CwOOO!b,59Y,59YO#tO#tO,59YO&pQ#tO'#CrOOQW'#Cx'#CxO&uQ,^O,59`OOO!b,59`,59`O&|Q#|O,59ZOOO!b-E6s-E6sOOO`-E6t-E6tOOO!b1G.i1G.iOOQ[,59U,59UO'ROPO,59UO'WOQO,59UOOQS-E6u-E6uOOO!b1G.l1G.lOOQS,59c,59cOOO!b1G.t1G.tO']Q#|O,59^OOQW-E6v-E6vOOO!b1G.z1G.zOOOp1G.u1G.uOOQ[1G.p1G.pOOO!b1G.x1G.x",stateData:"'m~OsOStOS~OTTOWPOZQOdSO~ORYOXWO~O]]O_]Oa]Ov`Ow`Ox`Oy`Oz`O{`O|`O}`O!O`O!P`O!Q`O!R`O!S`O!T`O!U`O!V`O!W`O!X`O!Y`O!Z`O![`O!]ZO!^[O!_aO!`]O~OP_O~PpOScOddO~O]eO_eOv`Ow`Ox`Oy`Oz`O{`O|`O}`O!O`O!P`O!Q`O!R`O!S`O!T`O!U`O!V`O!W`O!X`O!Y`O!Z`O![`O!]ZO!^[O!`eO!aeO~OQgOehO~P#yORkOXWO~OnmOolO~OpnOqlO~OPpO~PpO`qO~OgsO~OQuO~P#yOQvO~OowO~OqwO~OQxO~Os`dt]_!`!aa]~",goto:"!{vPPPPPPPwPPwP{P{PPPw!TPP!XPw!_!e!k!qPPPPPPPP!wTTOVS]Q^TeSfTROVQbRRrcQVORiVQXPRjXQ^QRo^QfSRtfTUOV",nodeNames:"⚠ JinjaExpressionEnd JinjaStatementEnd JinjaCommentEnd RawText JinjaText JinjaProgram JinjaComment JinjaCommentStart JinjaCommentContent JinjaExpression JinjaExpressionStart JinjaKeyword JinjaIdentifier JinjaStringLiteral JinjaNumberLiteral JinjaFilterName JinjaExpressionUnknownContent JinjaRawBlock JinjaRawOpenStatement JinjaStatementStart JinjaKeyword JinjaRawCloseStatement JinjaKeyword JinjaStatement",maxTerm:63,propSources:[D],skippedNodes:[0],repeatNodeCount:4,tokenData:"!)f_R!^OX$}XY;_YZ>QZ[;_[]$}]^?e^p$}pq;_qrAOrsBcst'|tuCPuvEUvw$}wxFZxyAOyzAOz{AO{|Fw|}AO}!OFw!O!PGv!P!QAO!Q![KO![!]AO!]!^$}!^!_AO!_!`AO!`!aAO!a!bAO!b!c$}!c!}CP!}#OAO#O#P$}#P#QAO#Q#RAO#R#SCP#S#T$}#T#oCP#o#pLr#p#q!$}#q#r8f#r#sAO#s$f$}$f$g;_$g#BYCP#BY#BZ!&Y#BZ$ISCP$IS$I_!&Y$I_$JTCP$JT$JU!&Y$JU$KVCP$KV$KW!&Y$KW&FUCP&FU&FV!&Y&FV;'SCP;'S;=`EO<%l?HTCP?HT?HU!&Y?HUOCPV%WbXQ!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}Q&eVXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`Q&}UO#q&`#r;'S&`;'S;=`'a<%l~&`~O&`~~&`Q'dP;=`<%l&`Q'jUOs&`t;'S&`;'S;=`'a<%l~&`~O&`~~&`V(Tb!aSaPOr$}rs&`su$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#q*`#q#r5W#r;'S$};'S;=`5Q<%l~$}~O$}~~&`V)d^XQaPOr$}rs*`st'|tw$}wx*`x#o$}#o#p-k#p#q*`#q#r0V#r;'S$};'S;=`5Q<%l~$}~O$}~~.rU*g`XQ!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`U+na!aSOr*`rs&`su*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#q*`#q#r.r#r;'S*`;'S;=`0P<%l~*`~O*`~~&`U,xZXQOs*`st+it#o*`#o#p-k#p#q*`#q#r&`#r;'S*`;'S;=`0P<%l~*`~O*`~~.rU-p`!aSOr*`rs&`st.rtu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O;'S*`;'S;=`0P<%l~*`~O*`~~&`S.wX!aSOr.rsu.ruv/dvw.rx{.r|}.r!O;'S.r;'S;=`/y<%lO.rS/gUO#q.r#r;'S.r;'S;=`/y<%l~.r~O.r~~.rS/|P;=`<%l.rU0SP;=`<%l*`R0[ZXQOs0}st1zt#o0}#o#p4S#p#q0}#q#r&`#r;'S0};'S;=`3|<%l~0}~O0}~~3[R1U[XQaPOr0}rs&`st1ztw0}wx&`x#o0}#o#p'g#p#q&`#q#r0V#r;'S0};'S;=`3|<%lO0}R2P[aPOr0}rs&`sw0}wx&`x#o0}#o#q&`#q#r2u#r;'S0};'S;=`3|<%l~0}~O0}~~&`P2xUO#q3[#r;'S3[;'S;=`3v<%l~3[~O3[~~3[P3aVaPOr3[sw3[x#o3[#q#r2u#r;'S3[;'S;=`3v<%lO3[P3yP;=`<%l3[R4PP;=`<%l0}R4X]aPOr0}rs&`st3[tw0}wx&`x#o0}#o#q&`#q#r0V#r;'S0};'S;=`3|<%l~0}~O0}~~&`V5TP;=`<%l$}T5]a!aSOr6brs3[su6buv7evw6bwx3[x{6b{|3[|}6b}!O3[!O#q6b#q#r.r#r;'S6b;'S;=`8`<%l~6b~O6b~~3[T6i^!aSaPOr6bsu6buv7evw6bx{6b{|3[|}6b}!O3[!O#o6b#o#q.r#q#r5W#r;'S6b;'S;=`8`<%lO6bT7j[aPOr6brs.rsw6bwx.rx#o6b#o#q.r#q#r2u#r;'S6b;'S;=`8`<%l~6b~O6b~~.rT8cP;=`<%l6bV8mdXQ!aSOr$}rs0}st'|tu$}uv)]vw$}wx0}x{$}{|0}|}$}}!O0}!O#o$}#o#p9{#p#q$}#q#r*`#r;'S$};'S;=`5Q<%l~$}~O$}~~3[V:Sc!aSaPOr$}rs&`st6btu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#q*`#q#r8f#r;'S$};'S;=`5Q<%l~$}~O$}~~&`_;jvXQs]!aSaPOX$}XY;_YZ$}Z[;_[p$}pq;_qr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r$f$}$f$g;_$g#BY$}#BY#BZ;_#BZ$IS$}$IS$I_;_$I_$JT$}$JT$JU;_$JU$KV$}$KV$KW;_$KW&FU$}&FU&FV;_&FV;'S$};'S;=`5Q<%l?HT$}?HT?HU;_?HUO$}_>]bXQt]!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}_?pdXQt]!aSaPOY$}YZ>QZr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VAZbXQ!`T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VBjV!^TXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`_C^jXQ`W]T!aSaPOr$}rs&`st'|tuCPuv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![CP![!c$}!c!}CP!}#R$}#R#SCP#S#T$}#T#oCP#o#p-k#p#q*`#q#r8f#r$g$}$g;'SCP;'S;=`EO<%lOCP_ERP;=`<%lCPVE_^XQ!`TaPOr$}rs*`st'|tw$}wx*`x#o$}#o#p-k#p#q*`#q#r0V#r;'S$};'S;=`5Q<%l~$}~O$}~~.rVFbV!]TXQOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`VGQ[XQ!`TaPOr0}rs&`st1ztw0}wx&`x#o0}#o#p'g#p#q&`#q#r0V#r;'S0};'S;=`3|<%lO0}VHPdXQ!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![I_![#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VIjfXQ_T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![I_![#R$}#R#SI_#S#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VKZgXQ_T!aSaPOr$}rs&`st'|tu$}uv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!PI_!P!Q$}!Q![KO![#R$}#R#SKO#S#o$}#o#p-k#p#q*`#q#r8f#r;'S$};'S;=`5Q<%lO$}VLwb!aSOr*`rs&`stNPtu*`uvNsvw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p!#U#p;'S*`;'S;=`0P<%l~*`~O*`~~&`TNWXWP!aSOr.rsu.ruv/dvw.rx{.r|}.r!O;'S.r;'S;=`/y<%lO.rVNz_XQdPOs*`st+it{*`{|! y|}*`}!O! y!O#o*`#o#p-k#p#q*`#q#r&`#r;'S*`;'S;=`0P<%l~*`~O*`~~.rV!!S`XQdP!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`V!#_`XQZP!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|!$a|}*`}!O!$a!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`R!$hVXQZPOs&`st&zt#o&`#o#p'g#p;'S&`;'S;=`'a<%lO&`V!%W`!_PXQ!aSOr*`rs&`st+itu*`uv,svw*`wx&`x{*`{|&`|}*`}!O&`!O#o*`#o#p-k#p;'S*`;'S;=`0P<%lO*`_!&i}XQs]`W]T!aSaPOX$}XY;_YZ$}Z[;_[p$}pq;_qr$}rs&`st'|tuCPuv)]vw$}wx&`x{$}{|0}|}$}}!O0}!O!Q$}!Q![CP![!c$}!c!}CP!}#R$}#R#SCP#S#T$}#T#oCP#o#p-k#p#q*`#q#r8f#r$f$}$f$g;_$g#BYCP#BY#BZ!&Y#BZ$ISCP$IS$I_!&Y$I_$JTCP$JT$JU!&Y$JU$KVCP$KV$KW!&Y$KW&FUCP&FU&FV!&Y&FV;'SCP;'S;=`EO<%l?HTCP?HT?HU!&Y?HUOCP",tokenizers:[x,b,_,k,C,m,A,0,1,2,3],topRules:{JinjaProgram:[0,6]},specialized:[{term:13,get:e=>S[e]||-1}],tokenPrec:294});class E{static create(e,t,r,n,o){return new E(e,t,r,n+(n<<8)+e+(t<<4)|0,o,[],[])}constructor(e,t,r,n,o,i,s){this.type=e,this.value=t,this.from=r,this.hash=n,this.end=o,this.children=i,this.positions=s,this.hashProp=[[p.md.contextHash,n]]}addChild(e,t){e.prop(p.md.contextHash)!=this.hash&&(e=new p.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let r=this.children.length-1;return r>=0&&(t=Math.max(t,this.positions[r]+this.children[r].length+this.from)),new p.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,r)=>new p.mp(p.Jq.none,e,t,r,this.hashProp)})}}(n=o||(o={}))[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.Autolink=33]="Autolink",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel",n[n.URL=44]="URL";class M{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class j{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return I(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,r=0){for(let n=t;n<e;n++)r+=9==this.text.charCodeAt(n)?4-r%4:1;return r}findColumn(e){let t=0;for(let r=0;t<this.text.length&&r<e;t++)r+=9==this.text.charCodeAt(t)?4-r%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function N(e,t,r){if(r.pos==r.text.length||e!=t.block&&r.indent>=t.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let n=(e.type==o.OrderedList?W:Z)(r,t,!1);return n>0&&(e.type!=o.BulletList||0>R(r,t,!1))&&r.text.charCodeAt(r.pos+n-1)==e.value}let P={[o.Blockquote]:(e,t,r)=>62==r.next&&(r.markers.push(ef(o.QuoteMark,t.lineStart+r.pos,t.lineStart+r.pos+1)),r.moveBase(r.pos+(B(r.text.charCodeAt(r.pos+1))?2:1)),e.end=t.lineStart+r.text.length,!0),[o.ListItem]:(e,t,r)=>(!(r.indent<r.baseIndent+e.value)||!(r.next>-1))&&(r.moveBaseColumn(r.baseIndent+e.value),!0),[o.OrderedList]:N,[o.BulletList]:N,[o.Document]:()=>!0};function B(e){return 32==e||9==e||10==e||13==e}function I(e,t=0){for(;t<e.length&&B(e.charCodeAt(t));)t++;return t}function L(e,t,r){for(;t>r&&B(e.charCodeAt(t-1));)t--;return t}function F(e){if(96!=e.next&&126!=e.next)return -1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return -1;if(96==e.next){for(let r=t;r<e.text.length;r++)if(96==e.text.charCodeAt(r))return -1}return t}function z(e){return 62!=e.next?-1:32==e.text.charCodeAt(e.pos+1)?2:1}function R(e,t,r){if(42!=e.next&&45!=e.next&&95!=e.next)return -1;let n=1;for(let t=e.pos+1;t<e.text.length;t++){let r=e.text.charCodeAt(t);if(r==e.next)n++;else if(!B(r))return -1}return r&&45==e.next&&H(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(en.SetextHeading)>-1?-1:n<3?-1:1}function X(e,t){for(let r=e.stack.length-1;r>=0;r--)if(e.stack[r].type==t)return!0;return!1}function Z(e,t,r){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||B(e.text.charCodeAt(e.pos+1)))&&(!r||X(t,o.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function W(e,t,r){let n=e.pos,i=e.next;for(;i>=48&&i<=57;){if(++n==e.text.length)return -1;i=e.text.charCodeAt(n)}return n==e.pos||n>e.pos+9||46!=i&&41!=i||n<e.text.length-1&&!B(e.text.charCodeAt(n+1))||r&&!X(t,o.OrderedList)&&(e.skipSpace(n+1)==e.text.length||n>e.pos+1||49!=e.next)?-1:n+1-e.pos}function V(e){if(35!=e.next)return -1;let t=e.pos+1;for(;t<e.text.length&&35==e.text.charCodeAt(t);)t++;if(t<e.text.length&&32!=e.text.charCodeAt(t))return -1;let r=t-e.pos;return r>6?-1:r}function H(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let r=t;for(;t<e.text.length&&B(e.text.charCodeAt(t));)t++;return t==e.text.length?r:-1}let U=/^[ \t]*$/,q=/-->/,Y=/\?>/,Q=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,q],[/^\s*<\?/,Y],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,U],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,U]];function G(e,t,r){if(60!=e.next)return -1;let n=e.text.slice(e.pos);for(let e=0,t=Q.length-(r?1:0);e<t;e++)if(Q[e][0].test(n))return e;return -1}function $(e,t){let r=e.countIndent(t,e.pos,e.indent),n=e.countIndent(e.skipSpace(t),t,r);return n>=r+5?r+1:n}function K(e,t,r){let n=e.length-1;n>=0&&e[n].to==t&&e[n].type==o.CodeText?e[n].to=r:e.push(ef(o.CodeText,t,r))}let J={LinkReference:void 0,IndentedCode(e,t){let r=t.baseIndent+4;if(t.indent<r)return!1;let n=t.findColumn(r),i=e.lineStart+n,s=e.lineStart+t.text.length,a=[],l=[];for(K(a,i,s);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length)for(let r of(K(l,e.lineStart-1,e.lineStart),t.markers))l.push(r);else if(t.indent<r)break;else{if(l.length){for(let e of l)e.type==o.CodeText?K(a,e.from,e.to):a.push(e);l=[]}for(let r of(K(a,e.lineStart-1,e.lineStart),t.markers))a.push(r);s=e.lineStart+t.text.length;let r=e.lineStart+t.findColumn(t.baseIndent+4);r<s&&K(a,r,s)}return l.length&&(l=l.filter(e=>e.type!=o.CodeText)).length&&(t.markers=l.concat(t.markers)),e.addNode(e.buffer.writeElements(a,-i).finish(o.CodeBlock,s-i),i),!0},FencedCode(e,t){let r=F(t);if(r<0)return!1;let n=e.lineStart+t.pos,i=t.next,s=r-t.pos,a=t.skipSpace(r),l=L(t.text,t.text.length,a),u=[ef(o.CodeMark,n,n+s)];a<l&&u.push(ef(o.CodeInfo,e.lineStart+a,e.lineStart+l));for(let r=!0;e.nextLine()&&t.depth>=e.stack.length;r=!1){let n=t.pos;if(t.indent-t.baseIndent<4)for(;n<t.text.length&&t.text.charCodeAt(n)==i;)n++;if(n-t.pos>=s&&t.skipSpace(n)==t.text.length){for(let e of t.markers)u.push(e);u.push(ef(o.CodeMark,e.lineStart+t.pos,e.lineStart+n)),e.nextLine();break}{for(let n of(!r&&K(u,e.lineStart-1,e.lineStart),t.markers))u.push(n);let n=e.lineStart+t.basePos,o=e.lineStart+t.text.length;n<o&&K(u,n,o)}}return e.addNode(e.buffer.writeElements(u,-n).finish(o.FencedCode,e.prevLineEnd()-n),n),!0},Blockquote(e,t){let r=z(t);return!(r<0)&&(e.startContext(o.Blockquote,t.pos),e.addNode(o.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+r),null)},HorizontalRule(e,t){if(0>R(t,e,!1))return!1;let r=e.lineStart+t.pos;return e.nextLine(),e.addNode(o.HorizontalRule,r),!0},BulletList(e,t){let r=Z(t,e,!1);if(r<0)return!1;e.block.type!=o.BulletList&&e.startContext(o.BulletList,t.basePos,t.next);let n=$(t,t.pos+1);return e.startContext(o.ListItem,t.basePos,n-t.baseIndent),e.addNode(o.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(n),null},OrderedList(e,t){let r=W(t,e,!1);if(r<0)return!1;e.block.type!=o.OrderedList&&e.startContext(o.OrderedList,t.basePos,t.text.charCodeAt(t.pos+r-1));let n=$(t,t.pos+r);return e.startContext(o.ListItem,t.basePos,n-t.baseIndent),e.addNode(o.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(n),null},ATXHeading(e,t){let r=V(t);if(r<0)return!1;let n=t.pos,i=e.lineStart+n,s=L(t.text,t.text.length,n),a=s;for(;a>n&&t.text.charCodeAt(a-1)==t.next;)a--;(a==s||a==n||!B(t.text.charCodeAt(a-1)))&&(a=t.text.length);let l=e.buffer.write(o.HeaderMark,0,r).writeElements(e.parser.parseInline(t.text.slice(n+r+1,a),i+r+1),-i);a<t.text.length&&l.write(o.HeaderMark,a-n,s-n);let u=l.finish(o.ATXHeading1-1+r,t.text.length-n);return e.nextLine(),e.addNode(u,i),!0},HTMLBlock(e,t){let r=G(t,e,!1);if(r<0)return!1;let n=e.lineStart+t.pos,i=Q[r][1],s=[],a=i!=U;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){a=!1;break}for(let e of t.markers)s.push(e)}a&&e.nextLine();let l=i==q?o.CommentBlock:i==Y?o.ProcessingInstructionBlock:o.HTMLBlock,u=e.prevLineEnd();return e.addNode(e.buffer.writeElements(s,-n).finish(l,u-n),n),!0},SetextHeading:void 0};class ee{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,r){if(-1==this.stage)return!1;let n=r.content+"\n"+t.scrub(),o=this.advance(n);return!!(o>-1)&&!!(o<n.length)&&this.complete(e,r,o)}finish(e,t){return(2==this.stage||3==this.stage)&&I(t.content,this.pos)==t.content.length&&this.complete(e,t,t.content.length)}complete(e,t,r){return e.addLeafElement(t,ef(o.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(!1===e&&(this.stage=-1),!1)}advance(e){for(;;){if(-1==this.stage)return -1;if(0==this.stage){if(!this.nextStage(eA(e,this.pos,this.start,!0)))return -1;if(58!=e.charCodeAt(this.pos))return this.stage=-1;this.elts.push(ef(o.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(1==this.stage){if(!this.nextStage(ek(e,I(e,this.pos),this.start)))return -1}else{if(2!=this.stage)return et(e,this.pos);let t=I(e,this.pos),r=0;if(t>this.pos){let n=eC(e,t,this.start);if(n){let t=et(e,n.to-this.start);t>0&&(this.nextStage(n),r=t)}}return!r&&(r=et(e,this.pos)),r>0&&r<e.length?r:-1}}}}function et(e,t){for(;t<e.length;t++){let r=e.charCodeAt(t);if(10==r)break;if(!B(r))return -1}return t}class er{nextLine(e,t,r){let n=t.depth<e.stack.length?-1:H(t),i=t.next;if(n<0)return!1;let s=ef(o.HeaderMark,e.lineStart+t.pos,e.lineStart+n);return e.nextLine(),e.addLeafElement(r,ef(61==i?o.SetextHeading1:o.SetextHeading2,r.start,e.prevLineEnd(),[...e.parser.parseInline(r.content,r.start),s])),!0}finish(){return!1}}let en={LinkReference:(e,t)=>91==t.content.charCodeAt(0)?new ee(t):null,SetextHeading:()=>new er},eo={text:"",end:0};class ei{constructor(e,t,r,n){this.parser=e,this.input=t,this.ranges=n,this.line=new j,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=n[n.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=n[0].from,this.block=E.create(o.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new eT(r,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!r||e.markers[t].from<r.end);){let r=e.markers[t++];this.addNode(r.type,r.from,r.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let t of this.parser.blockParsers)if(t){let r=t(this,e);if(!1!=r){if(!0==r)return null;e.forward();continue e}}break}let t=new M(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let r=e(this,t);r&&t.parsers.push(r)}t:for(;this.nextLine()&&e.pos!=e.text.length;){;if(e.indent<e.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,e,t))break t}for(let r of t.parsers)if(r.nextLine(this,e,t))return null;for(let r of(t.content+="\n"+e.scrub(),e.markers))t.marks.push(r)}return this.finishLeaf(t),null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return!!t&&(this.absoluteLineStart+=t,this.lineStart=eE(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++):this.atEnd=!0,this.readLine(),!0)}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return(this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to)?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){if(eo.end=e,e>=this.to)eo.text="";else if(eo.text=this.lineChunkAt(e),eo.end+=eo.text.length,this.ranges.length>1){let e=this.absoluteLineStart,t=this.rangeI;for(;this.ranges[t].to<eo.end;){t++;let r=this.ranges[t].from,n=this.lineChunkAt(r);eo.end=r+n.length,eo.text=eo.text.slice(0,this.ranges[t-1].to-e)+n,e=eo.end-eo.text.length}}return eo}readLine(){let{line:e}=this,{text:t,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],r=this.parser.skipContextMarkup[t.type];if(!r)throw Error("Unhandled block context "+o[t.type]);if(!r(t,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),r;if(this.input.lineChunks)r="\n"==t?"":t;else{let e=t.indexOf("\n");r=e<0?t:t.slice(0,e)}return e+r.length>this.to?r.slice(0,this.to-e):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,r=0){this.block=E.create(e,r,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,r=0){this.startContext(this.parser.getNodeType(e),t,r)}addNode(e,t,r){"number"==typeof e&&(e=new p.mp(this.parser.nodeSet.types[e],ec,ec,(null!=r?r:this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(eD(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?function e(t,r,n,o,i){let s=t[r].to,a=[],l=[],u=n.from+o;function c(e,n){for(;n?e>=s:e>s;){let n=t[r+1].from-s;o+=n,e+=n,s=t[++r].to}}for(let d=n.firstChild;d;d=d.nextSibling){c(d.from+o,!0);let n=d.from+o,p,h=i.get(d.tree);h?p=h:d.to+o>s?(p=e(t,r,d,o,i),c(d.to+o,!1)):p=d.toTree(),a.push(p),l.push(n-u)}return c(n.to+o,!1),new p.mp(n.type,a,l,n.to+o-u,n.tree?n.tree.propValues:void 0)}(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=eD(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(o.Paragraph,e.content.length),e.start)}elt(e,t,r,n){return"string"==typeof e?ef(this.parser.getNodeType(e),t,r,n):new eh(e,t)}get buffer(){return new ed(this.parser.nodeSet)}}class es extends p._b{constructor(e,t,r,n,o,i,s,a,l){for(let u of(super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=r,this.blockNames=n,this.endLeafBlock=o,this.skipContextMarkup=i,this.inlineParsers=s,this.inlineNames=a,this.wrappers=l,this.nodeTypes=Object.create(null),e.types))this.nodeTypes[u.name]=u.id}createParse(e,t,r){let n=new ei(this,e,t,r);for(let o of this.wrappers)n=o(n,e,t,r);return n}configure(e){let t=function e(t){if(!Array.isArray(t))return t;if(0==t.length)return null;let r=e(t[0]);if(1==t.length)return r;let n=e(t.slice(1));if(!n||!r)return r||n;let o=(e,t)=>(e||ec).concat(t||ec),i=r.wrap,s=n.wrap;return{props:o(r.props,n.props),defineNodes:o(r.defineNodes,n.defineNodes),parseBlock:o(r.parseBlock,n.parseBlock),parseInline:o(r.parseInline,n.parseInline),remove:o(r.remove,n.remove),wrap:i?s?(e,t,r,n)=>i(s(e,t,r,n),t,r,n):i:s}}(e);if(!t)return this;let{nodeSet:r,skipContextMarkup:n}=this,i=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),a=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(ea(t.defineNodes)){n=Object.assign({},n);let e=r.types.slice(),i;for(let r of t.defineNodes){let{name:t,block:s,composite:a,style:l}="string"==typeof r?{name:r}:r;if(e.some(e=>e.name==t))continue;a&&(n[e.length]=(e,t,r)=>a(t,r,e.value));let u=e.length,c=a?["Block","BlockContext"]:s?u>=o.ATXHeading1&&u<=o.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;e.push(p.Jq.define({id:u,name:t,props:c&&[[p.md.group,c]]})),l&&(!i&&(i={}),Array.isArray(l)||l instanceof O.Vp?i[t]=l:Object.assign(i,l))}r=new p.Lj(e),i&&(r=r.extend((0,O.Gv)(i)))}if(ea(t.props)&&(r=r.extend(...t.props)),ea(t.remove))for(let e of t.remove){let t=this.blockNames.indexOf(e),r=this.inlineNames.indexOf(e);t>-1&&(i[t]=s[t]=void 0),r>-1&&(l[r]=void 0)}if(ea(t.parseBlock))for(let e of t.parseBlock){let t=a.indexOf(e.name);if(t>-1)i[t]=e.parse,s[t]=e.leaf;else{let t=e.before?el(a,e.before):e.after?el(a,e.after)+1:a.length-1;i.splice(t,0,e.parse),s.splice(t,0,e.leaf),a.splice(t,0,e.name)}e.endLeaf&&c.push(e.endLeaf)}if(ea(t.parseInline))for(let e of t.parseInline){let t=u.indexOf(e.name);if(t>-1)l[t]=e.parse;else{let t=e.before?el(u,e.before):e.after?el(u,e.after)+1:u.length-1;l.splice(t,0,e.parse),u.splice(t,0,e.name)}}return t.wrap&&(d=d.concat(t.wrap)),new es(r,i,s,a,c,n,l,u,d)}getNodeType(e){let t=this.nodeTypes[e];if(null==t)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let r=new eO(this,e,t);r:for(let e=t;e<r.end;){let t=r.char(e);for(let n of this.inlineParsers)if(n){let o=n(r,t,e);if(o>=0){e=o;continue r}}e++}return r.resolveMarkers(0)}}function ea(e){return null!=e&&e.length>0}function el(e,t){let r=e.indexOf(t);if(r<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return r}let eu=[p.Jq.none];for(let e=1,t;t=o[e];e++)eu[e]=p.Jq.define({id:e,name:t,props:e>=o.Escape?[]:[[p.md.group,e in P?["Block","BlockContext"]:["Block","LeafBlock"]]],top:"Document"==t});let ec=[];class ed{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,r,n=0){return this.content.push(e,t,r,4+4*n),this}writeElements(e,t=0){for(let r of e)r.writeTo(this,t);return this}finish(e,t){return p.mp.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class ep{constructor(e,t,r,n=ec){this.type=e,this.from=t,this.to=r,this.children=n}writeTo(e,t){let r=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-r)}toTree(e){return new ed(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class eh{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return ec}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function ef(e,t,r,n){return new ep(e,t,r,n)}let em={resolve:"Emphasis",mark:"EmphasisMark"},eg={resolve:"Emphasis",mark:"EmphasisMark"},ev={},ey={};class ex{constructor(e,t,r,n){this.type=e,this.from=t,this.to=r,this.side=n}}let eb="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",ew=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ew=RegExp("[\\p{S}|\\p{P}]","u")}catch(e){}let e_={Escape(e,t,r){if(92!=t||r==e.end-1)return -1;let n=e.char(r+1);for(let t=0;t<eb.length;t++)if(eb.charCodeAt(t)==n)return e.append(ef(o.Escape,r,r+2));return -1},Entity(e,t,r){if(38!=t)return -1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(r+1,r+31));return n?e.append(ef(o.Entity,r,r+1+n[0].length)):-1},InlineCode(e,t,r){if(96!=t||r&&96==e.char(r-1))return -1;let n=r+1;for(;n<e.end&&96==e.char(n);)n++;let i=n-r,s=0;for(;n<e.end;n++)if(96==e.char(n)){if(++s==i&&96!=e.char(n+1))return e.append(ef(o.InlineCode,r,n+1,[ef(o.CodeMark,r,r+i),ef(o.CodeMark,n+1-i,n+1)]))}else s=0;return -1},HTMLTag(e,t,r){if(60!=t||r==e.end-1)return -1;let n=e.slice(r+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(n);if(i)return e.append(ef(o.Autolink,r,r+1+i[0].length,[ef(o.LinkMark,r,r+1),ef(o.URL,r+1,r+i[0].length),ef(o.LinkMark,r+i[0].length,r+1+i[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(s)return e.append(ef(o.Comment,r,r+1+s[0].length));let a=/^\?[^]*?\?>/.exec(n);if(a)return e.append(ef(o.ProcessingInstruction,r,r+1+a[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return l?e.append(ef(o.HTMLTag,r,r+1+l[0].length)):-1},Emphasis(e,t,r){if(95!=t&&42!=t)return -1;let n=r+1;for(;e.char(n)==t;)n++;let o=e.slice(r-1,r),i=e.slice(n,n+1),s=ew.test(o),a=ew.test(i),l=/\s|^$/.test(o),u=/\s|^$/.test(i),c=!u&&(!a||l||s),d=!l&&(!s||u||a);return e.append(new ex(95==t?em:eg,r,n,(c&&(42==t||!d||s)?1:0)|(d&&(42==t||!c||a)?2:0)))},HardBreak(e,t,r){if(92==t&&10==e.char(r+1))return e.append(ef(o.HardBreak,r,r+2));if(32==t){let t=r+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=r+2)return e.append(ef(o.HardBreak,r,t+1))}return -1},Link:(e,t,r)=>91==t?e.append(new ex(ev,r,r+1,1)):-1,Image:(e,t,r)=>33==t&&91==e.char(r+1)?e.append(new ex(ey,r,r+2,1)):-1,LinkEnd(e,t,r){if(93!=t)return -1;for(let t=e.parts.length-1;t>=0;t--){let n=e.parts[t];if(n instanceof ex&&(n.type==ev||n.type==ey)){if(!n.side||e.skipSpace(n.to)==r&&!/[(\[]/.test(e.slice(r+1,r+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),s=e.parts[t]=function(e,t,r,n,i){let{text:s}=e,a=e.char(i),l=i;if(t.unshift(ef(o.LinkMark,n,n+(r==o.Image?2:1))),t.push(ef(o.LinkMark,i-1,i)),40==a){let r=e.skipSpace(i+1),n=ek(s,r-e.offset,e.offset),a;n&&(r=e.skipSpace(n.to))!=n.to&&(a=eC(s,r-e.offset,e.offset))&&(r=e.skipSpace(a.to)),41==e.char(r)&&(t.push(ef(o.LinkMark,i,i+1)),l=r+1,n&&t.push(n),a&&t.push(a),t.push(ef(o.LinkMark,r,l)))}else if(91==a){let r=eA(s,i-e.offset,e.offset,!1);r&&(t.push(r),l=r.to)}return ef(r,n,l,t)}(e,i,n.type==ev?o.Link:o.Image,n.from,r+1);if(n.type==ev)for(let r=0;r<t;r++){let t=e.parts[r];t instanceof ex&&t.type==ev&&(t.side=0)}return s.to}}return -1}};function ek(e,t,r){if(60==e.charCodeAt(t)){for(let n=t+1;n<e.length;n++){let i=e.charCodeAt(n);if(62==i)return ef(o.URL,t+r,n+1+r);if(60==i||10==i)return!1}return null}{let n=0,i=t;for(let t=!1;i<e.length;i++){let r=e.charCodeAt(i);if(B(r))break;if(t)t=!1;else if(40==r)n++;else if(41==r){if(!n)break;n--}else 92==r&&(t=!0)}return i>t?ef(o.URL,t+r,i+r):i==e.length&&null}}function eC(e,t,r){let n=e.charCodeAt(t);if(39!=n&&34!=n&&40!=n)return!1;let i=40==n?41:n;for(let n=t+1,s=!1;n<e.length;n++){let a=e.charCodeAt(n);if(s)s=!1;else{if(a==i)return ef(o.LinkTitle,t+r,n+1+r);92==a&&(s=!0)}}return null}function eA(e,t,r,n){for(let i=!1,s=t+1,a=Math.min(e.length,s+999);s<a;s++){let a=e.charCodeAt(s);if(i)i=!1;else{if(93==a)return!n&&ef(o.LinkLabel,t+r,s+1+r);if(n&&!B(a)&&(n=!1),91==a)return!1;92==a&&(i=!0)}}return null}class eO{constructor(e,t,r){this.parser=e,this.text=t,this.offset=r,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,r,n,o){return this.append(new ex(e,t,r,(n?1:0)|(o?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof ex&&(t.type==ev||t.type==ey))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let r=this.parts[t];if(!(r instanceof ex&&r.type.resolve&&2&r.side))continue;let n=r.type==em||r.type==eg,o=r.to-r.from,i,s=t-1;for(;s>=e;s--){let e=this.parts[s];if(e instanceof ex&&1&e.side&&e.type==r.type&&!(n&&(1&r.side||2&e.side)&&(e.to-e.from+o)%3==0&&((e.to-e.from)%3||o%3))){i=e;break}}if(!i)continue;let a=r.type.resolve,l=[],u=i.from,c=r.to;if(n){let e=Math.min(2,i.to-i.from,o);u=i.to-e,c=r.from+e,a=1==e?"Emphasis":"StrongEmphasis"}i.type.mark&&l.push(this.elt(i.type.mark,u,i.to));for(let e=s+1;e<t;e++)this.parts[e]instanceof ep&&l.push(this.parts[e]),this.parts[e]=null;r.type.mark&&l.push(this.elt(r.type.mark,r.from,c));let d=this.elt(a,u,c,l);this.parts[s]=n&&i.from!=u?new ex(i.type,i.from,u,i.side):null,(this.parts[t]=n&&r.to!=c?new ex(r.type,c,r.to,r.side):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let r=e;r<this.parts.length;r++){let e=this.parts[r];e instanceof ep&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let r=this.parts[t];if(r instanceof ex&&r.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return I(this.text,e-this.offset)+this.offset}elt(e,t,r,n){return"string"==typeof e?ef(this.parser.getNodeType(e),t,r,n):new eh(e,t)}}function eD(e,t){if(!t.length)return e;if(!e.length)return t;let r=e.slice(),n=0;for(let e of t){for(;n<r.length&&r[n].to<e.to;)n++;if(n<r.length&&r[n].from<e.from){let t=r[n];t instanceof ep&&(r[n]=new ep(t.type,t.from,t.to,eD(t.children,[e])))}else r.splice(n++,0,e)}return r}let eS=[o.CodeBlock,o.ListItem,o.OrderedList,o.BulletList];class eT{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let r=this.cursor;!r&&(r=this.cursor=this.fragment.tree.cursor()).firstChild();let n=e+this.fragment.offset;for(;r.to<=n;)if(!r.parent())return!1;for(;;){if(r.from>=n)return this.fragment.from<=t;if(!r.childAfter(n))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(p.md.contextHash)==e}takeNodes(e){let t=this.cursor,r=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),i=e.absoluteLineStart,s=i,a=e.block.children.length,l=s,u=a;for(;;){if(t.to-r>n){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=eE(t.from-r,e.ranges);if(t.to-r<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let r=new p.mp(e.parser.nodeSet.types[o.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(r,t.tree),e.addNode(r,i)}if(t.type.is("Block")&&(0>eS.indexOf(t.type.id)?(s=t.to-r,a=e.block.children.length):(s=l,a=u,l=t.to-r,u=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-i}}function eE(e,t){let r=e;for(let n=1;n<t.length;n++){let o=t[n-1].to,i=t[n].from;o<e&&(r-=i-o)}return r}let eM=(0,O.Gv)({"Blockquote/...":O.pJ.quote,HorizontalRule:O.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":O.pJ.heading1,"ATXHeading2/... SetextHeading2/...":O.pJ.heading2,"ATXHeading3/...":O.pJ.heading3,"ATXHeading4/...":O.pJ.heading4,"ATXHeading5/...":O.pJ.heading5,"ATXHeading6/...":O.pJ.heading6,"Comment CommentBlock":O.pJ.comment,Escape:O.pJ.escape,Entity:O.pJ.character,"Emphasis/...":O.pJ.emphasis,"StrongEmphasis/...":O.pJ.strong,"Link/... Image/...":O.pJ.link,"OrderedList/... BulletList/...":O.pJ.list,"BlockQuote/...":O.pJ.quote,"InlineCode CodeText":O.pJ.monospace,"URL Autolink":O.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":O.pJ.processingInstruction,"CodeInfo LinkLabel":O.pJ.labelName,LinkTitle:O.pJ.string,Paragraph:O.pJ.content}),ej=new es(new p.Lj(eu).extend(eM),Object.keys(J).map(e=>J[e]),Object.keys(J).map(e=>en[e]),Object.keys(J),[(e,t)=>V(t)>=0,(e,t)=>F(t)>=0,(e,t)=>z(t)>=0,(e,t)=>Z(t,e,!0)>=0,(e,t)=>W(t,e,!0)>=0,(e,t)=>R(t,e,!0)>=0,(e,t)=>G(t,e,!0)>=0],P,Object.keys(e_).map(e=>e_[e]),Object.keys(e_),[]),eN={resolve:"Strikethrough",mark:"StrikethroughMark"},eP={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":O.pJ.strikethrough}},{name:"StrikethroughMark",style:O.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,r){if(126!=t||126!=e.char(r+1)||126==e.char(r+2))return -1;let n=e.slice(r-1,r),o=e.slice(r+2,r+3),i=/\s|^$/.test(n),s=/\s|^$/.test(o),a=ew.test(n),l=ew.test(o);return e.addDelimiter(eN,r,r+2,!s&&(!l||i||a),!i&&(!a||s||l))},after:"Emphasis"}]};function eB(e,t,r=0,n,o=0){let i=0,s=!0,a=-1,l=-1,u=!1,c=()=>{n.push(e.elt("TableCell",o+a,o+l,e.parser.parseInline(t.slice(a,l),o+a)))};for(let d=r;d<t.length;d++){let r=t.charCodeAt(d);124!=r||u?(u||32!=r&&9!=r)&&(a<0&&(a=d),l=d+1):((!s||a>-1)&&i++,s=!1,n&&(a>-1&&c(),n.push(e.elt("TableDelimiter",d+o,d+o+1))),a=l=-1),u=!u&&92==r}return a>-1&&(i++,n&&c()),i}function eI(e,t){for(let r=t;r<e.length;r++){let t=e.charCodeAt(r);if(124==t)return!0;92==t&&r++}return!1}let eL=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class eF{constructor(){this.rows=null}nextLine(e,t,r){if(null==this.rows){let n;if(this.rows=!1,(45==t.next||58==t.next||124==t.next)&&eL.test(n=t.text.slice(t.pos))){let o=[];eB(e,r.content,0,o,r.start)==eB(e,n,t.pos)&&(this.rows=[e.elt("TableHeader",r.start,r.start+r.content.length,o),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let r=[];eB(e,t.text,t.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,r))}return!1}finish(e,t){return!!this.rows&&(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0)}}let ez={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":O.pJ.heading}},"TableRow",{name:"TableCell",style:O.pJ.content},{name:"TableDelimiter",style:O.pJ.processingInstruction}],parseBlock:[{name:"Table",leaf:(e,t)=>eI(t.content,0)?new eF:null,endLeaf(e,t,r){if(r.parsers.some(e=>e instanceof eF)||!eI(t.text,t.basePos))return!1;let n=e.peekLine();return eL.test(n)&&eB(e,t.text,t.basePos)==eB(e,n,t.basePos)},before:"SetextHeading"}]};class eR{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}let eX={defineNodes:[{name:"Task",block:!0,style:O.pJ.list},{name:"TaskMarker",style:O.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new eR:null,after:"SetextHeading"}]},eZ=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,eW=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,eV=/[\w-]+\.[\w-]+($|\/)/,eH=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,eU=/\/[a-zA-Z\d@.]+/gy;function eq(e,t,r,n){let o=0;for(let i=t;i<r;i++)e[i]==n&&o++;return o}function eY(e,t){eH.lastIndex=t;let r=eH.exec(e);if(!r)return -1;let n=r[0][r[0].length-1];return"_"==n||"-"==n?-1:t+r[0].length-("."==n?1:0)}let eQ=[ez,eX,eP,{parseInline:[{name:"Autolink",parse(e,t,r){let n=r-e.offset;if(n&&/\w/.test(e.text[n-1]))return -1;eZ.lastIndex=n;let o=eZ.exec(e.text),i=-1;if(!o)return -1;if(o[1]||o[2]){if((i=function(e,t){eW.lastIndex=t;let r=eW.exec(e);if(!r||eV.exec(r[0])[0].indexOf("_")>-1)return -1;let n=t+r[0].length;for(;;){let r=e[n-1],o;if(/[?!.,:*_~]/.test(r)||")"==r&&eq(e,t,n,")")>eq(e,t,n,"("))n--;else if(";"==r&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,n))))n=t+o.index;else break}return n}(e.text,n+o[0].length))>-1&&e.hasOpenLink){let t=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(n,i));i=n+t[0].length}}else o[3]?i=eY(e.text,n):(i=eY(e.text,n+o[0].length))>-1&&"xmpp:"==o[0]&&(eU.lastIndex=i,(o=eU.exec(e.text))&&(i=o.index+o[0].length));return i<0?-1:(e.addElement(e.elt("URL",r,i+e.offset)),i+e.offset)}}]}];function eG(e,t,r){return(n,o,i)=>{if(o!=e||n.char(i+1)==e)return -1;let s=[n.elt(r,i,i+1)];for(let o=i+1;o<n.end;o++){let a=n.char(o);if(a==e)return n.addElement(n.elt(t,i,o+1,s.concat(n.elt(r,o,o+1))));if(92==a&&s.push(n.elt("Escape",o,o+++2)),B(a))break}return -1}}let e$={defineNodes:[{name:"Superscript",style:O.pJ.special(O.pJ.content)},{name:"SuperscriptMark",style:O.pJ.processingInstruction}],parseInline:[{name:"Superscript",parse:eG(94,"Superscript","SuperscriptMark")}]},eK={defineNodes:[{name:"Subscript",style:O.pJ.special(O.pJ.content)},{name:"SubscriptMark",style:O.pJ.processingInstruction}],parseInline:[{name:"Subscript",parse:eG(126,"Subscript","SubscriptMark")}]},eJ={defineNodes:[{name:"Emoji",style:O.pJ.character}],parseInline:[{name:"Emoji",parse(e,t,r){let n;return 58==t&&(n=/^[a-zA-Z_0-9]+:/.exec(e.slice(r+1,e.end)))?e.addElement(e.elt("Emoji",r,r+1+n[0].length)):-1}}]},e0={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},e1={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},e2={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function e4(e){return 9==e||10==e||13==e||32==e}let e5=null,e6=null,e3=0;function e8(e,t){var r;let n=e.pos+t;if(e3==n&&e6==e)return e5;let o=e.peek(t);for(;e4(o);)o=e.peek(++t);let i="";for(;45==(r=o)||46==r||58==r||r>=65&&r<=90||95==r||r>=97&&r<=122||r>=161;)i+=String.fromCharCode(o),o=e.peek(++t);return e6=e,e3=n,e5=i?i.toLowerCase():o==e9||o==e7?void 0:null}let e9=63,e7=33;function te(e,t){this.name=e,this.parent=t}let tt=[6,10,7,8,9],tr=new h.IK({start:null,shift:(e,t,r,n)=>tt.indexOf(t)>-1?new te(e8(n,1)||"",e):e,reduce:(e,t)=>20==t&&e?e.parent:e,reuse(e,t,r,n){let o=t.type.id;return 6==o||36==o?new te(e8(n,1)||"",e):e},strict:!1}),tn=new h.Jq((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(57);return}e.advance();let r=47==e.next;r&&e.advance();let n=e8(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let o=t.context?t.context.name:null;if(r){if(n==o)return e.acceptToken(11);if(o&&e1[o])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(e0.hasOwnProperty(n))return e.acceptToken(10);o&&e2[o]&&e2[o][n]?e.acceptToken(57,-1):e.acceptToken(6)}},{contextual:!0}),to=new h.Jq(e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}else t=0;e.advance()}}),ti=new h.Jq((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function ts(e,t,r){let n=2+e.length;return new h.Jq(o=>{for(let i=0,s=0,a=0;;a++){if(o.next<0){a&&o.acceptToken(t);break}if(0==i&&60==o.next||1==i&&47==o.next||i>=2&&i<n&&o.next==e.charCodeAt(i-2))i++,s++;else if((2==i||i==n)&&e4(o.next))s++;else if(i==n&&62==o.next){a>s?o.acceptToken(t,-s):o.acceptToken(r,-(s-2));break}else if((10==o.next||13==o.next)&&a){o.acceptToken(t,1);break}else i=s=0;o.advance()}})}let ta=ts("script",54,1),tl=ts("style",55,2),tu=ts("textarea",56,3),tc=(0,O.Gv)({"Text RawText":O.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":O.pJ.angleBracket,TagName:O.pJ.tagName,"MismatchedCloseTag/TagName":[O.pJ.tagName,O.pJ.invalid],AttributeName:O.pJ.attributeName,"AttributeValue UnquotedAttributeValue":O.pJ.attributeValue,Is:O.pJ.definitionOperator,"EntityReference CharacterReference":O.pJ.character,Comment:O.pJ.blockComment,ProcessingInst:O.pJ.processingInstruction,DoctypeDecl:O.pJ.documentMeta}),td=h.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:tr,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[tc],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[ta,tl,tu,ti,tn,to,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});var tp=c.qp.define({parser:td.configure({dialect:"noMatch"})}),th=new p.md;function tf(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?Number(t[1]):void 0}var tm=c.rs.of((e,t,r)=>{for(let n=(0,c.qz)(e).resolveInner(r,-1);n&&!(n.from<t);n=n.parent){;let e=n.type.prop(th);if(null==e)continue;let t=function(e,t){let r=e;for(;;){let e;let n=r.nextSibling;if(!n||null!=(e=tf(n.type))&&e<=t)break;r=n}return r.to}(n,e);if(t>r)return{from:r,to:t}}return null}),tg=(0,c.kU)({}),tv=function(e){let{codeParser:t,htmlParser:r}=e;return{wrap:(0,p.FE)((e,n)=>{let i=e.type.id;if(t&&(i==o.CodeBlock||i==o.FencedCode)){let r="";if(i==o.FencedCode){let t=e.node.getChild(o.CodeInfo);t&&(r=n.read(t.from,t.to))}let s=t(r);if(s)return{parser:s,overlay:e=>e.type.id==o.CodeText}}else if(r&&(i==o.HTMLBlock||i==o.HTMLTag||i==o.CommentBlock))return{parser:r,overlay:function(e,t,r){let n=[];for(let o=e.firstChild,i=t;;o=o.nextSibling){let e=o?o.from:r;if(e>i&&n.push({from:i,to:e}),!o)break;i=o.to}return n}(e.node,e.from,e.to)};return null})}}({htmlParser:tp.parser}),ty=ej.configure([tv,eQ,eK,e$,eJ,{props:[th.add(tf),c.uj.add({Document:()=>null}),c.pp.add({Document:tg})]}]),tx=new c.SQ(tg,ty,[],"markdown"),tb=c.qp.define({parser:T.configure({wrap:(0,p.FE)(e=>e.type.isTop?{parser:tx.parser,overlay:[{from:e.from,to:e.to}]}:null)})}),tw=["'",'"',"{","[","("],t_=[(0,d.vQ)(),tb.data.of({closeBrackets:{brackets:tw}}),tx.data.of({closeBrackets:{brackets:tw}}),(0,s.Hw)([{type:"character",triggerCharacter:"%",handler({view:e,from:t,to:r}){let n=e.state.sliceDoc(Math.max(0,t-1),t),o=e.state.sliceDoc(t,Math.min(t+1,e.state.doc.length));return"{"===n&&"}"===o&&((0,a.Fb)({view:e})({from:t,to:r,text:"%%",cursorOffset:-1}),!0)}},{type:"character",triggerCharacter:"#",handler({view:e,from:t,to:r}){let n=e.state.sliceDoc(Math.max(0,t-1),t),o=e.state.sliceDoc(t,Math.min(t+1,e.state.doc.length));return"{"===n&&"}"===o&&((0,a.Fb)({view:e})({from:t,to:r,text:"##",cursorOffset:-1}),!0)}}])],tk=new c.ri(tb,[[tm],t_]),tC={":":"",",":""},tA=u.yy.transactionFilter.of(e=>{let t=!0;return(e.changes.iterChanges((r,n,o,i,s)=>{let a=tC[s.toString()];a&&n-r>5&&e.startState.sliceDoc(r-1,r)===a&&"{#/"===e.startState.sliceDoc(r,r+3)&&"#}"===e.startState.sliceDoc(n-2,n)&&(t=!1),a&&e.isUserEvent("input.type")&&Math.abs(e.newSelection.main.to-e.startState.selection.main.to)>5&&e.newSelection.main.to>=2&&"#}"===e.newDoc.sliceString(e.newSelection.main.to-2,e.newSelection.main.to)&&(t=!1)}),t)?e:[]}),tO=[...i.R,(0,l.Kw)("minHeight",a.jw),(0,l.Kw)("maxHeight",a.kC),(0,l.Kw)("height",a.Cb),(0,l.hi)("getMainSelectionRects",a.uj),(0,l.hi)("replaceText",a.lp),(0,l.hi)("undo",a.Yw),(0,l.hi)("redo",a.KX),(0,l.hi)("transformTextInSelection",a.sR),(0,l.AO)([u.Wl.high(s.cl),tA])]},919658:function(e,t,r){"use strict";r.d(t,{Iq:()=>R,Vj:()=>z,pf:()=>es,GH:()=>J,Vm:()=>K,m4:()=>ei});var n=r("455069");let o=Math.min,i=Math.max,s=Math.round,a=Math.floor,l=e=>({x:e,y:e});function u(){return"undefined"!=typeof window}function c(e){return h(e)?(e.nodeName||"").toLowerCase():"#document"}function d(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function p(e){var t;return null==(t=(h(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function h(e){return!!u()&&(e instanceof Node||e instanceof d(e).Node)}function f(e){return!!u()&&(e instanceof Element||e instanceof d(e).Element)}function m(e){return!!u()&&(e instanceof HTMLElement||e instanceof d(e).HTMLElement)}function g(e){return!!u()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof d(e).ShadowRoot)}function y(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=x(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function x(e){return d(e).getComputedStyle(e)}function b(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=function(e){if("html"===c(e))return e;let t=e.assignedSlot||e.parentNode||g(e)&&e.host||p(e);return g(t)?t.host:t}(t);return["html","body","#document"].includes(c(r))?t.ownerDocument?t.ownerDocument.body:t.body:m(r)&&y(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=d(o);if(i){let e=w(s);return t.concat(s,s.visualViewport||[],y(o)?o:[],e&&r?b(e):[])}return t.concat(o,b(o,[],r))}function w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _(e){return f(e)?e:e.contextElement}function k(e){let t=_(e);if(!m(t))return l(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=function(e){let t=x(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=m(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=s(r)!==i||s(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}(t),a=(i?s(r.width):r.width)/n,u=(i?s(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}let C=l(0);function A(e,t,r,n){var o,i,s;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),u=_(e),c=l(1);t&&(n?f(n)&&(c=k(n)):c=k(e));let p=(o=u,void 0===(i=r)&&(i=!1),(s=n)&&(!i||s===d(o))&&i)?function(e){let t=d(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:C}(u):l(0),h=(a.left+p.x)/c.x,m=(a.top+p.y)/c.y,g=a.width/c.x,y=a.height/c.y;if(u){let e=d(u),t=n&&f(n)?d(n):n,r=e,o=w(r);for(;o&&n&&t!==r;){let e=k(o),t=o.getBoundingClientRect(),n=x(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;h*=e.x,m*=e.y,g*=e.x,y*=e.y,h+=i,m+=s,o=w(r=d(o))}}return function(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}({width:g,height:y,x:h,y:m})}function O(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function D(e,t,r,n){let s;void 0===n&&(n={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=n,f=_(e),m=l||u?[...f?b(f):[],...b(t)]:[];m.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let g=f&&d?function(e,t){let r,n=null,s=p(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let p=e.getBoundingClientRect(),{left:h,top:f,width:m,height:g}=p;if(!c&&t(),!m||!g)return;let y=a(f),x=a(s.clientWidth-(h+m)),b=a(s.clientHeight-(f+g)),w=a(h),_={rootMargin:-y+"px "+-x+"px "+-b+"px "+-w+"px",threshold:i(0,o(1,d))||1},k=!0;function C(t){let n=t[0].intersectionRatio;if(n!==d){if(!k)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1===n&&!O(p,e.getBoundingClientRect())&&u(),k=!1}try{n=new IntersectionObserver(C,{..._,root:s.ownerDocument})}catch(e){n=new IntersectionObserver(C,_)}n.observe(e)}(!0),l}(f,r):null,y=-1,x=null;c&&(x=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),r()}),f&&!h&&x.observe(f),x.observe(t));let w=h?A(e):null;return h&&function t(){let n=A(e);w&&!O(w,n)&&r(),w=n,s=requestAnimationFrame(t)}(),r(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=x)||e.disconnect(),x=null,h&&cancelAnimationFrame(s)}}var S=r("887874"),T=r("642199"),E=r("921463");r("554836");var M=r("913693"),j=r("249294");let N=0;function P(e){return e(this)}function B(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}r("853220");var I=r("206644"),L=r("301411"),F=r("561700"),z=(0,n.forwardRef)(function({side:e,onChange:t,onVisibleChange:r},o){let i=(0,S.G6)(),s=(0,S.jE)(),[a]=(0,n.useState)(()=>document.createElement("div")),l=(0,n.useRef)(a);l.current=a;let u=(0,n.useRef)(t);u.current=t;let c=(0,n.useRef)(r);return c.current=r,(0,n.useImperativeHandle)(o,()=>l.current),(0,n.useLayoutEffect)(()=>i.inject([T.Gk.of({dom:l.current,pos:e}),T.pt]),[i,e]),(0,n.useEffect)(()=>{let e=document.createElement("div");document.body.appendChild(e);let t=D(l.current,e,()=>{"function"==typeof u.current&&u.current()},{animationFrame:!0});return()=>{document.body.removeChild(e),t()}},[]),(0,n.useEffect)(()=>{if(!s)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{"function"==typeof c.current&&c.current(e.isIntersecting)})},{root:s.$view.scrollDOM,threshold:0});return e.observe(l.current),()=>{e.disconnect()}},[s]),null}),R=(0,n.forwardRef)(function({position:e,onChange:t,onVisibleChange:r},o){let i=(0,S.G6)(),s=(0,S.jE)(),[a]=(0,n.useState)(()=>{let e=document.createElement("div");return e.classList.add("cm-position-mirror"),e}),l=(0,n.useRef)(a);l.current=a;let u=(0,n.useRef)(t);u.current=t;let c=(0,n.useRef)(r);return c.current=r,(0,n.useImperativeHandle)(o,()=>l.current),(0,n.useLayoutEffect)(()=>i.inject([T.Gk.of({dom:l.current,pos:e}),T.pt]),[i,e]),(0,n.useEffect)(()=>{let e=document.createElement("div");document.body.appendChild(e);let t=D(l.current,e,()=>{"function"==typeof u.current&&u.current()},{animationFrame:!0});return()=>{document.body.removeChild(e),t()}},[]),(0,n.useEffect)(()=>{if(!s)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{"function"==typeof c.current&&c.current(e.isIntersecting)})},{root:s.$view.scrollDOM,threshold:0});return e.observe(l.current),()=>{e.disconnect()}},[s]),null}),X=class extends M.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}elementClass;destroy(e){}};X.prototype.elementClass="",X.prototype.toDOM=void 0,X.prototype.mapMode=M.gc.TrackBefore,X.prototype.startSide=X.prototype.endSide=-1,X.prototype.point=!0;var Z=M.r$.define(),W=M.r$.define(),V=M.r$.define(),H=M.r$.define({combine:e=>e.some(e=>e)});function U(e){return Array.isArray(e)?e:[e]}function q(e,t,r){for(;e.value&&e.from<=r;)e.from==r&&t.push(e.value),e.next()}j.lg.fromClass(class{constructor(e){for(let t of(this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-right-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(V).map(t=>new Q(e,t)),this.gutters))this.dom.appendChild(t.dom);this.fixed=!e.state.facet(H),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.appendChild(this.dom)}gutters;dom;fixed;prevViewport;update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport,n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<(r.to-r.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(H)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.previousSibling;e&&this.dom.remove();let r=M.Xs.iter(this.view.state.facet(Z),this.view.viewport.from),n=[],o=this.gutters.map(e=>new Y(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let i of e.type)if(i.type==j.kH.Text&&t){for(let e of(q(r,n,i.from),o))e.line(this.view,i,n);t=!1}else if(i.widget)for(let e of o)e.widget(this.view,i)}else if(e.type==j.kH.Text)for(let t of(q(r,n,e.from),o))t.line(this.view,e,n);else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,(null==t?void 0:t.nextSibling)??null)}updateGutters(e){let t=e.startState.facet(V),r=e.state.facet(V),n=e.docChanged||e.heightChanged||e.viewportChanged||!M.Xs.eq(e.startState.facet(Z),e.state.facet(Z),e.view.viewport.from,e.view.viewport.to);if(t==r)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let o=[];for(let n of r){let r=t.indexOf(n);r<0?o.push(new Q(this.view,n)):(this.gutters[r].update(e),o.push(this.gutters[r]))}for(let e of this.gutters)e.dom.remove(),0>o.indexOf(e)&&e.destroy();for(let e of o)this.dom.appendChild(e.dom);this.gutters=o}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>j.tk.scrollMargins.of(t=>{let r=t.plugin(e);return r&&0!=r.gutters.length&&r.fixed?t.textDirection==j.Nm.LTR?{left:r.dom.offsetWidth*t.scaleX}:{right:r.dom.offsetWidth*t.scaleX}:null})});var Y=class{constructor(e,t,r){this.gutter=e,this.height=r,this.cursor=M.Xs.iter(e.markers,t.from)}cursor;i=0;addElement(e,t,r){let{gutter:n}=this,o=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==n.elements.length){let t=new G(e,i,o,r);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,i,o,r);this.height=t.bottom,this.i++}line(e,t,r){let n=[];q(this.cursor,n,t.from),r.length&&(n=n.concat(r));let o=this.gutter.config.lineMarker(e,t,n);o&&n.unshift(o);let i=this.gutter;(0!=n.length||i.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t),n=r?[r]:null;for(let r of e.state.facet(W)){let o=r(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},Q=class{constructor(e,t){for(let r in this.view=e,this.config=t,this.dom=document.createElement("div"),this.dom.className="cm-right-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(r,n=>{let o=n.target,i;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=n.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[r](e,s,n)&&n.preventDefault()});this.markers=U(t.markers(e)),t.initialSpacer&&(this.spacer=new G(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}dom;elements=[];markers;spacer=null;update(e){let t=this.markers;if(this.markers=U(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!M.Xs.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}},G=class{dom;height=-1;above=0;markers=[];constructor(e,t,r,n){this.dom=document.createElement("div"),this.dom.className="cm-rightGutterElement",this.update(e,t,r,n)}update(e,t,r,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return!1;return!0}(this.markers,n)&&this.setMarkers(e,n)}setMarkers(e,t){let r="cm-rightGutterElement",n=this.dom.firstChild;for(let o=0,i=0;;){let s=i,a=o<t.length?t[o++]:null,l=!1;if(a){let e=a.elementClass;e&&(r+=" "+e);for(let e=i;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;i<s;){let e=this.markers[i++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!a)break;a.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),l&&i++}this.dom.className=r,this.markers=t}destroy(){this.setMarkers(null,[])}},$=new class extends X{elementClass="cm-activeLineRightGutter"};Z.compute(["selection"],e=>{let t=[],r=-1;for(let n of e.selection.ranges){let o=e.doc.lineAt(n.head).from;o>r&&(r=o,t.push($.range(o)))}return M.Xs.of(t)}),!function(e,t){let r=`atom${++N}`,n={toString(){return this.debugLabel?r+":"+this.debugLabel:r}};"function"==typeof e?n.read=e:(n.init=e,n.read=P,n.write=B)}(M.r$.define());function K({children:e}){let t=(0,I.DW)("span");return(0,I.NZ)(e=>e.inject([(0,L.W)(()=>t)]),[]),(0,E.createPortal)(e,t)}function J({children:e}){let t=(0,I.DW)("span");return(0,I.NZ)(e=>e.inject([(0,L.E)(()=>t)]),[]),(0,E.createPortal)(e,t)}(0,n.forwardRef)(({element:e},t)=>{let r=(0,I.dU)(e);return(0,n.useImperativeHandle)(t,()=>r.current),null}).displayName="RefElement",M.Py.define();var ee=1;function et(e){return"function"==typeof e.trigger}var er=/^[\u4e00-\u9fa5a-zA-Z0-9_']*$/;function en(e){return er.test(e)}var eo=M.r$.define();function ei(e){for(let t of e.facet(eo)){let r=e.field(t,!1);if(r&&r.triggerContext&&"number"==typeof r.triggerContext.from&&"number"==typeof r.triggerContext.to)return{from:r.triggerContext.from,to:r.triggerContext.to}}}function es(e){let t=(0,I.dU)(e);return(0,I.NZ)(r=>{let n={search:e.search,onOpenChange(...e){if("function"==typeof t.current.onOpenChange)return t.current.onOpenChange(...e)},onSearch(...e){if("function"==typeof t.current.onSearch)return t.current.onSearch(...e)},onTrigger(...e){if("function"==typeof t.current.onTrigger)return t.current.onTrigger(...e)}};return r.inject([function(e){let t=M.r$.define({combine:F.wA.Last}),r=M.QQ.define({create:()=>({show:!1,triggerContext:void 0}),update(e,r){let n,o=r.startState.facet(t),{search:i=!0,onOpenChange:s,onSearch:a,onTrigger:l}=o,{show:u}=e;if(r.docChanged){if(Array.isArray(o.triggerCharacters))r.changes.iterChanges((e,t,i,s,a)=>{let l=a.toString();e===t&&o.triggerCharacters.includes(l)&&(n={from:i,to:s,triggerCharacter:l,cursorPosition:r.state.selection.main.head})});else et(o)&&(n=o.trigger(r));n&&"function"==typeof l&&l({triggerContext:{from:n.from,to:n.to,triggerCharacter:n.triggerCharacter}})}let c=r.isUserEvent("select"),d={show:e.show,triggerContext:e.triggerContext?{...e.triggerContext}:void 0};if(n)d.triggerContext=n,u=!0,"function"==typeof a&&a({value:""});else if(r.docChanged&&e.triggerContext&&i){if(d.triggerContext){let t=r.changes.mapPos(e.triggerContext.from,1,M.gc.TrackAfter),n=r.changes.mapPos(e.triggerContext.to,1,M.gc.Simple);"number"==typeof t&&"number"==typeof n?(d.triggerContext.from=t,d.triggerContext.to=n):u=!1}if(!0===u){let t="object"==typeof i?i.validFor:en,n=e.triggerContext.cursorPosition,o=r.state.selection.main.head;if(o>=n){let e=r.state.sliceDoc(n,o);t(e,n,o,r.state)?(u=!0,"function"==typeof a&&a({value:e})):u=!1}else u=!1}}else c&&(u=!1);return!1===u&&(d.triggerContext=void 0),u!==e.show&&(d.show=u,"function"==typeof s&&s({value:u,state:r.state,triggerContext:d.triggerContext?{from:d.triggerContext.from,to:d.triggerContext.to,triggerCharacter:d.triggerContext.triggerCharacter}:void 0})),d}});return[t.of(e),r,eo.of(r)]}(et(e)?{...n,trigger(e){if(et(t.current))return t.current.trigger(e)}}:{...n,triggerCharacters:e.triggerCharacters??[]})])}),null}var ea=class extends j.l9{constructor(e){super(),this.options=e}toDOM(){return this.options.dom}eq(e){return this.options.dom===e.options.dom}},el=M.Py.define();(0,n.forwardRef)(function({children:e},t){let r=(0,I.DW)("div"),o=(0,I.dU)(r),i=(0,S.jE)(),s=(0,I.dU)(i);return(0,n.useImperativeHandle)(t,()=>({update({visible:e,line:t,side:r}){var n;null==(n=s.current)||n.$view.dispatch({effects:el.of({visible:e,line:t??1,side:r??"before"})})}})),(0,I.NZ)(e=>{let t=M.QQ.define({create:()=>({position:0,side:"before",decorations:j.p.none}),update(e,t){let r=t.changes.mapPos(e.position,-1,M.gc.Simple),n=e;if("number"==typeof r&&r!==e.position){let i=t.state.doc.lineAt(r),s=0;s="after"===e.side?i.to:i.from,n={...e,position:r,decorations:j.p.set([j.p.widget({widget:new ea({dom:o.current}),block:!0,side:"after"===e.side?1:-1}).range(s)])}}for(let e of t.effects)if(e.is(el)){let{visible:r,line:i,side:s}=e.value;if(!r)return{position:n.position,side:s,decorations:j.p.none};if(i<1||i>t.startState.doc.lines)continue;let a=t.startState.doc.line(i),l=0;return{position:l="after"===s?a.to:a.from,side:s,decorations:j.p.set([j.p.widget({widget:new ea({dom:o.current}),block:!0,side:"after"===n.side?1:-1}).range(l)])}}return n},provide:e=>j.tk.decorations.compute([e],t=>t.field(e).decorations)});return e.inject([t])},[]),(0,E.createPortal)(e,r)})},206644:function(e,t,r){"use strict";r.d(t,{DW:function(){return l},NZ:function(){return a},dU:function(){return u},n3:function(){return c}});var n=r(455069),o=r(913693),i=r(887874),s=r(249294);r(921463);function a(e,t=[]){let r=(0,i.G6)();(0,n.useLayoutEffect)(()=>e(r),[r,...t])}function l(e="div"){let[t]=(0,n.useState)(()=>document.createElement(e));return t}function u(e){let t=(0,n.useRef)(e);return t.current=e,t}function c(e){let t=u(e);a(e=>e.inject([s.tk.updateListener.of(e=>{e.docChanged&&"function"==typeof t.current&&e.changes.iterChanges((r,n,o,i,s)=>{t.current({change:[r,n,o,i,s],view:e.view})})})]),[])}o.Py.define({map:(e,t)=>e.map(({from:e,to:r,...n})=>({from:t.mapPos(e),to:t.mapPos(r),...n}))}),o.Py.define(),o.Py.define(),o.r$.define(),o.QQ.define({create:e=>e.doc,update:(e,t)=>(t.docChanged&&(e=t.state.doc),e)}),o.r$.define(),o.QQ.define({create:e=>e.doc,update:(e,t)=>(t.docChanged&&(e=t.state.doc),e)}),o.r$.define(),o.r$.define()},887874:function(e,t,r){"use strict";r.d(t,{G6:function(){return u},KU:function(){return c},Th:function(){return d},Us:function(){return p},jE:function(){return l}});var n=r(455069),o=r(554011),i=(0,n.createContext)(null),s=(0,n.createContext)(null),a=(0,n.createContext)(void 0);function l(){return(0,n.useContext)(i)}function u(){let e=(0,n.useContext)(a);if(!e)throw Error("useInjector should be used in EditorProvider");return e}function c({children:e}){let[t,r]=(0,n.useState)(null),l=(0,n.useRef)(null);return!l.current&&(l.current=(0,o.vH)()),n.createElement(i.Provider,{value:t},n.createElement(s.Provider,{value:r},n.createElement(a.Provider,{value:l.current},e)))}function d(e){let{plugins:t,defaultValue:r,root:i,options:a,domProps:l={},extensions:c,didMount:d,children:p}=e,[h,f]=(0,n.useState)(),m=(0,n.useRef)(null),g=(0,n.useRef)(null),y=(0,n.useRef)(null),x=(0,n.useContext)(s),b=u();return y.current=e,(0,n.useEffect)(()=>{let{render:e,eventKeys:n}=(0,o.Ue)({plugins:t,injector:b}),s=e({parent:m.current,root:i,defaultValue:r,options:a??{},extensions:c});return g.current=s,n.forEach(e=>{s.$on(e,t=>{var r,n;let o=null==(r=y.current)?void 0:r[`on${(n=e).charAt(0).toUpperCase()+n.substring(1)}`];"function"==typeof o&&o(t)})}),"function"==typeof d&&d(s),f(s),()=>{s.$destroy()}},[]),(0,n.useEffect)(()=>{if(!!h&&!!x)x(h)},[h,x]),(0,n.useEffect)(()=>{g.current.$set(e.options??{})},[e.options]),n.createElement(n.Fragment,null,n.createElement("div",{...l,ref:m}),p)}function p(e,t){return function(r){let o=r.extensions,i=(0,n.useMemo)(()=>[...t??[],...o??[]],[o]);return n.createElement(d,{...r,extensions:i,plugins:e})}}},561700:function(e,t,r){"use strict";r.d(t,{A9:function(){return s},S9:function(){return a},oO:function(){return function e(t,r,o,i,s=!1){let{from:a,to:l}=t;if(a>=o||l<=r)return;i(t);let u=t.tree&&t.tree.prop(n.md.mounted);if(u&&u.overlay&&!s){let n=t.node.enter(u.overlay[0].from+a,1),c=t.firstChild();for(let d=0,p=a;;d++){let h=d<u.overlay.length?u.overlay[d]:null,f=h?h.from+a:l,m=Math.max(r,p),g=Math.min(o,f);if(m<g&&c)for(;t.from<g&&(e(t,m,g,i,s),!(t.to>=f)&&t.nextSibling()););if(!h||f>o)break;if((p=h.to+a)>r){let l=Math.max(r,h.from+a),u=Math.min(o,p);for(;t.from<u&&(e(t,Math.max(r,h.from+a),Math.min(o,p),i,!0),!(t.to>=u)&&t.nextSibling()););e(n.cursor(),l,u,i,s)}}c&&t.parent()}else if(t.firstChild()){do{if(t.to<=r)continue;if(t.from>=o)break;e(t,r,o,i,s)}while(t.nextSibling());t.parent()}}},ri:function(){return u},wA:function(){return l},xH:function(){return i}});var n=r(437254),o=r(249294);function i(e){return e.reduce((e,t)=>[...e,...t],[])}function s(e,t){return e.from===e.to?e.from>t.from&&e.from<t.to:e.from<=t.from&&e.to>t.from||e.to>=t.to&&e.from<t.to||e.from>=t.from&&e.to<=t.to}var a=class extends o.l9{text;className;constructor(e){super(),this.text=e.text,this.className=e.className}toDOM(){let e=document.createElement("span");return e.innerText=this.text??"",e.classList.add(this.className??""),e}eq(e){return this.text===e.text&&this.className===e.className}ignoreEvent(){return!1}},l={Flatten:e=>e.reduce((e,t)=>[...e,...t],[]),First:e=>e[0],Last:e=>e[e.length-1]};function u(e,t){let r=Symbol.for(e);return!globalThis[r]&&(globalThis[r]=t),globalThis[r]}},481655:function(e,t,r){"use strict";r.d(t,{DL:function(){return n}}),r(745304);let n=e=>{let{transform:t}=e;return{...t,x:0}}},938382:function(e,t,r){"use strict";var n=r(455069),o=r(805366);let i=(0,o.A)(function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))},"chevron_down");t.Z=i},309673:function(e,t,r){"use strict";var n=r(455069),o=r(805366);let i=(0,o.A)(function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))},"chevron_right");t.Z=i},749518:function(e,t,r){"use strict";r.d(t,{Z:()=>c});var n,o=r("130001"),i=r("455069"),s=r("537845"),a=r("136515"),l=r("750274"),u=r("801547");var c=(n=function(){return u.Z?localStorage:void 0},function(e,t){void 0===t&&(t={});var r,u=t.onError,c=void 0===u?function(e){console.error(e)}:u;try{r=n()}catch(e){c(e)}function d(){try{var n,o=null==r?void 0:r.getItem(e);if(o){;return n=o,(null==t?void 0:t.deserializer)?null==t?void 0:t.deserializer(n):JSON.parse(n)}}catch(e){c(e)}return(0,l.mf)(null==t?void 0:t.defaultValue)?null==t?void 0:t.defaultValue():null==t?void 0:t.defaultValue}var p=(0,o.CR)((0,i.useState)(function(){return d()}),2),h=p[0],f=p[1];return(0,a.Z)(function(){f(d())},[e]),[h,(0,s.Z)(function(n){var o,i=(0,l.mf)(n)?n(h):n;if(f(i),(0,l.G7)(i))null==r||r.removeItem(e);else try{;null==r||r.setItem(e,(o=i,(null==t?void 0:t.serializer)?null==t?void 0:t.serializer(o):JSON.stringify(o)))}catch(e){console.error(e)}})]})},371240:function(e){var t,r;t=globalThis,r=()=>(()=>{"use strict";var e,t,r,n={949:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var n=r(515),o=function(){function e(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=r}return e.prototype.parse=function(){var e,t;if((null!==(e=this.expression)&&void 0!==e?e:"").startsWith("@")){var r=this.parseSpecial(this.expression);t=this.extractParts(r)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},e.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"}[e];if(!t)throw Error("Unknown special expression.");return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),r=0;r<t.length;r++)if(t[r].includes(",")){var n=t[r].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return null!==e&&""!==e});0===n.length&&n.push("*"),n.sort(function(e,t){return null!==e&&null!==t?e-t:0}),t[r]=n.map(function(e){return null!==e?e.toString():""}).join(",")}if(t.length<5)throw Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length)/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2]?t.unshift(""):t.push("");else if(t.length>7)throw Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var r=e.replace(/\D/,""),n=r;return t.dayOfWeekStartIndexZero?"7"==r&&(n="0"):n=(parseInt(r)-1).toString(),e.replace(r,n)}),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var r={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in r)e[5]=e[5].replace(RegExp(n,"gi"),r[n].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var r=e.replace(/\D/,""),n=r;return t.monthStartIndexZero&&(n=(parseInt(r)+1).toString()),e.replace(r,n)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)e[4]=e[4].replace(RegExp(i,"gi"),o[i].toString());"0"==e[0]&&(e[0]=""),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+="-".concat(e[2]));for(var s=0;s<e.length;s++)if(-1!=e[s].indexOf(",")&&(e[s]=e[s].split(",").filter(function(e){return""!==e}).join(",")||"*"),"*/1"==e[s]&&(e[s]="*"),e[s].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[s])){var a=null;switch(s){case 4:a="12";break;case 5:a="6";break;case 6:a="9999";break;default:a=null}if(null!==a){var l=e[s].split("/");e[s]="".concat(l[0],"-").concat(a,"/").concat(l[1])}}},e.prototype.validate=function(e){var t="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){n.default.secondRange(e[0]),n.default.minuteRange(e[1]),n.default.hourRange(e[2]),n.default.dayOfMonthRange(e[3]),n.default.monthRange(e[4],this.monthStartIndexZero),n.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var r=e.match(RegExp("[^".concat(t,"]+"),"gi"));if(r&&r.length)throw Error("Expression contains invalid values: '".concat(r.toString(),"'"))},e}();t.CronParser=o},333:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var n=r(823),o=r(949),i=function(){function e(t,r){if(this.expression=t,this.options=r,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var n=Object.keys(e.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=e.locales[this.options.locale],void 0===r.use24HourTimeFormat&&(r.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,r){var n=void 0===r?{}:r,o=n.throwExceptionOnParseError,i=n.verbose,s=n.dayOfWeekStartIndexZero,a=n.monthStartIndexZero,l=n.use24HourTimeFormat,u=n.locale,c=n.tzOffset;return new e(t,{throwExceptionOnParseError:void 0===o||o,verbose:void 0!==i&&i,dayOfWeekStartIndexZero:void 0===s||s,monthStartIndexZero:void 0!==a&&a,use24HourTimeFormat:l,locale:void 0===u?null:u,tzOffset:void 0===c?0:c}).getFullDescription()},e.initialize=function(t,r){void 0===r&&(r="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=r,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),i=this.getMonthDescription(),s=this.getDayOfWeekDescription(),a=this.getYearDescription();e+=r+n+s+i+a,e=(e=this.transformVerbosity(e,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+e.substr(1)}catch(t){if(this.options.throwExceptionOnParseError)throw"".concat(t);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],r=this.expressionParts[1],o=this.expressionParts[2],i="";if(n.StringUtilities.containsAny(r,e.specialCharacters)||n.StringUtilities.containsAny(o,e.specialCharacters)||n.StringUtilities.containsAny(t,e.specialCharacters)){if(!(!t&&r.indexOf("-")>-1)||r.indexOf(",")>-1||r.indexOf("/")>-1||n.StringUtilities.containsAny(o,e.specialCharacters)){if(!t&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!n.StringUtilities.containsAny(r,e.specialCharacters)){var s=o.split(",");i+=this.i18n.at();for(var a=0;a<s.length;a++)i+=" ",i+=this.formatTime(s[a],r,""),a<s.length-2&&(i+=","),a==s.length-2&&(i+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),c=this.getHoursDescription();if((i+=l)&&u&&(i+=", "),i+=u,u===c)return i;i&&c&&(i+=", "),i+=c}}else{var d=r.split("-");i+=n.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,d[0],""),this.formatTime(o,d[1],""))}}else i+=this.i18n.atSpace()+this.formatTime(o,r,t);return i},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return n.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return"0"==t?"":20>parseInt(t)?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],r=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return n.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(n){try{return"0"==n&&-1==r.indexOf("/")&&""==t?e.i18n.everyHour():20>parseInt(n)?e.i18n.atX0MinutesPastTheHour(n):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(n)}catch(t){return e.i18n.atX0MinutesPastTheHour(n)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],r=this.getSegmentDescription(t,this.i18n.everyHour(),function(t){return e.formatTime(t,"0","")},function(t){return n.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()});if(r&&t.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(r.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;r=r.substring(0,i)+":59"+r.substring(i+3)}}return r},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),r=null;return r="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(r,n){var o=r;r.indexOf("#")>-1?o=r.substring(0,r.indexOf("#")):r.indexOf("L")>-1&&(o=o.replace("L",""));var i=parseInt(o);if(e.options.tzOffset){var s=parseInt(e.expressionParts[2])+(e.options.tzOffset?e.options.tzOffset:0);s>=24?i++:s<0&&i--,i>6?i=0:i<0&&(i=6)}var a=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(n)[i]:t[i];if(r.indexOf("#")>-1){var l=null,u=r.substring(r.indexOf("#")+1),c=r.substring(0,r.indexOf("#"));switch(u){case"1":l=e.i18n.first(c);break;case"2":l=e.i18n.second(c);break;case"3":l=e.i18n.third(c);break;case"4":l=e.i18n.fourth(c);break;case"5":l=e.i18n.fifth(c)}a=l+" "+a}return a},function(t){return 1==parseInt(t)?"":n.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var r=t.substring(0,t.indexOf("-"));return"*"!=e.expressionParts[3]?e.i18n.commaAndX0ThroughX1(r):e.i18n.commaX0ThroughX1(r)},function(t){var r=null;if(t.indexOf("#")>-1){var n=t.substring(t.indexOf("#")+1),o=t.substring(0,t.indexOf("#"));r=e.i18n.commaOnThe(n,o).trim()+e.i18n.spaceX0OfTheMonth()}else r=t.indexOf("L")>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L","")):"*"!=e.expressionParts[3]?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t);return r})},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",function(r,n){return n&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(n)[parseInt(r)-1]:t[parseInt(r)-1]},function(t){return 1==parseInt(t)?"":n.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,r=this.expressionParts[3];switch(r){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),s=1==i?this.i18n.firstWeekday():n.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());t=n.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),s);break}var a=r.match(/L-(\d{1,2})/);if(a){var l=a[1];t=n.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l)}else{if("*"==r&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?n.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)})}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],"",function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return n.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,r,o,i,s){var a=null,l=e.indexOf("/")>-1,u=e.indexOf("-")>-1,c=e.indexOf(",")>-1;if(e){if("*"===e)a=t;else if(l||u||c){if(c){for(var d=e.split(","),p="",h=0;h<d.length;h++)if(h>0&&d.length>2&&(p+=",",h<d.length-1&&(p+=" ")),h>0&&d.length>1&&(h==d.length-1||2==d.length)&&(p+="".concat(this.i18n.spaceAnd()," ")),d[h].indexOf("/")>-1||d[h].indexOf("-")>-1){var f=d[h].indexOf("-")>-1&&-1==d[h].indexOf("/"),m=this.getSegmentDescription(d[h],t,r,o,f?this.i18n.commaX0ThroughX1:i,s);f&&(m=m.replace(", ","")),p+=m}else l?p+=this.getSegmentDescription(d[h],t,r,o,i,s):p+=r(d[h]);a=l?p:n.StringUtilities.format(s(e),p)}else if(l){var d=e.split("/");if(a=n.StringUtilities.format(o(d[1]),d[1]),d[0].indexOf("-")>-1){var g=this.generateRangeSegmentDescription(d[0],i,r);0!=g.indexOf(", ")&&(a+=", "),a+=g}else if(-1==d[0].indexOf("*")){var y=n.StringUtilities.format(s(d[0]),r(d[0]));y=y.replace(", ",""),a+=n.StringUtilities.format(this.i18n.commaStartingX0(),y)}}else u&&(a=this.generateRangeSegmentDescription(e,i,r))}else a=n.StringUtilities.format(s(e),r(e))}else a="";return a},e.prototype.generateRangeSegmentDescription=function(e,t,r){var o="",i=e.split("-"),s=r(i[0],1),a=r(i[1],2),l=t(e);return o+=n.StringUtilities.format(l,s,a)},e.prototype.formatTime=function(e,t,r){var n=0,o=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),0!=(o=parseFloat((this.options.tzOffset%1).toFixed(2)))&&(o*=60));var i=parseInt(e)+n,s=parseInt(t)+o;s>=60?(s-=60,i+=1):s<0&&(s+=60,i-=1),i>=24?i-=24:i<0&&(i=24+i);var a="",l=!1;!this.options.use24HourTimeFormat&&(a=(l=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),0===i&&(i=12));var u="";return r&&(u=":".concat(("00"+r).substring(r.length))),"".concat(l?a:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+s.toString()).substring(s.toString().length)).concat(u).concat(l?"":a)},e.prototype.transformVerbosity=function(e,t){return!t&&(e=(e=(e=(e=e.replace(RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=i},99:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bg=t.my=t.vi=t.ar=t.th=t.af=t.hu=t.be=t.ca=t.fa=t.sw=t.sl=t.fi=t.sk=t.cs=t.he=t.ja=t.zh_TW=t.zh_CN=t.uk=t.tr=t.ru=t.ro=t.pt_PT=t.pt_BR=t.pl=t.sv=t.nb=t.nl=t.ko=t.id=t.it=t.fr=t.es=t.de=t.da=t.en=void 0;var n=r(486);Object.defineProperty(t,"en",{enumerable:!0,get:function(){return n.en}});var o=r(506);Object.defineProperty(t,"da",{enumerable:!0,get:function(){return o.da}});var i=r(230);Object.defineProperty(t,"de",{enumerable:!0,get:function(){return i.de}});var s=r(153);Object.defineProperty(t,"es",{enumerable:!0,get:function(){return s.es}});var a=r(517);Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return a.fr}});var l=r(488);Object.defineProperty(t,"it",{enumerable:!0,get:function(){return l.it}});var u=r(72);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return u.id}});var c=r(839);Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return c.ko}});var d=r(647);Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return d.nl}});var p=r(957);Object.defineProperty(t,"nb",{enumerable:!0,get:function(){return p.nb}});var h=r(544);Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return h.sv}});var f=r(905);Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return f.pl}});var m=r(556);Object.defineProperty(t,"pt_BR",{enumerable:!0,get:function(){return m.pt_BR}});var g=r(163);Object.defineProperty(t,"pt_PT",{enumerable:!0,get:function(){return g.pt_PT}});var y=r(614);Object.defineProperty(t,"ro",{enumerable:!0,get:function(){return y.ro}});var x=r(892);Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return x.ru}});var b=r(631);Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return b.tr}});var w=r(225);Object.defineProperty(t,"uk",{enumerable:!0,get:function(){return w.uk}});var _=r(571);Object.defineProperty(t,"zh_CN",{enumerable:!0,get:function(){return _.zh_CN}});var k=r(983);Object.defineProperty(t,"zh_TW",{enumerable:!0,get:function(){return k.zh_TW}});var C=r(904);Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return C.ja}});var A=r(82);Object.defineProperty(t,"he",{enumerable:!0,get:function(){return A.he}});var O=r(651);Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return O.cs}});var D=r(923);Object.defineProperty(t,"sk",{enumerable:!0,get:function(){return D.sk}});var S=r(964);Object.defineProperty(t,"fi",{enumerable:!0,get:function(){return S.fi}});var T=r(474);Object.defineProperty(t,"sl",{enumerable:!0,get:function(){return T.sl}});var E=r(799);Object.defineProperty(t,"sw",{enumerable:!0,get:function(){return E.sw}});var M=r(804);Object.defineProperty(t,"fa",{enumerable:!0,get:function(){return M.fa}});var j=r(845);Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return j.ca}});var N=r(348);Object.defineProperty(t,"be",{enumerable:!0,get:function(){return N.be}});var P=r(194);Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return P.hu}});var B=r(810);Object.defineProperty(t,"af",{enumerable:!0,get:function(){return B.af}});var I=r(33);Object.defineProperty(t,"th",{enumerable:!0,get:function(){return I.th}});var L=r(574);Object.defineProperty(t,"ar",{enumerable:!0,get:function(){return L.ar}});var F=r(292);Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return F.vi}});var z=r(919);Object.defineProperty(t,"my",{enumerable:!0,get:function(){return z.my}});var R=r(622);Object.defineProperty(t,"bg",{enumerable:!0,get:function(){return R.bg}})},420:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.allLocalesLoader=void 0;var n=r(99),o=function(){function e(){}return e.prototype.load=function(e){for(var t in n)n.hasOwnProperty(t)&&(e[t]=new n[t])},e}();t.allLocalesLoader=o},810:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.af=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", jaar %s na %s"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Daar was 'n fout om die tydsuitdrukking the genereer. Raadpleeg asb die uitdrukking formaat."},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elke uur"},e.prototype.atSpace=function(){return"Teen "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Teen"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke sekonde"},e.prototype.everyX0Seconds=function(){return"elke %s sekonde"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekonde %s deur na %s na die minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"teen %s sekondes na die minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minute"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute %s deur na %s na die uur"},e.prototype.atX0MinutesPastTheHour=function(){return"teen %s minute na die uur"},e.prototype.everyX0Hours=function(){return"elke %s ure"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"teen %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dae van die week"},e.prototype.commaX0ThroughX1=function(){return", %s deur na %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s deur na %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vyfde"},e.prototype.commaOnThe=function(){return", op die "},e.prototype.spaceX0OfTheMonth=function(){return" %s van die maand"},e.prototype.lastDay=function(){return"die laaste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op die laaste %s van die maand"},e.prototype.commaOnlyOnX0=function(){return", net op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maande"},e.prototype.commaOnlyInX0=function(){return", net in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op die laaste dag van die maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op die laaste weeksdag van die maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dae voor die laaste dag van die maand"},e.prototype.firstWeekday=function(){return"eerste weeksdag"},e.prototype.weekdayNearestDayX0=function(){return"weeksdag naaste aan dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op die %s van die maande"},e.prototype.commaEveryX0Days=function(){return", elke %s dae"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van die maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van die maand"},e.prototype.commaEveryHour=function(){return", elke uur"},e.prototype.commaEveryX0Years=function(){return", elke %s jare"},e.prototype.commaStartingX0=function(){return", beginnende %s"},e.prototype.daysOfTheWeek=function(){return["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},e.prototype.monthsOfTheYear=function(){return["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},e}();t.af=r},574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ar=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"حدث خطأ في إنشاء وصف المصطلح٠ تأكد من تركيب مصطلح الكرون"},e.prototype.everyMinute=function(){return"كل دقيقة"},e.prototype.everyHour=function(){return"كل ساعة"},e.prototype.atSpace=function(){return" "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"كل دقيقة بين %s و %s"},e.prototype.at=function(){return""},e.prototype.spaceAnd=function(){return" و"},e.prototype.everySecond=function(){return"كل ثانية"},e.prototype.everyX0Seconds=function(){return"كل %s ثواني"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"الثواني %s حتى %s من بداية الدقيقة"},e.prototype.atX0SecondsPastTheMinute=function(){return"الثانية %s من بداية الدقيقة"},e.prototype.everyX0Minutes=function(){return"كل %s دقائق"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"الدقائق %s حتى %s من بداية الساعة"},e.prototype.atX0MinutesPastTheHour=function(){return"الدقيقة %s من بداية الساعة"},e.prototype.everyX0Hours=function(){return"كل %s ساعات"},e.prototype.betweenX0AndX1=function(){return"بين %s و %s"},e.prototype.atX0=function(){return"%s"},e.prototype.commaEveryDay=function(){return"، كل يوم"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return"، كل %s من أيام الأسبوع"},e.prototype.commaX0ThroughX1=function(){return"، %s حتى %s"},e.prototype.commaAndX0ThroughX1=function(){return"، و %s حتى %s"},e.prototype.first=function(){return"أول"},e.prototype.second=function(){return"ثاني"},e.prototype.third=function(){return"ثالث"},e.prototype.fourth=function(){return"رابع"},e.prototype.fifth=function(){return"خامس"},e.prototype.commaOnThe=function(){return"، في ال"},e.prototype.spaceX0OfTheMonth=function(){return" %s من الشهر"},e.prototype.lastDay=function(){return"اليوم الأخير"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return"، في اخر %s من الشهر"},e.prototype.commaOnlyOnX0=function(){return"، %s فقط"},e.prototype.commaAndOnX0=function(){return"، وفي %s"},e.prototype.commaEveryX0Months=function(){return"، كل %s أشهر"},e.prototype.commaOnlyInX0=function(){return"، %s فقط"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return"، في اخر يوم من الشهر"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"، في اخر يوم أسبوع من الشهر"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"، %s أيام قبل اخر يوم من الشهر"},e.prototype.firstWeekday=function(){return"اول ايام الأسبوع"},e.prototype.weekdayNearestDayX0=function(){return"يوم الأسبوع الأقرب ليوم %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return"، في %s من الشهر"},e.prototype.commaEveryX0Days=function(){return"، كل %s أيام"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"، بين يوم %s و %s من الشهر"},e.prototype.commaOnDayX0OfTheMonth=function(){return"، في اليوم %s من الشهر"},e.prototype.commaEveryHour=function(){return"، كل ساعة"},e.prototype.commaEveryX0Years=function(){return"، كل %s سنوات"},e.prototype.commaStartingX0=function(){return"، بداية من %s"},e.prototype.daysOfTheWeek=function(){return["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},e.prototype.monthsOfTheYear=function(){return["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},e}();t.ar=r},348:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.be=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"кожную хвіліну"},e.prototype.everyHour=function(){return"кожную гадзіну"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Адбылася памылка падчас генерацыі апісання выразы. Праверце сінтаксіс крон-выразы."},e.prototype.atSpace=function(){return"У "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Кожную хвіліну з %s да %s"},e.prototype.at=function(){return"У"},e.prototype.spaceAnd=function(){return" і"},e.prototype.everySecond=function(){return"кожную секунду"},e.prototype.everyX0Seconds=function(){return"кожныя %s секунд"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды з %s па %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"у %s секунд"},e.prototype.everyX0Minutes=function(){return"кожныя %s хвілін"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"хвіліны з %s па %s"},e.prototype.atX0MinutesPastTheHour=function(){return"у %s хвілін"},e.prototype.everyX0Hours=function(){return"кожныя %s гадзін"},e.prototype.betweenX0AndX1=function(){return"з %s па %s"},e.prototype.atX0=function(){return"у %s"},e.prototype.commaEveryDay=function(){return", кожны дзень"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожныя %s дзён тыдня"},e.prototype.commaX0ThroughX1=function(){return", %s па %s"},e.prototype.commaAndX0ThroughX1=function(){return", і %s па %s"},e.prototype.first=function(){return"першы"},e.prototype.second=function(){return"другі"},e.prototype.third=function(){return"трэці"},e.prototype.fourth=function(){return"чацвёрты"},e.prototype.fifth=function(){return"пяты"},e.prototype.commaOnThe=function(){return", у "},e.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},e.prototype.lastDay=function(){return"апошні дзень"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", у апошні %s месяца"},e.prototype.commaOnlyOnX0=function(){return", толькі ў %s"},e.prototype.commaAndOnX0=function(){return", і ў %s"},e.prototype.commaEveryX0Months=function(){return", кожныя %s месяцаў"},e.prototype.commaOnlyInX0=function(){return", толькі ў %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", у апошні дзень месяца"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", у апошні будні дзень месяца"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s дзён да апошняга дня месяца"},e.prototype.firstWeekday=function(){return"першы будны дзень"},e.prototype.weekdayNearestDayX0=function(){return"найбліжэйшы будны дзень да %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", у %s месяцы"},e.prototype.commaEveryX0Days=function(){return", кожныя %s дзён"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", з %s па %s лік месяца"},e.prototype.commaOnDayX0OfTheMonth=function(){return", у %s лік месяца"},e.prototype.commaEveryX0Years=function(){return", кожныя %s гадоў"},e.prototype.commaStartingX0=function(){return", пачатак %s"},e.prototype.daysOfTheWeek=function(){return["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},e.prototype.monthsOfTheYear=function(){return["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},e}();t.be=r},622:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bg=void 0;var r=function(e,t){return(null!=e?Number(e):0)<2?t[0]:t[1]},n=function(e,t){return t[[1,0,0,1,0,0,1][null!=e?Number(e):0]]},o=function(e,t){var r=null!=e?Number(e):1;return["в","р","т"][r=Math.max(Math.min(r<10||r>20&&r%10!=0?r%10:3,3),1)-1]+["и","а","о"][["м","ж","ср"].indexOf(t)]},i=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"всяка минута"},e.prototype.everyHour=function(){return"всеки час"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Възникна грешка при генериране на описанието на израза. Проверете синтаксиса на cron израза."},e.prototype.atSpace=function(){return"В "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Всяка минута от %s до %s"},e.prototype.at=function(){return"В"},e.prototype.spaceAnd=function(){return" и"},e.prototype.everySecond=function(){return"всяка секунда"},e.prototype.everyX0Seconds=function(e){return"всеки %s секунди"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунди от %s до %s"},e.prototype.atX0SecondsPastTheMinute=function(e){return"%s-".concat(o(e,"ж")," секунда")},e.prototype.everyX0Minutes=function(e){return"всеки %s минути"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"минути от %s до %s"},e.prototype.atX0MinutesPastTheHour=function(e){return"%s-".concat(o(e,"ж")," минутa")},e.prototype.everyX0Hours=function(e){return"всеки %s часа"},e.prototype.betweenX0AndX1=function(){return"от %s до %s"},e.prototype.atX0=function(){return"в %s"},e.prototype.commaEveryDay=function(){return", всеки ден"},e.prototype.commaEveryX0DaysOfTheWeek=function(e){return r(e,[", всеки %s ден от седмицата",", всеки %s дена от седмицата"])},e.prototype.commaX0ThroughX1=function(e){return", от %s до %s"},e.prototype.commaAndX0ThroughX1=function(e){return" и от %s до %s"},e.prototype.first=function(e){return n(e,["первият","первата"])},e.prototype.second=function(e){return n(e,["вторият","втората"])},e.prototype.third=function(e){return n(e,["третият","третата"])},e.prototype.fourth=function(e){return n(e,["четвертият","четвертата"])},e.prototype.fifth=function(e){return n(e,["петият","петата"])},e.prototype.commaOnThe=function(e){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s на месеца"},e.prototype.lastDay=function(){return"последният ден"},e.prototype.commaOnTheLastX0OfTheMonth=function(e){return n(e,[", в последният %s от месеца",", в последната %s отмесеца"])},e.prototype.commaOnlyOnX0=function(e){return", %s"},e.prototype.commaAndOnX0=function(){return" и %s"},e.prototype.commaEveryX0Months=function(e){return" всеки %s месеца"},e.prototype.commaOnlyInMonthX0=function(){return", %s"},e.prototype.commaOnlyInX0=function(){return", в %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последният ден на месеца"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последния делничен ден от месеца"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(e){return r(e,[", %s ден преди края на месеца",", %s дена преди края на месеца"])},e.prototype.firstWeekday=function(){return"първият делничен ден"},e.prototype.weekdayNearestDayX0=function(){return"най-близкият делничен ден до %s число"},e.prototype.commaOnTheX0OfTheMonth=function(){return", на %s число от месеца"},e.prototype.commaEveryX0Days=function(e){return r(e,[", всеки %s ден",", всеки %s дена"])},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(e){var t,r=null!==(t=null==e?void 0:e.split("-"))&&void 0!==t?t:[];return", от %s-".concat(o(r[0],"ср")," до %s-").concat(o(r[1],"ср")," число на месеца")},e.prototype.commaOnDayX0OfTheMonth=function(e){return", на %s-".concat(o(e,"ср")," число от месеца")},e.prototype.commaEveryX0Years=function(e){return r(e,[", всяка %s година",", всеки %s години"])},e.prototype.commaStartingX0=function(){return", започвайки %s"},e.prototype.daysOfTheWeek=function(){return["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},e.prototype.monthsOfTheYear=function(){return["януари","февруари","март","април","май","юни","юли","август","септевмври","октомври","ноември","декември"]},e}();t.bg=i},845:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ca=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"S'ha produ\xeft un error mentres es generava la descripci\xf3 de l'expressi\xf3. Revisi la sintaxi de la expressi\xf3 de cron."},e.prototype.at=function(){return"A les"},e.prototype.atSpace=function(){return"A les "},e.prototype.atX0=function(){return"a les %s"},e.prototype.atX0MinutesPastTheHour=function(){return"als %s minuts de l'hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"als %s segonds del minut"},e.prototype.betweenX0AndX1=function(){return"entre les %s i les %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre els dies %s i %s del mes"},e.prototype.commaEveryDay=function(){return", cada dia"},e.prototype.commaEveryX0Days=function(){return", cada %s dies"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s dies de la setmana"},e.prototype.commaEveryX0Months=function(){return", cada %s mesos"},e.prototype.commaOnDayX0OfTheMonth=function(){return", el dia %s del mes"},e.prototype.commaOnlyInX0=function(){return", s\xf3lo en %s"},e.prototype.commaOnlyOnX0=function(){return", nom\xe9s el %s"},e.prototype.commaAndOnX0=function(){return", i el %s"},e.prototype.commaOnThe=function(){return", en el "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", en l'\xfaltim dia del mes"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en l'\xfaltim dia de la setmana del mes"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dies abans de l'\xfaltim dia del mes"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", en l'\xfaltim %s del mes"},e.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", i de %s a %s"},e.prototype.everyHour=function(){return"cada hora"},e.prototype.everyMinute=function(){return"cada minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minut entre les %s i les %s"},e.prototype.everySecond=function(){return"cada segon"},e.prototype.everyX0Hours=function(){return"cada %s hores"},e.prototype.everyX0Minutes=function(){return"cada %s minuts"},e.prototype.everyX0Seconds=function(){return"cada %s segons"},e.prototype.fifth=function(){return"cinqu\xe8"},e.prototype.first=function(){return"primer"},e.prototype.firstWeekday=function(){return"primer dia de la setmana"},e.prototype.fourth=function(){return"quart"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minut %s al %s passada l'hora"},e.prototype.second=function(){return"segon"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En els segons %s al %s de cada minut"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},e.prototype.lastDay=function(){return"l'\xfaltim dia"},e.prototype.third=function(){return"tercer"},e.prototype.weekdayNearestDayX0=function(){return"dia de la setmana m\xe9s proper al %s"},e.prototype.commaEveryX0Years=function(){return", cada %s anys"},e.prototype.commaStartingX0=function(){return", comen\xe7ant %s"},e.prototype.daysOfTheWeek=function(){return["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},e.prototype.monthsOfTheYear=function(){return["gener","febrer","mar\xe7","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},e}();t.ca=r},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cs=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Při vytv\xe1řen\xed popisu došlo k chybě. Zkontrolujte pros\xedm spr\xe1vnost syntaxe cronu."},e.prototype.everyMinute=function(){return"každou minutu"},e.prototype.everyHour=function(){return"každou hodinu"},e.prototype.atSpace=function(){return"V "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Každou minutu mezi %s a %s"},e.prototype.at=function(){return"V"},e.prototype.spaceAnd=function(){return" a"},e.prototype.everySecond=function(){return"každou sekundu"},e.prototype.everyX0Seconds=function(){return"každ\xfdch %s sekund"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"v %s sekund"},e.prototype.everyX0Minutes=function(){return"každ\xfdch %s minut"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},e.prototype.atX0MinutesPastTheHour=function(){return"v %s minut"},e.prototype.everyX0Hours=function(){return"každ\xfdch %s hodin"},e.prototype.betweenX0AndX1=function(){return"mezi %s a %s"},e.prototype.atX0=function(){return"v %s"},e.prototype.commaEveryDay=function(){return", každ\xfd den"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", každ\xfdch %s dn\xed v t\xfddnu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},e.prototype.first=function(){return"prvn\xed"},e.prototype.second=function(){return"druh\xfd"},e.prototype.third=function(){return"třet\xed"},e.prototype.fourth=function(){return"čtvrt\xfd"},e.prototype.fifth=function(){return"p\xe1t\xfd"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s v měs\xedci"},e.prototype.lastDay=function(){return"posledn\xed den"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", posledn\xed %s v měs\xedci"},e.prototype.commaOnlyOnX0=function(){return", pouze v %s"},e.prototype.commaAndOnX0=function(){return", a v %s"},e.prototype.commaEveryX0Months=function(){return", každ\xfdch %s měs\xedců"},e.prototype.commaOnlyInX0=function(){return", pouze v %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", posledn\xed den v měs\xedci"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", posledn\xed pracovn\xed den v měs\xedci"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dn\xed před posledn\xedm dnem v měs\xedci"},e.prototype.firstWeekday=function(){return"prvn\xed pracovn\xed den"},e.prototype.weekdayNearestDayX0=function(){return"pracovn\xed den nejbl\xedže %s. dni"},e.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v měs\xedci"},e.prototype.commaEveryX0Days=function(){return", každ\xfdch %s dnů"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mezi dny %s a %s v měs\xedci"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. den v měs\xedci"},e.prototype.commaEveryX0Years=function(){return", každ\xfdch %s roků"},e.prototype.commaStartingX0=function(){return", zač\xednaj\xedc\xed %s"},e.prototype.daysOfTheWeek=function(){return["Neděle","Ponděl\xed","\xdater\xfd","Středa","Čtvrtek","P\xe1tek","Sobota"]},e.prototype.monthsOfTheYear=function(){return["Leden","\xdanor","Březen","Duben","Květen","Červen","Červenec","Srpen","Z\xe1ř\xed","Ř\xedjen","Listopad","Prosinec"]},e}();t.cs=r},506:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.da=void 0;var r=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Der opstod en fejl ved generering af udtryksbeskrivelsen. Tjek cron-ekspressionssyntaxen."},e.prototype.at=function(){return"kl"},e.prototype.atSpace=function(){return"kl "},e.prototype.atX0=function(){return"kl %s"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutter efter timeskift"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunder efter minutskift"},e.prototype.betweenX0AndX1=function(){return"mellem %s og %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellem dag %s og %s i m\xe5neden"},e.prototype.commaEveryDay=function(){return", hver dag"},e.prototype.commaEveryX0Days=function(){return", hver %s. dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s. ugedag"},e.prototype.commaEveryX0Months=function(){return", hver %s. m\xe5ned"},e.prototype.commaEveryX0Years=function(){return", hvert %s. \xe5r"},e.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s i m\xe5neden"},e.prototype.commaOnlyInX0=function(){return", kun i %s"},e.prototype.commaOnlyOnX0=function(){return", p\xe5 %se"},e.prototype.commaAndOnX0=function(){return", og p\xe5 %s"},e.prototype.commaOnThe=function(){return", p\xe5 den "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 den sidste dag i m\xe5neden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", p\xe5 den sidste hverdag i m\xe5neden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dage f\xf8r den sidste dag i m\xe5neden"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 den sidste %s i m\xe5neden"},e.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s i m\xe5neden"},e.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},e.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},e.prototype.everyHour=function(){return"hver time"},e.prototype.everyMinute=function(){return"hvert minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"hvert minut mellem %s og %s"},e.prototype.everySecond=function(){return"hvert sekund"},e.prototype.everyX0Hours=function(){return"hver %s. time"},e.prototype.everyX0Minutes=function(){return"hvert %s. minut"},e.prototype.everyX0Seconds=function(){return"hvert %s. sekund"},e.prototype.fifth=function(){return"femte"},e.prototype.first=function(){return"f\xf8rste"},e.prototype.firstWeekday=function(){return"f\xf8rste hverdag"},e.prototype.fourth=function(){return"fjerde"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutterne fra %s til og med %s hver time"},e.prototype.second=function(){return"anden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderne fra %s til og med %s hvert minut"},e.prototype.spaceAnd=function(){return" og"},e.prototype.spaceX0OfTheMonth=function(){return" %s i m\xe5neden"},e.prototype.lastDay=function(){return"sidste dag"},e.prototype.third=function(){return"tredje"},e.prototype.weekdayNearestDayX0=function(){return"hverdag n\xe6rmest dag %s"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", startende %s"},e.prototype.daysOfTheWeek=function(){return["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},e}();t.da=r},230:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.de=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"jede Minute"},e.prototype.everyHour=function(){return"jede Stunde"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Beim Generieren der Ausdrucksbeschreibung ist ein Fehler aufgetreten. \xdcberpr\xfcfen Sie die Syntax des Cron-Ausdrucks."},e.prototype.atSpace=function(){return"Um "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Jede Minute zwischen %s und %s"},e.prototype.at=function(){return"Um"},e.prototype.spaceAnd=function(){return" und"},e.prototype.everySecond=function(){return"Jede Sekunde"},e.prototype.everyX0Seconds=function(){return"alle %s Sekunden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"Sekunden %s bis %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"bei Sekunde %s"},e.prototype.everyX0Minutes=function(){return"alle %s Minuten"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"Minuten %s bis %s"},e.prototype.atX0MinutesPastTheHour=function(){return"bei Minute %s"},e.prototype.everyX0Hours=function(){return"alle %s Stunden"},e.prototype.betweenX0AndX1=function(){return"zwischen %s und %s"},e.prototype.atX0=function(){return"um %s"},e.prototype.commaEveryDay=function(){return", jeden Tag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", alle %s Tage der Woche"},e.prototype.commaX0ThroughX1=function(){return", %s bis %s"},e.prototype.commaAndX0ThroughX1=function(){return", und %s bis %s"},e.prototype.first=function(){return"ersten"},e.prototype.second=function(){return"zweiten"},e.prototype.third=function(){return"dritten"},e.prototype.fourth=function(){return"vierten"},e.prototype.fifth=function(){return"f\xfcnften"},e.prototype.commaOnThe=function(){return", am "},e.prototype.spaceX0OfTheMonth=function(){return" %s des Monats"},e.prototype.lastDay=function(){return"der letzte Tag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", am letzten %s des Monats"},e.prototype.commaOnlyOnX0=function(){return", nur jeden %s"},e.prototype.commaAndOnX0=function(){return", und jeden %s"},e.prototype.commaEveryX0Months=function(){return", alle %s Monate"},e.prototype.commaOnlyInX0=function(){return", nur im %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", am letzten Tag des Monats"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", am letzten Werktag des Monats"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s tage vor dem letzten Tag des Monats"},e.prototype.firstWeekday=function(){return"ersten Werktag"},e.prototype.weekdayNearestDayX0=function(){return"Werktag am n\xe4chsten zum %s Tag"},e.prototype.commaOnTheX0OfTheMonth=function(){return", am %s des Monats"},e.prototype.commaEveryX0Days=function(){return", alle %s Tage"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", zwischen Tag %s und %s des Monats"},e.prototype.commaOnDayX0OfTheMonth=function(){return", an Tag %s des Monats"},e.prototype.commaEveryX0Years=function(){return", alle %s Jahre"},e.prototype.commaStartingX0=function(){return", beginnend %s"},e.prototype.daysOfTheWeek=function(){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},e.prototype.monthsOfTheYear=function(){return["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},e}();t.de=r},486:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=r},153:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.es=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocurri\xf3 un error mientras se generaba la descripci\xf3n de la expresi\xf3n. Revise la sintaxis de la expresi\xf3n de cron."},e.prototype.at=function(){return"A las"},e.prototype.atSpace=function(){return"A las "},e.prototype.atX0=function(){return"a las %s"},e.prototype.atX0MinutesPastTheHour=function(){return"a los %s minutos de la hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"a los %s segundos del minuto"},e.prototype.betweenX0AndX1=function(){return"entre las %s y las %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre los d\xedas %s y %s del mes"},e.prototype.commaEveryDay=function(){return", cada d\xeda"},e.prototype.commaEveryX0Days=function(){return", cada %s d\xedas"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", cada %s d\xedas de la semana"},e.prototype.commaEveryX0Months=function(){return", cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", el d\xeda %s del mes"},e.prototype.commaOnlyInX0=function(){return", s\xf3lo en %s"},e.prototype.commaOnlyOnX0=function(){return", s\xf3lo el %s"},e.prototype.commaAndOnX0=function(){return", y el %s"},e.prototype.commaOnThe=function(){return", en el "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", en el \xfaltimo d\xeda del mes"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", en el \xfaltimo d\xeda de la semana del mes"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s d\xedas antes del \xfaltimo d\xeda del mes"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", en el \xfaltimo %s del mes"},e.prototype.commaOnTheX0OfTheMonth=function(){return", en el %s del mes"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", y de %s a %s"},e.prototype.everyHour=function(){return"cada hora"},e.prototype.everyMinute=function(){return"cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"cada minuto entre las %s y las %s"},e.prototype.everySecond=function(){return"cada segundo"},e.prototype.everyX0Hours=function(){return"cada %s horas"},e.prototype.everyX0Minutes=function(){return"cada %s minutos"},e.prototype.everyX0Seconds=function(){return"cada %s segundos"},e.prototype.fifth=function(){return"quinto"},e.prototype.first=function(){return"primero"},e.prototype.firstWeekday=function(){return"primer d\xeda de la semana"},e.prototype.fourth=function(){return"cuarto"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"del minuto %s al %s pasada la hora"},e.prototype.second=function(){return"segundo"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"En los segundos %s al %s de cada minuto"},e.prototype.spaceAnd=function(){return" y"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mes"},e.prototype.lastDay=function(){return"el \xfaltimo d\xeda"},e.prototype.third=function(){return"tercer"},e.prototype.weekdayNearestDayX0=function(){return"d\xeda de la semana m\xe1s pr\xf3ximo al %s"},e.prototype.commaEveryX0Years=function(){return", cada %s a\xf1os"},e.prototype.commaStartingX0=function(){return", comenzando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},e.prototype.monthsOfTheYear=function(){return["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},e}();t.es=r},804:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fa=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"خطایی در نمایش توضیحات این وظیفه رخ داد. لطفا ساختار آن را بررسی کنید."},e.prototype.everyMinute=function(){return"هر دقیقه"},e.prototype.everyHour=function(){return"هر ساعت"},e.prototype.atSpace=function(){return"در "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"هر دقیقه بین %s و %s"},e.prototype.at=function(){return"در"},e.prototype.spaceAnd=function(){return" و"},e.prototype.everySecond=function(){return"هر ثانیه"},e.prototype.everyX0Seconds=function(){return"هر %s ثانیه"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"ثانیه %s تا %s دقیقه گذشته"},e.prototype.atX0SecondsPastTheMinute=function(){return"در %s قانیه از دقیقه گذشته"},e.prototype.everyX0Minutes=function(){return"هر %s دقیقه"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"دقیقه %s تا %s ساعت گذشته"},e.prototype.atX0MinutesPastTheHour=function(){return"در %s دقیقه پس از ساعت"},e.prototype.everyX0Hours=function(){return"هر %s ساعت"},e.prototype.betweenX0AndX1=function(){return"بین %s و %s"},e.prototype.atX0=function(){return"در %s"},e.prototype.commaEveryDay=function(){return", هر روز"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", هر %s روز از هفته"},e.prototype.commaX0ThroughX1=function(){return", %s تا %s"},e.prototype.commaAndX0ThroughX1=function(){return", و %s تا %s"},e.prototype.first=function(){return"اول"},e.prototype.second=function(){return"دوم"},e.prototype.third=function(){return"سوم"},e.prototype.fourth=function(){return"چهارم"},e.prototype.fifth=function(){return"پنجم"},e.prototype.commaOnThe=function(){return", در "},e.prototype.spaceX0OfTheMonth=function(){return" %s ماه"},e.prototype.lastDay=function(){return"آخرین روز"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaOnlyOnX0=function(){return", فقط در %s"},e.prototype.commaAndOnX0=function(){return", و در %s"},e.prototype.commaEveryX0Months=function(){return", هر %s ماه"},e.prototype.commaOnlyInX0=function(){return", فقط در %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", در آخرین روز ماه"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", در آخرین روز ماه"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s روز قبل از آخرین روز ماه"},e.prototype.firstWeekday=function(){return"اولین روز"},e.prototype.weekdayNearestDayX0=function(){return"روز نزدیک به روز %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaEveryX0Days=function(){return", هر %s روز"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", بین روز %s و %s ماه"},e.prototype.commaOnDayX0OfTheMonth=function(){return", در %s ماه"},e.prototype.commaEveryMinute=function(){return", هر minute"},e.prototype.commaEveryHour=function(){return", هر ساعت"},e.prototype.commaEveryX0Years=function(){return", هر %s سال"},e.prototype.commaStartingX0=function(){return", آغاز %s"},e.prototype.daysOfTheWeek=function(){return["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه"]},e.prototype.monthsOfTheYear=function(){return["ژانویه","فوریه","مارس","آپریل","مه","ژوئن","ژوئیه","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},e}();t.fa=r},964:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fi=void 0;var r=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Virhe kuvauksen generoinnissa. Tarkista cron-syntaksi."},e.prototype.at=function(){return"Klo"},e.prototype.atSpace=function(){return"Klo "},e.prototype.atX0=function(){return"klo %s"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minuuttia yli"},e.prototype.atX0MinutesPastTheHourGt20=function(){return"%s minuuttia yli"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s sekunnnin j\xe4lkeen"},e.prototype.betweenX0AndX1=function(){return"%s - %s v\xe4lill\xe4"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kuukauden p\xe4ivien %s ja %s v\xe4lill\xe4"},e.prototype.commaEveryDay=function(){return", joka p\xe4iv\xe4"},e.prototype.commaEveryHour=function(){return", joka tunti"},e.prototype.commaEveryMinute=function(){return", joka minuutti"},e.prototype.commaEveryX0Days=function(){return", joka %s. p\xe4iv\xe4"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", joka %s. viikonp\xe4iv\xe4"},e.prototype.commaEveryX0Months=function(){return", joka %s. kuukausi"},e.prototype.commaEveryX0Years=function(){return", joka %s. vuosi"},e.prototype.commaOnDayX0OfTheMonth=function(){return", kuukauden %s p\xe4iv\xe4"},e.prototype.commaOnlyInX0=function(){return", vain %s"},e.prototype.commaOnlyOnX0=function(){return", vain %s"},e.prototype.commaOnThe=function(){return","},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", kuukauden viimeisen\xe4 p\xe4iv\xe4n\xe4"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", kuukauden viimeisen\xe4 viikonp\xe4iv\xe4n\xe4"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", kuukauden viimeinen %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", kuukauden %s"},e.prototype.commaX0ThroughX1=function(){return", %s - %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s - %s"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s p\xe4iv\xe4\xe4 ennen kuukauden viimeist\xe4 p\xe4iv\xe4\xe4"},e.prototype.commaStartingX0=function(){return", alkaen %s"},e.prototype.everyHour=function(){return"joka tunti"},e.prototype.everyMinute=function(){return"joka minuutti"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"joka minuutti %s - %s v\xe4lill\xe4"},e.prototype.everySecond=function(){return"joka sekunti"},e.prototype.everyX0Hours=function(){return"joka %s. tunti"},e.prototype.everyX0Minutes=function(){return"joka %s. minuutti"},e.prototype.everyX0Seconds=function(){return"joka %s. sekunti"},e.prototype.fifth=function(){return"viides"},e.prototype.first=function(){return"ensimm\xe4inen"},e.prototype.firstWeekday=function(){return"ensimm\xe4inen viikonp\xe4iv\xe4"},e.prototype.fourth=function(){return"nelj\xe4s"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"joka tunti minuuttien %s - %s v\xe4lill\xe4"},e.prototype.second=function(){return"toinen"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"joka minuutti sekunttien %s - %s v\xe4lill\xe4"},e.prototype.spaceAnd=function(){return" ja"},e.prototype.spaceAndSpace=function(){return" ja "},e.prototype.spaceX0OfTheMonth=function(){return" %s kuukaudessa"},e.prototype.third=function(){return"kolmas"},e.prototype.weekdayNearestDayX0=function(){return"viikonp\xe4iv\xe4 l\xe4hint\xe4 %s p\xe4iv\xe4\xe4"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.lastDay=function(){return"viimeinen p\xe4iv\xe4"},e.prototype.commaAndOnX0=function(){return", ja edelleen %s"},e.prototype.daysOfTheWeek=function(){return["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},e.prototype.monthsOfTheYear=function(){return["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},e}();t.fi=r},517:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fr=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"toutes les minutes"},e.prototype.everyHour=function(){return"toutes les heures"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Une erreur est survenue en g\xe9n\xe9rant la description de l'expression cron. V\xe9rifiez sa syntaxe."},e.prototype.atSpace=function(){return"\xc0 "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Toutes les minutes entre %s et %s"},e.prototype.at=function(){return"\xc0"},e.prototype.spaceAnd=function(){return" et"},e.prototype.everySecond=function(){return"toutes les secondes"},e.prototype.everyX0Seconds=function(){return"toutes les %s secondes"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"les secondes entre %s et %s apr\xe8s la minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s secondes apr\xe8s la minute"},e.prototype.everyX0Minutes=function(){return"toutes les %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"les minutes entre %s et %s apr\xe8s l'heure"},e.prototype.atX0MinutesPastTheHour=function(){return"%s minutes apr\xe8s l'heure"},e.prototype.everyX0Hours=function(){return"toutes les %s heures"},e.prototype.betweenX0AndX1=function(){return"de %s \xe0 %s"},e.prototype.atX0=function(){return"\xe0 %s"},e.prototype.commaEveryDay=function(){return", tous les jours"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", tous les %s jours de la semaine"},e.prototype.commaX0ThroughX1=function(){return", de %s \xe0 %s"},e.prototype.commaAndX0ThroughX1=function(){return", et de %s \xe0 %s"},e.prototype.first=function(){return"premier"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"troisi\xe8me"},e.prototype.fourth=function(){return"quatri\xe8me"},e.prototype.fifth=function(){return"cinqui\xe8me"},e.prototype.commaOnThe=function(){return", le "},e.prototype.spaceX0OfTheMonth=function(){return" %s du mois"},e.prototype.lastDay=function(){return"le dernier jour"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", le dernier %s du mois"},e.prototype.commaOnlyOnX0=function(){return", uniquement le %s"},e.prototype.commaAndOnX0=function(){return", et %s"},e.prototype.commaEveryX0Months=function(){return", tous les %s mois"},e.prototype.commaOnlyInX0=function(){return", uniquement en %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", le dernier jour du mois"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", le dernier jour ouvrable du mois"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s jours avant le dernier jour du mois"},e.prototype.firstWeekday=function(){return"premier jour ouvrable"},e.prototype.weekdayNearestDayX0=function(){return"jour ouvrable le plus proche du %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Days=function(){return", tous les %s jours"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", du %s au %s du mois"},e.prototype.commaOnDayX0OfTheMonth=function(){return", le %s du mois"},e.prototype.commaEveryX0Years=function(){return", tous les %s ans"},e.prototype.commaDaysX0ThroughX1=function(){return", du %s au %s"},e.prototype.commaStartingX0=function(){return", \xe0 partir de %s"},e.prototype.daysOfTheWeek=function(){return["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},e.prototype.monthsOfTheYear=function(){return["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},e}();t.fr=r},82:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.he=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"אירעה שגיאה בעת יצירת תיאור הביטוי. בדוק את תחביר הביטוי cron."},e.prototype.everyMinute=function(){return"כל דקה"},e.prototype.everyHour=function(){return"כל שעה"},e.prototype.atSpace=function(){return"ב "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"כל דקה %s עד %s"},e.prototype.at=function(){return"ב"},e.prototype.spaceAnd=function(){return" ו"},e.prototype.everySecond=function(){return"כל שניה"},e.prototype.everyX0Seconds=function(){return"כל %s שניות"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s עד %s שניות של הדקה"},e.prototype.atX0SecondsPastTheMinute=function(){return"ב %s שניות של הדקה"},e.prototype.everyX0Minutes=function(){return"כל %s דקות"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s עד %s דקות של השעה"},e.prototype.atX0MinutesPastTheHour=function(){return"ב %s דקות של השעה"},e.prototype.everyX0Hours=function(){return"כל %s שעות"},e.prototype.betweenX0AndX1=function(){return"%s עד %s"},e.prototype.atX0=function(){return"ב %s"},e.prototype.commaEveryDay=function(){return", כל יום"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", כל %s ימים בשבוע"},e.prototype.commaX0ThroughX1=function(){return", %s עד %s"},e.prototype.commaAndX0ThroughX1=function(){return", ו %s עד %s"},e.prototype.first=function(){return"ראשון"},e.prototype.second=function(){return"שני"},e.prototype.third=function(){return"שלישי"},e.prototype.fourth=function(){return"רביעי"},e.prototype.fifth=function(){return"חמישי"},e.prototype.commaOnThe=function(){return", ב "},e.prototype.spaceX0OfTheMonth=function(){return" %s של החודש"},e.prototype.lastDay=function(){return"היום האחרון"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", רק ב %s של החודש"},e.prototype.commaOnlyOnX0=function(){return", רק ב %s"},e.prototype.commaAndOnX0=function(){return", וב %s"},e.prototype.commaEveryX0Months=function(){return", כל %s חודשים"},e.prototype.commaOnlyInX0=function(){return", רק ב %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ביום האחרון של החודש"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ביום החול האחרון של החודש"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ימים לפני היום האחרון בחודש"},e.prototype.firstWeekday=function(){return"יום החול הראשון"},e.prototype.weekdayNearestDayX0=function(){return"יום החול הראשון הקרוב אל %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ביום ה%s של החודש"},e.prototype.commaEveryX0Days=function(){return", כל %s ימים"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", בין היום ה%s וה%s של החודש"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ביום ה%s של החודש"},e.prototype.commaEveryX0Years=function(){return", כל %s שנים"},e.prototype.commaStartingX0=function(){return", החל מ %s"},e.prototype.daysOfTheWeek=function(){return["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},e.prototype.monthsOfTheYear=function(){return["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},e}();t.he=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hu=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Hiba t\xf6rt\xe9nt a kifejez\xe9sle\xedr\xe1s gener\xe1l\xe1sakor. Ellenőrizze a cron kifejez\xe9s szintaxis\xe1t."},e.prototype.everyMinute=function(){return"minden percben"},e.prototype.everyHour=function(){return"minden \xf3r\xe1ban"},e.prototype.atSpace=function(){return"Ekkor: "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"percenk\xe9nt %s \xe9s %s k\xf6z\xf6tt"},e.prototype.at=function(){return"Ekkor:"},e.prototype.spaceAnd=function(){return" \xe9s"},e.prototype.everySecond=function(){return"minden m\xe1sodpercben"},e.prototype.everyX0Seconds=function(){return"%s m\xe1sodpercenk\xe9nt"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"%s. m\xe1sodpercben %s perc ut\xe1n"},e.prototype.atX0SecondsPastTheMinute=function(){return"%s. m\xe1sodpercben"},e.prototype.everyX0Minutes=function(){return"minden %s. percben"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"%s. percben %s \xf3ra ut\xe1n"},e.prototype.atX0MinutesPastTheHour=function(){return"%s. percben"},e.prototype.everyX0Hours=function(){return"minden %s \xf3r\xe1ban"},e.prototype.betweenX0AndX1=function(){return"%s \xe9s %s k\xf6z\xf6tt"},e.prototype.atX0=function(){return"ekkor %s"},e.prototype.commaEveryDay=function(){return", minden nap"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a h\xe9t minden %s napj\xe1n"},e.prototype.commaX0ThroughX1=function(){return", %s - %s"},e.prototype.commaAndX0ThroughX1=function(){return", \xe9s %s - %s"},e.prototype.first=function(){return"első"},e.prototype.second=function(){return"m\xe1sodik"},e.prototype.third=function(){return"harmadik"},e.prototype.fourth=function(){return"negyedik"},e.prototype.fifth=function(){return"\xf6t\xf6dik"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s a h\xf3napban"},e.prototype.lastDay=function(){return"az utols\xf3 nap"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", a h\xf3nap utols\xf3 %s"},e.prototype.commaOnlyOnX0=function(){return", csak ekkor: %s"},e.prototype.commaAndOnX0=function(){return", \xe9s %s"},e.prototype.commaEveryX0Months=function(){return", minden %s h\xf3napban"},e.prototype.commaOnlyInX0=function(){return", csak ekkor: %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", a h\xf3nap utols\xf3 napj\xe1n"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", a h\xf3nap utols\xf3 h\xe9tk\xf6znapj\xe1n"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s nappal a h\xf3nap utols\xf3 napja előtt"},e.prototype.firstWeekday=function(){return"első h\xe9tk\xf6znap"},e.prototype.weekdayNearestDayX0=function(){return"h\xe9tk\xf6znap legk\xf6zelebbi nap %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", a h\xf3nap %s"},e.prototype.commaEveryX0Days=function(){return", %s naponk\xe9nt"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", a h\xf3nap %s \xe9s %s napja k\xf6z\xf6tt"},e.prototype.commaOnDayX0OfTheMonth=function(){return", a h\xf3nap %s napj\xe1n"},e.prototype.commaEveryHour=function(){return", minden \xf3r\xe1ban"},e.prototype.commaEveryX0Years=function(){return", %s \xe9vente"},e.prototype.commaStartingX0=function(){return", %s kezdettel"},e.prototype.daysOfTheWeek=function(){return["vas\xe1rnap","h\xe9tfő","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},e.prototype.monthsOfTheYear=function(){return["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},e}();t.hu=r},72:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terjadi kesalahan saat membuat deskripsi ekspresi. Periksa sintaks ekspresi cron."},e.prototype.everyMinute=function(){return"setiap menit"},e.prototype.everyHour=function(){return"setiap jam"},e.prototype.atSpace=function(){return"Pada "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap menit diantara %s dan %s"},e.prototype.at=function(){return"Pada"},e.prototype.spaceAnd=function(){return" dan"},e.prototype.everySecond=function(){return"setiap detik"},e.prototype.everyX0Seconds=function(){return"setiap %s detik"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"detik ke %s sampai %s melewati menit"},e.prototype.atX0SecondsPastTheMinute=function(){return"pada %s detik lewat satu menit"},e.prototype.everyX0Minutes=function(){return"setiap %s menit"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"menit ke %s sampai %s melewati jam"},e.prototype.atX0MinutesPastTheHour=function(){return"pada %s menit melewati jam"},e.prototype.everyX0Hours=function(){return"setiap %s jam"},e.prototype.betweenX0AndX1=function(){return"diantara %s dan %s"},e.prototype.atX0=function(){return"pada %s"},e.prototype.commaEveryDay=function(){return", setiap hari"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap hari %s dalam seminggu"},e.prototype.commaX0ThroughX1=function(){return", %s sampai %s"},e.prototype.commaAndX0ThroughX1=function(){return", dan %s sampai %s"},e.prototype.first=function(){return"pertama"},e.prototype.second=function(){return"kedua"},e.prototype.third=function(){return"ketiga"},e.prototype.fourth=function(){return"keempat"},e.prototype.fifth=function(){return"kelima"},e.prototype.commaOnThe=function(){return", di "},e.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},e.prototype.lastDay=function(){return"hari terakhir"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan ini"},e.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},e.prototype.commaAndOnX0=function(){return", dan pada %s"},e.prototype.commaEveryX0Months=function(){return", setiap bulan %s "},e.prototype.commaOnlyInX0=function(){return", hanya pada %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan ini"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada hari kerja terakhir setiap bulan"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir setiap bulan"},e.prototype.firstWeekday=function(){return"hari kerja pertama"},e.prototype.weekdayNearestDayX0=function(){return"hari kerja terdekat %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan ini"},e.prototype.commaEveryX0Days=function(){return", setiap %s hari"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam sebulan"},e.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam sebulan"},e.prototype.commaEveryHour=function(){return", setiap jam"},e.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},e.prototype.commaStartingX0=function(){return", mulai pada %s"},e.prototype.daysOfTheWeek=function(){return["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},e}();t.id=r},488:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.it=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"\xc8 verificato un errore durante la generazione la descrizione espressione. Controllare la sintassi delle espressioni cron."},e.prototype.at=function(){return"Alle"},e.prototype.atSpace=function(){return"Alle "},e.prototype.atX0=function(){return"alle %s"},e.prototype.atX0MinutesPastTheHour=function(){return"al %s minuto passata l'ora"},e.prototype.atX0SecondsPastTheMinute=function(){return"al %s secondo passato il minuto"},e.prototype.betweenX0AndX1=function(){return"tra le %s e le %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tra il giorno %s e %s del mese"},e.prototype.commaEveryDay=function(){return", ogni giorno"},e.prototype.commaEveryX0Days=function(){return", ogni %s giorni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ogni %s giorni della settimana"},e.prototype.commaEveryX0Months=function(){return", ogni %s mesi"},e.prototype.commaEveryX0Years=function(){return", ogni %s anni"},e.prototype.commaOnDayX0OfTheMonth=function(){return", il giorno %s del mese"},e.prototype.commaOnlyInX0=function(){return", solo in %s"},e.prototype.commaOnlyOnX0=function(){return", solo il %s"},e.prototype.commaAndOnX0=function(){return", e il %s"},e.prototype.commaOnThe=function(){return", il "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", l'ultimo giorno del mese"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", nell'ultima settimana del mese"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s giorni prima dell'ultimo giorno del mese"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", l'ultimo %s del mese"},e.prototype.commaOnTheX0OfTheMonth=function(){return", il %s del mese"},e.prototype.commaX0ThroughX1=function(){return", %s al %s"},e.prototype.commaAndX0ThroughX1=function(){return", e %s al %s"},e.prototype.everyHour=function(){return"ogni ora"},e.prototype.everyMinute=function(){return"ogni minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Ogni minuto tra le %s e le %s"},e.prototype.everySecond=function(){return"ogni secondo"},e.prototype.everyX0Hours=function(){return"ogni %s ore"},e.prototype.everyX0Minutes=function(){return"ogni %s minuti"},e.prototype.everyX0Seconds=function(){return"ogni %s secondi"},e.prototype.fifth=function(){return"quinto"},e.prototype.first=function(){return"primo"},e.prototype.firstWeekday=function(){return"primo giorno della settimana"},e.prototype.fourth=function(){return"quarto"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuti %s al %s dopo l'ora"},e.prototype.second=function(){return"secondo"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"secondi %s al %s oltre il minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s del mese"},e.prototype.lastDay=function(){return"l'ultimo giorno"},e.prototype.third=function(){return"terzo"},e.prototype.weekdayNearestDayX0=function(){return"giorno della settimana pi\xf9 vicino al %s"},e.prototype.commaStartingX0=function(){return", a partire %s"},e.prototype.daysOfTheWeek=function(){return["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},e.prototype.monthsOfTheYear=function(){return["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},e}();t.it=r},904:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ja=void 0;var r=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"毎分"},e.prototype.everyHour=function(){return"毎時"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"式の記述を生成する際にエラーが発生しました。Cron 式の構文を確認してください。"},e.prototype.atSpace=function(){return"次において実施"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"%s から %s まで毎分"},e.prototype.at=function(){return"次において実施"},e.prototype.spaceAnd=function(){return"と"},e.prototype.everySecond=function(){return"毎秒"},e.prototype.everyX0Seconds=function(){return"%s 秒ごと"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"毎分 %s 秒から %s 秒まで"},e.prototype.atX0SecondsPastTheMinute=function(){return"毎分 %s 秒過ぎ"},e.prototype.everyX0Minutes=function(){return"%s 分ごと"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"毎時 %s 分から %s 分まで"},e.prototype.atX0MinutesPastTheHour=function(){return"毎時 %s 分過ぎ"},e.prototype.everyX0Hours=function(){return"%s 時間ごと"},e.prototype.betweenX0AndX1=function(){return"%s と %s の間"},e.prototype.atX0=function(){return"次において実施 %s"},e.prototype.commaEveryDay=function(){return"、毎日"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return"、週のうち %s 日ごと"},e.prototype.commaX0ThroughX1=function(){return"、%s から %s まで"},e.prototype.commaAndX0ThroughX1=function(){return"、%s から %s まで"},e.prototype.first=function(){return"1 番目"},e.prototype.second=function(){return"2 番目"},e.prototype.third=function(){return"3 番目"},e.prototype.fourth=function(){return"4 番目"},e.prototype.fifth=function(){return"5 番目"},e.prototype.commaOnThe=function(){return"次に"},e.prototype.spaceX0OfTheMonth=function(){return"月のうち %s"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return"月の最後の %s に"},e.prototype.commaOnlyOnX0=function(){return"%s にのみ"},e.prototype.commaEveryX0Months=function(){return"、%s か月ごと"},e.prototype.commaOnlyInX0=function(){return"%s でのみ"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return"次の最終日に"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return"月の最後の平日に"},e.prototype.firstWeekday=function(){return"最初の平日"},e.prototype.weekdayNearestDayX0=function(){return"%s 日の直近の平日"},e.prototype.commaOnTheX0OfTheMonth=function(){return"月の %s に"},e.prototype.commaEveryX0Days=function(){return"、%s 日ごと"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return"、月の %s 日から %s 日の間"},e.prototype.commaOnDayX0OfTheMonth=function(){return"、月の %s 日目"},e.prototype.spaceAndSpace=function(){return"と"},e.prototype.commaEveryMinute=function(){return"、毎分"},e.prototype.commaEveryHour=function(){return"、毎時"},e.prototype.commaEveryX0Years=function(){return"、%s 年ごと"},e.prototype.commaStartingX0=function(){return"、%s に開始"},e.prototype.aMPeriod=function(){return"AM"},e.prototype.pMPeriod=function(){return"PM"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return"月の最終日の %s 日前"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.lastDay=function(){return"最終日"},e.prototype.commaAndOnX0=function(){return"、〜と %s"},e.prototype.daysOfTheWeek=function(){return["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},e.prototype.monthsOfTheYear=function(){return["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},e}();t.ja=r},839:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ko=void 0;var r=function(){function e(){}return e.prototype.setPeriodBeforeTime=function(){return!0},e.prototype.pm=function(){return"오후"},e.prototype.am=function(){return"오전"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"표현식 설명을 생성하는 중 오류가 발생했습니다. cron 표현식 구문을 확인하십시오."},e.prototype.everyMinute=function(){return"1분마다"},e.prototype.everyHour=function(){return"1시간마다"},e.prototype.atSpace=function(){return"시간 "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"%s 및 %s 사이에 매 분"},e.prototype.at=function(){return"시간"},e.prototype.spaceAnd=function(){return" 및"},e.prototype.everySecond=function(){return"1초마다"},e.prototype.everyX0Seconds=function(){return"%s초마다"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"정분 후 %s초에서 %s초까지"},e.prototype.atX0SecondsPastTheMinute=function(){return"정분 후 %s초에서"},e.prototype.everyX0Minutes=function(){return"%s분마다"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"정시 후 %s분에서 %s분까지"},e.prototype.atX0MinutesPastTheHour=function(){return"정시 후 %s분에서"},e.prototype.everyX0Hours=function(){return"%s시간마다"},e.prototype.betweenX0AndX1=function(){return"%s에서 %s 사이"},e.prototype.atX0=function(){return"%s에서"},e.prototype.commaEveryDay=function(){return", 매일"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 주 중 %s일마다"},e.prototype.commaX0ThroughX1=function(){return", %s에서 %s까지"},e.prototype.commaAndX0ThroughX1=function(){return", 및 %s에서 %s까지"},e.prototype.first=function(){return"첫 번째"},e.prototype.second=function(){return"두 번째"},e.prototype.third=function(){return"세 번째"},e.prototype.fourth=function(){return"네 번째"},e.prototype.fifth=function(){return"다섯 번째"},e.prototype.commaOnThe=function(){return", 해당 "},e.prototype.spaceX0OfTheMonth=function(){return" 해당 월의 %s"},e.prototype.lastDay=function(){return"마지막 날"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 해당 월의 마지막 %s"},e.prototype.commaOnlyOnX0=function(){return", %s에만"},e.prototype.commaAndOnX0=function(){return", 및 %s에"},e.prototype.commaEveryX0Months=function(){return", %s개월마다"},e.prototype.commaOnlyInX0=function(){return", %s에만"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날에"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 해당 월의 마지막 평일에"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 해당 월의 마지막 날 %s일 전"},e.prototype.firstWeekday=function(){return"첫 번째 평일"},e.prototype.weekdayNearestDayX0=function(){return"%s일과 가장 가까운 평일"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 해당 월의 %s에"},e.prototype.commaEveryX0Days=function(){return", %s일마다"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 해당 월의 %s일에서 %s일까지"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 해당 월의 %s일에"},e.prototype.commaEveryMinute=function(){return", 1분마다"},e.prototype.commaEveryHour=function(){return", 1시간마다"},e.prototype.commaEveryX0Years=function(){return", %s년마다"},e.prototype.commaStartingX0=function(){return", %s부터"},e.prototype.daysOfTheWeek=function(){return["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},e.prototype.monthsOfTheYear=function(){return["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},e}();t.ko=r},919:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.my=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Terdapat ralat semasa menjana penerangan ungkapan. Sila periksa sintaks ungkapan cron."},e.prototype.everyMinute=function(){return"setiap minit"},e.prototype.everyHour=function(){return"setiap jam"},e.prototype.atSpace=function(){return"Pada "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Setiap minit antara %s dan %s"},e.prototype.at=function(){return"Pada"},e.prototype.spaceAnd=function(){return" dan"},e.prototype.everySecond=function(){return"setiap saat"},e.prototype.everyX0Seconds=function(){return"setiap %s saat"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"saat ke %s hingga %s selepas minit"},e.prototype.atX0SecondsPastTheMinute=function(){return"pada %s saat selepas minit"},e.prototype.everyX0Minutes=function(){return"setiap %s minit"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minit ke %s hingga %s selepas jam"},e.prototype.atX0MinutesPastTheHour=function(){return"pada %s minit selepas jam"},e.prototype.everyX0Hours=function(){return"setiap %s jam"},e.prototype.betweenX0AndX1=function(){return"antara %s dan %s"},e.prototype.atX0=function(){return"pada %s"},e.prototype.commaEveryDay=function(){return", setiap hari"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", setiap %s hari dalam minggu"},e.prototype.commaX0ThroughX1=function(){return", %s hingga %s"},e.prototype.commaAndX0ThroughX1=function(){return", dan %s hingga %s"},e.prototype.first=function(){return"pertama"},e.prototype.second=function(){return"kedua"},e.prototype.third=function(){return"ketiga"},e.prototype.fourth=function(){return"keempat"},e.prototype.fifth=function(){return"kelima"},e.prototype.commaOnThe=function(){return", pada "},e.prototype.spaceX0OfTheMonth=function(){return" %s pada bulan"},e.prototype.lastDay=function(){return"hari terakhir"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", pada %s terakhir bulan"},e.prototype.commaOnlyOnX0=function(){return", hanya pada %s"},e.prototype.commaAndOnX0=function(){return", dan pada %s"},e.prototype.commaEveryX0Months=function(){return", setiap bulan %s"},e.prototype.commaOnlyInX0=function(){return", hanya pada %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", pada hari terakhir bulan"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", pada minggu terakhir bulan"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s hari sebelum hari terakhir bulan"},e.prototype.firstWeekday=function(){return"hari pertama minggu bekerja"},e.prototype.weekdayNearestDayX0=function(){return"hari bekerja yang terdekat dengan %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", pada %s bulan"},e.prototype.commaEveryX0Days=function(){return", setiap %s hari"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", antara hari %s dan %s dalam bulan"},e.prototype.commaOnDayX0OfTheMonth=function(){return", pada hari %s dalam bulan"},e.prototype.commaEveryHour=function(){return", setiap jam"},e.prototype.commaEveryX0Years=function(){return", setiap %s tahun"},e.prototype.commaStartingX0=function(){return", bermula %s"},e.prototype.daysOfTheWeek=function(){return["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},e}();t.my=r},957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nb=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"En feil inntraff ved generering av uttrykksbeskrivelse. Sjekk cron syntaks."},e.prototype.at=function(){return"Kl."},e.prototype.atSpace=function(){return"Kl."},e.prototype.atX0=function(){return"p\xe5 %s"},e.prototype.atX0MinutesPastTheHour=function(){return"p\xe5 %s minutter etter timen"},e.prototype.atX0SecondsPastTheMinute=function(){return"p\xe5 %s sekunder etter minuttet"},e.prototype.betweenX0AndX1=function(){return"mellom %s og %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellom dag %s og %s av m\xe5neden"},e.prototype.commaEveryDay=function(){return", hver dag"},e.prototype.commaEveryX0Days=function(){return", hver %s dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", hver %s ukedag"},e.prototype.commaEveryX0Months=function(){return", hver %s m\xe5ned"},e.prototype.commaEveryX0Years=function(){return", hvert %s \xe5r"},e.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s av m\xe5neden"},e.prototype.commaOnlyInX0=function(){return", bare i %s"},e.prototype.commaOnlyOnX0=function(){return", p\xe5 %s"},e.prototype.commaAndOnX0=function(){return", og p\xe5 %s"},e.prototype.commaOnThe=function(){return", p\xe5 "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 den siste dagen i m\xe5neden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", den siste ukedagen i m\xe5neden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dager f\xf8r den siste dagen i m\xe5neden"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 den siste %s av m\xe5neden"},e.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s av m\xe5neden"},e.prototype.commaX0ThroughX1=function(){return", %s til og med %s"},e.prototype.commaAndX0ThroughX1=function(){return", og %s til og med %s"},e.prototype.everyHour=function(){return"hver time"},e.prototype.everyMinute=function(){return"hvert minutt"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Hvert minutt mellom %s og %s"},e.prototype.everySecond=function(){return"hvert sekund"},e.prototype.everyX0Hours=function(){return"hver %s time"},e.prototype.everyX0Minutes=function(){return"hvert %s minutt"},e.prototype.everyX0Seconds=function(){return"hvert %s sekund"},e.prototype.fifth=function(){return"femte"},e.prototype.first=function(){return"f\xf8rste"},e.prototype.firstWeekday=function(){return"f\xf8rste ukedag"},e.prototype.fourth=function(){return"fjerde"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuttene fra %s til og med %s etter timen"},e.prototype.second=function(){return"andre"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundene fra %s til og med %s etter minuttet"},e.prototype.spaceAnd=function(){return" og"},e.prototype.spaceX0OfTheMonth=function(){return" %s i m\xe5neden"},e.prototype.lastDay=function(){return"den siste dagen"},e.prototype.third=function(){return"tredje"},e.prototype.weekdayNearestDayX0=function(){return"ukedag n\xe6rmest dag %s"},e.prototype.commaStartingX0=function(){return", starter %s"},e.prototype.daysOfTheWeek=function(){return["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},e}();t.nb=r},647:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nl=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"elke minuut"},e.prototype.everyHour=function(){return"elk uur"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Er is een fout opgetreden bij het vertalen van de gegevens. Controleer de gegevens."},e.prototype.atSpace=function(){return"Om "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Elke minuut tussen %s en %s"},e.prototype.at=function(){return"Om"},e.prototype.spaceAnd=function(){return" en"},e.prototype.everySecond=function(){return"elke seconde"},e.prototype.everyX0Seconds=function(){return"elke %s seconden"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconden %s t/m %s na de minuut"},e.prototype.atX0SecondsPastTheMinute=function(){return"op %s seconden na de minuut"},e.prototype.everyX0Minutes=function(){return"elke %s minuten"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuut %s t/m %s na het uur"},e.prototype.atX0MinutesPastTheHour=function(){return"op %s minuten na het uur"},e.prototype.everyX0Hours=function(){return"elke %s uur"},e.prototype.betweenX0AndX1=function(){return"tussen %s en %s"},e.prototype.atX0=function(){return"om %s"},e.prototype.commaEveryDay=function(){return", elke dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", elke %s dagen van de week"},e.prototype.commaX0ThroughX1=function(){return", %s t/m %s"},e.prototype.commaAndX0ThroughX1=function(){return", en %s t/m %s"},e.prototype.first=function(){return"eerste"},e.prototype.second=function(){return"tweede"},e.prototype.third=function(){return"derde"},e.prototype.fourth=function(){return"vierde"},e.prototype.fifth=function(){return"vijfde"},e.prototype.commaOnThe=function(){return", op de "},e.prototype.spaceX0OfTheMonth=function(){return" %s van de maand"},e.prototype.lastDay=function(){return"de laatste dag"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", op de laatste %s van de maand"},e.prototype.commaOnlyOnX0=function(){return", alleen op %s"},e.prototype.commaAndOnX0=function(){return", en op %s"},e.prototype.commaEveryX0Months=function(){return", elke %s maanden"},e.prototype.commaOnlyInX0=function(){return", alleen in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", op de laatste dag van de maand"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", op de laatste werkdag van de maand"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagen v\xf3\xf3r de laatste dag van de maand"},e.prototype.firstWeekday=function(){return"eerste werkdag"},e.prototype.weekdayNearestDayX0=function(){return"werkdag dichtst bij dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", op de %s van de maand"},e.prototype.commaEveryX0Days=function(){return", elke %s dagen"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", tussen dag %s en %s van de maand"},e.prototype.commaOnDayX0OfTheMonth=function(){return", op dag %s van de maand"},e.prototype.commaEveryX0Years=function(){return", elke %s jaren"},e.prototype.commaStartingX0=function(){return", beginnend %s"},e.prototype.daysOfTheWeek=function(){return["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},e.prototype.monthsOfTheYear=function(){return["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},e}();t.nl=r},905:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pl=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Wystąpił błąd podczas generowania opisu wyrażenia cron. Sprawdź składnię wyrażenia cron."},e.prototype.at=function(){return"O"},e.prototype.atSpace=function(){return"O "},e.prototype.atX0=function(){return"o %s"},e.prototype.atX0MinutesPastTheHour=function(){return"w %s minucie"},e.prototype.atX0SecondsPastTheMinute=function(){return"w %s sekundzie"},e.prototype.betweenX0AndX1=function(){return"od %s do %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s-ego do %s-ego dnia miesiąca"},e.prototype.commaEveryDay=function(){return", co dzień"},e.prototype.commaEveryX0Days=function(){return", co %s dni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", co %s dni tygodnia"},e.prototype.commaEveryX0Months=function(){return", co %s miesięcy"},e.prototype.commaEveryX0Years=function(){return", co %s lat"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s-ego dnia miesiąca"},e.prototype.commaOnlyInX0=function(){return", tylko %s"},e.prototype.commaOnlyOnX0=function(){return", tylko %s"},e.prototype.commaAndOnX0=function(){return", i %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ostatni dzień miesiąca"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ostatni dzień roboczy miesiąca"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni przed ostatnim dniem miesiąca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ostatni %s miesiąca"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s miesiąca"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", i od %s do %s"},e.prototype.everyHour=function(){return"co godzinę"},e.prototype.everyMinute=function(){return"co minutę"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Co minutę od %s do %s"},e.prototype.everySecond=function(){return"co sekundę"},e.prototype.everyX0Hours=function(){return"co %s godzin"},e.prototype.everyX0Minutes=function(){return"co %s minut"},e.prototype.everyX0Seconds=function(){return"co %s sekund"},e.prototype.fifth=function(){return"piąty"},e.prototype.first=function(){return"pierwszy"},e.prototype.firstWeekday=function(){return"pierwszy dzień roboczy"},e.prototype.fourth=function(){return"czwarty"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuty od %s do %s"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.spaceAnd=function(){return" i"},e.prototype.spaceX0OfTheMonth=function(){return" %s miesiąca"},e.prototype.lastDay=function(){return"ostatni dzień"},e.prototype.third=function(){return"trzeci"},e.prototype.weekdayNearestDayX0=function(){return"dzień roboczy najbliższy %s-ego dnia"},e.prototype.commaStartingX0=function(){return", startowy %s"},e.prototype.daysOfTheWeek=function(){return["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},e.prototype.monthsOfTheYear=function(){return["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},e}();t.pl=r},556:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pt_BR=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descri\xe7\xe3o da express\xe3o Cron."},e.prototype.at=function(){return"\xe0s"},e.prototype.atSpace=function(){return"\xe0s "},e.prototype.atX0=function(){return"\xc0s %s"},e.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},e.prototype.betweenX0AndX1=function(){return"entre %s e %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do m\xeas"},e.prototype.commaEveryDay=function(){return", a cada dia"},e.prototype.commaEveryX0Days=function(){return", a cada %s dias"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},e.prototype.commaEveryX0Months=function(){return", a cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do m\xeas"},e.prototype.commaOnlyInX0=function(e){return e&&e.length>1&&"-"===e[1]?"somente %s":", somente em %s"},e.prototype.commaOnlyOnX0=function(e){return e&&e.length>1&&"-"===e[1]?", somente %s":", somente de %s"},e.prototype.commaAndOnX0=function(){return", e de %s"},e.prototype.commaOnThe=function(e,t){return"6"===t||"0"===t?", no":", na "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", no \xfaltimo dia do m\xeas"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no \xfaltimo dia da semana do m\xeas"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do \xfaltimo dia do m\xeas"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", na \xfaltima %s do m\xeas"},e.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do m\xeas"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},e.prototype.everyHour=function(){return"a cada hora"},e.prototype.everyMinute=function(){return"a cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},e.prototype.everySecond=function(){return"a cada segundo"},e.prototype.everyX0Hours=function(){return"a cada %s horas"},e.prototype.everyX0Minutes=function(){return"a cada %s minutos"},e.prototype.everyX0Seconds=function(){return"a cada %s segundos"},e.prototype.fifth=function(e){return"6"===e||"0"===e?"quinto":"quinta"},e.prototype.first=function(e){return"6"===e||"0"===e?"primeiro":"primeira"},e.prototype.firstWeekday=function(){return"primeiro dia da semana"},e.prototype.fourth=function(e){return"6"===e||"0"===e?"quarto":"quarta"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s at\xe9 %s de cada hora"},e.prototype.second=function(e){return"6"===e||"0"===e?"segundo":"segunda"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s at\xe9 %s de cada minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s do m\xeas"},e.prototype.lastDay=function(){return"o \xfaltimo dia"},e.prototype.third=function(e){return"6"===e||"0"===e?"terceiro":"terceira"},e.prototype.weekdayNearestDayX0=function(){return"dia da semana mais pr\xf3ximo do dia %s"},e.prototype.commaEveryX0Years=function(){return", a cada %s anos"},e.prototype.commaStartingX0=function(){return", iniciando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},e.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},e}();t.pt_BR=r},163:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pt_PT=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ocorreu um erro ao gerar a descri\xe7\xe3o da express\xe3o Cron."},e.prototype.at=function(){return"\xe0s"},e.prototype.atSpace=function(){return"\xe0s "},e.prototype.atX0=function(){return"\xc0s %s"},e.prototype.atX0MinutesPastTheHour=function(){return"aos %s minutos da hora"},e.prototype.atX0SecondsPastTheMinute=function(){return"aos %s segundos do minuto"},e.prototype.betweenX0AndX1=function(){return"entre %s e %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", entre os dias %s e %s do m\xeas"},e.prototype.commaEveryDay=function(){return", a cada dia"},e.prototype.commaEveryX0Days=function(){return", a cada %s dias"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", a cada %s dias de semana"},e.prototype.commaEveryX0Months=function(){return", a cada %s meses"},e.prototype.commaOnDayX0OfTheMonth=function(){return", no dia %s do m\xeas"},e.prototype.commaOnlyInX0=function(){return", somente em %s"},e.prototype.commaOnlyOnX0=function(){return", somente de %s"},e.prototype.commaAndOnX0=function(){return", e de %s"},e.prototype.commaOnThe=function(e,t){return"6"===t||"0"===t?", no":", na "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", no \xfaltimo dia do m\xeas"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", no \xfaltimo dia da semana do m\xeas"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dias antes do \xfaltimo dia do m\xeas"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", na \xfaltima %s do m\xeas"},e.prototype.commaOnTheX0OfTheMonth=function(){return", no %s do m\xeas"},e.prototype.commaX0ThroughX1=function(){return", de %s a %s"},e.prototype.commaAndX0ThroughX1=function(){return", e de %s a %s"},e.prototype.everyHour=function(){return"a cada hora"},e.prototype.everyMinute=function(){return"a cada minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"a cada minuto entre %s e %s"},e.prototype.everySecond=function(){return"a cada segundo"},e.prototype.everyX0Hours=function(){return"a cada %s horas"},e.prototype.everyX0Minutes=function(){return"a cada %s minutos"},e.prototype.everyX0Seconds=function(){return"a cada %s segundos"},e.prototype.fifth=function(e){return"6"===e||"0"===e?"quinto":"quinta"},e.prototype.first=function(e){return"6"===e||"0"===e?"primeiro":"primeira"},e.prototype.firstWeekday=function(){return"primeiro dia da semana"},e.prototype.fourth=function(e){return"6"===e||"0"===e?"quarto":"quarta"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"do minuto %s at\xe9 %s de cada hora"},e.prototype.second=function(e){return"6"===e||"0"===e?"segundo":"segunda"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"No segundo %s at\xe9 %s de cada minuto"},e.prototype.spaceAnd=function(){return" e"},e.prototype.spaceX0OfTheMonth=function(){return" %s do m\xeas"},e.prototype.lastDay=function(){return"o \xfaltimo dia"},e.prototype.third=function(e){return"6"===e||"0"===e?"terceiro":"terceira"},e.prototype.weekdayNearestDayX0=function(){return"dia da semana mais pr\xf3ximo do dia %s"},e.prototype.commaEveryX0Years=function(){return", a cada %s anos"},e.prototype.commaStartingX0=function(){return", iniciando %s"},e.prototype.daysOfTheWeek=function(){return["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},e.prototype.monthsOfTheYear=function(){return["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},e}();t.pt_PT=r},614:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ro=void 0;var r=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Eroare la generarea descrierii. Verificați sintaxa."},e.prototype.at=function(){return"La"},e.prototype.atSpace=function(){return"La "},e.prototype.atX0=function(){return"la %s"},e.prototype.atX0MinutesPastTheHour=function(){return"la și %s minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"la și %s secunde"},e.prototype.betweenX0AndX1=function(){return"\xeentre %s și %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", \xeentre zilele %s și %s ale lunii"},e.prototype.commaEveryDay=function(){return", \xeen fiecare zi"},e.prototype.commaEveryX0Days=function(){return", la fiecare %s zile"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", la fiecare a %s-a zi a săptăm\xe2nii"},e.prototype.commaEveryX0Months=function(){return", la fiecare %s luni"},e.prototype.commaEveryX0Years=function(){return", o dată la %s ani"},e.prototype.commaOnDayX0OfTheMonth=function(){return", \xeen ziua %s a lunii"},e.prototype.commaOnlyInX0=function(){return", doar \xeen %s"},e.prototype.commaOnlyOnX0=function(){return", doar %s"},e.prototype.commaAndOnX0=function(){return", și %s"},e.prototype.commaOnThe=function(){return", \xeen "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", \xeen ultima zi a lunii"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", \xeen ultima zi lucrătoare a lunii"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s zile \xeenainte de ultima zi a lunii"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", \xeen ultima %s a lunii"},e.prototype.commaOnTheX0OfTheMonth=function(){return", \xeen %s a lunii"},e.prototype.commaX0ThroughX1=function(){return", de %s p\xe2nă %s"},e.prototype.commaAndX0ThroughX1=function(){return", și de %s p\xe2nă %s"},e.prototype.everyHour=function(){return"\xeen fiecare oră"},e.prototype.everyMinute=function(){return"\xeen fiecare minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"\xcen fiecare minut \xeentre %s și %s"},e.prototype.everySecond=function(){return"\xeen fiecare secundă"},e.prototype.everyX0Hours=function(){return"la fiecare %s ore"},e.prototype.everyX0Minutes=function(){return"la fiecare %s minute"},e.prototype.everyX0Seconds=function(){return"la fiecare %s secunde"},e.prototype.fifth=function(){return"a cincea"},e.prototype.first=function(){return"prima"},e.prototype.firstWeekday=function(){return"prima zi a săptăm\xe2nii"},e.prototype.fourth=function(){return"a patra"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"\xeentre minutele %s și %s"},e.prototype.second=function(){return"a doua"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"\xeentre secunda %s și secunda %s"},e.prototype.spaceAnd=function(){return" și"},e.prototype.spaceX0OfTheMonth=function(){return" %s a lunii"},e.prototype.lastDay=function(){return"ultima zi"},e.prototype.third=function(){return"a treia"},e.prototype.weekdayNearestDayX0=function(){return"cea mai apropiată zi a săptăm\xe2nii de ziua %s"},e.prototype.commaMonthX0ThroughMonthX1=function(){return", din %s p\xe2nă \xeen %s"},e.prototype.commaYearX0ThroughYearX1=function(){return", din %s p\xe2nă \xeen %s"},e.prototype.atX0MinutesPastTheHourGt20=function(){return"la și %s de minute"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return"la și %s de secunde"},e.prototype.commaStartingX0=function(){return", pornire %s"},e.prototype.daysOfTheWeek=function(){return["duminică","luni","marți","miercuri","joi","vineri","s\xe2mbătă"]},e.prototype.monthsOfTheYear=function(){return["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},e}();t.ro=r},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ru=void 0;var r=function(e,t){var r=Number(e);return void 0!==r?t[r%100>4&&r%100<20?2:[2,0,1,1,1,2][r%10<5?Math.abs(r)%10:5]]:t[2]},n=function(e,t){var r=Number(e);return void 0!==r?t[0===r?0:1===r||2===r||4===r?1:2]:t[1]},o=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"каждую минуту"},e.prototype.everyHour=function(){return"каждый час"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Произошла ошибка во время генерации описания выражения. Проверьте синтаксис крон-выражения."},e.prototype.atSpace=function(){return"В "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Каждую минуту с %s по %s"},e.prototype.at=function(){return"В"},e.prototype.spaceAnd=function(){return" и"},e.prototype.everySecond=function(){return"каждую секунду"},e.prototype.everyX0Seconds=function(e){return r(e,["каждую %s секунду","каждые %s секунды","каждые %s секунд"])},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"секунды с %s по %s"},e.prototype.atX0SecondsPastTheMinute=function(e){return r(e,["в %s секунду","в %s секунды","в %s секунд"])},e.prototype.everyX0Minutes=function(e){return r(e,["каждую %s минуту","каждые %s минуты","каждые %s минут"])},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"минуты с %s по %s"},e.prototype.atX0MinutesPastTheHour=function(e){return r(e,["в %s минуту","в %s минуты","в %s минут"])},e.prototype.everyX0Hours=function(e){return r(e,["каждый %s час","каждые %s часа","каждые %s часов"])},e.prototype.betweenX0AndX1=function(){return"с %s по %s"},e.prototype.atX0=function(){return"в %s"},e.prototype.commaEveryDay=function(){return", каждый день"},e.prototype.commaEveryX0DaysOfTheWeek=function(e){return r(e,["",", каждые %s дня недели",", каждые %s дней недели"])},e.prototype.commaX0ThroughX1=function(e){return e&&("2"==e[0]||"3"==e[0])?", со %s по %s":", с %s по %s"},e.prototype.commaAndX0ThroughX1=function(e){return e&&("2"==e[0]||"3"==e[0])?" и со %s по %s":" и с %s по %s"},e.prototype.first=function(e){return n(e,["первое","первый","первую"])},e.prototype.second=function(e){return n(e,["второе","второй","вторую"])},e.prototype.third=function(e){return n(e,["третье","третий","третью"])},e.prototype.fourth=function(e){return n(e,["четвертое","четвертый","четвертую"])},e.prototype.fifth=function(e){return n(e,["пятое","пятый","пятую"])},e.prototype.commaOnThe=function(e){return"2"===e?", во ":", в "},e.prototype.spaceX0OfTheMonth=function(){return" %s месяца"},e.prototype.lastDay=function(){return"последний день"},e.prototype.commaOnTheLastX0OfTheMonth=function(e){return n(e,[", в последнее %s месяца",", в последний %s месяца",", в последнюю %s месяца"])},e.prototype.commaOnlyOnX0=function(e){return e&&"2"===e[0]?", только во %s":", только в %s"},e.prototype.commaAndOnX0=function(){return", и %s"},e.prototype.commaEveryX0Months=function(e){return r(e,[""," каждые %s месяца"," каждые %s месяцев"])},e.prototype.commaOnlyInMonthX0=function(){return", только %s"},e.prototype.commaOnlyInX0=function(){return", только в %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", в последний день месяца"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в последний будний день месяца"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(e){return r(e,[", за %s день до конца месяца",", за %s дня до конца месяца",", за %s дней до конца месяца"])},e.prototype.firstWeekday=function(){return"первый будний день"},e.prototype.weekdayNearestDayX0=function(){return"ближайший будний день к %s числу"},e.prototype.commaOnTheX0OfTheMonth=function(){return", в %s месяца"},e.prototype.commaEveryX0Days=function(e){return r(e,[", каждый %s день",", каждые %s дня",", каждые %s дней"])},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(e){return e&&"2"==e.substring(0,e.indexOf("-"))?", со %s по %s число месяца":", с %s по %s число месяца"},e.prototype.commaOnDayX0OfTheMonth=function(e){return e&&"2"==e[0]?", во %s число месяца":", в %s число месяца"},e.prototype.commaEveryX0Years=function(e){return r(e,[", каждый %s год",", каждые %s года",", каждые %s лет"])},e.prototype.commaStartingX0=function(){return", начало %s"},e.prototype.daysOfTheWeek=function(){return["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},e.prototype.daysOfTheWeekInCase=function(e){return void 0===e&&(e=2),1==e?["воскресенья","понедельника","вторника","среды","четверга","пятницы","субботы"]:["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"]},e.prototype.monthsOfTheYear=function(){return["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},e.prototype.monthsOfTheYearInCase=function(e){return 1==e?["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]:this.monthsOfTheYear()},e}();t.ru=o},923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sk=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri vytv\xe1ran\xed popisu došlo k chybe. Skontrolujte pros\xedm spr\xe1vnosť syntaxe cronu."},e.prototype.everyMinute=function(){return"každ\xfa min\xfatu"},e.prototype.everyHour=function(){return"každ\xfa hodinu"},e.prototype.atSpace=function(){return"V "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Každ\xfa min\xfatu medzi %s a %s"},e.prototype.at=function(){return"V"},e.prototype.spaceAnd=function(){return" a"},e.prototype.everySecond=function(){return"každ\xfa sekundu"},e.prototype.everyX0Seconds=function(){return"každ\xfdch %s sek\xfand"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekundy od %s do %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"v %s sek\xfand"},e.prototype.everyX0Minutes=function(){return"každ\xfdch %s min\xfat"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"min\xfaty od %s do %s"},e.prototype.atX0MinutesPastTheHour=function(){return"v %s min\xfat"},e.prototype.everyX0Hours=function(){return"každ\xfdch %s hod\xedn"},e.prototype.betweenX0AndX1=function(){return"medzi %s a %s"},e.prototype.atX0=function(){return"v %s"},e.prototype.commaEveryDay=function(){return", každ\xfd deň"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", každ\xfdch %s dn\xed v t\xfdždni"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", a od %s do %s"},e.prototype.first=function(){return"prv\xfd"},e.prototype.second=function(){return"druh\xfd"},e.prototype.third=function(){return"tret\xed"},e.prototype.fourth=function(){return"štvrt\xfd"},e.prototype.fifth=function(){return"piaty"},e.prototype.commaOnThe=function(){return", "},e.prototype.spaceX0OfTheMonth=function(){return" %s v mesiaci"},e.prototype.lastDay=function(){return"posledn\xfd deň"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", posledn\xfd %s v mesiaci"},e.prototype.commaOnlyOnX0=function(){return", iba v %s"},e.prototype.commaAndOnX0=function(){return", a v %s"},e.prototype.commaEveryX0Months=function(){return", každ\xfdch %s mesiacov"},e.prototype.commaOnlyInX0=function(){return", iba v %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", posledn\xfd deň v mesiaci"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", posledn\xfd pracovn\xfd deň v mesiaci"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dn\xed pred posledn\xfdm dňom v mesiaci"},e.prototype.firstWeekday=function(){return"prv\xfd pracovn\xfd deň"},e.prototype.weekdayNearestDayX0=function(){return"pracovn\xfd deň najbližšie %s. dňu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", v %s v mesiaci"},e.prototype.commaEveryX0Days=function(){return", každ\xfdch %s dn\xed"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", medzi dňami %s a %s v mesiaci"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. deň v mesiaci"},e.prototype.commaEveryX0Years=function(){return", každ\xfdch %s rokov"},e.prototype.commaStartingX0=function(){return", zač\xednaj\xfacich %s"},e.prototype.daysOfTheWeek=function(){return["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},e.prototype.monthsOfTheYear=function(){return["Janu\xe1r","Febru\xe1r","Marec","Apr\xedl","M\xe1j","J\xfan","J\xfal","August","September","Okt\xf3ber","November","December"]},e}();t.sk=r},474:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sl=void 0;var r=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Pri generiranju opisa izraza je prišlo do napake. Preverite sintakso izraza cron."},e.prototype.at=function(){return"Ob"},e.prototype.atSpace=function(){return"Ob "},e.prototype.atX0=function(){return"ob %s"},e.prototype.atX0MinutesPastTheHour=function(){return"ob %s."},e.prototype.atX0SecondsPastTheMinute=function(){return"ob %s."},e.prototype.betweenX0AndX1=function(){return"od %s do %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", od %s. do %s. dne v mesecu"},e.prototype.commaEveryDay=function(){return", vsak dan"},e.prototype.commaEveryX0Days=function(){return", vsakih %s dni"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", vsakih %s dni v tednu"},e.prototype.commaEveryX0Months=function(){return", vsakih %s mesecev"},e.prototype.commaEveryX0Years=function(){return", vsakih %s let"},e.prototype.commaOnDayX0OfTheMonth=function(){return", %s. dan v mesecu"},e.prototype.commaOnlyInX0=function(){return", samo v %s"},e.prototype.commaOnlyOnX0=function(){return", samo v %s"},e.prototype.commaAndOnX0=function(){return"in naprej %s"},e.prototype.commaOnThe=function(){return", "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", zadnji %s v mesecu"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", zadnji delovni dan v mesecu"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dni pred koncem meseca"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", zadnji %s v mesecu"},e.prototype.commaOnTheX0OfTheMonth=function(){return", %s v mesecu"},e.prototype.commaX0ThroughX1=function(){return", od %s do %s"},e.prototype.commaAndX0ThroughX1=function(){return", in od %s do %s"},e.prototype.everyHour=function(){return"vsako uro"},e.prototype.everyMinute=function(){return"vsako minuto"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Vsako minuto od %s do %s"},e.prototype.everySecond=function(){return"vsako sekundo"},e.prototype.everyX0Hours=function(){return"vsakih %s ur"},e.prototype.everyX0Minutes=function(){return"vsakih %s minut"},e.prototype.everyX0Seconds=function(){return"vsakih %s sekund"},e.prototype.fifth=function(){return"peti"},e.prototype.first=function(){return"prvi"},e.prototype.firstWeekday=function(){return"prvi delovni dan"},e.prototype.fourth=function(){return"četrti"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minute od %s do %s"},e.prototype.second=function(){return"drugi"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde od %s do %s"},e.prototype.spaceAnd=function(){return" in"},e.prototype.spaceX0OfTheMonth=function(){return" %s v mesecu"},e.prototype.lastDay=function(){return"zadnjič"},e.prototype.third=function(){return"tretji"},e.prototype.weekdayNearestDayX0=function(){return"delovni dan, najbližji %s. dnevu"},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.commaStartingX0=function(){return", začenši %s"},e.prototype.daysOfTheWeek=function(){return["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},e.prototype.monthsOfTheYear=function(){return["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},e}();t.sl=r},544:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sv=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Ett fel intr\xe4ffade vid generering av uttryckets beskrivning. Kontrollera cron-uttryckets syntax."},e.prototype.everyMinute=function(){return"varje minut"},e.prototype.everyHour=function(){return"varje timme"},e.prototype.atSpace=function(){return"Kl "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Varje minut mellan %s och %s"},e.prototype.at=function(){return"Kl"},e.prototype.spaceAnd=function(){return" och"},e.prototype.everySecond=function(){return"varje sekund"},e.prototype.everyX0Seconds=function(){return"varje %s sekund"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunderna fr\xe5n %s till och med %s efter minuten"},e.prototype.atX0SecondsPastTheMinute=function(){return"p\xe5 %s sekunder efter minuten"},e.prototype.everyX0Minutes=function(){return"var %s minut"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minuterna fr\xe5n %s till och med %s efter timmen"},e.prototype.atX0MinutesPastTheHour=function(){return"p\xe5 %s minuten efter timmen"},e.prototype.everyX0Hours=function(){return"var %s timme"},e.prototype.betweenX0AndX1=function(){return"mellan %s och %s"},e.prototype.atX0=function(){return"kl %s"},e.prototype.commaEveryDay=function(){return", varje dag"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", var %s dag i veckan"},e.prototype.commaX0ThroughX1=function(){return", %s till %s"},e.prototype.commaAndX0ThroughX1=function(){return", och %s till %s"},e.prototype.first=function(){return"f\xf6rsta"},e.prototype.second=function(){return"andra"},e.prototype.third=function(){return"tredje"},e.prototype.fourth=function(){return"fj\xe4rde"},e.prototype.fifth=function(){return"femte"},e.prototype.commaOnThe=function(){return", den "},e.prototype.spaceX0OfTheMonth=function(){return" %sen av m\xe5naden"},e.prototype.lastDay=function(){return"den sista dagen"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", p\xe5 sista %s av m\xe5naden"},e.prototype.commaOnlyOnX0=function(){return", varje %s"},e.prototype.commaAndOnX0=function(){return", och p\xe5 %s"},e.prototype.commaEveryX0Months=function(){return", var %s m\xe5nad"},e.prototype.commaOnlyInX0=function(){return", bara p\xe5 %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", p\xe5 sista dagen av m\xe5naden"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", p\xe5 sista veckodag av m\xe5naden"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s dagar f\xf6re den sista dagen i m\xe5naden"},e.prototype.firstWeekday=function(){return"f\xf6rsta veckodag"},e.prototype.weekdayNearestDayX0=function(){return"veckodagen n\xe4rmast dag %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", p\xe5 den %s av m\xe5naden"},e.prototype.commaEveryX0Days=function(){return", var %s dag"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", mellan dag %s och %s av m\xe5naden"},e.prototype.commaOnDayX0OfTheMonth=function(){return", p\xe5 dag %s av m\xe5naden"},e.prototype.commaEveryX0Years=function(){return", var %s \xe5r"},e.prototype.commaStartingX0=function(){return", startar %s"},e.prototype.daysOfTheWeek=function(){return["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},e.prototype.monthsOfTheYear=function(){return["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},e}();t.sv=r},799:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sw=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Kuna tatizo wakati wa kutunga msemo. Angalia cron expression syntax."},e.prototype.everyMinute=function(){return"kila dakika"},e.prototype.everyHour=function(){return"kila saa"},e.prototype.atSpace=function(){return"Kwa "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Kila dakika kwanzia %s hadi %s"},e.prototype.at=function(){return"Kwa"},e.prototype.spaceAnd=function(){return" na"},e.prototype.everySecond=function(){return"kila sekunde"},e.prototype.everyX0Seconds=function(){return"kila sekunde %s"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"sekunde ya %s hadi %s baada ya dakika"},e.prototype.atX0SecondsPastTheMinute=function(){return"sekunde %s baada ya dakika"},e.prototype.everyX0Minutes=function(){return"kila dakika %s"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"kati ya %s na %s"},e.prototype.atX0=function(){return"kwenye %s"},e.prototype.commaEveryDay=function(){return", kila siku"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", kila siku %s ya wiki"},e.prototype.commaX0ThroughX1=function(){return", %s hadi %s"},e.prototype.commaAndX0ThroughX1=function(){return", na %s hadi %s"},e.prototype.first=function(){return"ya kwanza"},e.prototype.second=function(){return"ya pili"},e.prototype.third=function(){return"ya tatu"},e.prototype.fourth=function(){return"ya nne"},e.prototype.fifth=function(){return"ya tano"},e.prototype.commaOnThe=function(){return", kwenye "},e.prototype.spaceX0OfTheMonth=function(){return" siku %s ya mwezi"},e.prototype.lastDay=function(){return"siku ya mwisho"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaOnlyOnX0=function(){return", kwa %s tu"},e.prototype.commaAndOnX0=function(){return", na pia %s"},e.prototype.commaEveryX0Months=function(){return", kila mwezi wa %s"},e.prototype.commaOnlyInX0=function(){return", kwa %s tu"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", siku ya mwisho wa mwezi"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", wikendi ya mwisho wa mwezi"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", siku ya %s kabla ya siku ya mwisho wa mwezi"},e.prototype.firstWeekday=function(){return"siku za kazi ya kwanza"},e.prototype.weekdayNearestDayX0=function(){return"siku ya kazi karibu na siku ya %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaEveryX0Days=function(){return", kila siku %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", kati ya siku %s na %s ya mwezi"},e.prototype.commaOnDayX0OfTheMonth=function(){return", siku ya %s ya mwezi"},e.prototype.commaEveryX0Years=function(){return", kila miaka %s"},e.prototype.commaStartingX0=function(){return", kwanzia %s"},e.prototype.daysOfTheWeek=function(){return["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"]},e.prototype.monthsOfTheYear=function(){return["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]},e}();t.sw=r},33:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.th=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"เกิดข้อผิดพลาดขณะสร้างคำอธิบายนิพจน์ ตรวจสอบไวยากรณ์นิพจน์ครอน"},e.prototype.everyMinute=function(){return"ทุกๆ นาที"},e.prototype.everyHour=function(){return"ทุกๆ ชั่วโมง"},e.prototype.atSpace=function(){return"เมื่อ "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"ทุกๆ นาที %s และ %s"},e.prototype.at=function(){return"เมื่อ"},e.prototype.spaceAnd=function(){return" และ"},e.prototype.everySecond=function(){return"ทุกๆ วินาที"},e.prototype.everyX0Seconds=function(){return"ทุกๆ %s วินาที"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"วินาที %s ถึง %s นาทีที่ผ่านมา"},e.prototype.atX0SecondsPastTheMinute=function(){return"เมื่อ %s วินาที นาทีที่ผ่านมา"},e.prototype.everyX0Minutes=function(){return"ทุกๆ %s นาที"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"นาที %s ถึง %s ชั่วโมงที่ผ่านมา"},e.prototype.atX0MinutesPastTheHour=function(){return"เมื่อ %s นาที ชั่วโมงที่ผ่านมา"},e.prototype.everyX0Hours=function(){return"ทุกๆ %s ชั่วโมง"},e.prototype.betweenX0AndX1=function(){return"ระหว่าง %s ถึง %s"},e.prototype.atX0=function(){return"เมื่อ %s"},e.prototype.commaEveryDay=function(){return", ทุกๆ วัน"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ทุกๆ %s วันของสัปดาห์"},e.prototype.commaX0ThroughX1=function(){return", %s ถึง %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s ถึง %s"},e.prototype.first=function(){return"แรก"},e.prototype.second=function(){return"ที่สอง"},e.prototype.third=function(){return"ที่สาม"},e.prototype.fourth=function(){return"ที่สี่"},e.prototype.fifth=function(){return"ที่ห้า"},e.prototype.commaOnThe=function(){return", ในวัน "},e.prototype.spaceX0OfTheMonth=function(){return" %s ของเดือน"},e.prototype.lastDay=function(){return"วันสุดท้าย"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ณ สุดท้าย %s ของเดือน"},e.prototype.commaOnlyOnX0=function(){return", เท่านั้น %s"},e.prototype.commaAndOnX0=function(){return", และใน %s"},e.prototype.commaEveryX0Months=function(){return", ทุกๆ %s เดือน"},e.prototype.commaOnlyInX0=function(){return", เท่านั้น %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ในวันสิ้นเดือน"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ในวันธรรมดาสุดท้ายของเดือน"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s วันก่อนวันสุดท้ายของเดือน"},e.prototype.firstWeekday=function(){return"วันธรรมดาวันแรก"},e.prototype.weekdayNearestDayX0=function(){return"วันธรรมดาที่ใกล้ที่สุด %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},e.prototype.commaEveryX0Days=function(){return", ทุกๆ %s วัน"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ระหว่างวัน %s และ %s ของเดือน"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ในวัน %s ของเดือน"},e.prototype.commaEveryHour=function(){return", ทุกๆ ชั่วโมง"},e.prototype.commaEveryX0Years=function(){return", ทุกๆ %s ปี"},e.prototype.commaStartingX0=function(){return", เริ่ม %s"},e.prototype.daysOfTheWeek=function(){return["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"]},e.prototype.monthsOfTheYear=function(){return["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},e}();t.th=r},631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tr=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"her dakika"},e.prototype.everyHour=function(){return"her saat"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"İfade a\xe7ıklamasını oluştururken bir hata oluştu. Cron ifadesini g\xf6zden ge\xe7irin."},e.prototype.atSpace=function(){return"Saat "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Saat %s ve %s arasındaki her dakika"},e.prototype.at=function(){return"Saat"},e.prototype.spaceAnd=function(){return" ve"},e.prototype.everySecond=function(){return"her saniye"},e.prototype.everyX0Seconds=function(){return"her %s saniyede bir"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"dakikaların %s. ve %s. saniyeleri arası"},e.prototype.atX0SecondsPastTheMinute=function(){return"dakikaların %s. saniyesinde"},e.prototype.everyX0Minutes=function(){return"her %s dakikada bir"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"saatlerin %s. ve %s. dakikaları arası"},e.prototype.atX0MinutesPastTheHour=function(){return"saatlerin %s. dakikasında"},e.prototype.everyX0Hours=function(){return"her %s saatte"},e.prototype.betweenX0AndX1=function(){return"%s ile %s arasında"},e.prototype.atX0=function(){return"saat %s"},e.prototype.commaEveryDay=function(){return", her g\xfcn"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", ayın her %s g\xfcn\xfc"},e.prototype.commaX0ThroughX1=function(){return", %s ile %s arasında"},e.prototype.commaAndX0ThroughX1=function(){return", ve %s ile %s arasında"},e.prototype.first=function(){return"ilk"},e.prototype.second=function(){return"ikinci"},e.prototype.third=function(){return"\xfc\xe7\xfcnc\xfc"},e.prototype.fourth=function(){return"d\xf6rd\xfcnc\xfc"},e.prototype.fifth=function(){return"beşinci"},e.prototype.commaOnThe=function(){return", ayın "},e.prototype.spaceX0OfTheMonth=function(){return" %s g\xfcn\xfc"},e.prototype.lastDay=function(){return"son g\xfcn"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", ayın son %s g\xfcn\xfc"},e.prototype.commaOnlyOnX0=function(){return", sadece %s g\xfcn\xfc"},e.prototype.commaAndOnX0=function(){return", ve %s"},e.prototype.commaEveryX0Months=function(){return", %s ayda bir"},e.prototype.commaOnlyInX0=function(){return", sadece %s i\xe7in"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", ayın son g\xfcn\xfc"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", ayın son iş g\xfcn\xfc"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ayın son g\xfcn\xfcnden \xf6nceki g\xfcnler"},e.prototype.firstWeekday=function(){return"ilk iş g\xfcn\xfc"},e.prototype.weekdayNearestDayX0=function(){return"%s. g\xfcn\xfc sonrasındaki ilk iş g\xfcn\xfc"},e.prototype.commaOnTheX0OfTheMonth=function(){return", ayın %s"},e.prototype.commaEveryX0Days=function(){return", %s g\xfcnde bir"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", ayın %s. ve %s. g\xfcnleri arası"},e.prototype.commaOnDayX0OfTheMonth=function(){return", ayın %s. g\xfcn\xfc"},e.prototype.commaEveryX0Years=function(){return", %s yılda bir"},e.prototype.commaStartingX0=function(){return", başlangı\xe7 %s"},e.prototype.daysOfTheWeek=function(){return["Pazar","Pazartesi","Salı","\xc7arşamba","Perşembe","Cuma","Cumartesi"]},e.prototype.monthsOfTheYear=function(){return["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eyl\xfcl","Ekim","Kasım","Aralık"]},e}();t.tr=r},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uk=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"щохвилини"},e.prototype.everyHour=function(){return"щогодини"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"ВІдбулася помилка підчас генерації опису. Перевірта правильність написання cron виразу."},e.prototype.atSpace=function(){return"О "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Щохвилини між %s та %s"},e.prototype.at=function(){return"О"},e.prototype.spaceAnd=function(){return" та"},e.prototype.everySecond=function(){return"Щосекунди"},e.prototype.everyX0Seconds=function(){return"кожні %s секунд"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"з %s по %s секунду"},e.prototype.atX0SecondsPastTheMinute=function(){return"о %s секунді"},e.prototype.everyX0Minutes=function(){return"кожні %s хвилин"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"з %s по %s хвилину"},e.prototype.atX0MinutesPastTheHour=function(){return"о %s хвилині"},e.prototype.everyX0Hours=function(){return"кожні %s годин"},e.prototype.betweenX0AndX1=function(){return"між %s та %s"},e.prototype.atX0=function(){return"о %s"},e.prototype.commaEveryDay=function(){return", щоденно"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", кожен %s день тижня"},e.prototype.commaX0ThroughX1=function(){return", %s по %s"},e.prototype.commaAndX0ThroughX1=function(){return", та %s по %s"},e.prototype.first=function(){return"перший"},e.prototype.second=function(){return"другий"},e.prototype.third=function(){return"третій"},e.prototype.fourth=function(){return"четвертий"},e.prototype.fifth=function(){return"п'ятий"},e.prototype.commaOnThe=function(){return", в "},e.prototype.spaceX0OfTheMonth=function(){return" %s місяця"},e.prototype.lastDay=function(){return"останній день"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", в останній %s місяця"},e.prototype.commaOnlyOnX0=function(){return", тільки в %s"},e.prototype.commaAndOnX0=function(){return", і в %s"},e.prototype.commaEveryX0Months=function(){return", кожен %s місяць"},e.prototype.commaOnlyInX0=function(){return", тільки в %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", в останній день місяця"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", в останній будень місяця"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s днів до останнього дня місяця"},e.prototype.firstWeekday=function(){return"перший будень"},e.prototype.weekdayNearestDayX0=function(){return"будень найближчий до %s дня"},e.prototype.commaOnTheX0OfTheMonth=function(){return", в %s місяця"},e.prototype.commaEveryX0Days=function(){return", кожен %s день"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", між %s та %s днями місяця"},e.prototype.commaOnDayX0OfTheMonth=function(){return", на %s день місяця"},e.prototype.commaEveryX0Years=function(){return", кожні %s роки"},e.prototype.commaStartingX0=function(){return", початок %s"},e.prototype.daysOfTheWeek=function(){return["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]},e.prototype.monthsOfTheYear=function(){return["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},e}();t.uk=r},292:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.vi=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Đ\xe3 xảy ra lỗi khi tạo m\xf4 tả biểu thức. Vui l\xf2ng kiểm tra c\xfa ph\xe1p biểu thức cron."},e.prototype.everyMinute=function(){return"mỗi ph\xfat"},e.prototype.everyHour=function(){return"mỗi giờ"},e.prototype.atSpace=function(){return"V\xe0o "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Mỗi ph\xfat giữa %s and %s"},e.prototype.at=function(){return"V\xe0o"},e.prototype.spaceAnd=function(){return" v\xe0"},e.prototype.everySecond=function(){return"mỗi gi\xe2y"},e.prototype.everyX0Seconds=function(){return"mỗi %s gi\xe2y"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"gi\xe2y thứ %s qua ph\xfat thứ %s"},e.prototype.atX0SecondsPastTheMinute=function(){return"tại gi\xe2y thứ %s của mỗi ph\xfat"},e.prototype.everyX0Minutes=function(){return"mỗi %s ph\xfat"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"ph\xfat thứ %s qua %s tiếng"},e.prototype.atX0MinutesPastTheHour=function(){return"v\xe0o %s ph\xfat của mỗi tiếng"},e.prototype.everyX0Hours=function(){return"mỗi %s tiếng"},e.prototype.betweenX0AndX1=function(){return"giữa %s v\xe0 %s"},e.prototype.atX0=function(){return"v\xe0o %s"},e.prototype.commaEveryDay=function(){return", mỗi ng\xe0y"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", mỗi %s ng\xe0y trong tuần"},e.prototype.commaX0ThroughX1=function(){return", %s đến %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s đến %s"},e.prototype.first=function(){return"đầu ti\xean"},e.prototype.second=function(){return"thứ 2"},e.prototype.third=function(){return"thứ 3"},e.prototype.fourth=function(){return"thứ 4"},e.prototype.fifth=function(){return"thứ 5"},e.prototype.commaOnThe=function(){return", tr\xean "},e.prototype.spaceX0OfTheMonth=function(){return" %s của th\xe1ng"},e.prototype.lastDay=function(){return"ng\xe0y cuối c\xf9ng"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", v\xe0o ng\xe0y %s cuối c\xf9ng của th\xe1ng"},e.prototype.commaOnlyOnX0=function(){return", chỉ tr\xean %s"},e.prototype.commaAndOnX0=function(){return", v\xe0 hơn %s"},e.prototype.commaEveryX0Months=function(){return", mỗi ng\xe0y %s th\xe1ng"},e.prototype.commaOnlyInX0=function(){return", chỉ trong %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", v\xe0o ng\xe0y cuối c\xf9ng của th\xe1ng"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", v\xe0o ng\xe0y cuối tuần của th\xe1ng"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ng\xe0y trước ng\xe0y cuối c\xf9ng của th\xe1ng"},e.prototype.firstWeekday=function(){return"ng\xe0y đầu tuần"},e.prototype.weekdayNearestDayX0=function(){return"ng\xe0y trong tuần ng\xe0y gần nhất %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", v\xe0o ng\xe0y %s của th\xe1ng"},e.prototype.commaEveryX0Days=function(){return", mỗi %s ng\xe0y"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", giữa ng\xe0y %s v\xe0 %s trong th\xe1ng"},e.prototype.commaOnDayX0OfTheMonth=function(){return", v\xe0o %s ng\xe0y trong th\xe1ng"},e.prototype.commaEveryHour=function(){return", mỗi tiếng"},e.prototype.commaEveryX0Years=function(){return", mỗi %s năm"},e.prototype.commaStartingX0=function(){return", bắt đầu %s"},e.prototype.daysOfTheWeek=function(){return["Chủ nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]},e.prototype.monthsOfTheYear=function(){return["Th\xe1ng 1","Th\xe1ng 2","Th\xe1ng 3","Th\xe1ng 4","Th\xe1ng 5","Th\xe1ng 6","Th\xe1ng 7","Th\xe1ng 8","Th\xe1ng 9","Th\xe1ng 10","Th\xe1ng 11","Th\xe1ng 12"]},e}();t.vi=r},571:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zh_CN=void 0;var r=function(){function e(){}return e.prototype.setPeriodBeforeTime=function(){return!0},e.prototype.pm=function(){return"下午"},e.prototype.am=function(){return"上午"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", 从%s年至%s年"},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.everyMinute=function(){return"每分钟"},e.prototype.everyHour=function(){return"每小时"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"生成表达式描述时发生了错误请检查cron表达式语法。"},e.prototype.atSpace=function(){return"在"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 至 %s 之间的每分钟"},e.prototype.at=function(){return"在"},e.prototype.spaceAnd=function(){return" 和"},e.prototype.everySecond=function(){return"每秒"},e.prototype.everyX0Seconds=function(){return"每隔 %s 秒"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分钟后的第 %s 到 %s 秒"},e.prototype.atX0SecondsPastTheMinute=function(){return"在一分钟后的第 %s 秒"},e.prototype.everyX0Minutes=function(){return"每隔 %s 分钟"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整点后的第 %s 到 %s 分钟"},e.prototype.atX0MinutesPastTheHour=function(){return"在整点后的第 %s 分钟"},e.prototype.everyX0Hours=function(){return"每隔 %s 小时"},e.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之间"},e.prototype.atX0=function(){return"在%s"},e.prototype.commaEveryDay=function(){return", 每天"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每周的每 %s 天"},e.prototype.commaX0ThroughX1=function(){return", %s至%s"},e.prototype.commaAndX0ThroughX1=function(){return", 和%s至%s"},e.prototype.first=function(){return"第一个"},e.prototype.second=function(){return"第二个"},e.prototype.third=function(){return"第三个"},e.prototype.fourth=function(){return"第四个"},e.prototype.fifth=function(){return"第五个"},e.prototype.commaOnThe=function(){return", 限每月的"},e.prototype.spaceX0OfTheMonth=function(){return"%s"},e.prototype.lastDay=function(){return"本月最后一天"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 限每月的最后一个%s"},e.prototype.commaOnlyOnX0=function(){return", 仅%s"},e.prototype.commaAndOnX0=function(){return", 或者为%s"},e.prototype.commaEveryX0Months=function(){return", 每隔 %s 个月"},e.prototype.commaOnlyInX0=function(){return", 仅限%s"},e.prototype.commaOnlyInMonthX0=function(){return", 仅于%s份"},e.prototype.commaOnlyInYearX0=function(){return", 仅于 %s 年"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 限每月的最后一天"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 限每月的最后一个工作日"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", 限每月最后%s天"},e.prototype.firstWeekday=function(){return"第一个工作日"},e.prototype.weekdayNearestDayX0=function(){return"最接近 %s 号的工作日"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 限每月的%s"},e.prototype.commaEveryX0Days=function(){return", 每隔 %s 天"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 限每月的 %s 至 %s 之间"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 限每月%s"},e.prototype.commaEveryX0Years=function(){return", 每隔 %s 年"},e.prototype.commaStartingX0=function(){return", %s开始"},e.prototype.dayX0=function(){return" %s 号"},e.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},e.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},e}();t.zh_CN=r},983:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zh_TW=void 0;var r=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return", 從 %s 年至 %s 年"},e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.everyMinute=function(){return"每分鐘"},e.prototype.everyHour=function(){return"每小時"},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"產生表達式描述時發生了錯誤,請檢查 cron 表達式語法。"},e.prototype.atSpace=function(){return"在 "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"在 %s 和 %s 之間的每分鐘"},e.prototype.at=function(){return"在"},e.prototype.spaceAnd=function(){return" 和"},e.prototype.everySecond=function(){return"每秒"},e.prototype.everyX0Seconds=function(){return"每 %s 秒"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"在一分鐘後的 %s 到 %s 秒"},e.prototype.atX0SecondsPastTheMinute=function(){return"在一分鐘後的 %s 秒"},e.prototype.everyX0Minutes=function(){return"每 %s 分鐘"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"在整點後的 %s 到 %s 分鐘"},e.prototype.atX0MinutesPastTheHour=function(){return"在整點後的 %s 分"},e.prototype.everyX0Hours=function(){return"每 %s 小時"},e.prototype.betweenX0AndX1=function(){return"在 %s 和 %s 之間"},e.prototype.atX0=function(){return"在 %s"},e.prototype.commaEveryDay=function(){return", 每天"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", 每週的每 %s 天"},e.prototype.commaX0ThroughX1=function(){return", %s 到 %s"},e.prototype.commaAndX0ThroughX1=function(){return", 和 %s 到 %s"},e.prototype.first=function(){return"第一個"},e.prototype.second=function(){return"第二個"},e.prototype.third=function(){return"第三個"},e.prototype.fourth=function(){return"第四個"},e.prototype.fifth=function(){return"第五個"},e.prototype.commaOnThe=function(){return", 在每月 "},e.prototype.spaceX0OfTheMonth=function(){return"%s "},e.prototype.lastDay=function(){return"最後一天"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", 每月的最後一個 %s "},e.prototype.commaOnlyOnX0=function(){return", 僅在 %s"},e.prototype.commaAndOnX0=function(){return", 或 %s"},e.prototype.commaEveryX0Months=function(){return", 每 %s 月"},e.prototype.commaOnlyInX0=function(){return", 僅在 %s"},e.prototype.commaOnlyInMonthX0=function(){return", 僅在 %s"},e.prototype.commaOnlyInYearX0=function(){return", 僅在 %s 年"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", 每月的最後一天"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", 每月的最後一個工作日"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s 這個月的最後一天的前幾天"},e.prototype.firstWeekday=function(){return"第一個工作日"},e.prototype.weekdayNearestDayX0=function(){return"最接近 %s 號的工作日"},e.prototype.commaOnTheX0OfTheMonth=function(){return", 每月的 %s "},e.prototype.commaEveryX0Days=function(){return", 每 %s 天"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", 在每月的 %s 和 %s 之間"},e.prototype.commaOnDayX0OfTheMonth=function(){return", 每月的 %s"},e.prototype.commaEveryX0Years=function(){return", 每 %s 年"},e.prototype.commaStartingX0=function(){return", %s 開始"},e.prototype.dayX0=function(){return" %s 號"},e.prototype.daysOfTheWeek=function(){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},e.prototype.monthsOfTheYear=function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},e}();t.zh_TW=r},515:(e,t)=>{function r(e,t){if(!e)throw Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),n=0;n<t.length;n++)if(!isNaN(parseInt(t[n],10))){var o=parseInt(t[n],10);r(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),n=0;n<t.length;n++)if(!isNaN(parseInt(t[n],10))){var o=parseInt(t[n],10);r(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),n=0;n<t.length;n++)if(!isNaN(parseInt(t[n],10))){var o=parseInt(t[n],10);r(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),n=0;n<t.length;n++)if(!isNaN(parseInt(t[n],10))){var o=parseInt(t[n],10);r(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var n=e.split(","),o=0;o<n.length;o++)if(!isNaN(parseInt(n[o],10))){var i=parseInt(n[o],10);r(i>=1&&i<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var n=e.split(","),o=0;o<n.length;o++)if(!isNaN(parseInt(n[o],10))){var i=parseInt(n[o],10);r(i>=0&&i<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t.default=n},823:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var r=function(){function e(){}return e.format=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.replace(/%s/g,function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}();t.StringUtilities=r}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}var s={};return Object.defineProperty(s,"__esModule",{value:!0}),s.toString=void 0,e=i(333),t=i(420),e.ExpressionDescriptor.initialize(new t.allLocalesLoader),s.default=e.ExpressionDescriptor,r=e.ExpressionDescriptor.toString,s.toString=r,s})(),e.exports=r()},174558:function(e,t,r){var n=r(371240);e.exports=n},889785:function(e){"use strict";e.exports=function(e){return(e=String(e||""),n.test(e))?"rtl":o.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",n=RegExp("^[^"+r+"]*["+t+"]"),o=RegExp("^[^"+t+"]*["+r+"]")},554836:function(e){"use strict";function t(e,t){var r,n;if(0===t.length)return e;for(r=0,n=t.length;r<n;r++)e=(e<<5)-e+t.charCodeAt(r)|0;return e<0?-2*e:e}function r(e,n,o,i){var s=t(t(t(e,o),function(e){return Object.prototype.toString.call(e)}(n)),typeof n);if(null===n)return t(s,"null");if(void 0===n)return t(s,"undefined");if("object"==typeof n||"function"==typeof n){if(-1!==i.indexOf(n))return t(s,"[Circular]"+o);i.push(n);var a,l,u,c=(a=s,l=n,u=i,Object.keys(l).sort().reduce(function(e,t){return r(e,l[t],t,u)},a));if(!("valueOf"in n)||"function"!=typeof n.valueOf)return c;try{return t(c,String(n.valueOf()))}catch(e){return t(c,"[valueOf exception]"+(e.stack||e.message))}}return t(s,n.toString())}e.exports=function(e){return function(e,t){for(;e.length<8;)e="0"+e;return e}(r(0,e,"",[]).toString(16),8)}},840994:function(e,t){"use strict";for(var r,n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),o={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},s={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)s["f"+a]=111+a;function l(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),!Array.isArray(e)&&(e=[e]);var n=e.map(function(e){return u(e,t)}),o=function(e){return n.some(function(t){return c(t,e)})};return null==r?o:o(r)}function u(e,t){var r=t&&t.byKey,n={},a=(e=e.replace("++","+add")).split("+"),l=a.length;for(var u in o)n[o[u]]=!1;var c=!0,h=!1,f=void 0;try{for(var m,g=a[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var y=m.value,x=y.endsWith("?")&&y.length>1;x&&(y=y.slice(0,-1));var b=p(y),w=o[b];if(y.length>1&&!w&&!i[y]&&!s[b])throw TypeError('Unknown modifier: "'+y+'"');(1===l||!w)&&(r?n.key=b:n.which=d(y)),w&&(n[w]=!x||null)}}catch(e){h=!0,f=e}finally{try{!c&&g.return&&g.return()}finally{if(h)throw f}}return n}function c(e,t){for(var r in e){var n=e[r],o=void 0;if(null!=n&&(null!=(o="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)){if(o!==n)return!1}}return!0}function d(e){return s[e=p(e)]||e.toUpperCase().charCodeAt(0)}function p(e){return e=i[e=e.toLowerCase()]||e}t.isHotkey=l},214799:function(e,t,r){"use strict";let n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof o){if(!!t.loose===e.loose)return e;e=e.value}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw TypeError("a Comparator is required");if(""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);return!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))||!1)}}e.exports=o;let i=r(661360),{safeRe:s,t:a}=r(552219),l=r(637684),u=r(881101),c=r(763890),d=r(979863)},979863:function(e,t,r){"use strict";let n=/\s+/g;class o{constructor(e,t){if(t=s(t),e instanceof o){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new o(e.raw,t)}if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,r=i.get(t);if(r)return r;let n=this.options.loose,o=n?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];l("hyphen replace",e=e.replace(o,M(this.options.includePrerelease))),l("comparator trim",e=e.replace(c[d.COMPARATORTRIM],p)),l("tilde trim",e=e.replace(c[d.TILDETRIM],h)),l("caret trim",e=e.replace(c[d.CARETTRIM],f));let s=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>E(e,this.options));n&&(s=s.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",s);let u=new Map;for(let e of s.map(e=>new a(e,this.options))){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let x=[...u.values()];return i.set(t,x),x}intersects(e,t){if(!(e instanceof o))throw TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1}}e.exports=o;let i=new(r(701572)),s=r(661360),a=r(214799),l=r(881101),u=r(763890),{safeRe:c,t:d,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:f}=r(552219),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=r(952613),y=e=>"<0.0.0-0"===e.value,x=e=>""===e.value,b=(e,t)=>{let r=!0,n=e.slice(),o=n.pop();for(;r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r},w=(e,t)=>(l("comp",e,t),l("caret",e=A(e,t)),l("tildes",e=k(e,t)),l("xrange",e=D(e,t)),l("stars",e=T(e,t)),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{let r=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(r,(t,r,n,o,i)=>{let s;return l("tilde",e,t,r,n,o,i),_(r)?s="":_(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:_(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(l("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,l("tilde return",s),s})},A=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{l("caret",e,t);let r=t.loose?c[d.CARETLOOSE]:c[d.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,o,i,s)=>{let a;return l("caret",e,t,r,o,i,s),_(r)?a="":_(o)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(i)?a="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(l("replaceCaret pr",s),a="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),l("caret return",a),a})},D=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>S(e,t)).join(" ")),S=(e,t)=>{e=e.trim();let r=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(r,(r,n,o,i,s,a)=>{l("xRange",e,r,n,o,i,s,a);let u=_(o),c=u||_(i),d=c||_(s);return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(c&&(i=0),s=0,">"===n?(n=">=",c?(o=+o+1,i=0):i=+i+1,s=0):"<="===n&&(n="<",c?o=+o+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+o}.${i}.${s}${a}`):c?r=`>=${o}.0.0${a} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${i}.0${a} <${o}.${+i+1}.0-0`),l("xRange return",r),r})},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),E=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),M=e=>(t,r,n,o,i,s,a,l,u,c,d,p)=>(r=_(n)?"":_(o)?`>=${n}.0.0${e?"-0":""}`:_(i)?`>=${n}.${o}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`,l=_(u)?"":_(c)?`<${+u+1}.0.0-0`:_(d)?`<${u}.${+c+1}.0-0`:p?`<=${u}.${c}.${d}-${p}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`,`${r} ${l}`.trim()),j=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++){if(l(e[r].semver),e[r].semver!==a.ANY){if(e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}}}return!1}return!0}},763890:function(e,t,r){"use strict";let n=r(881101),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(952613),{safeRe:s,t:a}=r(552219),l=r(661360),{compareIdentifiers:u}=r(728974);class c{constructor(e,t){if(t=l(t),e instanceof c){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return!(e instanceof c)&&(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(!(e instanceof c)&&(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;else if(void 0===r)return -1;else if(r===o)continue;else return u(r,o)}while(++t)}compareBuild(e){!(e instanceof c)&&(e=new c(e,this.options));let t=0;do{let r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;else if(void 0===r)return -1;else if(r===o)continue;else return u(r,o)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},273031:function(e,t,r){"use strict";let n=r(113464);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},637684:function(e,t,r){"use strict";let n=r(306991),o=r(425369),i=r(967505),s=r(101787),a=r(204813),l=r(833285);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return o(e,r,u);case">":return i(e,r,u);case">=":return s(e,r,u);case"<":return a(e,r,u);case"<=":return l(e,r,u);default:throw TypeError(`Invalid operator: ${t}`)}}},557267:function(e,t,r){"use strict";let n=r(763890),o=r(113464),{safeRe:i,t:s}=r(552219);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n;let o=t.includePrerelease?i[s.COERCERTLFULL]:i[s.COERCERTL];for(;(n=o.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),o.lastIndex=n.index+n[1].length+n[2].length;o.lastIndex=-1}else r=e.match(t.includePrerelease?i[s.COERCEFULL]:i[s.COERCE]);if(null===r)return null;let a=r[2],l=r[3]||"0",u=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return o(`${a}.${l}.${u}${c}${d}`,t)}},506878:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t,r)=>{let o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}},215258:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t)=>n(e,t,!0)},589443:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},854729:function(e,t,r){"use strict";let n=r(113464);e.exports=(e,t)=>{let r=n(e,null,!0),o=n(t,null,!0),i=r.compare(o);if(0===i)return null;let s=i>0,a=s?r:o,l=s?o:r,u=!!a.prerelease.length;if(l.prerelease.length&&!u){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}let c=u?"pre":"";return r.major!==o.major?c+"major":r.minor!==o.minor?c+"minor":r.patch!==o.patch?c+"patch":"prerelease"}},306991:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>0===n(e,t,r)},967505:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>n(e,t,r)>0},101787:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>n(e,t,r)>=0},174370:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t,r,o,i)=>{"string"==typeof r&&(i=o,o=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,o,i).version}catch(e){return null}}},204813:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>0>n(e,t,r)},833285:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>0>=n(e,t,r)},159156:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t)=>new n(e,t).major},182672:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t)=>new n(e,t).minor},425369:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>0!==n(e,t,r)},113464:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},485486:function(e,t,r){"use strict";let n=r(763890);e.exports=(e,t)=>new n(e,t).patch},498106:function(e,t,r){"use strict";let n=r(113464);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},357773:function(e,t,r){"use strict";let n=r(589443);e.exports=(e,t,r)=>n(t,e,r)},117746:function(e,t,r){"use strict";let n=r(506878);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},58713:function(e,t,r){"use strict";let n=r(979863);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},47036:function(e,t,r){"use strict";let n=r(506878);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},84147:function(e,t,r){"use strict";let n=r(113464);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},851954:function(e,t,r){"use strict";let n=r(552219),o=r(952613),i=r(763890),s=r(728974),a=r(113464),l=r(84147),u=r(273031),c=r(174370),d=r(854729),p=r(159156),h=r(182672),f=r(485486),m=r(498106),g=r(589443),y=r(357773),x=r(215258),b=r(506878),w=r(47036),_=r(117746),k=r(967505),C=r(204813),A=r(306991),O=r(425369),D=r(101787),S=r(833285),T=r(637684),E=r(557267),M=r(214799),j=r(979863),N=r(58713),P=r(828423),B=r(888509),I=r(243088),L=r(351016),F=r(241042),z=r(478173),R=r(280299),X=r(282896),Z=r(659471),W=r(560399),V=r(720773);e.exports={parse:a,valid:l,clean:u,inc:c,diff:d,major:p,minor:h,patch:f,prerelease:m,compare:g,rcompare:y,compareLoose:x,compareBuild:b,sort:w,rsort:_,gt:k,lt:C,eq:A,neq:O,gte:D,lte:S,cmp:T,coerce:E,Comparator:M,Range:j,satisfies:N,toComparators:P,maxSatisfying:B,minSatisfying:I,minVersion:L,validRange:F,outside:z,gtr:R,ltr:X,intersects:Z,simplifyRange:W,subset:V,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},952613:function(e){"use strict";let t=Number.MAX_SAFE_INTEGER||0x1fffffffffffff;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},881101:function(e){"use strict";let t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},728974:function(e){"use strict";let t=/^[0-9]+$/,r=(e,r)=>{let n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},701572:function(e){"use strict";e.exports=class e{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},661360:function(e){"use strict";let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},552219:function(e,t,r){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(952613),s=r(881101),a=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],d=t.t={},p=0,h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[h,o]],m=e=>{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},g=(e,t,r)=>{let n=m(t),o=p++;s(e,o,t),d[e]=o,u[o]=t,c[o]=n,a[o]=new RegExp(t,r?"g":void 0),l[o]=new RegExp(n,r?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),g("FULL",`^${u[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),g("LOOSE",`^${u[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),g("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?`+"(?:$|[^\\d])"),g("COERCERTL",u[d.COERCE],!0),g("COERCERTLFULL",u[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},280299:function(e,t,r){"use strict";let n=r(478173);e.exports=(e,t,r)=>n(e,t,">",r)},659471:function(e,t,r){"use strict";let n=r(979863);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},282896:function(e,t,r){"use strict";let n=r(478173);e.exports=(e,t,r)=>n(e,t,"<",r)},888509:function(e,t,r){"use strict";let n=r(763890),o=r(979863);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!i||-1===s.compare(e))&&(s=new n(i=e,r))}),i}},243088:function(e,t,r){"use strict";let n=r(763890),o=r(979863);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!i||1===s.compare(e))&&(s=new n(i=e,r))}),i}},351016:function(e,t,r){"use strict";let n=r(763890),o=r(979863),i=r(967505);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){let o=e.set[t],s=null;o.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),s&&(!r||i(r,s))&&(r=s)}return r&&e.test(r)?r:null}},478173:function(e,t,r){"use strict";let n=r(763890),o=r(214799),{ANY:i}=o,s=r(979863),a=r(58713),l=r(967505),u=r(204813),c=r(833285),d=r(101787);e.exports=(e,t,r,p)=>{let h,f,m,g,y;switch(e=new n(e,p),t=new s(t,p),r){case">":h=l,f=c,m=u,g=">",y=">=";break;case"<":h=u,f=d,m=l,g="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){let n=t.set[r],s=null,a=null;if(n.forEach(e=>{e.semver===i&&(e=new o(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,p)?s=e:m(e.semver,a.semver,p)&&(a=e)}),s.operator===g||s.operator===y)return!1;if((!a.operator||a.operator===g)&&f(e,a.semver))return!1;if(a.operator===y&&m(e,a.semver))return!1}return!0}},560399:function(e,t,r){"use strict";let n=r(58713),o=r(589443);e.exports=(e,t,r)=>{let i=[],s=null,a=null,l=e.sort((e,t)=>o(e,t,r));for(let e of l)n(e,t,r)?(a=e,!s&&(s=e)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);let u=[];for(let[e,t]of i)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");let c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length<d.length?c:t}},720773:function(e,t,r){"use strict";let n=r(979863),o=r(214799),{ANY:i}=o,s=r(58713),a=r(589443),l=[new o(">=0.0.0-0")],u=[new o(">=0.0.0")],c=(e,t,r)=>{let n,o,c,h,f,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?l:u}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=u}let y=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?o=p(o,t,r):y.add(t.semver);if(y.size>1)return null;if(n&&o){if((c=a(n.semver,o.semver,r))>0)return null;if(0===c&&(">="!==n.operator||"<="!==o.operator))return null}for(let e of y){if(n&&!s(e,String(n),r)||o&&!s(e,String(o),r))return null;for(let n of t)if(!s(e,String(n),r))return!1;return!0}let x=!!o&&!r.includePrerelease&&!!o.semver.prerelease.length&&o.semver,b=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(x&&1===x.prerelease.length&&"<"===o.operator&&0===x.prerelease[0]&&(x=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if((h=d(n,e,r))===e&&h!==n)return!1}else if(">="===n.operator&&!s(n.semver,String(e),r))return!1}if(o){if(x&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===x.major&&e.semver.minor===x.minor&&e.semver.patch===x.patch&&(x=!1),"<"===e.operator||"<="===e.operator){if((f=p(o,e,r))===e&&f!==o)return!1}else if("<="===o.operator&&!s(o.semver,String(e),r))return!1}if(!e.operator&&(o||n)&&0!==c)return!1}return(!n||!m||!!o||0===c)&&(!o||!g||!!n||0===c)&&!b&&!x&&!0},d=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e},p=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;n:for(let n of e.set){for(let e of t.set){let t=c(n,e,r);if(o=o||null!==t,t)continue n}if(o)return!1}return!0}},828423:function(e,t,r){"use strict";let n=r(979863);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},241042:function(e,t,r){"use strict";let n=r(979863);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},62257:function(e,t,r){"use strict";r.d(t,{VC:function(){return u}});var n=r(640652),o=r(878011),i=e=>(0,n.P)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||o.OX.isOperationList(e.redos[0].operations))&&(0===e.undos.length||o.OX.isOperationList(e.undos[0].operations));new WeakMap;var s=new WeakMap,a=new WeakMap,l={isHistoryEditor:e=>i(e.history)&&o.ML.isEditor(e),isMerging:e=>a.get(e),isSaving:e=>s.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=l.isMerging(e);a.set(e,!1),t(),a.set(e,r)},withoutSaving(e,t){var r=l.isSaving(e);s.set(e,!1),t(),s.set(e,r)}},u=e=>{var{apply:t}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:r}=t;if(r.length>0){var n=r[r.length-1];n.selectionBefore&&o.YR.setSelection(e,n.selectionBefore),l.withoutSaving(e,()=>{o.ML.withoutNormalizing(e,()=>{for(var t of n.operations)e.apply(t)})}),t.redos.pop(),e.writeHistory("undos",n)}},e.undo=()=>{var{history:t}=e,{undos:r}=t;if(r.length>0){var n=r[r.length-1];l.withoutSaving(e,()=>{o.ML.withoutNormalizing(e,()=>{for(var t of n.operations.map(o.OX.inverse).reverse())e.apply(t);n.selectionBefore&&o.YR.setSelection(e,n.selectionBefore)})}),e.writeHistory("redos",n),t.undos.pop()}},e.apply=r=>{var{operations:n,history:o}=e,{undos:i}=o,s=i[i.length-1],a=s&&s.operations[s.operations.length-1],u=l.isSaving(e),p=l.isMerging(e);if(null==u&&(u=d(r)),u){if(null==p&&(p=null!=s&&(0!==n.length||c(r,a))),s&&p)s.operations.push(r);else{var h={operations:[r],selectionBefore:e.selection};e.writeHistory("undos",h)}for(;i.length>100;)i.shift();o.redos=[]}t(r)},e.writeHistory=(t,r)=>{e.history[t].push(r)},e},c=(e,t)=>!!(t&&"insert_text"===e.type&&"insert_text"===t.type&&e.offset===t.offset+t.text.length&&o.y$.equals(e.path,t.path)||t&&"remove_text"===e.type&&"remove_text"===t.type&&e.offset+e.text.length===t.offset&&o.y$.equals(e.path,t.path))||!1,d=(e,t)=>"set_selection"!==e.type&&!0},566906:function(e,t,r){"use strict";r.d(t,{CX:()=>ro,F3:()=>tl,mH:()=>rf,BU:()=>rb});var n,o,i,s=r("889785"),a=r.n(s),l=r("612447"),u=r.n(l),c=r("122540"),d=r.n(c),p=r("455069");let h=e=>"object"==typeof e&&null!=e&&1===e.nodeType,f=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,m=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return f(r.overflowY,t)||f(r.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},g=(e,t,r,n,o,i,s,a)=>i<e&&s>t||i>e&&s<t?0:i<=e&&a<=r||s>=t&&a>=r?i-e-n:s>t&&a<r||i<e&&a>r?s-t+o:0,y=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},x=(e,t)=>{var r,n,o,i;if("undefined"==typeof document)return[];let{scrollMode:s,block:a,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!h(e))throw TypeError("Invalid target");let p=document.scrollingElement||document.documentElement,f=[],x=e;for(;h(x)&&d(x);){if((x=y(x))===p){f.push(x);break}null!=x&&x===document.body&&m(x)&&!m(document.documentElement)||null!=x&&m(x,c)&&f.push(x)}let b=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,w=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:_,scrollY:k}=window,{height:C,width:A,top:O,right:D,bottom:S,left:T}=e.getBoundingClientRect(),{top:E,right:M,bottom:j,left:N}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),P="start"===a||"nearest"===a?O-E:"end"===a?S+j:O+C/2-E+j,B="center"===l?T+A/2-N+M:"end"===l?D+M:T-N,I=[];for(let e=0;e<f.length;e++){let t=f[e],{height:r,width:n,top:o,right:i,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===s&&O>=0&&T>=0&&S<=w&&D<=b&&(t===p&&!m(t)||O>=o&&S<=u&&T>=c&&D<=i))break;let d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),y=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),E=parseInt(d.borderBottomWidth,10),M=0,j=0,N="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-x:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-y-E:0,F="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(p===t)M="start"===a?P:"end"===a?P-w:"nearest"===a?g(k,k+w,w,y,E,k+P,k+P+C,C):P-w/2,j="start"===l?B:"center"===l?B-b/2:"end"===l?B-b:g(_,_+b,b,h,x,_+B,_+B+A,A),M=Math.max(0,M+k),j=Math.max(0,j+_);else{M="start"===a?P-o-y:"end"===a?P-u+E+L:"nearest"===a?g(o,u,r,y,E+L,P,P+C,C):P-(o+r/2)+L/2,j="start"===l?B-c-h:"center"===l?B-(c+n/2)+N/2:"end"===l?B-i+x+N:g(c,i,n,h,x+N,B,B+A,A);let{scrollLeft:e,scrollTop:s}=t;M=0===z?0:Math.max(0,Math.min(s+M/z,t.scrollHeight-r/z+L)),j=0===F?0:Math.max(0,Math.min(e+j/F,t.scrollWidth-n/F+N)),P+=s-M,B+=e-j}I.push({el:t,top:M,left:j})}return I},b=e=>{let t;return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"}};var w=r("878011"),_=[],k="ResizeObserver loop completed with undelivered notifications.",C=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:k}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=k),window.dispatchEvent(e)};(n=o||(o={})).BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var A=function(e){return Object.freeze(e)},O=function(e,t){this.inlineSize=e,this.blockSize=t,A(this)},D=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,A(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),S=function(e){return e instanceof SVGElement&&"getBBox"in e},T=function(e){if(S(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e.offsetWidth,i=e.offsetHeight;return!(o||i||e.getClientRects().length)},E=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},M=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},j="undefined"!=typeof window?window:{},N=new WeakMap,P=/auto|scroll/,B=/^tb|vertical/,I=/msie|trident/i.test(j.navigator&&j.navigator.userAgent),L=function(e){return parseFloat(e||"0")},F=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new O((r?t:e)||0,(r?e:t)||0)},z=A({devicePixelContentBoxSize:F(),borderBoxSize:F(),contentBoxSize:F(),contentRect:new D(0,0,0,0)}),R=function(e,t){if(void 0===t&&(t=!1),N.has(e)&&!t)return N.get(e);if(T(e))return N.set(e,z),z;var r=getComputedStyle(e),n=S(e)&&e.ownerSVGElement&&e.getBBox(),o=!I&&"border-box"===r.boxSizing,i=B.test(r.writingMode||""),s=!n&&P.test(r.overflowY||""),a=!n&&P.test(r.overflowX||""),l=n?0:L(r.paddingTop),u=n?0:L(r.paddingRight),c=n?0:L(r.paddingBottom),d=n?0:L(r.paddingLeft),p=n?0:L(r.borderTopWidth),h=n?0:L(r.borderRightWidth),f=n?0:L(r.borderBottomWidth),m=n?0:L(r.borderLeftWidth),g=d+u,y=l+c,x=m+h,b=p+f,w=a?e.offsetHeight-b-e.clientHeight:0,_=s?e.offsetWidth-x-e.clientWidth:0,k=n?n.width:L(r.width)-(o?g+x:0)-_,C=n?n.height:L(r.height)-(o?y+b:0)-w,O=k+g+_+x,E=C+y+w+b,M=A({devicePixelContentBoxSize:F(Math.round(k*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:F(O,E,i),contentBoxSize:F(k,C,i),contentRect:new D(d,l,k,C)});return N.set(e,M),M},X=function(e,t,r){var n=R(e,r),i=n.borderBoxSize,s=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case o.DEVICE_PIXEL_CONTENT_BOX:return a;case o.BORDER_BOX:return i;default:return s}},Z=function(e){var t=R(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=A([t.borderBoxSize]),this.contentBoxSize=A([t.contentBoxSize]),this.devicePixelContentBoxSize=A([t.devicePixelContentBoxSize])},W=function(e){if(T(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},V=function(){var e=1/0,t=[];_.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new Z(t.target),o=W(t.target);n.push(r),t.lastReportedSize=X(t.target,t.observedBox),o<e&&(e=o)}),t.push(function(){r.callback.call(r.observer,n,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var r=0;r<t.length;r++)(0,t[r])();return e},H=function(e){_.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(W(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},U=function(){var e=0;for(H(0);_.some(function(e){return e.activeTargets.length>0});)H(e=V());return _.some(function(e){return e.skippedTargets.length>0})&&C(),e>0},q=[],Y=function(e){if(!i){var t=0,r=document.createTextNode("");new MutationObserver(function(){return q.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),i=function(){r.textContent="".concat(t?t--:t++)}}q.push(e),i()},Q=function(e){Y(function(){requestAnimationFrame(e)})},G=0,$={attributes:!0,characterData:!0,childList:!0,subtree:!0},K=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],J=function(e){return void 0===e&&(e=0),Date.now()+e},ee=!1,et=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!ee){ee=!0;var r=J(e);Q(function(){var n=!1;try{n=U()}finally{if(ee=!1,e=r-J(),!G)return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,$)};document.body?t():j.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),K.forEach(function(t){return j.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;!this.stopped&&(this.observer&&this.observer.disconnect(),K.forEach(function(t){return j.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),er=function(e){!G&&e>0&&et.start(),(G+=e)||et.stop()},en=function(){function e(e,t){this.target=e,this.observedBox=t||o.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=X(this.target,this.observedBox,!0);if(!S(e=this.target)&&!M(e)&&"inline"===getComputedStyle(e).display)this.lastReportedSize=t;return this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize||!1},e}(),eo=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ei=new WeakMap,es=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return -1},ea=function(){function e(){}return e.connect=function(e,t){var r=new eo(e,t);ei.set(e,r)},e.observe=function(e,t,r){var n=ei.get(e),o=0===n.observationTargets.length;0>es(n.observationTargets,t)&&(o&&_.push(n),n.observationTargets.push(new en(t,r&&r.box)),er(1),et.schedule())},e.unobserve=function(e,t){var r=ei.get(e),n=es(r.observationTargets,t),o=1===r.observationTargets.length;n>=0&&(o&&_.splice(_.indexOf(r),1),r.observationTargets.splice(n,1),er(-1))},e.disconnect=function(e){var t=this,r=ei.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),el=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ea.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!E(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ea.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!E(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ea.unobserve(this,e)},e.prototype.disconnect=function(){ea.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),eu=r("840994"),ec=r("921463");function ed(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){if(r=i[n],!(t.indexOf(r)>=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}function ep(e){return(ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eh(e,t,r){var n;return n=function(e,t){if("object"!==ep(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ep(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===ep(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ef=(0,p.createContext)(null),em=()=>{var e=(0,p.useContext)(ef);if(!e)throw Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},eg=parseInt(p.version.split(".")[0],10),ev="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ey="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ex="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),eb="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ew="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),e_="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),ek="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),eC="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),eA=ex&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),eO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),eD="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),eS="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),eT=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),eE=(!eC||!eA)&&!e_&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,eM=new WeakMap,ej=new WeakMap,eN=new WeakMap,eP=new WeakMap,eB=new WeakMap,eI=new WeakMap,eL=new WeakMap,eF=new WeakMap,ez=new WeakMap,eR=new WeakMap,eX=new WeakMap,eZ=new WeakMap,eW=new WeakMap,eV=new WeakMap,eH=new WeakMap,eU=new WeakMap,eq=new WeakMap,eY=new WeakMap,eQ=new WeakMap,eG=new WeakMap,e$=new WeakMap,eK=Symbol("placeholder"),eJ=Symbol("mark-placeholder"),e0=globalThis.Text,e1=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,e2=e=>e5(e)&&8===e.nodeType,e4=e=>e5(e)&&1===e.nodeType,e5=e=>{var t=e1(e);return!!t&&e instanceof t.Node},e6=e=>{var t=e&&e.anchorNode&&e1(e.anchorNode);return!!t&&e instanceof t.Selection},e3=e=>e5(e)&&3===e.nodeType,e8=e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length,e9=e=>{var[t,r]=e;if(e4(t)&&t.childNodes.length){var n=r===t.childNodes.length,o=n?r-1:r;for([t,o]=te(t,o,n?"backward":"forward"),n=o<r;e4(t)&&t.childNodes.length;){var i=n?t.childNodes.length-1:0;t=tt(t,i,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]},e7=e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},te=(e,t,r)=>{for(var{childNodes:n}=e,o=n[t],i=t,s=!1,a=!1;(e2(o)||e4(o)&&0===o.childNodes.length||e4(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!a);){;if(i>=n.length){s=!0,i=t-1,r="backward";continue}if(i<0){a=!0,i=t+1,r="forward";continue}o=n[i],t=i,i+="forward"===r?1:-1}return[o,t]},tt=(e,t,r)=>{var[n]=te(e,t,r);return n},tr=e=>{var t="";if(e3(e)&&e.nodeValue)return e.nodeValue;if(e4(e)){for(var r of Array.from(e.childNodes))t+=tr(r);var n=getComputedStyle(e).getPropertyValue("display");("block"===n||"list"===n||"BR"===e.tagName)&&(t+="\n")}return t},tn=/data-slate-fragment="(.+?)"/m,to=e=>{var[,t]=e.getData("text/html").match(tn)||[];return t},ti=(e,t,r)=>{var{target:n}=t;if(e4(n)&&n.matches('[contentEditable="false"]'))return!1;var{document:o}=tl.getWindow(e);if(o.contains(n))return tl.hasDOMNode(e,n,{editable:!0});var i=r.find(e=>{var{addedNodes:t,removedNodes:r}=e;for(var o of t)if(o===n||o.contains(n))return!0;for(var i of r)if(i===n||i.contains(n))return!0});return!!i&&i!==t&&ti(e,i,r)},ts=0;class ta{constructor(){eh(this,"id",void 0),this.id="".concat(ts++)}}var tl={androidPendingDiffs:e=>eY.get(e),androidScheduleFlush:e=>{var t;null===(t=eH.get(e))||void 0===t||t()},blur:e=>{var t=tl.toDOMNode(e,e),r=tl.findDocumentOrShadowRoot(e);eX.set(e,!1),r.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,r=tl.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&w.YR.deselect(e)},findDocumentOrShadowRoot:e=>{var t=tl.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var r,{clientX:n,clientY:o,target:i}=t;if(null==n||null==o)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var s=tl.toSlateNode(e,t.target),a=tl.findPath(e,s);if(w.W_.isElement(s)&&w.ML.isVoid(e,s)){var l=i.getBoundingClientRect(),u=e.isInline(s)?n-l.left<l.left+l.width-n:o-l.top<l.top+l.height-o,c=w.ML.point(e,a,{edge:u?"start":"end"}),d=u?w.ML.before(e,c):w.ML.after(e,c);if(d)return w.ML.range(e,d)}var{document:p}=tl.getWindow(e);if(p.caretRangeFromPoint)r=p.caretRangeFromPoint(n,o);else{var h=p.caretPositionFromPoint(n,o);h&&((r=p.createRange()).setStart(h.offsetNode,h.offset),r.setEnd(h.offsetNode,h.offset))}if(!r)throw Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return tl.toSlateRange(e,r,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var r=eF.get(t);return!r&&(r=new ta,eF.set(t,r)),r},findPath:(e,t)=>{for(var r=[],n=t;;){var o=ej.get(n);if(null==o){if(w.ML.isEditor(n))return r;break}var i=eM.get(n);if(null==i)break;r.unshift(i),n=o}throw Error("Unable to find the path for Slate node: ".concat(w.o4.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!eX.get(e)){if(t.retries<=0)throw Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0){setTimeout(()=>{tl.focus(e,{retries:t.retries-1})},10);return}var r=tl.toDOMNode(e,e),n=tl.findDocumentOrShadowRoot(e);if(n.activeElement!==r){if(e.selection&&n instanceof Document){var o=n.getSelection(),i=tl.toDOMRange(e,e.selection);null==o||o.removeAllRanges(),null==o||o.addRange(i)}!e.selection&&(w.YR.select(e,w.ML.start(e,[])),e.onChange()),r.focus({preventScroll:!0}),eX.set(e,!0)}}},getWindow:e=>{var t=eN.get(e);if(!t)throw Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=n,i=tl.toDOMNode(e,e);try{r=e4(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===i&&(!o||!!r.isContentEditable||"boolean"==typeof r.isContentEditable&&r.closest('[contenteditable="false"]')===i||!!r.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>e5(t)&&tl.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:r,focus:n}=t;return w.ML.hasPath(e,r.path)&&w.ML.hasPath(e,n.path)},hasSelectableTarget:(e,t)=>tl.hasEditableTarget(e,t)||tl.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>e5(t)&&tl.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!eZ.get(e),isFocused:e=>!!eX.get(e),isReadOnly:e=>!!eR.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(eR.get(e))return!1;var r=tl.hasTarget(e,t)&&tl.toSlateNode(e,t);return w.W_.isElement(r)&&w.ML.isVoid(e,r)},setFragmentData:(e,t,r)=>e.setFragmentData(t,r),toDOMNode:(e,t)=>{var r=ez.get(e),n=w.ML.isEditor(t)?eP.get(e):null==r?void 0:r.get(tl.findKey(e,t));if(!n)throw Error("Cannot resolve a DOM node from Slate node: ".concat(w.o4.stringify(t)));return n},toDOMPoint:(e,t)=>{var[r]=w.ML.node(e,t.path),n=tl.toDOMNode(e,r);w.ML.void(e,{at:t})&&(t={path:t.path,offset:0});for(var o=Array.from(n.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),i=0,s=0;s<o.length;s++){var a=o[s],l=a.childNodes[0];if(null!=l&&null!=l.textContent){var{length:u}=l.textContent,c=a.getAttribute("data-slate-length"),d=i+(null==c?u:parseInt(c,10)),p=o[s+1];if(t.offset===d&&null!=p&&p.hasAttribute("data-slate-mark-placeholder")){var h,f,m=p.childNodes[0];h=[m instanceof e0?m:p,null!==(f=p.textContent)&&void 0!==f&&f.startsWith("\uFEFF")?1:0];break}if(t.offset<=d){h=[l,Math.min(u,Math.max(0,t.offset-i))];break}i=d}}if(!h)throw Error("Cannot resolve a DOM point from Slate point: ".concat(w.o4.stringify(t)));return h},toDOMRange:(e,t)=>{var{anchor:r,focus:n}=t,o=w.e6.isBackward(t),i=tl.toDOMPoint(e,r),s=w.e6.isCollapsed(t)?i:tl.toDOMPoint(e,n),a=tl.getWindow(e).document.createRange(),[l,u]=o?s:i,[c,d]=o?i:s,p=!!(e4(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(e4(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return a.setStart(l,p?1:u),a.setEnd(c,h?1:d),a},toSlateNode:(e,t)=>{var r=e4(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?eI.get(r):null;if(!n)throw Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},toSlatePoint:(e,t,r)=>{var{exactMatch:n,suppressThrow:o}=r,[i,s]=n?t:e9(t),a=i.parentNode,l=null,u=0;if(a){var c,d,p=tl.toDOMNode(e,e),h=a.closest('[data-slate-void="true"]'),f=h&&p.contains(h)?h:null,m=a.closest("[data-slate-leaf]"),g=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var y=tl.getWindow(e).document.createRange();y.setStart(l,0),y.setEnd(i,s);var x=y.cloneContents();[...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))].forEach(e=>{if(ex&&!n&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\uFEFF"!==e.textContext){e.textContent.startsWith("\uFEFF")&&(e.textContent=e.textContent.slice(1));return}e.parentNode.removeChild(e)}),u=x.textContent.length,g=l}}else if(f){for(var b=f.querySelectorAll("[data-slate-leaf]"),_=0;_<b.length;_++){var k=b[_];if(tl.hasDOMNode(e,k)){m=k;break}}m?(l=m.closest('[data-slate-node="text"]'),u=(g=m).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach(e=>{u-=e.textContent.length})):u=1}g&&u===g.textContent.length&&ex&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(c=g.textContent)&&void 0!==c&&c.startsWith("\uFEFF")&&(a.hasAttribute("data-slate-zero-width")||eb&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&u--}if(ex&&!l&&!n){var C=a.hasAttribute("data-slate-node")?a:a.closest("[data-slate-node]");if(C&&tl.hasDOMNode(e,C,{editable:!0})){var A=tl.toSlateNode(e,C),{path:O,offset:D}=w.ML.start(e,tl.findPath(e,A));return!C.querySelector("[data-slate-leaf]")&&(D=s),{path:O,offset:D}}}if(!l){if(o)return null;throw Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var S=tl.toSlateNode(e,l);return{path:tl.findPath(e,S),offset:u}},toSlateRange:(e,t,r)=>{var n,o,i,s,a,l,u,{exactMatch:c,suppressThrow:d}=r;if(e6(t)?t.anchorNode:t.startContainer){if(e6(t)){if(eb&&t.rangeCount>1){s=t.focusNode;var p=t.getRangeAt(0),h=t.getRangeAt(t.rangeCount-1);if(s instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&h.startContainer instanceof HTMLTableRowElement){function f(e){return e.childElementCount>0?f(e.children[0]):e}var m=p.startContainer,g=h.startContainer,y=f(m.children[p.startOffset]),x=f(g.children[h.startOffset]);a=0,o=x.childNodes.length>0?x.childNodes[0]:x,s=y.childNodes.length>0?y.childNodes[0]:y,x instanceof HTMLElement?i=x.innerHTML.length:i=0}else p.startContainer===s?(o=h.endContainer,i=h.endOffset,a=p.startOffset):(o=p.startContainer,i=p.endOffset,a=h.startOffset)}else o=t.anchorNode,i=t.anchorOffset,s=t.focusNode,a=t.focusOffset;l=ek&&e7(o)||eb?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else o=t.startContainer,i=t.startOffset,s=t.endContainer,a=t.endOffset,l=t.collapsed}if(null==o||null==s||null==i||null==a)throw Error("Cannot resolve a Slate range from DOM range: ".concat(t));eb&&null!==(n=s.textContent)&&void 0!==n&&n.endsWith("\n\n")&&a===s.textContent.length&&a--,"getAttribute"in s&&"false"===s.getAttribute("contenteditable")&&"true"!==s.getAttribute("data-slate-void")&&(s=o,a=(null===(u=o.textContent)||void 0===u?void 0:u.length)||0);var b=tl.toSlatePoint(e,[o,i],{exactMatch:c,suppressThrow:d});if(!b)return null;var _=l?b:tl.toSlatePoint(e,[s,a],{exactMatch:c,suppressThrow:d});if(!_)return null;var k={anchor:b,focus:_};return w.e6.isExpanded(k)&&w.e6.isForward(k)&&e4(s)&&w.ML.void(e,{at:k.focus,mode:"highest"})&&(k=w.ML.unhangRange(e,k,{voids:!0})),k}};function tu(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end),e)}function tc(e,t){var{start:r,end:n,text:o}=t,i=e.slice(r,n),s=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return r}(i,o),a=Math.min(i.length-s,o.length-s),l=function(e,t,r){for(var n=Math.min(e.length,t.length,r),o=0;o<n;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return n}(i,o,a),u={start:r+s,end:n-l,text:o.slice(s,o.length-l)};return u.start===u.end&&0===u.text.length?null:u}function td(e,t){var{path:r,offset:n}=t;if(!w.ML.hasPath(e,r))return null;var o=w.NB.get(e,r);if(!w.xv.isText(o))return null;var i=w.ML.above(e,{match:t=>w.W_.isElement(t)&&w.ML.isBlock(e,t),at:r});if(!i)return null;for(;n>o.text.length;){var s=w.ML.next(e,{at:r,match:w.xv.isText});if(!s||!w.y$.isDescendant(s[1],i[1]))return null;n-=o.text.length,o=s[0],r=s[1]}return{path:r,offset:n}}function tp(e,t){var r=td(e,t.anchor);if(!r)return null;if(w.e6.isCollapsed(t))return{anchor:r,focus:r};var n=td(e,t.focus);return n?{anchor:r,focus:n}:null}function th(e,t,r){var n=eY.get(e),o=null==n?void 0:n.find(e=>{var{path:r}=e;return w.y$.equals(r,t.path)});if(!o||t.offset<=o.diff.start)return w.E9.transform(t,r,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var s={path:t.path,offset:i.start},a=w.E9.transform(s,r,{affinity:"backward"});return a?{path:a.path,offset:a.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},u=w.E9.transform(l,r,{affinity:"backward"});return u?"split_node"===r.type&&w.y$.equals(r.path,t.path)&&l.offset<r.position&&i.start<r.position?u:{path:u.path,offset:u.offset+i.text.length-i.end+i.start}:null}function tf(e,t,r){var n=th(e,t.anchor,r);if(!n)return null;if(w.e6.isCollapsed(t))return{anchor:n,focus:n};var o=th(e,t.focus,r);return o?{anchor:n,focus:o}:null}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var tv=function(){},ty=e=>(null==e?void 0:e.constructor.name)==="DataTransfer",tx=eT?p.useLayoutEffect:p.useEffect,tb=["node"];function tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var t_={subtree:!0,childList:!0,characterData:!0},tk=ex?e=>{var t,{node:r}=e,n=ed(e,tb);if(!ex)return null;var o=em();var i=(t=(0,p.useRef)(!1),(0,p.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current),[s]=(0,p.useState)(()=>(function(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:n}=e,o=!1,i=null,s=null,a=null,l=0,u=!1,c=()=>{var e=eG.get(t);if(eG.delete(t),e){var{selection:r}=t,n=tp(t,e);n&&(!r||!w.e6.equals(n,r))&&w.YR.select(t,n)}},d=()=>{var e=eQ.get(t);if(eQ.delete(t),!!e){if(e.at){var r=w.E9.isPoint(e.at)?td(t,e.at):tp(t,e.at);if(!r)return;var n=w.ML.range(t,r);(!t.selection||!w.e6.equals(t.selection,n))&&w.YR.select(t,r)}e.run()}},p=()=>{if(s&&(clearTimeout(s),s=null),a&&(clearTimeout(a),a=null),!y()&&!g()){c();return}!o&&(o=!0,setTimeout(()=>o=!1)),g()&&(o="action");var e=t.selection&&w.ML.rangeRef(t,t.selection,{affinity:"forward"});eq.set(t,t.marks),tv("flush",eQ.get(t),eY.get(t));for(var i=y();l=null===(p=eY.get(t))||void 0===p?void 0:p[0];){var l,p,h,f=eU.get(t);void 0!==f&&(eU.delete(t),t.marks=f),f&&!1===u&&(u=null);var m=function(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}(l);(!t.selection||!w.e6.equals(t.selection,m))&&w.YR.select(t,m),l.diff.text?w.ML.insertText(t,l.diff.text):w.ML.deleteFragment(t),eY.set(t,null===(h=eY.get(t))||void 0===h?void 0:h.filter(e=>{var{id:t}=e;return t!==l.id})),!function(e,t){var{path:r,diff:n}=t;if(!w.ML.hasPath(e,r))return!1;var o=w.NB.get(e,r);if(!w.xv.isText(o))return!1;if(n.start!==o.text.length||0===n.text.length)return o.text.slice(n.start,n.start+n.text.length)===n.text;var i=w.y$.next(r);if(!w.ML.hasPath(e,i))return!1;var s=w.NB.get(e,i);return w.xv.isText(s)&&s.text.startsWith(n.text)}(t,l)&&(i=!1,eQ.delete(t),eq.delete(t),o="action",eG.delete(t),r.cancel(),n.cancel(),null==e||e.unref())}var x=null==e?void 0:e.unref();if(x&&!eG.get(t)&&(!t.selection||!w.e6.equals(x,t.selection))&&w.YR.select(t,x),g()){d();return}i&&r(),r.flush(),n.flush(),c();var b=eq.get(t);eq.delete(t),void 0!==b&&(t.marks=b,t.onChange())},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=eB.get(t);if(!!r){if(y()||e){r.style.display="none";return}r.style.removeProperty("display")}},f=(e,r)=>{var n,o,i,s,a,u,c,d,p,f=null!==(p=eY.get(t))&&void 0!==p?p:[];eY.set(t,f);var m=w.NB.leaf(t,e),g=f.findIndex(t=>w.y$.equals(t.path,e));if(g<0){tc(m.text,r)&&f.push({path:e,diff:r,id:l++}),h();return}var y=(n=m.text,o=f[g].diff,i=r,s=Math.min(o.start,i.start),a=Math.max(0,Math.min(o.start+o.text.length,i.end)-i.start),u=tu(n,o,i),c=Math.max(i.start+i.text.length,o.start+o.text.length+(o.start+o.text.length>i.start?i.text.length:0)-a),d=u.slice(s,c),tc(n,{start:s,end:Math.max(o.end,i.end-o.text.length+(o.end-o.start)),text:d}));if(!y){f.splice(g,1),h();return}f[g]=tg(tg({},f[g]),{},{diff:y})},m=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u=!1,eG.delete(t),r.cancel(),n.cancel(),g()&&p(),eQ.set(t,{at:o,run:e}),a=setTimeout(p)},g=()=>!!eQ.get(t),y=()=>{var e;return!!(null!==(e=eY.get(t))&&void 0!==e&&e.length)},x=e=>{eG.set(t,e),s&&(clearTimeout(s),s=null);var{selection:r}=t;if(!!e){var n=!r||!w.y$.equals(r.anchor.path,e.anchor.path),o=!r||!w.y$.equals(r.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(n&&u||o)&&(u=!1),(n||y())&&(s=setTimeout(p,200))}},b=()=>{!g()&&(a=setTimeout(p))};return{flush:p,scheduleFlush:b,hasPendingDiffs:y,hasPendingAction:g,hasPendingChanges:()=>g()||y(),isFlushing:()=>o,handleUserSelect:x,handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout(()=>{eZ.set(t,!1),p()},25)},handleCompositionStart:e=>{eZ.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{s&&(clearTimeout(s),s=null);var{inputType:r}=e,n=null,o=e.dataTransfer||e.data||void 0;!1!==u&&"insertText"!==r&&"insertCompositionText"!==r&&(u=!1);var[i]=e.getTargetRanges();i&&(n=tl.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!0}));var a=tl.getWindow(t).getSelection();if(!n&&a&&(i=a,n=tl.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!0})),!!(n=null!==(M=n)&&void 0!==M?M:t.selection)){var l=!0;if(r.startsWith("delete")){if(w.e6.isExpanded(n)){var[c,d]=w.e6.edges(n);if(w.NB.leaf(t,c.path).text.length===c.offset&&0===d.offset){var p=w.ML.next(t,{at:c.path,match:w.xv.isText});p&&w.y$.equals(p[1],d.path)&&(n={anchor:d,focus:d})}}var h=r.endsWith("Backward")?"backward":"forward",[g,y]=w.e6.edges(n),[_,k]=w.ML.leaf(t,g.path),C={text:"",start:g.offset,end:y.offset},A=eY.get(t),O=null==A?void 0:A.find(e=>w.y$.equals(e.path,k)),D=O?[O.diff,C]:[C];if(0===tu(_.text,...D).length&&(l=!1),w.e6.isExpanded(n)){if(l&&w.y$.equals(n.anchor.path,n.focus.path)){var S={path:n.anchor.path,offset:g.offset};return x(w.ML.range(t,S,S)),f(n.anchor.path,{text:"",end:y.offset,start:g.offset})}return m(()=>w.ML.deleteFragment(t,{direction:h}),{at:n})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return m(()=>w.ML.deleteFragment(t),{at:n});case"deleteContent":case"deleteContentForward":var{anchor:T}=n;if(l&&w.e6.isCollapsed(n)){var E=w.NB.leaf(t,T.path);if(T.offset<E.text.length)return f(T.path,{text:"",start:T.offset,end:T.offset+1})}return m(()=>w.ML.deleteForward(t),{at:n});case"deleteContentBackward":var M,j,{anchor:N}=n,P=e6(i)?i.isCollapsed:!!(null!==(j=i)&&void 0!==j&&j.collapsed);if(l&&P&&w.e6.isCollapsed(n)&&N.offset>0)return f(N.path,{text:"",start:N.offset-1,end:N.offset});return m(()=>w.ML.deleteBackward(t),{at:n});case"deleteEntireSoftLine":return m(()=>{w.ML.deleteBackward(t,{unit:"line"}),w.ML.deleteForward(t,{unit:"line"})},{at:n});case"deleteHardLineBackward":return m(()=>w.ML.deleteBackward(t,{unit:"block"}),{at:n});case"deleteSoftLineBackward":return m(()=>w.ML.deleteBackward(t,{unit:"line"}),{at:n});case"deleteHardLineForward":return m(()=>w.ML.deleteForward(t,{unit:"block"}),{at:n});case"deleteSoftLineForward":return m(()=>w.ML.deleteForward(t,{unit:"line"}),{at:n});case"deleteWordBackward":return m(()=>w.ML.deleteBackward(t,{unit:"word"}),{at:n});case"deleteWordForward":return m(()=>w.ML.deleteForward(t,{unit:"word"}),{at:n});case"insertLineBreak":return m(()=>w.ML.insertSoftBreak(t),{at:n});case"insertParagraph":return m(()=>w.ML.insertBreak(t),{at:n});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(ty(o))return m(()=>tl.insertData(t,o),{at:n});var B=null!=o?o:"";if(eU.get(t)&&(B=B.replace("\uFEFF","")),"insertText"===r&&/.*\n.*\n$/.test(B)&&(B=B.slice(0,-1)),B.includes("\n"))return m(()=>{var e=B.split("\n");e.forEach((r,n)=>{r&&w.ML.insertText(t,r),n!==e.length-1&&w.ML.insertSoftBreak(t)})},{at:n});if(w.y$.equals(n.anchor.path,n.focus.path)){var[I,L]=w.e6.edges(n),F={start:I.offset,end:L.offset,text:B};if(B&&u&&"insertCompositionText"===r){var z=u.start+u.text.search(/\S|$/);F.start+F.text.search(/\S|$/)===z+1&&F.end===u.start+u.text.length?(F.start-=1,u=null,b()):u=!1}else u="insertText"===r&&(null===u?F:!!(u&&w.e6.isCollapsed(n))&&u.end+u.text.length===I.offset&&tg(tg({},u),{},{text:u.text+B}));if(l){f(I.path,F);return}}return m(()=>w.ML.insertText(t,B),{at:n})}}},handleKeyDown:e=>{!y()&&(h(!0),setTimeout(h))},handleDomMutations:e=>{if(!(y()||g())){if(e.some(r=>ti(t,r,e))){var r;null===(r=e$.get(t))||void 0===r||r()}}},handleInput:()=>{(g()||!y())&&p()}}})(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({editor:o},n)));return!function(e,t,r){var[n]=(0,p.useState)(()=>new MutationObserver(t));tx(()=>{n.takeRecords()}),(0,p.useEffect)(()=>{if(!e.current)throw Error("Failed to attach MutationObserver, `node` is undefined");return n.observe(e.current,r),()=>n.disconnect()},[n,e,r])}(r,s.handleDomMutations,t_),eH.set(o,s.scheduleFlush),i&&s.flush(),s}:()=>null,tC=["anchor","focus"],tA=["anchor","focus"],tO=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>t.hasOwnProperty(r)&&e[r]===t[r]),tD=(e,t)=>{var r=ed(e,tC),n=ed(t,tA);return e[eK]===t[eK]&&tO(r,n)},tS=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],o=t[r];if(!w.e6.equals(n,o)||!tD(n,o))return!1}return!0},tT=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],o=t[r];if(n.anchor.offset!==o.anchor.offset||n.focus.offset!==o.focus.offset||!tD(n,o))return!1}return!0};function tE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var tM=e=>{var{isLast:t,leaf:r,parent:n,text:o}=e,i=em(),s=tl.findPath(i,o),a=w.y$.parent(s),l=!!r[eJ];return i.isVoid(n)?p.createElement(tP,{length:w.NB.string(n).length}):""!==r.text||n.children[n.children.length-1]!==o||i.isInline(n)||""!==w.ML.string(i,a)?""===r.text?p.createElement(tP,{isMarkPlaceholder:l}):t&&"\n"===r.text.slice(-1)?p.createElement(tj,{isTrailing:!0,text:r.text}):p.createElement(tj,{text:r.text}):p.createElement(tP,{isLineBreak:!0,isMarkPlaceholder:l})},tj=e=>{var{text:t,isTrailing:r=!1}=e,n=(0,p.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(r?"\n":""),[i]=(0,p.useState)(o);return tx(()=>{var e=o();n.current&&n.current.textContent!==e&&(n.current.textContent=e)}),p.createElement(tN,{ref:n},i)},tN=(0,p.memo)((0,p.forwardRef)((e,t)=>p.createElement("span",{"data-slate-string":!0,ref:t},e.children))),tP=e=>{var{length:t=0,isLineBreak:r=!1,isMarkPlaceholder:n=!1}=e,o={"data-slate-zero-width":r?"n":"z","data-slate-length":t};return n&&(o["data-slate-mark-placeholder"]=!0),p.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tE(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},o),ex&&r?null:"\uFEFF",r?p.createElement("br",null):null)};function tB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tB(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tB(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var tL=ex?300:0;function tF(e){e.current&&(clearTimeout(e.current),e.current=null)}var tz=p.memo(e=>{var{leaf:t,isLast:r,text:n,parent:o,renderPlaceholder:i,renderLeaf:s=e=>p.createElement(tR,tI({},e))}=e,a=em(),l=(0,p.useRef)(null),u=(0,p.useRef)(null),[c,d]=(0,p.useState)(!1),h=(0,p.useRef)(null),f=(0,p.useCallback)(e=>{if(r=l,n=null==e,r.current&&(r.current.disconnect(),n&&(r.current=null)),null==e){;eB.delete(a),null===(o=t.onPlaceholderResize)||void 0===o||o.call(t,null)}else{if(eB.set(a,e),!l.current){var r,n,o,i=window.ResizeObserver||el;l.current=new i(()=>{var r;null===(r=t.onPlaceholderResize)||void 0===r||r.call(t,e)})}l.current.observe(e),u.current=e}},[u,t,a]),m=p.createElement(tM,{isLast:r,leaf:t,parent:o,text:n}),g=!!t[eK];if((0,p.useEffect)(()=>(g?!h.current&&(h.current=setTimeout(()=>{d(!0),h.current=null},tL)):(tF(h),d(!1)),()=>tF(h)),[g,d]),g&&c){var y={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:ew?"inherit":void 0},contentEditable:!1,ref:f}};m=p.createElement(p.Fragment,null,i(y),m)}return s({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:n})},(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&w.xv.equals(t.leaf,e.leaf)&&t.leaf[eK]===e.leaf[eK]),tR=e=>{var{attributes:t,children:r}=e;return p.createElement("span",tI({},t),r)},tX=p.memo(e=>{for(var{decorations:t,isLast:r,parent:n,renderPlaceholder:o,renderLeaf:i,text:s}=e,a=em(),l=(0,p.useRef)(null),u=w.xv.decorations(s,t),c=tl.findKey(a,s),d=[],h=0;h<u.length;h++){var f=u[h];d.push(p.createElement(tz,{isLast:r&&h===u.length-1,key:"".concat(c.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:s,parent:n,renderLeaf:i}))}var m=(0,p.useCallback)(e=>{var t=ez.get(a);e?(null==t||t.set(c,e),eL.set(s,e),eI.set(e,s)):(null==t||t.delete(c),eL.delete(s),l.current&&eI.delete(l.current)),l.current=e},[l,a,c,s]);return p.createElement("span",{"data-slate-node":"text",ref:m},d)},(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&tT(t.decorations,e.decorations));function tZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tW(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tZ(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tZ(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var tV=p.memo(e=>{var{decorations:t,element:r,renderElement:n=e=>p.createElement(tH,tW({},e)),renderPlaceholder:o,renderLeaf:i,selection:s}=e,l=em(),u=t$(),c=l.isInline(r),d=tl.findKey(l,r),h=(0,p.useCallback)(e=>{var t=ez.get(l);e?(null==t||t.set(d,e),eL.set(r,e),eI.set(e,r)):(null==t||t.delete(d),eL.delete(r))},[l,d,r]),f=tQ({decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:i,selection:s}),m={"data-slate-node":"element",ref:h};if(c&&(m["data-slate-inline"]=!0),!c&&w.ML.hasInlines(l,r)){var g=w.NB.string(r),y=a()(g);"rtl"===y&&(m.dir=y)}if(w.ML.isVoid(l,r)){m["data-slate-void"]=!0,!u&&c&&(m.contentEditable=!1);var[[x]]=w.NB.texts(r);f=p.createElement(c?"span":"div",{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},p.createElement(tX,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:x})),eM.set(x,0),ej.set(x,r)}return n({attributes:m,children:f,element:r})},(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&tS(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&w.e6.equals(e.selection,t.selection))),tH=e=>{var{attributes:t,children:r,element:n}=e,o=em().isInline(n)?"span":"div";return p.createElement(o,tW(tW({},t),{},{style:{position:"relative"}}),r)},tU=(0,p.createContext)(()=>[]),tq=()=>(0,p.useContext)(tU),tY=(0,p.createContext)(!1),tQ=e=>{for(var{decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:i,selection:s}=e,a=tq(),l=em(),u=tl.findPath(l,r),c=[],d=w.W_.isElement(r)&&!l.isInline(r)&&w.ML.hasInlines(l,r),h=0;h<r.children.length;h++){var f=u.concat(h),m=r.children[h],g=tl.findKey(l,m),y=w.ML.range(l,f),x=s&&w.e6.intersection(y,s),b=a([m,f]);for(var _ of t){var k=w.e6.intersection(_,y);k&&b.push(k)}w.W_.isElement(m)?c.push(p.createElement(tY.Provider,{key:"provider-".concat(g.id),value:!!x},p.createElement(tV,{decorations:b,element:m,key:g.id,renderElement:n,renderPlaceholder:o,renderLeaf:i,selection:x}))):c.push(p.createElement(tX,{decorations:b,key:g.id,isLast:d&&h===r.children.length-1,parent:r,renderPlaceholder:o,renderLeaf:i,text:m})),eM.set(m,h),ej.set(m,r)}return c},tG=(0,p.createContext)(!1),t$=()=>(0,p.useContext)(tG),tK=(0,p.createContext)(null),tJ=()=>{var e=(0,p.useContext)(tK);if(!e)throw Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t},t0={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},t1={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},t2={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},t4=e=>{var t=t0[e],r=t1[e],n=t2[e],o=t&&(0,eu.isHotkey)(t),i=r&&(0,eu.isHotkey)(r),s=n&&(0,eu.isHotkey)(n);return e=>!!(o&&o(e)||ey&&i&&i(e)||!ey&&s&&s(e))||!1},t5={isBold:t4("bold"),isCompose:t4("compose"),isMoveBackward:t4("moveBackward"),isMoveForward:t4("moveForward"),isDeleteBackward:t4("deleteBackward"),isDeleteForward:t4("deleteForward"),isDeleteLineBackward:t4("deleteLineBackward"),isDeleteLineForward:t4("deleteLineForward"),isDeleteWordBackward:t4("deleteWordBackward"),isDeleteWordForward:t4("deleteWordForward"),isExtendBackward:t4("extendBackward"),isExtendForward:t4("extendForward"),isExtendLineBackward:t4("extendLineBackward"),isExtendLineForward:t4("extendLineForward"),isItalic:t4("italic"),isMoveLineBackward:t4("moveLineBackward"),isMoveLineForward:t4("moveLineForward"),isMoveWordBackward:t4("moveWordBackward"),isMoveWordForward:t4("moveWordForward"),isRedo:t4("redo"),isSoftBreak:t4("insertSoftBreak"),isSplitBlock:t4("splitBlock"),isTransposeCharacter:t4("transposeCharacter"),isUndo:t4("undo")},t6=(e,t)=>{var r=[],n=()=>{r=[]};return{registerMutations:n=>{if(!!t.current){var o=n.filter(t=>ti(e,t,n));r.push(...o)}},restoreDOM:function(){r.length>0&&(r.reverse().forEach(e=>{if("characterData"!==e.type)e.removedNodes.forEach(t=>{e.target.insertBefore(t,e.nextSibling)}),e.addedNodes.forEach(t=>{e.target.removeChild(t)})}),n())},clear:n}},t3={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class t8 extends p.Component{constructor(){super(...arguments),eh(this,"context",null),eh(this,"manager",null),eh(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,t3)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=t6(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,r,n,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();return null!=o&&o.length&&(null===(n=this.manager)||void 0===n||n.registerMutations(o)),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(r=this.manager)||void 0===r||r.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}eh(t8,"contextType",ef);var t9=ex?t8:e=>{var{children:t}=e;return p.createElement(p.Fragment,null,t)},t7=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],re=["text"];function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var rn=e=>p.createElement(p.Fragment,null,tQ(e)),ro=e=>{var t,r,n,o,i=(0,p.useCallback)(e=>p.createElement(ri,rr({},e)),[]),{autoFocus:s,decorate:l=rs,onDOMBeforeInput:c,placeholder:h,readOnly:f=!1,renderElement:m,renderLeaf:g,renderPlaceholder:y=i,scrollSelectionIntoView:x=ra,style:b={},as:_="div",disableDefaultStyles:k=!1}=e,C=ed(e,t7),A=tJ(),[O,D]=(0,p.useState)(!1),S=(0,p.useRef)(null),T=(0,p.useRef)([]),[E,M]=(0,p.useState)();var{onUserInput:j,receivedUserInput:N}=(t=em(),r=(0,p.useRef)(!1),n=(0,p.useRef)(0),o=(0,p.useCallback)(()=>{if(!r.current){r.current=!0;var e=tl.getWindow(t);e.cancelAnimationFrame(n.current),n.current=e.requestAnimationFrame(()=>{r.current=!1})}},[t]),(0,p.useEffect)(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:r,onUserInput:o}),[,P]=(0,p.useReducer)(e=>e+1,0);e$.set(A,P),eR.set(A,f);var B=(0,p.useMemo)(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);(0,p.useEffect)(()=>{S.current&&s&&S.current.focus()},[s]);var I=(0,p.useRef)(),L=(0,p.useMemo)(()=>d()(()=>{var e=I.current;if((ex||!tl.isComposing(A))&&(!B.isUpdatingSelection||null!=e&&e.isFlushing())&&!B.isDraggingInternally){var t=tl.findDocumentOrShadowRoot(A),{activeElement:r}=t,n=tl.toDOMNode(A,A),o=t.getSelection();if(r===n?(B.latestElement=r,eX.set(A,!0)):eX.delete(A),!o)return w.YR.deselect(A);var{anchorNode:i,focusNode:s}=o,a=tl.hasEditableTarget(A,i)||tl.isTargetInsideNonReadonlyVoid(A,i),l=tl.hasEditableTarget(A,s)||tl.isTargetInsideNonReadonlyVoid(A,s);if(a&&l){var u=tl.toSlateRange(A,o,{exactMatch:!1,suppressThrow:!0});u&&(tl.isComposing(A)||null!=e&&e.hasPendingChanges()||null!=e&&e.isFlushing()?null==e||e.handleUserSelect(u):w.YR.select(A,u))}f&&(!a||!l)&&w.YR.deselect(A)}},100),[A,f,B]),F=(0,p.useMemo)(()=>u()(L,0),[L]);I.current=tk({node:S,onDOMSelectionChange:L,scheduleOnDOMSelectionChange:F}),tx(()=>{S.current&&(r=e1(S.current))?(eN.set(A,r),eP.set(A,S.current),eL.set(A,S.current),eI.set(S.current,A)):eL.delete(A);var e,t,r,{selection:n}=A,o=tl.findDocumentOrShadowRoot(A).getSelection();if(!(!o||!tl.isFocused(A)||null!==(e=I.current)&&void 0!==e&&e.hasPendingAction())){var i=e=>{var t="None"!==o.type;if(!!n||!!t){var r=o.focusNode;if(eb&&o.rangeCount>1){var i=o.getRangeAt(0),s=o.getRangeAt(o.rangeCount-1);u=i.startContainer===r?s.endContainer:i.startContainer}else u=o.anchorNode;var a=eP.get(A),l=!1;if(a.contains(u)&&a.contains(r)&&(l=!0),t&&l&&n&&!e){var u,c,d=tl.toSlateRange(A,o,{exactMatch:!0,suppressThrow:!0});if(d&&w.e6.equals(d,n)&&(!B.hasMarkPlaceholder||null!==(c=u)&&void 0!==c&&null!==(c=c.parentElement)&&void 0!==c&&c.hasAttribute("data-slate-mark-placeholder")))return}if(n&&!tl.hasRange(A,n)){A.selection=tl.toSlateRange(A,o,{exactMatch:!1,suppressThrow:!0});return}B.isUpdatingSelection=!0;var p=n&&tl.toDOMRange(A,n);return p?(tl.isComposing(A)&&!ex?o.collapseToEnd():w.e6.isBackward(n)?o.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):o.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset),x(A,p)):o.removeAllRanges(),p}};o.rangeCount<=1&&i();var s=(null===(t=I.current)||void 0===t?void 0:t.isFlushing())==="action";if(!ex||!s){setTimeout(()=>{B.isUpdatingSelection=!1});return}var a=null,l=requestAnimationFrame(()=>{if(s){var e=e=>{try{tl.toDOMNode(A,A).focus(),i(e)}catch(e){}};e(),a=setTimeout(()=>{e(!0),B.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(l),a&&clearTimeout(a)}}});var z=(0,p.useCallback)(e=>{if(j(),!f&&tl.hasEditableTarget(A,e.target)&&!rc(e,c)){if(I.current)return I.current.handleDOMBeforeInput(e);F.flush(),L.flush();var{selection:t}=A,{inputType:r}=e,n=e.dataTransfer||e.data||void 0,o="insertCompositionText"===r||"deleteCompositionText"===r;if(o&&tl.isComposing(A))return;var i=!1;if("insertText"===r&&t&&w.e6.isCollapsed(t)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==t.anchor.offset){i=!0,A.marks&&(i=!1);var{anchor:s}=t,[a,l]=tl.toDOMPoint(A,s),u=null===(h=a.parentElement)||void 0===h?void 0:h.closest("a"),d=tl.getWindow(A);if(i&&u&&tl.hasDOMNode(A,u)){var p,h,m,g,y=null==d?void 0:d.document.createTreeWalker(u,NodeFilter.SHOW_TEXT).lastChild();y===a&&(null===(g=y.textContent)||void 0===g?void 0:g.length)===l&&(i=!1)}if(i&&a.parentElement&&(null==d||null===(m=d.getComputedStyle(a.parentElement))||void 0===m?void 0:m.whiteSpace)==="pre"){var x=w.ML.above(A,{at:s.path,match:e=>w.W_.isElement(e)&&w.ML.isBlock(A,e)});x&&w.NB.string(x[0]).includes(" ")&&(i=!1)}}if(!r.startsWith("delete")||r.startsWith("deleteBy")){var[b]=e.getTargetRanges();if(b){var _=tl.toSlateRange(A,b,{exactMatch:!1,suppressThrow:!1});if(!t||!w.e6.equals(t,_)){i=!1;var k=!o&&A.selection&&w.ML.rangeRef(A,A.selection);w.YR.select(A,_),k&&eW.set(A,k)}}}if(!o){if(!i&&e.preventDefault(),t&&w.e6.isExpanded(t)&&r.startsWith("delete")){var C=r.endsWith("Backward")?"backward":"forward";w.ML.deleteFragment(A,{direction:C});return}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":w.ML.deleteFragment(A);break;case"deleteContent":case"deleteContentForward":w.ML.deleteForward(A);break;case"deleteContentBackward":w.ML.deleteBackward(A);break;case"deleteEntireSoftLine":w.ML.deleteBackward(A,{unit:"line"}),w.ML.deleteForward(A,{unit:"line"});break;case"deleteHardLineBackward":w.ML.deleteBackward(A,{unit:"block"});break;case"deleteSoftLineBackward":w.ML.deleteBackward(A,{unit:"line"});break;case"deleteHardLineForward":w.ML.deleteForward(A,{unit:"block"});break;case"deleteSoftLineForward":w.ML.deleteForward(A,{unit:"line"});break;case"deleteWordBackward":w.ML.deleteBackward(A,{unit:"word"});break;case"deleteWordForward":w.ML.deleteForward(A,{unit:"word"});break;case"insertLineBreak":w.ML.insertSoftBreak(A);break;case"insertParagraph":w.ML.insertBreak(A);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===r&&tl.isComposing(A)&&(D(!1),eZ.set(A,!1)),(null==n?void 0:n.constructor.name)==="DataTransfer"?tl.insertData(A,n):"string"==typeof n&&(i?T.current.push(()=>w.ML.insertText(A,n)):w.ML.insertText(A,n))}var O=null===(p=eW.get(A))||void 0===p?void 0:p.unref();eW.delete(A),O&&(!A.selection||!w.e6.equals(A.selection,O))&&w.YR.select(A,O)}}},[A,L,j,c,f,F]),R=(0,p.useCallback)(e=>{null==e?(L.cancel(),F.cancel(),eP.delete(A),eL.delete(A),S.current&&eE&&S.current.removeEventListener("beforeinput",z)):eE&&e.addEventListener("beforeinput",z),S.current=e},[L,F,A,z]);tx(()=>{var e=tl.getWindow(A);return e.document.addEventListener("selectionchange",F),()=>{e.document.removeEventListener("selectionchange",F)}},[F]);var X=l([A,[]]),Z=h&&1===A.children.length&&1===Array.from(w.NB.texts(A)).length&&""===w.NB.string(A)&&!O,W=(0,p.useCallback)(e=>{if(e&&Z){var t;M(null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height)}else M(void 0)},[Z]);if(Z){var V=w.ML.start(A,[]);X.push({[eK]:!0,placeholder:h,onPlaceholderResize:W,anchor:V,focus:V})}var{marks:H}=A;if(B.hasMarkPlaceholder=!1,A.selection&&w.e6.isCollapsed(A.selection)&&H){var{anchor:U}=A.selection,q=w.NB.leaf(A,U.path),Y=ed(q,re);if(!w.xv.equals(q,H,{loose:!0})){B.hasMarkPlaceholder=!0;var Q=Object.fromEntries(Object.keys(Y).map(e=>[e,null]));X.push(rr(rr(rr({[eJ]:!0},Q),H),{},{anchor:U,focus:U}))}}return(0,p.useEffect)(()=>{setTimeout(()=>{var{selection:e}=A;if(e){var{anchor:t}=e,r=w.NB.leaf(A,t.path);if(H&&!w.xv.equals(r,H,{loose:!0})){eU.set(A,H);return}}eU.delete(A)})}),p.createElement(tG.Provider,{value:f},p.createElement(tU.Provider,{value:l},p.createElement(t9,{node:S,receivedUserInput:N},p.createElement(_,rr(rr({role:f?void 0:"textbox","aria-multiline":!f||void 0},C),{},{spellCheck:(!!eE||!eT)&&C.spellCheck,autoCorrect:eE||!eT?C.autoCorrect:"false",autoCapitalize:eE||!eT?C.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!f,zindex:-1,suppressContentEditableWarning:!0,ref:R,style:rr(rr({},k?{}:rr({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),b),onBeforeInput:(0,p.useCallback)(e=>{if(!eE&&!f&&!rl(e,C.onBeforeInput)&&tl.hasSelectableTarget(A,e.target)&&(e.preventDefault(),!tl.isComposing(A))){var t=e.data;w.ML.insertText(A,t)}},[C.onBeforeInput,A,f]),onInput:(0,p.useCallback)(e=>{if(!rl(e,C.onInput)){if(I.current){I.current.handleInput();return}for(var t of T.current)t();T.current=[]}},[C.onInput]),onBlur:(0,p.useCallback)(e=>{if(f||B.isUpdatingSelection||!tl.hasSelectableTarget(A,e.target)||rl(e,C.onBlur))return;var t=tl.findDocumentOrShadowRoot(A);if(B.latestElement===t.activeElement)return;var{relatedTarget:r}=e;if(!(r===tl.toDOMNode(A,A)||e4(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&e5(r)&&tl.hasDOMNode(A,r)){var n=tl.toSlateNode(A,r);if(w.W_.isElement(n)&&!A.isVoid(n))return}if(ew){var o=t.getSelection();null==o||o.removeAllRanges()}eX.delete(A)}},[f,B.isUpdatingSelection,B.latestElement,A,C.onBlur]),onClick:(0,p.useCallback)(e=>{if(tl.hasTarget(A,e.target)&&!rl(e,C.onClick)&&e5(e.target)){var t=tl.toSlateNode(A,e.target),r=tl.findPath(A,t);if(!w.ML.hasPath(A,r)||w.NB.get(A,r)!==t)return;if(3===e.detail&&r.length>=1){var n=r;if(!(w.W_.isElement(t)&&w.ML.isBlock(A,t))){var o,i=w.ML.above(A,{match:e=>w.W_.isElement(e)&&w.ML.isBlock(A,e),at:r});n=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:r.slice(0,1)}var s=w.ML.range(A,n);w.YR.select(A,s);return}if(!f){var a=w.ML.start(A,r),l=w.ML.end(A,r),u=w.ML.void(A,{at:a}),c=w.ML.void(A,{at:l});if(u&&c&&w.y$.equals(u[1],c[1])){var d=w.ML.range(A,a);w.YR.select(A,d)}}}},[A,C.onClick,f]),onCompositionEnd:(0,p.useCallback)(e=>{if(tl.hasSelectableTarget(A,e.target)){var t;if(tl.isComposing(A)&&Promise.resolve().then(()=>{D(!1),eZ.set(A,!1)}),null===(t=I.current)||void 0===t||t.handleCompositionEnd(e),!rl(e,C.onCompositionEnd)&&!ex){if(!ew&&!eO&&!ev&&!eS&&!eD&&e.data){var r=eU.get(A);eU.delete(A),void 0!==r&&(eq.set(A,A.marks),A.marks=r),w.ML.insertText(A,e.data);var n=eq.get(A);eq.delete(A),void 0!==n&&(A.marks=n)}}}},[C.onCompositionEnd,A]),onCompositionUpdate:(0,p.useCallback)(e=>{tl.hasSelectableTarget(A,e.target)&&!rl(e,C.onCompositionUpdate)&&!tl.isComposing(A)&&(D(!0),eZ.set(A,!0))},[C.onCompositionUpdate,A]),onCompositionStart:(0,p.useCallback)(e=>{if(tl.hasSelectableTarget(A,e.target)){if(null===(t=I.current)||void 0===t||t.handleCompositionStart(e),!rl(e,C.onCompositionStart)&&!ex){D(!0);var t,{selection:r}=A;if(r){if(w.e6.isExpanded(r)){w.ML.deleteFragment(A);return}var n=w.ML.above(A,{match:e=>w.W_.isElement(e)&&w.ML.isInline(A,e),mode:"highest"});if(n){var[,o]=n;if(w.ML.isEnd(A,r.anchor,o)){var i=w.ML.after(A,o);w.YR.setSelection(A,{anchor:i,focus:i})}}}}}},[C.onCompositionStart,A]),onCopy:(0,p.useCallback)(e=>{tl.hasSelectableTarget(A,e.target)&&!rl(e,C.onCopy)&&!ru(e)&&(e.preventDefault(),tl.setFragmentData(A,e.clipboardData,"copy"))},[C.onCopy,A]),onCut:(0,p.useCallback)(e=>{if(!f&&tl.hasSelectableTarget(A,e.target)&&!rl(e,C.onCut)&&!ru(e)){e.preventDefault(),tl.setFragmentData(A,e.clipboardData,"cut");var{selection:t}=A;if(t){if(w.e6.isExpanded(t))w.ML.deleteFragment(A);else{var r=w.NB.parent(A,t.anchor.path);w.ML.isVoid(A,r)&&w.YR.delete(A)}}}},[f,A,C.onCut]),onDragOver:(0,p.useCallback)(e=>{if(tl.hasTarget(A,e.target)&&!rl(e,C.onDragOver)){var t=tl.toSlateNode(A,e.target);w.W_.isElement(t)&&w.ML.isVoid(A,t)&&e.preventDefault()}},[C.onDragOver,A]),onDragStart:(0,p.useCallback)(e=>{if(!f&&tl.hasTarget(A,e.target)&&!rl(e,C.onDragStart)){var t=tl.toSlateNode(A,e.target),r=tl.findPath(A,t);if(w.W_.isElement(t)&&w.ML.isVoid(A,t)||w.ML.void(A,{at:r,voids:!0})){var n=w.ML.range(A,r);w.YR.select(A,n)}B.isDraggingInternally=!0,tl.setFragmentData(A,e.dataTransfer,"drag")}},[f,A,C.onDragStart,B]),onDrop:(0,p.useCallback)(e=>{if(!f&&tl.hasTarget(A,e.target)&&!rl(e,C.onDrop)){e.preventDefault();var t=A.selection,r=tl.findEventRange(A,e),n=e.dataTransfer;w.YR.select(A,r),B.isDraggingInternally&&t&&!w.e6.equals(t,r)&&!w.ML.void(A,{at:r,voids:!0})&&w.YR.delete(A,{at:t}),tl.insertData(A,n),!tl.isFocused(A)&&tl.focus(A)}B.isDraggingInternally=!1},[f,A,C.onDrop,B]),onDragEnd:(0,p.useCallback)(e=>{!f&&B.isDraggingInternally&&C.onDragEnd&&tl.hasTarget(A,e.target)&&C.onDragEnd(e),B.isDraggingInternally=!1},[f,B,C,A]),onFocus:(0,p.useCallback)(e=>{if(!f&&!B.isUpdatingSelection&&tl.hasEditableTarget(A,e.target)&&!rl(e,C.onFocus)){var t=tl.toDOMNode(A,A),r=tl.findDocumentOrShadowRoot(A);if(B.latestElement=r.activeElement,eb&&e.target!==t){t.focus();return}eX.set(A,!0)}},[f,B,A,C.onFocus]),onKeyDown:(0,p.useCallback)(e=>{if(!f&&tl.hasEditableTarget(A,e.target)){null===(t=I.current)||void 0===t||t.handleKeyDown(e);var t,{nativeEvent:r}=e;if(tl.isComposing(A)&&!1===r.isComposing&&(eZ.set(A,!1),D(!1)),!(rl(e,C.onKeyDown)||tl.isComposing(A))){var{selection:n}=A,o=A.children[null!==n?n.focus.path[0]:0],i="rtl"===a()(w.NB.string(o));if(t5.isRedo(r)){e.preventDefault();"function"==typeof A.redo&&A.redo();return}if(t5.isUndo(r)){e.preventDefault();"function"==typeof A.undo&&A.undo();return}if(t5.isMoveLineBackward(r)){e.preventDefault(),w.YR.move(A,{unit:"line",reverse:!0});return}if(t5.isMoveLineForward(r)){e.preventDefault(),w.YR.move(A,{unit:"line"});return}if(t5.isExtendLineBackward(r)){e.preventDefault(),w.YR.move(A,{unit:"line",edge:"focus",reverse:!0});return}if(t5.isExtendLineForward(r)){e.preventDefault(),w.YR.move(A,{unit:"line",edge:"focus"});return}if(t5.isMoveBackward(r)){e.preventDefault(),n&&w.e6.isCollapsed(n)?w.YR.move(A,{reverse:!i}):w.YR.collapse(A,{edge:i?"end":"start"});return}if(t5.isMoveForward(r)){e.preventDefault(),n&&w.e6.isCollapsed(n)?w.YR.move(A,{reverse:i}):w.YR.collapse(A,{edge:i?"start":"end"});return}if(t5.isMoveWordBackward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)&&w.YR.collapse(A,{edge:"focus"}),w.YR.move(A,{unit:"word",reverse:!i});return}if(t5.isMoveWordForward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)&&w.YR.collapse(A,{edge:"focus"}),w.YR.move(A,{unit:"word",reverse:i});return}if(eE){if((ek||ew)&&n&&(t5.isDeleteBackward(r)||t5.isDeleteForward(r))&&w.e6.isCollapsed(n)){var s=w.NB.parent(A,n.anchor.path);if(w.W_.isElement(s)&&w.ML.isVoid(A,s)&&(w.ML.isInline(A,s)||w.ML.isBlock(A,s))){e.preventDefault(),w.ML.deleteBackward(A,{unit:"block"});return}}}else{if(t5.isBold(r)||t5.isItalic(r)||t5.isTransposeCharacter(r)){e.preventDefault();return}if(t5.isSoftBreak(r)){e.preventDefault(),w.ML.insertSoftBreak(A);return}if(t5.isSplitBlock(r)){e.preventDefault(),w.ML.insertBreak(A);return}if(t5.isDeleteBackward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"backward"}):w.ML.deleteBackward(A);return}if(t5.isDeleteForward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"forward"}):w.ML.deleteForward(A);return}if(t5.isDeleteLineBackward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"backward"}):w.ML.deleteBackward(A,{unit:"line"});return}if(t5.isDeleteLineForward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"forward"}):w.ML.deleteForward(A,{unit:"line"});return}if(t5.isDeleteWordBackward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"backward"}):w.ML.deleteBackward(A,{unit:"word"});return}if(t5.isDeleteWordForward(r)){e.preventDefault(),n&&w.e6.isExpanded(n)?w.ML.deleteFragment(A,{direction:"forward"}):w.ML.deleteForward(A,{unit:"word"});return}}}}},[f,A,C.onKeyDown]),onPaste:(0,p.useCallback)(e=>{!f&&tl.hasEditableTarget(A,e.target)&&!rl(e,C.onPaste)&&(!eE||e8(e.nativeEvent)||ew)&&(e.preventDefault(),tl.insertData(A,e.clipboardData))},[f,A,C.onPaste])}),p.createElement(rn,{decorations:X,node:A,renderElement:m,renderPlaceholder:y,renderLeaf:g,selection:A.selection})))))},ri=e=>{var{attributes:t,children:r}=e;return p.createElement("span",rr({},t),r,ex&&p.createElement("br",null))},rs=()=>[],ra=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&w.e6.isCollapsed(e.selection))){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),!function(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(x(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:i,left:s}of x(e,b(t))){let e=i-n.top+n.bottom,t=s-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},rl=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},ru=e=>e5(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),rc=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented},rd=(0,p.createContext)(!1),rp=(0,p.createContext)({}),rh=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],rf=e=>{var t,r,n,o,{editor:i,children:s,onChange:a,onSelectionChange:l,onValueChange:u,initialValue:c}=e,d=ed(e,rh),[h,f]=p.useState(()=>{if(!w.NB.isNodeList(c))throw Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(w.o4.stringify(c)));if(!w.ML.isEditor(i))throw Error("[Slate] editor is invalid! You passed: ".concat(w.o4.stringify(i)));return i.children=c,Object.assign(i,d),{v:0,editor:i}});var{selectorContext:m,onChange:g}=(t=i,r=(0,p.useRef)([]).current,n=(0,p.useRef)({editor:t}).current,o=(0,p.useCallback)(e=>{n.editor=e,r.forEach(t=>t(e))},[r,n]),{selectorContext:(0,p.useMemo)(()=>({getSlate:()=>n.editor,addEventListener:e=>(r.push(e),()=>{r.splice(r.indexOf(e),1)})}),[r,n]),onChange:o}),y=(0,p.useCallback)(e=>{var t;if(a&&a(i.children),(null==e||null===(t=e.operation)||void 0===t?void 0:t.type)==="set_selection")null==l||l(i.selection);else null==u||u(i.children);f(e=>({v:e.v+1,editor:i})),g(i)},[i,g,a,l,u]);(0,p.useEffect)(()=>(eV.set(i,y),()=>{eV.set(i,()=>{})}),[i,y]);var[x,b]=(0,p.useState)(tl.isFocused(i));return(0,p.useEffect)(()=>{b(tl.isFocused(i))},[i]),tx(()=>{var e=()=>b(tl.isFocused(i));return eg>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})},[]),p.createElement(rp.Provider,{value:m},p.createElement(tK.Provider,{value:h},p.createElement(ef.Provider,{value:h.editor},p.createElement(rd.Provider,{value:x},s))))},rm=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},rg=(e,t,r)=>{var n=tl.toDOMRange(e,t).getBoundingClientRect(),o=tl.toDOMRange(e,r).getBoundingClientRect();return rm(n,o)&&rm(o,n)},rv=(e,t)=>{var r=w.ML.range(e,w.e6.end(t)),n=Array.from(w.ML.positions(e,{at:t})),o=0,i=n.length,s=Math.floor(i/2);if(rg(e,w.ML.range(e,n[o]),r))return w.ML.range(e,n[o],r);if(n.length<2)return w.ML.range(e,n[n.length-1],r);for(;s!==n.length&&s!==o;)rg(e,w.ML.range(e,n[s]),r)?i=s:o=s,s=Math.floor((o+i)/2);return w.ML.range(e,n[i],r)};function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(t){eh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var rb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",{apply:r,onChange:n,deleteBackward:o,addMark:i,removeMark:s}=e;return ez.set(e,new WeakMap),e.addMark=(t,r)=>{var n,o;null===(n=eH.get(e))||void 0===n||n(),!eU.get(e)&&null!==(o=eY.get(e))&&void 0!==o&&o.length&&eU.set(e,null),eq.delete(e),i(t,r)},e.removeMark=t=>{var r;!eU.get(e)&&null!==(r=eY.get(e))&&void 0!==r&&r.length&&eU.set(e,null),eq.delete(e),s(t)},e.deleteBackward=t=>{if("line"!==t)return o(t);if(e.selection&&w.e6.isCollapsed(e.selection)){var r=w.ML.above(e,{match:t=>w.W_.isElement(t)&&w.ML.isBlock(e,t),at:e.selection});if(r){var[,n]=r,i=w.ML.range(e,n,e.selection.anchor),s=rv(e,i);!w.e6.isCollapsed(s)&&w.YR.delete(e,{at:s})}}},e.apply=t=>{var n=[],o=[],i=eY.get(e);if(null!=i&&i.length){var s=i.map(e=>(function(e,t){var{path:r,diff:n,id:o}=e;switch(t.type){case"insert_text":if(!w.y$.equals(t.path,r)||t.offset>=n.end)return e;if(t.offset<=n.start)return{diff:{start:t.text.length+n.start,end:t.text.length+n.end,text:n.text},id:o,path:r};return{diff:{start:n.start,end:n.end+t.text.length,text:n.text},id:o,path:r};case"remove_text":if(!w.y$.equals(t.path,r)||t.offset>=n.end)return e;if(t.offset+t.text.length<=n.start)return{diff:{start:n.start-t.text.length,end:n.end-t.text.length,text:n.text},id:o,path:r};return{diff:{start:n.start,end:n.end-t.text.length,text:n.text},id:o,path:r};case"split_node":if(!w.y$.equals(t.path,r)||t.position>=n.end)return{diff:n,id:o,path:w.y$.transform(r,t,{affinity:"backward"})};if(t.position>n.start)return{diff:{start:n.start,end:Math.min(t.position,n.end),text:n.text},id:o,path:r};return{diff:{start:n.start-t.position,end:n.end-t.position,text:n.text},id:o,path:w.y$.transform(r,t,{affinity:"forward"})};case"merge_node":if(!w.y$.equals(t.path,r))return{diff:n,id:o,path:w.y$.transform(r,t)};return{diff:{start:n.start+t.position,end:n.end+t.position,text:n.text},id:o,path:w.y$.transform(r,t)}}var i=w.y$.transform(r,t);return i?{diff:n,path:i,id:o}:null})(e,t)).filter(Boolean);eY.set(e,s)}var a=eG.get(e);a&&eG.set(e,tf(e,a,t));var l=eQ.get(e);if(null!=l&&l.at){var u=w.E9.isPoint(null==l?void 0:l.at)?th(e,l.at,t):tf(e,l.at,t);eQ.set(e,u?rx(rx({},l),{},{at:u}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":n.push(...rw(e,t.path));break;case"set_selection":null===(d=eW.get(e))||void 0===d||d.unref(),eW.delete(e);break;case"insert_node":case"remove_node":n.push(...rw(e,w.y$.parent(t.path)));break;case"merge_node":var c=w.y$.previous(t.path);n.push(...rw(e,c));break;case"move_node":var d,p,h=w.y$.common(w.y$.parent(t.path),w.y$.parent(t.newPath));n.push(...rw(e,h)),w.y$.isBefore(t.path,t.newPath)?(n.push(...rw(e,w.y$.parent(t.path))),p=t.newPath):(n.push(...rw(e,w.y$.parent(t.newPath))),p=t.path);var f=w.NB.get(e,w.y$.parent(p)),m=tl.findKey(e,f);o.push([w.ML.pathRef(e,w.y$.parent(p)),m])}for(var[g,y]of(r(t),n)){var[x]=w.ML.node(e,g);eF.set(x,y)}for(var[b,_]of o)if(b.current){var[k]=w.ML.node(e,b.current);eF.set(k,_)}},e.setFragmentData=r=>{var{selection:n}=e;if(!n)return;var[o,i]=w.e6.edges(n),s=w.ML.void(e,{at:o.path}),a=w.ML.void(e,{at:i.path});if(!w.e6.isCollapsed(n)||!!s){var l=tl.toDOMRange(e,n),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach(e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)}),a){var[d]=a,p=l.cloneRange(),h=tl.toDOMNode(e,d);p.setEndAfter(h),u=p.cloneContents()}if(s&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach(e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),e3(c)){var f=c.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),u.appendChild(f),c=f}var m=JSON.stringify(e.getFragment()),g=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",g),r.setData("application/".concat(t),g);var y=u.ownerDocument.createElement("div");return y.appendChild(u),y.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(y),r.setData("text/html",y.innerHTML),r.setData("text/plain",tr(y)),u.ownerDocument.body.removeChild(y),r}},e.insertData=t=>{!e.insertFragmentData(t)&&e.insertTextData(t)},e.insertFragmentData=r=>{var n=r.getData("application/".concat(t))||to(r);if(n){var o=JSON.parse(decodeURIComponent(window.atob(n)));return e.insertFragment(o),!0}return!1},e.insertTextData=t=>{var r=t.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),o=!1;for(var i of n)o&&w.YR.splitNodes(e,{always:!0}),e.insertText(i),o=!0;return!0}return!1},e.onChange=t=>{(eg<18?ec.unstable_batchedUpdates:e=>e())(()=>{var r=eV.get(e);r&&r(t),n(t)})},e},rw=(e,t)=>{var r=[];for(var[n,o]of w.ML.levels(e,{at:t})){var i=tl.findKey(e,n);r.push([o,i])}return r}},878011:function(e,t,r){"use strict";r.d(t,{E9:function(){return V},Jh:function(){return t3},ML:function(){return R},NB:function(){return P},OX:function(){return L},W_:function(){return E},YR:function(){return eS},e6:function(){return S},o4:function(){return U},xv:function(){return $},y$:function(){return y}});var n,o,i=r(640652),s=r(61111),a={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var o=y.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},l={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var o=V.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},u={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var o=S.transform(r,t,{affinity:n});e.current=o,null==o&&e.unref()}}},c=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,y={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=y.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return -1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return y.equals(n,o)&&i>s},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return y.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return y.equals(n,o)&&i<s},equals:(e,t)=>e.length===t.length&&e.every((e,r)=>e===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===y.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===y.compare(e,t),isBefore:(e,t)=>-1===y.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===y.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===y.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===y.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===y.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&y.equals(r,n)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(0===e.length)throw Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!y.isAncestor(t,e)&&!y.equals(e,t))throw Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var n=[...e],{affinity:o="forward"}=r;if(0===e.length)return n;switch(t.type){case"insert_node":var{path:i}=t;(y.equals(i,n)||y.endsBefore(i,n)||y.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:s}=t;if(y.equals(s,n)||y.isAncestor(s,n))return null;y.endsBefore(s,n)&&(n[s.length-1]-=1);break;case"merge_node":var{path:a,position:l}=t;y.equals(a,n)||y.endsBefore(a,n)?n[a.length-1]-=1:y.isAncestor(a,n)&&(n[a.length-1]-=1,n[a.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(y.equals(u,n)){if("forward"===o)n[n.length-1]+=1;else if("backward"!==o)return null}else y.endsBefore(u,n)?n[u.length-1]+=1:y.isAncestor(u,n)&&e[u.length]>=c&&(n[u.length-1]+=1,n[u.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(y.equals(d,p))break;if(y.isAncestor(d,n)||y.equals(d,n)){var h=p.slice();return y.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(n.slice(d.length))}y.isSibling(d,p)&&(y.isAncestor(p,n)||y.equals(p,n))?y.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:y.endsBefore(p,n)||y.equals(p,n)||y.isAncestor(p,n)?(y.endsBefore(d,n)&&(n[d.length-1]-=1),n[p.length-1]+=1):y.endsBefore(d,n)&&(y.equals(p,n)&&(n[p.length-1]+=1),n[d.length-1]-=1)}return n}};function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,r){var n;return n=function(e,t){if("object"!==x(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===x(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var k=(e,t,r)=>{switch(r.type){case"insert_node":var{path:n,node:o}=r,i=P.parent(e,n),s=n[n.length-1];if(s>i.children.length)throw Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(i.children.splice(s,0,o),t)for(var[a,l]of S.points(t))t[l]=V.transform(a,r);break;case"insert_text":var{path:u,offset:c,text:d}=r;if(0===d.length)break;var p=P.leaf(e,u),h=p.text.slice(0,c),f=p.text.slice(c);if(p.text=h+d+f,t)for(var[m,g]of S.points(t))t[g]=V.transform(m,r);break;case"merge_node":var{path:x}=r,b=P.get(e,x),w=y.previous(x),k=P.get(e,w),C=P.parent(e,x),A=x[x.length-1];if($.isText(b)&&$.isText(k))k.text+=b.text;else if($.isText(b)||$.isText(k))throw Error('Cannot apply a "merge_node" operation at path ['.concat(x,"] to nodes of different interfaces: ").concat(U.stringify(b)," ").concat(U.stringify(k)));else k.children.push(...b.children);if(C.children.splice(A,1),t)for(var[O,D]of S.points(t))t[D]=V.transform(O,r);break;case"move_node":var{path:T,newPath:E}=r;if(y.isAncestor(T,E))throw Error("Cannot move a path [".concat(T,"] to new path [").concat(E,"] because the destination is inside itself."));var M=P.get(e,T),j=P.parent(e,T),N=T[T.length-1];j.children.splice(N,1);var B=y.transform(T,r),I=P.get(e,y.parent(B)),L=B[B.length-1];if(I.children.splice(L,0,M),t)for(var[F,z]of S.points(t))t[z]=V.transform(F,r);break;case"remove_node":var{path:R}=r,X=R[R.length-1];if(P.parent(e,R).children.splice(X,1),t)for(var[Z,W]of S.points(t)){var H=V.transform(Z,r);if(null!=t&&null!=H)t[W]=H;else{var q=void 0,Y=void 0;for(var[Q,G]of P.texts(e))if(-1===y.compare(G,R))q=[Q,G];else{Y=[Q,G];break}var K=!1;q&&Y&&(K=y.equals(Y[1],R)?!y.hasPrevious(Y[1]):y.common(q[1],R).length<y.common(Y[1],R).length),q&&!K?(Z.path=q[1],Z.offset=q[0].text.length):Y?(Z.path=Y[1],Z.offset=0):t=null}}break;case"remove_text":var{path:J,offset:ee,text:et}=r;if(0===et.length)break;var er=P.leaf(e,J),en=er.text.slice(0,ee),eo=er.text.slice(ee+et.length);if(er.text=en+eo,t)for(var[ei,es]of S.points(t))t[es]=V.transform(ei,r);break;case"set_node":var{path:ea,properties:el,newProperties:eu}=r;if(0===ea.length)throw Error("Cannot set properties on the root node!");var ec=P.get(e,ea);for(var ed in eu){if("children"===ed||"text"===ed)throw Error('Cannot set the "'.concat(ed,'" property of nodes!'));var ep=eu[ed];null==ep?delete ec[ed]:ec[ed]=ep}for(var eh in el)!eu.hasOwnProperty(eh)&&delete ec[eh];break;case"set_selection":var{newProperties:ef}=r;if(null==ef)t=ef;else{if(null==t){if(!S.isRange(ef))throw Error('Cannot apply an incomplete "set_selection" operation properties '.concat(U.stringify(ef)," when there is no current selection."));t=_({},ef)}for(var em in ef){var eg=ef[em];if(null==eg){if("anchor"===em||"focus"===em)throw Error('Cannot remove the "'.concat(em,'" selection property'));delete t[em]}else t[em]=eg}}break;case"split_node":var ev,{path:ey,position:ex,properties:eb}=r;if(0===ey.length)throw Error('Cannot apply a "split_node" operation at path ['.concat(ey,"] because the root node cannot be split."));var ew=P.get(e,ey),e_=P.parent(e,ey),ek=ey[ey.length-1];if($.isText(ew)){var eC=ew.text.slice(0,ex),eA=ew.text.slice(ex);ew.text=eC,ev=_(_({},eb),{},{text:eA})}else{var eO=ew.children.slice(0,ex),eD=ew.children.slice(ex);ew.children=eO,ev=_(_({},eb),{},{children:eD})}if(e_.children.splice(ek+1,0,ev),t)for(var[eS,eT]of S.points(t))t[eT]=V.transform(eS,r)}return t},C=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if((0,i.P)(n)&&(0,i.P)(o)){if(!C(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var s=0;s<n.length;s++)if(n[s]!==o[s])return!1}else if(n!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function A(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++){if(r=i[n],!(t.indexOf(r)>=0))Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}}return o}var O=["anchor","focus"];function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var S={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return S.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=S.edges(e);return t},equals:(e,t)=>V.equals(e.anchor,t.anchor)&&V.equals(e.focus,t.focus),includes(e,t){if(S.isRange(t)){if(S.includes(e,t.anchor)||S.includes(e,t.focus))return!0;var[r,n]=S.edges(e),[o,i]=S.edges(t);return V.isBefore(r,o)&&V.isAfter(n,i)}var[s,a]=S.edges(e),l=!1,u=!1;return V.isPoint(t)?(l=V.compare(t,s)>=0,u=0>=V.compare(t,a)):(l=y.compare(t,s.path)>=0,u=0>=y.compare(t,a.path)),l&&u},intersection(e,t){var r=A(e,O),[n,o]=S.edges(e),[i,s]=S.edges(t),a=V.isBefore(n,i)?i:n,l=V.isBefore(o,s)?o:s;return V.isBefore(l,a)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({anchor:a,focus:l},r)},isBackward(e){var{anchor:t,focus:r}=e;return V.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return V.equals(t,r)},isExpanded:e=>!S.isCollapsed(e),isForward:e=>!S.isBackward(e),isRange:e=>(0,i.P)(e)&&V.isPoint(e.anchor)&&V.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=S.edges(e);return t},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,s.Uy)(e,e=>{if(null===e)return null;var n,o,{affinity:i="inward"}=r;if("inward"===i){var s=S.isCollapsed(e);S.isForward(e)?(n="forward",o=s?n:"backward"):(n="backward",o=s?n:"forward")}else"outward"===i?S.isForward(e)?(n="backward",o="forward"):(n="forward",o="backward"):(n=i,o=i);var a=V.transform(e.anchor,t,{affinity:n}),l=V.transform(e.focus,t,{affinity:o});if(!a||!l)return null;e.anchor=a,e.focus=l})}},T=e=>(0,i.P)(e)&&P.isNodeList(e.children)&&!R.isEditor(e),E={isAncestor:e=>(0,i.P)(e)&&P.isNodeList(e.children),isElement:T,isElementList:e=>Array.isArray(e)&&e.every(e=>E.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return T(e)&&e[r]===t},matches(e,t){for(var r in t){if("children"!==r){if(e[r]!==t[r])return!1}}return!0}},M=["children"],j=["text"],N=new WeakMap,P={ancestor(e,t){var r=P.get(e,t);if($.isText(r))throw Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(U.stringify(r)));return r},ancestors(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var n of y.ancestors(t,r)){var o=[P.ancestor(e,n),n];yield o}}()},child(e,t){if($.isText(e))throw Error("Cannot get the child of a text node: ".concat(U.stringify(e)));var r=e.children[t];if(null==r)throw Error("Cannot get child at index `".concat(t,"` in node: ").concat(U.stringify(e)));return r},children(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:n=!1}=r,o=P.ancestor(e,t),{children:i}=o,s=n?i.length-1:0;n?s>=0:s<i.length;){var a=P.child(o,s),l=t.concat(s);yield[a,l],s=n?s-1:s+1}}()},common(e,t,r){var n=y.common(t,r);return[P.get(e,n),n]},descendant(e,t){var r=P.get(e,t);if(R.isEditor(r))throw Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(U.stringify(r)));return r},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[r,n]of P.nodes(e,t))0!==n.length&&(yield[r,n])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[r,n]of P.nodes(e,t))E.isElement(r)&&(yield[r,n])}()},extractProps(e){if(E.isAncestor(e)){var t=A(e,M);return t}var t=A(e,j);return t},first(e,t){for(var r=t.slice(),n=P.get(e,r);n&&!$.isText(n)&&0!==n.children.length;){;n=n.children[0],r.push(0)}return[n,r]},fragment(e,t){if($.isText(e))throw Error("Cannot get a fragment starting from a root text node: ".concat(U.stringify(e)));return(0,s.Uy)({children:e.children},e=>{var[r,n]=S.edges(t);for(var[,o]of P.nodes(e,{reverse:!0,pass:e=>{var[,r]=e;return!S.includes(t,r)}})){if(!S.includes(t,o)){var i=P.parent(e,o),s=o[o.length-1];i.children.splice(s,1)}if(y.equals(o,n.path)){var a=P.leaf(e,o);a.text=a.text.slice(0,n.offset)}if(y.equals(o,r.path)){var l=P.leaf(e,o);l.text=l.text.slice(r.offset)}}R.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if($.isText(r)||!r.children[o])throw Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(U.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if($.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:e=>$.isText(e)||E.isElement(e)||R.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=N.get(e);if(void 0!==t)return t;var r=e.every(e=>P.isNode(e));return N.set(e,r),r},last(e,t){for(var r=t.slice(),n=P.get(e,r);n&&!$.isText(n)&&0!==n.children.length;){;var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=P.get(e,t);if(!$.isText(r))throw Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(U.stringify(r)));return r},levels(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var n of y.levels(t,r)){var o=P.get(e,n);yield[o,n]}}()},matches:(e,t)=>E.isElement(e)&&E.isElementProps(t)&&E.matches(e,t)||$.isText(e)&&$.isTextProps(t)&&$.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,s=new Set,a=[],l=e;!(i&&(n?y.isBefore(a,i):y.isAfter(a,i)));){;if(!s.has(l)&&(yield[l,a]),!s.has(l)&&!$.isText(l)&&0!==l.children.length&&(null==r||!1===r([l,a]))){s.add(l);var u=n?l.children.length-1:0;y.isAncestor(a,o)&&(u=o[a.length]),a=a.concat(u),l=P.get(e,a);continue}if(0===a.length)break;if(!n){var c=y.next(a);if(P.has(e,c)){a=c,l=P.get(e,a);continue}}if(n&&0!==a[a.length-1]){a=y.previous(a),l=P.get(e,a);continue}a=y.parent(a),l=P.get(e,a),s.add(l)}}()},parent(e,t){var r=y.parent(t),n=P.get(e,r);if($.isText(n))throw Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>$.isText(e)?e.text:e.children.map(P.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[r,n]of P.nodes(e,t))$.isText(r)&&(yield[r,n])}()}};function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var L={isNodeOperation:e=>L.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,i.P)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return y.isPath(e.path)&&P.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&y.isPath(e.path);case"merge_node":return"number"==typeof e.position&&y.isPath(e.path)&&(0,i.P)(e.properties);case"move_node":return y.isPath(e.path)&&y.isPath(e.newPath);case"set_node":return y.isPath(e.path)&&(0,i.P)(e.properties)&&(0,i.P)(e.newProperties);case"set_selection":return null===e.properties&&S.isRange(e.newProperties)||null===e.newProperties&&S.isRange(e.properties)||(0,i.P)(e.properties)&&(0,i.P)(e.newProperties);case"split_node":return y.isPath(e.path)&&"number"==typeof e.position&&(0,i.P)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>L.isOperation(e)),isSelectionOperation:e=>L.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>L.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return I(I({},e),{},{type:"remove_node"});case"insert_text":return I(I({},e),{},{type:"remove_text"});case"merge_node":return I(I({},e),{},{type:"split_node",path:y.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(y.equals(t,r))return e;if(y.isSibling(r,t))return I(I({},e),{},{path:t,newPath:r});var n=y.transform(r,e),o=y.transform(y.next(r),e);return I(I({},e),{},{path:n,newPath:o});case"remove_node":return I(I({},e),{},{type:"insert_node"});case"remove_text":return I(I({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:s}=e;return I(I({},e),{},{properties:s,newProperties:i});case"set_selection":var{properties:a,newProperties:l}=e;if(null==a)return I(I({},e),{},{properties:l,newProperties:null});if(null==l)return I(I({},e),{},{properties:null,newProperties:a});else return I(I({},e),{},{properties:l,newProperties:a});case"split_node":return I(I({},e),{},{type:"merge_node",path:y.next(e.path)})}}},F=new WeakMap,z=e=>{var t=F.get(e);if(void 0!==t)return t;if(!(0,i.P)(e))return!1;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,i.P)(e.marks))&&(null===e.selection||S.isRange(e.selection))&&P.isNodeList(e.children)&&L.isOperationList(e.operations);return F.set(e,r),r},R={above:(e,t)=>e.above(t),addMark(e,t,r){e.addMark(t,r)},after:(e,t,r)=>e.after(t,r),before:(e,t,r)=>e.before(t,r),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,r){e.insertFragment(t,r)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,r)=>e.isEdge(t,r),isEditor:e=>z(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,r)=>e.isEnd(t,r),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,r)=>e.isStart(t,r),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,r)=>e.leaf(t,r),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,r)=>e.node(t,r),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,r)=>e.parent(t,r),path:(e,t,r)=>e.path(t,r),pathRef:(e,t,r)=>e.pathRef(t,r),pathRefs:e=>e.pathRefs(),point:(e,t,r)=>e.point(t,r),pointRef:(e,t,r)=>e.pointRef(t,r),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,r)=>e.range(t,r),rangeRef:(e,t,r)=>e.rangeRef(t,r),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,r)=>e.string(t,r),unhangRange:(e,t,r)=>e.unhangRange(t,r),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)}},X=e=>Array.isArray(e)&&2===e.length&&e.every(y.isPath);function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var V={compare(e,t){var r=y.compare(e.path,t.path);if(0===r)return e.offset<t.offset?-1:e.offset>t.offset?1:0;return r},isAfter:(e,t)=>1===V.compare(e,t),isBefore:(e,t)=>-1===V.compare(e,t),equals:(e,t)=>e.offset===t.offset&&y.equals(e.path,t.path),isPoint:e=>(0,i.P)(e)&&"number"==typeof e.offset&&y.isPath(e.path),transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,s.Uy)(e,e=>{if(null===e)return null;var{affinity:n="forward"}=r,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=y.transform(o,t,r);break;case"insert_text":y.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===n)&&(e.offset+=t.text.length);break;case"merge_node":y.equals(t.path,o)&&(e.offset+=t.position),e.path=y.transform(o,t,r);break;case"remove_text":y.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(y.equals(t.path,o)||y.isAncestor(t.path,o))return null;e.path=y.transform(o,t,r);break;case"split_node":if(y.equals(t.path,o)){if(t.position===i&&null==n)return null;(t.position<i||t.position===i&&"forward"===n)&&(e.offset-=t.position,e.path=y.transform(o,t,W(W({},r),{},{affinity:"forward"})))}else e.path=y.transform(o,t,r)}})}},H=void 0,U={setScrubber(e){H=e},stringify:e=>JSON.stringify(e,H)},q=["text"],Y=["anchor","focus"];function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var $={equals(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function o(e){return A(e,q)}return C(n?A(e,q):e,n?A(t,q):t)},isText:e=>(0,i.P)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>$.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var r in t){if("text"!==r){if(!e.hasOwnProperty(r)||e[r]!==t[r])return!1}}return!0},decorations(e,t){var r=[G({},e)];for(var n of t){var o=A(n,Y),[i,s]=S.edges(n),a=[],l=0,u=i.offset,c=s.offset;for(var d of r){var{length:p}=d.text,h=l;if(l+=p,u<=h&&l<=c){Object.assign(d,o),a.push(d);continue}if(u!==c&&(u===l||c===h)||u>l||c<h||c===h&&0!==h){a.push(d);continue}var f=d,m=void 0,g=void 0;if(c<l){var y=c-h;g=G(G({},f),{},{text:f.text.slice(y)}),f=G(G({},f),{},{text:f.text.slice(0,y)})}if(u>h){var x=u-h;m=G(G({},f),{},{text:f.text.slice(0,x)}),f=G(G({},f),{},{text:f.text.slice(x)})}Object.assign(f,o),m&&a.push(m),a.push(f),g&&a.push(g)}r=a}return r}},K=e=>e.selection?e.selection:e.children.length>0?R.end(e,[]):[0],J=(e,t)=>{var[r]=R.node(e,t);return e=>e===r},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!t,n=t?ea(e):e,i=o.None,s=o.None,a=0,l=null,u=null;for(var c of n){var d=c.codePointAt(0);if(!d)break;var p=ex(c,d);if([i,s]=r?[s,p]:[p,i],function(e,t){return(e&t)!=0}(i,o.ZWJ)&&function(e,t){return(e&t)!=0}(s,o.ExtPict)&&!(l=r?ek(e.substring(0,a)):ek(e.substring(0,e.length-a)))||function(e,t){return(e&t)!=0}(i,o.RI)&&function(e,t){return(e&t)!=0}(s,o.RI)&&!(u=null!==u?!u:!!r||eA(e.substring(0,e.length-a)))||i!==o.None&&s!==o.None&&function(e,t){return -1===ew.findIndex(r=>(e&r[0])!=0&&(t&r[1])!=0)}(i,s))break;a+=c.length}return a||1},et=/\s/,er=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,en=/['\u2018\u2019]/,eo=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var o=ee(e,t),[i,s]=ei(e,o,t);if(es(i,s,t))n=!0,r+=o;else if(n)break;else r+=o;e=s}return r},ei=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},es=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(et.test(t))return!1;if(en.test(t)){var o=ee(r,n),[i,s]=ei(r,o,n);if(e(i,s,n))return!0}return!er.test(t)&&!0},ea=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(eu(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(el(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},el=e=>e>=55296&&e<=56319,eu=e=>e>=56320&&e<=57343;(n=o||(o={}))[n.None=0]="None",n[n.Extend=1]="Extend",n[n.ZWJ=2]="ZWJ",n[n.RI=4]="RI",n[n.Prepend=8]="Prepend",n[n.SpacingMark=16]="SpacingMark",n[n.L=32]="L",n[n.V=64]="V",n[n.T=128]="T",n[n.LV=256]="LV",n[n.LVT=512]="LVT",n[n.ExtPict=1024]="ExtPict",n[n.Any=2048]="Any";var ec=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ed=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ep=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,eh=/^[\u1100-\u115F\uA960-\uA97C]$/,ef=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,em=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,eg=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,ev=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ey=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,ex=(e,t)=>{var r=o.Any;return -1!==e.search(ec)&&(r|=o.Extend),8205===t&&(r|=o.ZWJ),t>=127462&&t<=127487&&(r|=o.RI),-1!==e.search(ed)&&(r|=o.Prepend),-1!==e.search(ep)&&(r|=o.SpacingMark),-1!==e.search(eh)&&(r|=o.L),-1!==e.search(ef)&&(r|=o.V),-1!==e.search(em)&&(r|=o.T),-1!==e.search(eg)&&(r|=o.LV),-1!==e.search(ev)&&(r|=o.LVT),-1!==e.search(ey)&&(r|=o.ExtPict),r};function eb(e,t){return(e&t)!=0}var ew=[[o.L,o.L|o.V|o.LV|o.LVT],[o.LV|o.V,o.V|o.T],[o.LVT|o.T,o.T],[o.Any,o.Extend|o.ZWJ],[o.Any,o.SpacingMark],[o.Prepend,o.Any],[o.ZWJ,o.ExtPict],[o.RI,o.RI]],e_=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ek=e=>-1!==e.search(e_),eC=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,eA=e=>{var t=e.match(eC);return null!==t&&t[0].length/2%2==1};function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eS=eD(eD(eD(eD({},{transform(e,t){e.children=(0,s.P2)(e.children);var r=e.selection&&(0,s.P2)(e.selection);try{r=k(e,r,t)}finally{e.children=(0,s._x)(e.children),r?e.selection=(0,s.mv)(r)?(0,s._x)(r):r:e.selection=null}}}),{insertNodes(e,t,r){e.insertNodes(t,r)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,r){e.setNodes(t,r)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,r){e.unsetNodes(t,r)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,r){e.wrapNodes(t,r)}}),{collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,r){e.setPoint(t,r)},setSelection(e,t){e.setSelection(t)}}),{delete(e,t){e.delete(t)},insertFragment(e,t,r){e.insertFragment(t,r)},insertText(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=K(e)}=r;if(y.isPath(o)&&(o=R.range(e,o)),S.isRange(o)){if(S.isCollapsed(o))o=o.anchor;else{var i=S.end(o);if(!n&&R.void(e,{at:i}))return;var s=S.start(o),a=R.pointRef(e,s),l=R.pointRef(e,i);eS.delete(e,{at:o,voids:n});var u=a.unref(),c=l.unref();o=u||c,eS.setSelection(e,{anchor:o,focus:o})}}if(!(!n&&R.void(e,{at:o})||R.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}}),eT=(e,t)=>{for(var r of R.pathRefs(e))a.transform(r,t);for(var n of R.pointRefs(e))l.transform(n,t);for(var o of R.rangeRefs(e))u.transform(o,t);var i,s,h=c.get(e)||[],f=d.get(e)||new Set,m=e=>{if(e){var t=e.join(",");!s.has(t)&&(s.add(t),i.push(e))}};if(y.operationCanTransformPath(t))for(var g of(i=[],s=new Set,h))m(y.transform(g,t));else i=h,s=f;for(var x of e.getDirtyPaths(t))m(x);c.set(e,i),d.set(e,s),eS.transform(e,t),e.operations.push(t),R.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),!p.get(e)&&(p.set(e,!0),Promise.resolve().then(()=>{p.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},eE=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:r}=t;return y.levels(r);case"insert_node":var{node:n,path:o}=t;return[...y.levels(o),...$.isText(n)?[]:Array.from(P.nodes(n),e=>{var[,t]=e;return o.concat(t)})];case"merge_node":var{path:i}=t;return[...y.ancestors(i),y.previous(i)];case"move_node":var{path:s,newPath:a}=t;if(y.equals(s,a))return[];var l=[],u=[];for(var c of y.ancestors(s)){var d=y.transform(c,t);l.push(d)}for(var p of y.ancestors(a)){var h=y.transform(p,t);u.push(h)}var f=u[u.length-1],m=a[a.length-1];return[...l,...u,f.concat(m)];case"remove_node":var{path:g}=t;return[...y.ancestors(g)];case"split_node":var{path:x}=t;return[...y.levels(x),y.next(x)];default:return[]}},eM=e=>{var{selection:t}=e;return t?P.fragment(e,t):[]},ej=(e,t)=>{var[r,n]=t;if(!$.isText(r)){if(E.isElement(r)&&0===r.children.length){eS.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});return}for(var o=!R.isEditor(r)&&E.isElement(r)&&(e.isInline(r)||0===r.children.length||$.isText(r.children[0])||e.isInline(r.children[0])),i=0,s=0;s<r.children.length;s++,i++){var a=P.get(e,n);if(!$.isText(a)){var l=a.children[i],u=a.children[i-1],c=s===r.children.length-1;if(($.isText(l)||E.isElement(l)&&e.isInline(l))!==o)eS.removeNodes(e,{at:n.concat(i),voids:!0}),i--;else if(E.isElement(l)){if(e.isInline(l)){if(null!=u&&$.isText(u)){if(c){var d={text:""};eS.insertNodes(e,d,{at:n.concat(i+1),voids:!0}),i++}}else{var p={text:""};eS.insertNodes(e,p,{at:n.concat(i),voids:!0}),i++}}}else null!=u&&$.isText(u)&&($.equals(l,u,{loose:!0})?(eS.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):""===u.text?(eS.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):""===l.text&&(eS.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}}},eN=(e,t)=>{var{iteration:r,initialDirtyPathsLength:n}=t,o=42*n;if(r>o)throw Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},eP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=e.selection,match:i}=t;if(!!o){var s=R.path(e,o);for(var[a,l]of R.levels(e,{at:s,voids:r,match:i,reverse:"lowest"===n}))if(!$.isText(a)){if(S.isRange(o)){if(y.isAncestor(l,o.anchor.path)&&y.isAncestor(l,o.focus.path))return[a,l]}else if(!y.equals(s,l))return[a,l]}}};function eB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eB(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eL=(e,t,r)=>{var{selection:n}=e;if(n){var o=(t,r)=>{if(!$.isText(t))return!1;var[n,o]=R.parent(e,r);return!e.isVoid(n)||e.markableVoid(n)},i=S.isExpanded(n),s=!1;if(!i){var[a,l]=R.node(e,n);if(a&&o(a,l)){var[u]=R.parent(e,l);s=u&&e.markableVoid(u)}}if(i||s)eS.setNodes(e,{[t]:r},{match:o,split:!0,voids:!0});else{var c=eI(eI({},R.marks(e)||{}),{},{[t]:r});e.marks=c,!p.get(e)&&e.onChange()}}};function eF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ez(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eF(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eF(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eR=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=R.point(e,t,{edge:"end"}),i=R.end(e,[]),{distance:s=1}=n,a=0;for(var l of R.positions(e,ez(ez({},n),{},{at:{anchor:o,focus:i}}))){if(a>s)break;0!==a&&(r=l),a++}return r};function eX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eZ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eX(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eX(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eW=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=R.start(e,[]),i=R.point(e,t,{edge:"start"}),{distance:s=1}=n,a=0;for(var l of R.positions(e,eZ(eZ({},n),{},{at:{anchor:o,focus:i},reverse:!0}))){if(a>s)break;0!==a&&(r=l),a++}return r},eV=(e,t)=>{var{selection:r}=e;r&&S.isCollapsed(r)&&eS.delete(e,{unit:t,reverse:!0})},eH=(e,t)=>{var{selection:r}=e;r&&S.isCollapsed(r)&&eS.delete(e,{unit:t})},eU=function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e;r&&S.isExpanded(r)&&eS.delete(e,{reverse:"backward"===t})},eq=(e,t)=>[R.start(e,t),R.end(e,t)];function eY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eQ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eY(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eY(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var eG=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R.above(e,eQ(eQ({},t),{},{match:t=>E.isElement(t)&&R.isElementReadOnly(e,t)}))},e$=(e,t)=>R.point(e,t,{edge:"end"}),eK=(e,t)=>{var r=R.path(e,t,{edge:"start"});return R.node(e,r)},eJ=(e,t)=>{var r=R.range(e,t);return P.fragment(e,r)};function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function e1(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var e2=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R.above(e,e1(e1({},t),{},{match:t=>E.isElement(t)&&R.isVoid(e,t)}))},e4=(e,t)=>t.children.some(t=>E.isElement(t)&&R.isBlock(e,t)),e5=(e,t)=>t.children.some(t=>$.isText(t)||R.isInline(e,t)),e6=(e,t)=>P.has(e,t),e3=(e,t)=>t.children.every(e=>$.isText(e)),e8=e=>{eS.splitNodes(e,{always:!0})},e9=(e,t,r)=>{eS.insertNodes(e,t,r)},e7=e=>{eS.splitNodes(e,{always:!0})};function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var tt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n,marks:o}=e;if(n){if(o){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({text:t},o);eS.insertNodes(e,i,{at:r.at,voids:r.voids})}else eS.insertText(e,t,r);e.marks=null}},tr=(e,t)=>!e.isInline(t),tn=(e,t,r)=>R.isStart(e,t,r)||R.isEnd(e,t,r),to=(e,t)=>{var{children:r}=t,[n]=r;return 0===r.length||1===r.length&&$.isText(n)&&""===n.text&&!e.isVoid(t)},ti=(e,t,r)=>{var n=R.end(e,r);return V.equals(t,n)},ts=e=>{var t=h.get(e);return void 0===t||t},ta=(e,t,r)=>{if(0!==t.offset)return!1;var n=R.start(e,r);return V.equals(t,n)},tl=(e,t)=>{var r=R.path(e,t,{edge:"end"});return R.node(e,r)},tu=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=R.path(e,t,r);return[P.leaf(e,n),n]},tc=["text"],td=["text"],tp=function(e){var{marks:t,selection:r}=e;if(!r)return null;var{anchor:n,focus:o}=r;if(t)return t;if(S.isExpanded(r)){if(R.isEnd(e,n,n.path)){var i=R.after(e,n);i&&(n=i)}var[s]=R.nodes(e,{match:$.isText,at:{anchor:n,focus:o}});if(!s)return{};var[a]=s;return A(a,tc)}var{path:l}=n,[u]=R.leaf(e,l);if(0===n.offset){var c=R.previous(e,{at:l,match:$.isText});if(!R.above(e,{match:t=>E.isElement(t)&&R.isVoid(e,t)&&e.markableVoid(t)})){var d=R.above(e,{match:t=>E.isElement(t)&&R.isBlock(e,t)});if(c&&d){var[p,h]=c,[,f]=d;y.isAncestor(f,h)&&(u=p)}}}return A(u,td)},th=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(!!i){var s=R.after(e,i,{voids:n});if(s){var[,a]=R.last(e,[]),l=[s.path,a];if(y.isPath(i)&&0===i.length)throw Error("Cannot get the next node from the root node!");if(null==o){if(y.isPath(i)){var[u]=R.parent(e,i);o=e=>u.children.includes(e)}else o=()=>!0}var[c]=R.nodes(e,{at:l,match:o,mode:r,voids:n});return c}}},tf=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=R.path(e,t,r);return[P.get(e,n),n]},tm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1,operation:n}=t,o=e=>c.get(e)||[],i=e=>d.get(e)||new Set,s=e=>{var t=o(e).pop(),r=t.join(",");return i(e).delete(r),t};if(!R.isNormalizing(e))return;if(r){var a=Array.from(P.nodes(e),e=>{var[,t]=e;return t}),l=new Set(a.map(e=>e.join(",")));c.set(e,a),d.set(e,l)}if(0!==o(e).length)R.withoutNormalizing(e,()=>{for(var t of o(e))if(P.has(e,t)){var r=R.node(e,t),[i,a]=r;E.isElement(i)&&0===i.children.length&&e.normalizeNode(r,{operation:n})}for(var l=o(e),u=l.length,c=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:c,initialDirtyPathsLength:u,operation:n}))return;var d=s(e);if(P.has(e,d)){var p=R.node(e,d);e.normalizeNode(p,{operation:n})}c++,l=o(e)}})},tg=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=R.path(e,t,r),o=y.parent(n);return R.node(e,o)},tv=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:t}=o;return R.pathRefs(e).delete(o),o.current=null,t}};return R.pathRefs(e).add(o),o},ty=e=>{var t=f.get(e);return!t&&(t=new Set,f.set(e,t)),t},tx=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:o}=r;if(y.isPath(t)){if("start"===o){var[,i]=P.first(e,t);t=i}else if("end"===o){var[,s]=P.last(e,t);t=s}}return S.isRange(t)&&(t="start"===o?S.start(t):"end"===o?S.end(t):y.common(t.anchor.path,t.focus.path)),V.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},tb=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:t}=o;return R.pointRefs(e).delete(o),o.current=null,t}};return R.pointRefs(e).add(o),o},tw=e=>{var t=m.get(e);return!t&&(t=new Set,m.set(e,t)),t},t_=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(y.isPath(t)){if("end"===n){var o,[,i]=P.last(e,t);o=i}else{var[,s]=P.first(e,t);o=s}var a=P.get(e,o);if(!$.isText(a))throw Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:"end"===n?a.text.length:0}}if(S.isRange(t)){var[l,u]=S.edges(t);return"start"===n?l:u}return t},tk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(!i)return;var s=R.before(e,i,{voids:n});if(!!s){var[,a]=R.first(e,[]),l=[s.path,a];if(y.isPath(i)&&0===i.length)throw Error("Cannot get the previous node from the root node!");if(null==o){if(y.isPath(i)){var[u]=R.parent(e,i);o=e=>u.children.includes(e)}else o=()=>!0}var[c]=R.nodes(e,{reverse:!0,at:l,match:o,mode:r,voids:n});return c}},tC=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:t}=o;return R.rangeRefs(e).delete(o),o.current=null,t}};return R.rangeRefs(e).add(o),o},tA=e=>{var t=g.get(e);return!t&&(t=new Set,g.set(e,t)),t},tO=(e,t,r)=>S.isRange(t)&&!r?t:{anchor:R.start(e,t),focus:R.end(e,r||t)};function tD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var tS=(e,t)=>{var{selection:r}=e;if(r){var n=(t,r)=>{if(!$.isText(t))return!1;var[n,o]=R.parent(e,r);return!e.isVoid(n)||e.markableVoid(n)},o=S.isExpanded(r),i=!1;if(!o){var[s,a]=R.node(e,r);if(s&&n(s,a)){var[l]=R.parent(e,a);i=l&&e.markableVoid(l)}}if(o||i)eS.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tD(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},R.marks(e)||{});delete u[t],e.marks=u,!p.get(e)&&e.onChange()}}},tT=(e,t)=>{h.set(e,t)},tE=(e,t)=>R.point(e,t,{edge:"start"}),tM=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,o=R.range(e,t),[i,s]=S.edges(o),a="";for(var[l,u]of R.nodes(e,{at:o,match:$.isText,voids:n})){var c=l.text;y.equals(u,s.path)&&(c=c.slice(0,s.offset)),y.equals(u,i.path)&&(c=c.slice(i.offset)),a+=c}return a},tj=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[o,i]=S.edges(t);if(0!==o.offset||0!==i.offset||S.isCollapsed(t)||y.hasPrevious(i.path))return t;var s=R.above(e,{at:i,match:t=>E.isElement(t)&&R.isBlock(e,t),voids:n}),a=s?s[1]:[],l={anchor:R.start(e,o),focus:i},u=!0;for(var[c,d]of R.nodes(e,{at:l,match:$.isText,reverse:!0,voids:n})){if(u){u=!1;continue}if(""!==c.text||y.isBefore(d,a)){i={path:d,offset:c.text.length};break}}return{anchor:o,focus:i}},tN=(e,t)=>{var r=R.isNormalizing(e);R.setNormalizing(e,!1);try{t()}finally{R.setNormalizing(e,r)}R.normalize(e)},tP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var r,n,o,{reverse:i=!1,unit:s="character",distance:a=1,voids:l=!1}=t,{at:u=e.selection,hanging:c=!1}=t;if(!u)return;var d=!1;if(S.isRange(u)&&S.isCollapsed(u)&&(d=!0,u=u.anchor),V.isPoint(u)){var p=R.void(e,{at:u,mode:"highest"});if(!l&&p){var[,h]=p;u=h}else{var f={unit:s,distance:a},m=i?R.before(e,u,f)||R.start(e,[]):R.after(e,u,f)||R.end(e,[]);u={anchor:u,focus:m},c=!0}}if(y.isPath(u)){eS.removeNodes(e,{at:u,voids:l});return}if(!S.isCollapsed(u)){if(!c){var[,g]=S.edges(u),x=R.end(e,[]);!V.equals(g,x)&&(u=R.unhangRange(e,u,{voids:l}))}var[b,w]=S.edges(u),_=R.above(e,{match:t=>E.isElement(t)&&R.isBlock(e,t),at:b,voids:l}),k=R.above(e,{match:t=>E.isElement(t)&&R.isBlock(e,t),at:w,voids:l}),C=_&&k&&!y.equals(_[1],k[1]),A=y.equals(b.path,w.path),O=l?null:null!==(r=R.void(e,{at:b,mode:"highest"}))&&void 0!==r?r:R.elementReadOnly(e,{at:b,mode:"highest"}),D=l?null:null!==(n=R.void(e,{at:w,mode:"highest"}))&&void 0!==n?n:R.elementReadOnly(e,{at:w,mode:"highest"});if(O){var T=R.before(e,b);T&&_&&y.isAncestor(_[1],T.path)&&(b=T)}if(D){var M=R.after(e,w);M&&k&&y.isAncestor(k[1],M.path)&&(w=M)}var j=[];for(var N of R.nodes(e,{at:u,voids:l})){var[P,B]=N;if(!o||0!==y.compare(B,o))(!l&&E.isElement(P)&&(R.isVoid(e,P)||R.isElementReadOnly(e,P))||!y.isCommon(B,b.path)&&!y.isCommon(B,w.path))&&(j.push(N),o=B)}var I=Array.from(j,t=>{var[,r]=t;return R.pathRef(e,r)}),L=R.pointRef(e,b),F=R.pointRef(e,w),z="";if(!A&&!O){var X=L.current,[Z]=R.leaf(e,X),{path:W}=X,{offset:H}=b,U=Z.text.slice(H);U.length>0&&(e.apply({type:"remove_text",path:W,offset:H,text:U}),z=U)}if(I.reverse().map(e=>e.unref()).filter(e=>null!==e).forEach(t=>eS.removeNodes(e,{at:t,voids:l})),!D){var q=F.current,[Y]=R.leaf(e,q),{path:Q}=q,G=A?b.offset:0,$=Y.text.slice(G,w.offset);$.length>0&&(e.apply({type:"remove_text",path:Q,offset:G,text:$}),z=$)}!A&&C&&F.current&&L.current&&eS.mergeNodes(e,{at:F.current,hanging:!0,voids:l}),d&&i&&"character"===s&&z.length>1&&z.match(/[\u0E00-\u0E7F]+/)&&eS.insertText(e,z.slice(0,z.length-a));var K=L.unref(),J=F.unref(),ee=i?K||J:J||K;null==t.at&&ee&&eS.select(e,ee)}})},tB=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.withoutNormalizing(e,()=>{var n,{hanging:o=!1,voids:i=!1}=r,{at:s=K(e)}=r;if(!t.length)return;if(S.isRange(s)){if(!o&&(s=R.unhangRange(e,s,{voids:i})),S.isCollapsed(s))s=s.anchor;else{var[,a]=S.edges(s);if(!i&&R.void(e,{at:a}))return;var l=R.pointRef(e,a);eS.delete(e,{at:s}),s=l.unref()}}else y.isPath(s)&&(s=R.start(e,s));if(!(!i&&R.void(e,{at:s}))){var u=R.above(e,{at:s,match:t=>E.isElement(t)&&R.isInline(e,t),mode:"highest",voids:i});if(u){var[,c]=u;R.isEnd(e,s,c)?s=R.after(e,c):R.isStart(e,s,c)&&(s=R.before(e,c))}var[,d]=R.above(e,{match:t=>E.isElement(t)&&R.isBlock(e,t),at:s,voids:i}),p=R.isStart(e,s,d),h=R.isEnd(e,s,d),f=p&&h,m=!p||p&&h,g=!h,[,x]=P.first({children:t},[]),[,b]=P.last({children:t},[]),w=[],_=t=>{var[r,n]=t;return 0!==n.length&&(!!f||!(m&&y.isAncestor(n,x)&&E.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)||g&&y.isAncestor(n,b)&&E.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!0)};for(var k of P.nodes({children:t},{pass:_}))_(k)&&w.push(k);var C=[],A=[],O=[],D=!0,T=!1;for(var[M]of w)E.isElement(M)&&!e.isInline(M)?(D=!1,T=!0,A.push(M)):D?C.push(M):O.push(M);var[j]=R.nodes(e,{at:s,match:t=>$.isText(t)||R.isInline(e,t),mode:"highest",voids:i}),[,N]=j,B=R.isStart(e,s,N),I=R.isEnd(e,s,N),L=R.pathRef(e,h&&!O.length?y.next(d):d),F=R.pathRef(e,I?y.next(N):N);eS.splitNodes(e,{at:s,match:t=>T?E.isElement(t)&&R.isBlock(e,t):$.isText(t)||R.isInline(e,t),mode:T?"lowest":"highest",always:T&&(!p||C.length>0)&&(!h||O.length>0),voids:i});var z=R.pathRef(e,!B||B&&I?y.next(N):N);if(eS.insertNodes(e,C,{at:z.current,match:t=>$.isText(t)||R.isInline(e,t),mode:"highest",voids:i}),f&&!C.length&&A.length&&!O.length&&eS.delete(e,{at:d,voids:i}),eS.insertNodes(e,A,{at:L.current,match:t=>E.isElement(t)&&R.isBlock(e,t),mode:"lowest",voids:i}),eS.insertNodes(e,O,{at:F.current,match:t=>$.isText(t)||R.isInline(e,t),mode:"highest",voids:i}),!r.at&&(O.length>0&&F.current?n=y.previous(F.current):A.length>0&&L.current?n=y.previous(L.current):z.current&&(n=y.previous(z.current)),n)){var X=R.end(e,n);eS.select(e,X)}z.unref(),L.unref(),F.unref()}})},tI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(!!n){if("anchor"===r)eS.select(e,n.anchor);else if("focus"===r)eS.select(e,n.focus);else if("start"===r){var[o]=S.edges(n);eS.select(e,o)}else if("end"===r){var[,i]=S.edges(n);eS.select(e,i)}}},tL=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},tF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:o="character",reverse:i=!1}=t,{edge:s=null}=t;if(!!r){"start"===s&&(s=S.isBackward(r)?"focus":"anchor"),"end"===s&&(s=S.isBackward(r)?"anchor":"focus");var{anchor:a,focus:l}=r,u={distance:n,unit:o,ignoreNonSelectable:!0},c={};if(null==s||"anchor"===s){var d=i?R.before(e,a,u):R.after(e,a,u);d&&(c.anchor=d)}if(null==s||"focus"===s){var p=i?R.before(e,l,u):R.after(e,l,u);p&&(c.focus=p)}eS.setSelection(e,c)}},tz=(e,t)=>{var{selection:r}=e;if(t=R.range(e,t),r){eS.setSelection(e,t);return}if(!S.isRange(t))throw Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(U.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function tR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tX(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tR(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tR(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var tZ=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=e,{edge:o="both"}=r;if(!!n){"start"===o&&(o=S.isBackward(n)?"focus":"anchor"),"end"===o&&(o=S.isBackward(n)?"anchor":"focus");var{anchor:i,focus:s}=n,a="anchor"===o?i:s;eS.setSelection(e,{["anchor"===o?"anchor":"focus"]:tX(tX({},a),t)})}},tW=(e,t)=>{var{selection:r}=e,n={},o={};if(!!r){for(var i in t)("anchor"===i&&null!=t.anchor&&!V.equals(t.anchor,r.anchor)||"focus"===i&&null!=t.focus&&!V.equals(t.focus,r.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}},tV=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:s,match:a,select:l}=r;if(P.isNode(t)&&(t=[t]),0===t.length)return;var[u]=t;if(!s&&(s=K(e),!1!==l&&(l=!0)),null==l&&(l=!1),S.isRange(s)){if(!n&&(s=R.unhangRange(e,s,{voids:o})),S.isCollapsed(s))s=s.anchor;else{var[,c]=S.edges(s),d=R.pointRef(e,c);eS.delete(e,{at:s}),s=d.unref()}}if(V.isPoint(s)){null==a&&(a=$.isText(u)?e=>$.isText(e):e.isInline(u)?t=>$.isText(t)||R.isInline(e,t):t=>E.isElement(t)&&R.isBlock(e,t));var[p]=R.nodes(e,{at:s.path,match:a,mode:i,voids:o});if(!p)return;var[,h]=p,f=R.pathRef(e,h),m=R.isEnd(e,s,h);eS.splitNodes(e,{at:s,match:a,mode:i,voids:o});var g=f.unref();s=m?y.next(g):g}var x=y.parent(s),b=s[s.length-1];if(!(!o&&R.void(e,{at:x}))){for(var w of t){var _=x.concat(b);b++,e.apply({type:"insert_node",path:_,node:w}),s=y.next(s)}if(s=y.previous(s),l){var k=R.end(e,s);k&&eS.select(e,k)}}})},tH=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var{at:r=e.selection,mode:n="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=y.isPath(r)?J(e,r):t=>E.isElement(t)&&R.isBlock(e,t)),!!r)for(var s of Array.from(R.nodes(e,{at:r,match:i,mode:n,voids:o}),t=>{var[,r]=t;return R.pathRef(e,r)})){var a=s.unref();if(a.length<2)throw Error("Cannot lift node at a path [".concat(a,"] because it has a depth of less than `2`."));var[l,u]=R.node(e,y.parent(a)),c=a[a.length-1],{length:d}=l.children;if(1===d){var p=y.next(u);eS.moveNodes(e,{at:a,to:p,voids:o}),eS.removeNodes(e,{at:u,voids:o})}else if(0===c)eS.moveNodes(e,{at:a,to:u,voids:o});else if(c===d-1){var h=y.next(u);eS.moveNodes(e,{at:a,to:h,voids:o})}else{var f=y.next(a),m=y.next(u);eS.splitNodes(e,{at:f,voids:o}),eS.moveNodes(e,{at:a,to:m,voids:o})}}})},tU=["text"],tq=["children"],tY=(e,t)=>{if(E.isElement(t))return!!R.isVoid(e,t)||1===t.children.length&&tY(e,t.children[0]);if(R.isEditor(t))return!1;return!0},tQ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var r,n,{match:o,at:i=e.selection}=t,{hanging:s=!1,voids:a=!1,mode:l="lowest"}=t;if(!i)return;if(null==o){if(y.isPath(i)){var[u]=R.parent(e,i);o=e=>u.children.includes(e)}else o=t=>E.isElement(t)&&R.isBlock(e,t)}if(!s&&S.isRange(i)&&(i=R.unhangRange(e,i,{voids:a})),S.isRange(i)){if(S.isCollapsed(i))i=i.anchor;else{var[,c]=S.edges(i),d=R.pointRef(e,c);eS.delete(e,{at:i}),i=d.unref(),null==t.at&&eS.select(e,i)}}var[p]=R.nodes(e,{at:i,match:o,voids:a,mode:l}),h=R.previous(e,{at:i,match:o,voids:a,mode:l});if(!p||!h)return;var[f,m]=p,[g,x]=h;if(0!==m.length&&0!==x.length){var b=y.next(x),w=y.common(m,x),_=y.isSibling(m,x),k=Array.from(R.levels(e,{at:m}),e=>{var[t]=e;return t}).slice(w.length).slice(0,-1),C=R.above(e,{at:m,mode:"highest",match:t=>k.includes(t)&&tY(e,t)}),O=C&&R.pathRef(e,C[1]);if($.isText(f)&&$.isText(g)){var D=A(f,tU);n=g.text.length,r=D}else if(E.isElement(f)&&E.isElement(g)){var D=A(f,tq);n=g.children.length,r=D}else throw Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(U.stringify(f)," ").concat(U.stringify(g)));!_&&eS.moveNodes(e,{at:m,to:b,voids:a}),O&&eS.removeNodes(e,{at:O.current,voids:a}),E.isElement(g)&&R.isEmpty(e,g)||$.isText(g)&&""===g.text&&0!==x[x.length-1]?eS.removeNodes(e,{at:x,voids:a}):e.apply({type:"merge_node",path:b,position:n,properties:r}),O&&O.unref()}})},tG=(e,t)=>{R.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:s}=t;if(!!n){null==s&&(s=y.isPath(n)?J(e,n):t=>E.isElement(t)&&R.isBlock(e,t));var a=R.pathRef(e,r);for(var l of Array.from(R.nodes(e,{at:n,match:s,mode:o,voids:i}),t=>{var[,r]=t;return R.pathRef(e,r)})){var u=l.unref(),c=a.current;0!==u.length&&e.apply({type:"move_node",path:u,newPath:c}),a.current&&y.isSibling(c,u)&&y.isAfter(c,u)&&(a.current=y.next(a.current))}a.unref()}})},t$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=t,{at:i=e.selection,match:s}=t;if(!!i)for(var a of(null==s&&(s=y.isPath(i)?J(e,i):t=>E.isElement(t)&&R.isBlock(e,t)),!r&&S.isRange(i)&&(i=R.unhangRange(e,i,{voids:n})),Array.from(R.nodes(e,{at:i,match:s,mode:o,voids:n}),t=>{var[,r]=t;return R.pathRef(e,r)}))){var l=a.unref();if(l){var[u]=R.node(e,l);e.apply({type:"remove_node",path:l,node:u})}}})},tK=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.withoutNormalizing(e,()=>{var{match:n,at:o=e.selection,compare:i,merge:s}=r,{hanging:a=!1,mode:l="lowest",split:u=!1,voids:c=!1}=r;if(!!o){if(null==n&&(n=y.isPath(o)?J(e,o):t=>E.isElement(t)&&R.isBlock(e,t)),!a&&S.isRange(o)&&(o=R.unhangRange(e,o,{voids:c})),u&&S.isRange(o)){if(S.isCollapsed(o)&&R.leaf(e,o.anchor)[0].text.length>0)return;var d=R.rangeRef(e,o,{affinity:"inward"}),[p,h]=S.edges(o),f="lowest"===l?"lowest":"highest",m=R.isEnd(e,h,h.path);eS.splitNodes(e,{at:h,match:n,mode:f,voids:c,always:!m});var g=R.isStart(e,p,p.path);eS.splitNodes(e,{at:p,match:n,mode:f,voids:c,always:!g}),o=d.unref(),null==r.at&&eS.select(e,o)}for(var[x,b]of(!i&&(i=(e,t)=>e!==t),R.nodes(e,{at:o,match:n,mode:l,voids:c}))){var w={},_={};if(0!==b.length){var k=!1;for(var C in t){if("children"!==C&&"text"!==C)i(t[C],x[C])&&(k=!0,x.hasOwnProperty(C)&&(w[C]=x[C]),s?null!=t[C]&&(_[C]=s(x[C],t[C])):null!=t[C]&&(_[C]=t[C]))}k&&e.apply({type:"set_node",path:b,properties:w,newProperties:_})}}}})},tJ=(e,t)=>{if(S.isCollapsed(t))return t.anchor;var[,r]=S.edges(t),n=R.pointRef(e,r);return eS.delete(e,{at:t}),n.unref()},t0=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var r,n,{mode:o="lowest",voids:i=!1}=t,{match:s,at:a=e.selection,height:l=0,always:u=!1}=t;if(null==s&&(s=t=>E.isElement(t)&&R.isBlock(e,t)),S.isRange(a)&&(a=tJ(e,a)),y.isPath(a)){var c=a,d=R.point(e,c),[p]=R.parent(e,c);s=e=>e===p,l=d.path.length-c.length+1,a=d,u=!0}if(!!a){var h=R.pointRef(e,a,{affinity:"backward"});try{var[f]=R.nodes(e,{at:a,match:s,mode:o,voids:i});if(!f)return;var m=R.void(e,{at:a,mode:"highest"});if(!i&&m){var[g,x]=m;if(E.isElement(g)&&e.isInline(g)){var b=R.after(e,x);if(!b){var w=y.next(x);eS.insertNodes(e,{text:""},{at:w,voids:i}),b=R.point(e,w)}a=b,u=!0}l=a.path.length-x.length+1,u=!0}r=R.pointRef(e,a);var _=a.path.length-l,[,k]=f,C=a.path.slice(0,_),A=0===l?a.offset:a.path[_]+0;for(var[O,D]of R.levels(e,{at:C,reverse:!0,voids:i})){var T=!1;if(D.length<k.length||0===D.length||!i&&E.isElement(O)&&R.isVoid(e,O))break;var M=h.current,j=R.isEnd(e,M,D);if(u||!h||!R.isEdge(e,M,D)){T=!0;var N=P.extractProps(O);e.apply({type:"split_node",path:D,position:A,properties:N})}A=D[D.length-1]+(T||j?1:0)}if(null==t.at){var B=r.current||R.end(e,[]);eS.select(e,B)}}finally{h.unref(),null===(n=r)||void 0===n||n.unref()}}})},t1=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!Array.isArray(t)&&(t=[t]);var n={};for(var o of t)n[o]=null;eS.setNodes(e,n,r)},t2=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.withoutNormalizing(e,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=t,{at:i=e.selection,match:s}=t;if(!!i){null==s&&(s=y.isPath(i)?J(e,i):t=>E.isElement(t)&&R.isBlock(e,t)),y.isPath(i)&&(i=R.range(e,i));var a=S.isRange(i)?R.rangeRef(e,i):null,l=Array.from(R.nodes(e,{at:i,match:s,mode:r,voids:o}),t=>{var[,r]=t;return R.pathRef(e,r)}).reverse();for(var u of l)!function(){var t=u.unref(),[r]=R.node(e,t),i=R.range(e,t);n&&a&&(i=S.intersection(a.current,i)),eS.liftNodes(e,{at:i,match:e=>E.isAncestor(r)&&r.children.includes(e),voids:o})}();a&&a.unref()}})};function t4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t5(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t4(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t4(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var t6=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.withoutNormalizing(e,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:s,at:a=e.selection}=r;if(!!a){if(null==s&&(s=y.isPath(a)?J(e,a):e.isInline(t)?t=>E.isElement(t)&&R.isInline(e,t)||$.isText(t):t=>E.isElement(t)&&R.isBlock(e,t)),o&&S.isRange(a)){var[l,u]=S.edges(a),c=R.rangeRef(e,a,{affinity:"inward"});eS.splitNodes(e,{at:u,match:s,voids:i}),eS.splitNodes(e,{at:l,match:s,voids:i}),a=c.unref(),null==r.at&&eS.select(e,a)}for(var[,d]of Array.from(R.nodes(e,{at:a,match:e.isInline(t)?t=>E.isElement(t)&&R.isBlock(e,t):e=>R.isEditor(e),mode:"lowest",voids:i})))if(0===function(){var r=S.isRange(a)?S.intersection(a,R.range(e,d)):a;if(!r)return 0;var o=Array.from(R.nodes(e,{at:r,match:s,mode:n,voids:i}));if(o.length>0){var[l]=o,u=o[o.length-1],[,c]=l,[,p]=u;if(0===c.length&&0===p.length)return 0;var h=y.equals(c,p)?y.parent(c):y.common(c,p),f=R.range(e,c,p),[m]=R.node(e,h),g=h.length+1,x=y.next(p.slice(0,g)),b=t5(t5({},t),{},{children:[]});eS.insertNodes(e,b,{at:x,voids:i}),eS.moveNodes(e,{at:f,match:e=>E.isAncestor(m)&&m.children.includes(e),to:x.concat(0),voids:i})}}())continue}})},t3=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eT(e,...r)},addMark:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eL(e,...r)},deleteBackward:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eV(e,...r)},deleteForward:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eH(e,...r)},deleteFragment:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eU(e,...r)},getFragment:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eM(e,...r)},insertBreak:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e8(e,...r)},insertSoftBreak:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e7(e,...r)},insertFragment:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tB(e,...r)},insertNode:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e9(e,...r)},insertText:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tt(e,...r)},normalizeNode:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return ej(e,...r)},removeMark:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tS(e,...r)},getDirtyPaths:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eE(e,...r)},shouldNormalize:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eN(e,...r)},above:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eP(e,...r)},after:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eR(e,...r)},before:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eW(e,...r)},collapse:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tI(e,...r)},delete:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tP(e,...r)},deselect:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tL(e,...r)},edges:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eq(e,...r)},elementReadOnly:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eG(e,...r)},end:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e$(e,...r)},first:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eK(e,...r)},fragment:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eJ(e,...r)},getMarks:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tp(e,...r)},hasBlocks:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e4(e,...r)},hasInlines:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e5(e,...r)},hasPath:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e6(e,...r)},hasTexts:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e3(e,...r)},insertNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tV(e,...r)},isBlock:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tr(e,...r)},isEdge:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tn(e,...r)},isEmpty:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return to(e,...r)},isEnd:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return ti(e,...r)},isNormalizing:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return ts(e,...r)},isStart:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return ta(e,...r)},last:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tl(e,...r)},leaf:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tu(e,...r)},levels:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),!!r){var s=[],a=R.path(e,r);for(var[l,u]of P.levels(e,a)){if(!!i(l,u)){if(s.push([l,u]),!o&&E.isElement(l)&&R.isVoid(e,l))break}}n&&s.reverse(),yield*s}}()}(e,...r)},liftNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tH(e,...r)},mergeNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tQ(e,...r)},move:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tF(e,...r)},moveNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tG(e,...r)},next:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return th(e,...r)},node:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tf(e,...r)},nodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r,n,o,{at:i=e.selection,mode:s="all",universal:a=!1,reverse:l=!1,voids:u=!1,ignoreNonSelectable:c=!1}=t,{match:d}=t;if(!d&&(d=()=>!0),!!i){if(X(i))r=i[0],n=i[1];else{var p=R.path(e,i,{edge:"start"}),h=R.path(e,i,{edge:"end"});r=l?h:p,n=l?p:h}var f=P.nodes(e,{reverse:l,from:r,to:n,pass:t=>{var[r]=t;return!!E.isElement(r)&&(!!(!u&&(R.isVoid(e,r)||R.isElementReadOnly(e,r)))||!!c&&!R.isSelectable(e,r)||!1)}}),m=[];for(var[g,x]of f){if(c&&E.isElement(g)&&!R.isSelectable(e,g))continue;var b=o&&0===y.compare(x,o[1]);if("highest"!==s||!b){if(!d(g,x)){if(a&&!b&&$.isText(g))return;continue}if("lowest"===s&&b){o=[g,x];continue}var w="lowest"===s?o:[g,x];w&&(a?m.push(w):yield w),o=[g,x]}}"lowest"===s&&o&&(a?m.push(o):yield o),a&&(yield*m)}}()}(e,...r)},normalize:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tm(e,...r)},parent:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tg(e,...r)},path:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tx(e,...r)},pathRef:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tv(e,...r)},pathRefs:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return ty(e,...r)},point:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t_(e,...r)},pointRef:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tb(e,...r)},pointRefs:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tw(e,...r)},positions:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:s=!1}=t;if(!!r){var a=R.range(e,r),[l,u]=S.edges(a),c=o?u:l,d=!1,p="",h=0,f=0,m=0;for(var[g,x]of R.nodes(e,{at:r,reverse:o,voids:i,ignoreNonSelectable:s})){if(E.isElement(g)){if(!i&&(e.isVoid(g)||e.isElementReadOnly(g))){yield R.start(e,x);continue}if(e.isInline(g))continue;if(R.hasInlines(e,g)){var b=y.isAncestor(x,u.path)?u:R.end(e,x),w=y.isAncestor(x,l.path)?l:R.start(e,x);p=R.string(e,{anchor:w,focus:b},{voids:i}),d=!0}}if($.isText(g)){var _=y.equals(x,c.path);for(_?(f=o?c.offset:g.text.length-c.offset,m=c.offset):(f=g.text.length,m=o?f:0),(_||d||"offset"===n)&&(yield{path:x,offset:m},d=!1);;){if(0===h){if(""===p)break;h=function(e,t,r){if("character"===t)return ee(e,r);if("word"===t)return eo(e,r);if("line"===t||"block"===t)return e.length;return 1}(p,n,o),p=ei(p,h,o)[1]}if(m=o?m-h:m+h,(f-=h)<0){h=-f;break}h=0,yield{path:x,offset:m}}}}}}()}(e,...r)},previous:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tk(e,...r)},range:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tO(e,...r)},rangeRef:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tC(e,...r)},rangeRefs:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tA(e,...r)},removeNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t$(e,...r)},select:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tz(e,...r)},setNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tK(e,...r)},setNormalizing:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tT(e,...r)},setPoint:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tZ(e,...r)},setSelection:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tW(e,...r)},splitNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t0(e,...r)},start:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tE(e,...r)},string:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tM(e,...r)},unhangRange:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tj(e,...r)},unsetNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t1(e,...r)},unwrapNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t2(e,...r)},void:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e2(e,...r)},withoutNormalizing:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return tN(e,...r)},wrapNodes:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return t6(e,...r)}};return e}},61782:function(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>eq});var n,o,i,s,a,l=r("151064"),u=r("157728"),c=r("455069"),d=r("825955"),p=r("808549"),h=r("120454"),f=r("252237"),m=r.n(f),g=r("974235"),y=r("336205"),x=r("659596"),b=r("298203"),w=r("707107"),_=r("382534"),k=r("875441"),C=r("564605"),A=r("416290"),O=r("873183");var D=((n={})[n.Copy=1]="Copy",n[n.Delete=2]="Delete",n[n.EnableSwitch=3]="EnableSwitch",n[n.Edit=4]="Edit",n[n.SwitchToFuncflow=8]="SwitchToFuncflow",n[n.SwitchToChatflow=9]="SwitchToChatflow",n[n.CrossSpaceCopy=10]="CrossSpaceCopy",n);var S=((o={})[o.UnPublished=1]="UnPublished",o[o.Published=2]="Published",o),T=e=>{var{resourceInfo:t,defaultIcon:r,customAvatar:n,tag:o}=e;return(0,l.jsxs)("div",{className:"flex items-center w-full h-[48px]",children:[null!=n?n:(0,l.jsx)(x.EZ,{size:"lg",className:"overflow-hidden flex-shrink-0 mr-[12px] rounded-[12px]","data-testid":"workspace.library.item.avatar",src:t.icon||r,type:"bot"}),(0,l.jsxs)("div",{className:"flex flex-col gap-[2px]",style:{width:"calc(100% - 60px)"},children:[(0,l.jsx)("div",{className:"w-[95%] h-[20px] flex-shrink-0",children:(0,l.jsxs)(x.T,{spacing:4,className:"w-full",children:[(0,l.jsx)(x.ZT.Text,{"data-testid":"workspace.library.item.name",className:"h-[20px] text-[14px] font-[500] coz-fg-primary leading-[20px]",style:{maxWidth:"246px"},ellipsis:{showTooltip:!0},children:t.name}),t.publish_status===S.Published?(0,l.jsx)(O.nAC,{"data-testid":"workspace.library.item.publish.status",className:"flex-shrink-0 w-[16px] h-[16px] coz-fg-hglt-green"}):null]})}),o||t.desc?(0,l.jsx)("div",{className:"w-[95%] flex-shrink leading-[0]",children:(0,l.jsxs)(x.T,{spacing:4,className:"w-full",children:[o,t.desc?(0,l.jsx)(x.ZT.Text,{"data-testid":"workspace.library.item.desc",fontSize:"12px",className:"!h-[16px] !font-[400] !coz-fg-secondary !leading-[16px]",ellipsis:{showTooltip:!0},children:t.desc}):null]})}):null]})]})},{Text:E}=x.ZT,M=e=>{e.stopPropagation()},j=(e,t)=>{if(void 0===e.res_type)return"-";var r,n,o,i=null===(r=t.find(t=>t.target.includes(e.res_type)))||void 0===r?void 0:r.typeFilter;return null!==(o=null!==(n=null==i?void 0:i.filterName)&&void 0!==n?n:null==i?void 0:i.label)&&void 0!==o?o:"-"},N=e=>{var t,{entityConfigs:r,reloadList:n,isPersonalSpace:o}=e,i=(0,A.Z)(document.body),s=null!==(t=null==i?void 0:i.width)&&void 0!==t?t:document.body.clientWidth;return[{title:y.o.t("library_name",{},"Resource"),dataIndex:"name",width:(0,b.y2)(s,260),render:(e,t)=>{var n=void 0!==t.res_type?r.find(e=>e.target.includes(t.res_type)):void 0;return(null==n?void 0:n.renderItem)?n.renderItem(t):(0,l.jsx)(T,{resourceInfo:t})}},{title:y.o.t("library_type",{},"Type"),dataIndex:"res_type",width:(0,b.y2)(100,100),render:(e,t)=>(0,l.jsx)("div",{"data-testid":"workspace.library.item.type",className:"text-[14px] font-[400]",children:j(t,r)})},...o?[]:[{title:y.o.t("Plugin_list_table_owner"),dataIndex:"creator",width:(0,b.y2)(231,231),render:(e,t)=>t.creator_name?(0,l.jsxs)(x.T,{style:{width:"100%"},spacing:6,children:[(0,l.jsx)(x.qE,{"data-testid":"workspace.library.item.creator.avatar",size:"extra-small",src:t.creator_avatar}),(0,l.jsx)(E,{"data-testid":"workspace.library.item.creator.name",style:{fontSize:14,fontWeight:500,color:"var(--coz-fg-secondary)"},ellipsis:{showTooltip:!0},children:t.creator_name}),(0,l.jsx)(E,{"data-testid":"workspace.library.item.creator.username",style:{flex:1,fontSize:14,fontWeight:400,color:"var(--coz-fg-secondary)"},ellipsis:{showTooltip:!0},children:"@".concat(t.user_name)})]}):"-"}],{title:y.o.t("library_edited_time",{},"Edited time"),dataIndex:"edit_time",width:(0,b.y2)(150,150),render:(e,t)=>t.edit_time?(0,l.jsx)("div",{"data-testid":"workspace.library.item.edit.time",className:"text-[14px] font-[400]",children:(0,b.p6)(Number(t.edit_time),"YYYY-MM-DD HH:mm")}):"-"},{title:y.o.t("library_actions",{},"Actions"),dataIndex:"action",width:(0,b.y2)(60,60),render:(e,t)=>{var o,i=void 0!==t.res_type?r.find(e=>e.target.includes(t.res_type)):void 0;return(0,l.jsx)("div",{"data-testid":"workspace.library.item.actions",onClick:e=>{M(e)},children:null!==(o=null==i?void 0:i.renderActions(t,n))&&void 0!==o?o:null})}}]},P=r("517465"),B=r("136515"),I=r("581997"),L=r("909776"),F=r("561641"),z=r("710736"),R={cursor:"",user_filter:0,publish_status_filter:0,res_type_filter:[-1],name:""},X=()=>[{label:y.o.t("library_filter_tags_all_creators"),value:0},{label:y.o.t("library_filter_tags_created_by_me"),value:1}],Z=()=>[{label:y.o.t("library_filter_tags_all_status"),value:0},{label:y.o.t("library_filter_tags_published"),value:S.Published},{label:y.o.t("library_filter_tags_unpublished"),value:S.UnPublished}],W={[L.b0.Plugin]:"plugin",[L.b0.Workflow]:"workflow",[L.b0.Imageflow]:"imageflow",[L.b0.Knowledge]:"knowledge",[L.b0.UI]:"ui",[L.b0.Prompt]:"prompt",[L.b0.Database]:"database",[L.b0.Variable]:"variable",[L.b0.Voice]:"voice"},V=()=>{var e=(0,P.parse)(location.search.slice(1)),t={};if(e.type&&Object.values(L.b0).includes(Number(e.type))){var r=Number(e.type);t.res_type_filter=r===L.b0.Knowledge?[r,-1]:[r]}return e.name&&(t.name=e.name),t};var H=(i=(0,d._)(function*(){var e,t=V(),r=yield I.D.getValueSync("workspace-library-filters"),n=R;if(r){var o=(0,F.dj)(r);n=(0,p._)({},n,o)}return(null==n?void 0:null===(e=n.res_type_filter)||void 0===e?void 0:e[0])===3&&(n.res_type_filter[0]=-1),n=(0,p._)({},n,t)}),function(){return i.apply(this,arguments)}),U=e=>{var{spaceId:t}=e,[r,n]=(0,c.useState)(!1),[o,i]=(0,c.useState)(R),s=!(0,z.t)(o,R,["res_type_filter","user_filter","publish_status_filter","name"]);return(0,c.useEffect)(()=>{n(!1),H().then(e=>{i(t=>(0,h._)((0,p._)({},t,e),{cursor:""})),n(!0)})},[t]),(0,B.Z)(()=>{var e={res_type_filter:o.res_type_filter,user_filter:o.user_filter,publish_status_filter:o.publish_status_filter};I.D.setValue("workspace-library-filters",JSON.stringify(e))},[o]),{params:o,setParams:i,resetParams:()=>{i(R)},hasFilter:s,ready:r}},q=e=>{var{entityConfigs:t}=e;return(0,l.jsxs)("div",{className:"flex items-center justify-between mb-[16px]",children:[(0,l.jsx)("div",{className:"font-[500] text-[20px]",children:y.o.t("navigation_workspace_library")}),(0,l.jsx)(x.v2,{position:"bottomRight",className:"w-120px mt-4px mb-4px",render:(0,l.jsx)(x.v2.SubMenu,{mode:"menu",children:t.map(e=>{var t,r;return null!==(r=null===(t=e.renderCreateMenu)||void 0===t?void 0:t.call(e))&&void 0!==r?r:null})}),children:(0,l.jsx)(x.zx,{theme:"solid",type:"primary",icon:(0,l.jsx)(O.PwN,{}),"data-testid":"workspace.library.header.create",children:y.o.t("library_resource")})})]})},Y=r("407821"),Q=r.n(Y),G=r("472772"),$=r.n(G),K=r("395245"),J=r.n(K),ee=r("297998"),et=r.n(ee),er=r("646576"),en=r.n(er),eo=r("606121"),ei=r.n(eo),es=r("428494"),ea={};ea.styleTagTransform=ei(),ea.setAttributes=et(),ea.insert=J().bind(null,"head"),ea.domAPI=$(),ea.insertStyleElement=en(),Q()(es.Z,ea);var el=es.Z&&es.Z.locals?es.Z.locals:void 0,eu=r("735114"),ec=r("299464"),{TableAction:ed}=x.iA,ep=e=>{var{spaceId:t,reloadList:r,getCommonActions:n}=e,o=(0,u.useNavigate)(),{modal:i,open:s,close:a}=(0,ec.Gx)({enterFrom:"library",onFinish:e=>{o("/space/".concat(t,"/database/").concat(e,"?page_modal=normal&biz=create")),a()}}),{run:c}=(0,eu.Z)(e=>_.v6.DeleteDatabase({id:e}),{manual:!0,onSuccess:()=>{r(),x.FN.success(y.o.t("Delete_success"))}});return{modals:(0,l.jsx)(l.Fragment,{children:i}),config:{typeFilter:{label:y.o.t("new_db_001"),value:L.b0.Database},renderCreateMenu:()=>(0,l.jsx)(x.v2.Item,{"data-testid":"workspace.library.header.create.card",icon:(0,l.jsx)(O.Dzy,{}),onClick:s,children:y.o.t("new_db_001")}),target:[L.b0.Database],onItemClick:e=>{o("/space/".concat(t,"/database/").concat(e.res_id,"?page_mode=normal&from=library"))},renderActions:e=>{var t,r,o={disabled:!(null===(r=e.actions)||void 0===r?void 0:null===(t=r.find(e=>e.key===D.Delete))||void 0===t?void 0:t.enable),deleteDesc:y.o.t("library_delete_desc"),handler:()=>{c(e.res_id||"")}};return(0,l.jsx)(ed,{deleteProps:o,actionList:null==n?void 0:n(e)})}}}},eh=r("458949"),ef=r("381677"),em=r("610382"),{TableAction:eg}=x.iA,ev=e=>{var{spaceId:t,reloadList:r,getCommonActions:n}=e,[o,i]=(0,c.useState)(!1),s=(0,u.useNavigate)(),{modal:a,open:p}=(0,ef._u)({modalProps:{onSuccess:r}});return{modals:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(em.rm,{isCreate:!0,visible:o,onSuccess:e=>{s("/space/".concat(t,"/plugin/").concat(e)),r()},onCancel:()=>{i(!1)}}),a]}),config:{typeFilter:{label:y.o.t("library_resource_type_plugin"),value:L.b0.Plugin},renderCreateMenu:()=>(0,l.jsx)(x.v2.Item,{"data-testid":"workspace.library.header.create.plugin",icon:(0,l.jsx)(O.QWX,{}),onClick:()=>{i(!0)},children:y.o.t("library_resource_type_plugin")}),target:[L.b0.Plugin],onItemClick:e=>{if(e.res_type===L.b0.Plugin&&2===e.res_sub_type){var r,n,o=!(null===(n=e.actions)||void 0===n?void 0:null===(r=n.find(e=>e.key===D.Delete))||void 0===r?void 0:r.enable);p(e.res_id||"",o)}else s("/space/".concat(t,"/plugin/").concat(e.res_id))},renderItem:e=>(0,l.jsx)(T,{resourceInfo:e,defaultIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAMAAACTGUWNAAAAOVBMVEXKYf/////RdP/XiP/46//enP/89f/rxP/y1//Na//ksP/lsP/hpv/Oa//ouv/14f/vzv/bkv/Ufv90nrWCAAAHP0lEQVR42uzVQQ6CMBQA0X4p0AYi1vsfVlZuNOqGGpL3rjCLSQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcC713sZdG2qit7rOOZ6223hJ9NNKvChjoou6TPFWlqCHlmMnwZ8MJT7avOBI9RpfzRIcZpniB3lNPNg5FyRHYRiI0rYwJuTL/Q+7W7VbwzA1nxgyRm3pHSGqvIa2xW8QBSs8CqoSMt5wD1Vlkb+P4CjOCW+4h6oTb9iExM55rfzdQxVZeoc9TN6U7qJPWOFRUJWY8QLEPbSNccAKj4LvUSb/FWnqnH29g0dBVeaMl5PdQ1t7B4+CHzm8dwC8qFYqf4+Cvb2De6ge44QKXH0ExfJ3D32Fut7Bi+qNhDt+wKPgA2p7hyfxdmKhFzyHR8F/aOXvRfXu0tmjgF7+XlQvRMHhGI6COUMFd5seGq9Qg8UoOCcowpyH4g3KkEdnh6BE/kY9dPij55dMJkagS/7moiCqtM+CzF3LhDvU03AU6JW/jaL6oaB3MBwF2uXf+L63pt7BYhSQyH+FtBMFGkpnw1Ggs3ewU1RPoIbdQ0Fd62nr4H6k//2B26UjJgwg50r9+/8lkD4C/SO3cIm0px1BamSjhtVD9Pbh9lAT9uH1UCv2YfVQQ/ZhfCnLrZ5LcngotdHBfUogOBY4tWgfnmN5A1+U0OwhG/cTxxN0khq3j/ZHUgP20ewhc7vbujxkxz46PWTKPvo8ZM4+ujyUTl1zSODx0PM3T2LuWACGwHFlV2LJ5cqOhbJbZaeEg0jnkr0ergEA+j00XIqudrMNoMRDs6A6ORZ+T4RvAJCCv7iggPr2AUA4AEBmnR66XspXyikHAAxB39WJHLccX5AOAGlS9mqcztsWS1gHAMhDk4cK7CN4D+8ANHkox82LJcwDAHR4KPU7dpq5BwDpj/dQqX3WkA+gyEM3/AJ53rfWRj+AP+ydMQ6DMBAEtc45OBCF5P+fTUdFsxyLJS/7gRQjTeMJ19dD8UvZB0MAQNReCdecs88oACgPNZy2lvnVsQAAy+tqD8Xj8AWJEQEgaiLhSgQP9OPQqACAb7kuJW3l2HdkhwYALEXuIf7JcZsBAERNpBOEffi7uSYAgFX+ZNkK/TUpJwDAh/WQ1j5+AJQees7ck6MnAF06MVH2MQYATAIPrax9nAFwCZcqeHAGcLaHpkPBA5wBZFLSfG61zRkA46F3qOzjDIBLuFRPjnAGQKak+dxqf84AmJS0Rj632p8zAC7hktnHGQCZcOWDh/05A+BS0nRutT9rAHzCNSvs4wyA81ATZRbWAJiES2cfawCEh3T/hrUGQHhIaB9rAISHiNyKnTWAkzxUU/K3BkAkXMKz3dYAiJRUeD7LGgDhId3lVmsARMIlPN5nDYBIuITH+6wBIKrAPuSsAQBRBPahZg4AmErf06H2ABC169X6GwAQJZFbZXcD+LN37ygIBUAMRYkoYuv+FyuKn8Y2vBTnbOFOPXm6ng579yHAy/ly1HCxAG/n+zHDxQJ8XW9HjHMI8HP6e//pEuBDAAHGpUsAAcalSwABxqVLAAHGpUsAAcalSwABxqVLAAHGpUsAAcalSwABxqVLAAHGpUsAAcalSwABxqVLAAHGpUsAAcalSwABxqVLAAHGpUsAAcalS4AHe3egnSgMRGE4mU4Isq6g7/+we/a0p0paK5Ck5A73e4T8MuqIygCN83UxwCvqq9orQOdQjD5lIsDoUEw+ZSLA5FBcfMpEgMGhuPqUiQBXh+LkUyYCnByM3icsBOgdjrNPWAgQHI6TT1gIIA7I5GcsBIgOSXoYBgJAXQDp07CBAFgXgHPS+Uf4AcAugORf+PED/HFwRv8APYA6PLMhBB5A4QZQeiDgAW4OUvCfsAMgvQd+UgA6AOz5P/z3OHCA7s0Bk48CuAFGyOffL+8HYAPgfAqWSH5TGzRAj/7wfxcUM4BCT/+ZQfECdAamz51EtACXv84WGZEC9Hamz11QlACKcwPKOgNEgG6wNn3uJLYfYLLx0vOZm7YdwOTwnwvaboDu7A5AhlYDGB7+cxJbDGBk77DMVVsLYGjvsEzQlgIcY/jPSWwngLm9wzIytRGgB/3MvYCg+wc43PCfG7RcAO4dtpC4Z4B49OP/T7RQAO4dtgq6RwAFvt+nuKFEAA7/DBLzA3DpnOWmuQE4/DMFzQvAvUMuuWQF4NI5n8SMAFw6lxB0cwDuHco468YAB7vZrR6J2wJw6VyM9FsC8KVnQUHXB+DwL2ro1gbg3qEsiSsDcOlcmuiqABz+5QXNDdBx6ZzlNCwPwOFfhcSlAbh3qORNtwUYOfxLCbokAJfO9chlQQDuHWqS+DIAh39dQV8E4N6htrP+GIBL5+ok/hSAw/8XyPg8APcOvyLoswCGv2HdlqDfB+DeYWc8fiIiIqJ/7cEBCQAAAICg/6/bEagAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwHDYZnVcWjPfAAAAABJRU5ErkJggg==",tag:e.res_type===L.b0.Plugin&&e.res_sub_type===eh.zV.LOCAL?(0,l.jsx)(x.Vp,{"data-testid":"workspace.library.item.tag",color:"cyan",size:"mini",className:"flex-shrink-0 flex-grow-0",children:y.o.t("local_plugin_label")}):null}),renderActions:e=>{var t,o,i={disabled:!(null===(o=e.actions)||void 0===o?void 0:null===(t=o.find(e=>e.key===D.Delete))||void 0===t?void 0:t.enable),deleteDesc:y.o.t("library_delete_desc"),handler:(0,d._)(function*(){yield _.Js.DelPlugin({plugin_id:e.res_id}),r(),x.FN.success(y.o.t("Delete_success"))})};return(0,l.jsx)(eg,{deleteProps:i,actionList:null==n?void 0:n(e)})}}}},ey=r("614904"),ex=r("39663");var eb=((s={})[s.Workflow=0]="Workflow",s[s.Imageflow=1]="Imageflow",s[s.SceneFlow=2]="SceneFlow",s[s.ChatFlow=3]="ChatFlow",s[s.All=100]="All",s),ew={[L.b0.Workflow]:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAMAAACTGUWNAAAAP1BMVEUAuD7///9g0oZg04bf9ucgwVYQvErv+/Of5LdAym6A3J4wxWJQznq/7c+Q4KqP4Kt/259w15Kv6cPP8tuQ4Kswuk9SAAAGN0lEQVR42uzBsQkAIAwAsFKkKPr/vf6gHZMEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACNaueDsyr4VjnHZe+OkiKEgSAMpzEhsICsq/c/q0+WZaklTTK160x/R+AvhoGHgLPyNCRpUa4VbepUkpw07uhhV4Jz5ow+8pqEd0U/1ySsHT3tSejrrwKER54/mkK8Ff3NSY4qGf1lvRgfNsHCJckxBTb0QkbeALoF7qTCRtVT4JABVvRt9JAJVqYkB2RYyUn+NsKOHgIHzLCzJGE/Q+gpfMT/WIIUQAH+AwXgKIA3CsBRAG8UgKMA3igARwG8UQCOAnijABwF8EYBOArgjQJwFMAbBeAogDcKwFEAbxSAowDeKABHAbxRAI4CeKMAHAXwRgE4CuCNAnAUwBsF4CiANwrAUQBvFODD/HLLFbz6ervMCtBofqtokaeSThmv+BQ2wLKh3VSaj8sNGmDc73VU5HjDFzEDlIxeckmMl4qvQgZYKvqpCzF9vs+9iAGWChgV4OdewAClAvcosFb8IF4AYv73PLG2bPhZuAAT+tv+Xv0rfhEtwAAL6/nVP1qADAv5/OofLMAAGwOx+pt69J/JZNjYmlf/GP8QWGBlbl39Y5wb+gwrl4bVP9DJuRusbE2rf5izo2FnJFZ/O0/poS2wU4jV30xNj22GnfXc6h9rAg2wMzSt/kH+IfPO3rngNg7DQFSsZcufxGnavf9Zd7dAWiRpioxsVhQ17wIF/GJyLKmiqgAg+muxBuOoCgCivxLR+gugKyA7+jezDKEsAIr+6TzLhYZmWKkKQKL/OFy+yhtqANoCno/+cQr/WZt7/qoCzs9G//RZKua26s+HgPIc+/DJIco+ROOr0HYE3Ezf71fZg9n4IrQdAevdk+rHJNtIs/n4b0XAcQnf0Y1RcoljV8uvv7iAdA4PGaZDl8FS08MvLWCs7WH9w5GAWmLKNW4EpDpS+h1eBBzriSnX+BAQ7S9SPsKFgJXNt6SAI+f7lhSQzoGgAhj9v6hbAKM/LIDR/4aKBTD6wwIY/e+pVQCjPyqA0f97ahTA6J8hgNH/AdUJYPSHBTD6/0RdAhj9MwQ0dzQNoyoB9g/nG0C3B4xUUDgFRX4D5AjgItBD6hPAOlRcgMhrIEUFSLR+adLTVCpA5J11KEMAW8EdFQtgHQrlT0VwY6b4uSDWodIn4xhJMwSwFXziQADrUHEBIicqgAWwDn3gRQB3a4oLYCsoLoC7NXkCuFvjSMAPdWhYXjI4TLWdw8sUoLtbM7xsuqyjqoRVXsBdJO3/JNlGqqi/GxBwfYJuOLX1qacpYI14K5hiY/1d99bELoJ16LW5owC6AkI/Qrs1J9mTU6gA/Ztz3+VZxlGkOQO6Aj7ookC0VYV+5fb0WbLwP8LqlwRcWkEBovkPY30BuXWokX8S0RdwYUYVtDHC5CAYeAGG61Bbr8AieizA5Gg1kvEuMIge4ULBVmB/mq3+KEPgcvT9sT9IbBYt1vAt/Zv8IvaHeU6iw6UFlK9DxpuAWg2KwGunivUj2WfRoQtXgJG0oS48FBjq//POS2MCwG8x/AWAW0FrAoAugIc/A3XIvgCFIvTEyc/HuzXNCQhLkn1Jl+dvoQ5VIGBvAwlIfve7NS0KAAyAz99AK6hCQOijQv23UYfqELDfJNN12PjHWxWwTyk4LsY35kzTj1G2kNbJ/M6odab57T0JTopv56mGrWlCARahAAwK8AYFYFCANygAgwK8QQEYFOANCsCgAG9QAAYFeIMCMCjAGxSAQQHeoAAMCvAGBWBQgDcoAIMCvEEBGBTgDQrAoABvUAAGBXiDAjAowBsUgEEB3qAADArwBgVgUIA3KACDAryhKaCSYTIZVHKDsv0ZAgYY5JZ27g21QZRbWrk51wijXNHQ3dFG0OvCXSBPMCTRIQWC3ZnFClSGXjSwP0PGDqtosAZS8hLxyBcAHyXBZQgI09NUrM+wssbKBoBh3ACfP87M+lOYQ5R9iFyFLniBssjMRegNCpJsI82M/9voxii5xLHjr38HhunQZbDw4RNCCCGEEEIIIYSQv+3BAQkAAACAoP+v+xEqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATARdIIFVlfDXqAAAAABJRU5ErkJggg==",[L.b0.Imageflow]:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAMAAACTGUWNAAAAM1BMVEX/TcP/////edL/kNn/6ff/Y8v/vOn/9Pv/WMf/0vD/puH/seX/m93/3vT/hNb/bs7/x+yScX9bAAAIIUlEQVR42uzVQQ6CQBREwWmFGUDD/Y9rjDEksucvrLpDv24AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/h9ujb3Cgyr3nrS6PCPOVjbVTo+bo1CozEBArtOXiBAj2HZ+NyI9GgQnuiQZV6okGVRqJBhfZEgyr1RIMKLSPRoEL3RIMqTfm1Na5zz8kwgQtNOXuxc3fLjYMwGIb1gQAb//X+r3bd7WZCWki849iVPHrOe8I7UAy0A5mzZBTsUPp0C6rYFqFzBMY/thX9DYHREskcLjDa2gXmBEm4H7zO5xyO8cwUqGGRVeDT5NX91uoGvMC+mQ7ysLLPR8d4LQaqGyEQ69k8d2OPbaKjqh4S6ZgEnYsJ23F0Shah1Yf43wSV0d/UQMkUwCS6QG30tzdQMQUkf0F2Q8IePFKhk7cVFX6QGBh7TQrWILkHifzmXcYAoYQeJM7YoXZT4yGVzM1oxjssZVGpZF7oRbzDLH8bJPVdzYh3cBpmgMytqMMbsPTjIMnvaiL28xp2QStPAnUf2Cur+A6Qe53ne+yQBkeFAMEmEir4ft/oa/gMWDHJtTbYP/orhmQk2n80uI++pgkgPcAqRMYWPHb1n5c9AeQH+EyAl9JIDRGykQYL47k+UEOGcKRC6PFMJrXjryTA85VkpIZO8jewsgDtAu3xdxPkIzUm1GWqc5JPIDQGCAk1H1TjsvDdp8IANKOCg+bR1xWAevzk6ZuQNaz8OgM4/MD0oMs6Fn6lASpTwFNplPoE6yoBHL5JREpuvq4RgBIeRfXjryzAgEdOz7HzNQI4PGBFx87XCEAJpah/AmgLMKDk6E7X7l9tAIcCa3n6cKEAlHAXlbx+u1SAATfXWIHUBXC4aa9Ao3tO1DUZaZNw01yBHN2Jf6hC2mTchPoKZAEO1uNLbqxAFuBoGas0UmMFsgCH69y8tJ9/WoDzLShYgPNFFCzA6QJKFuB0jJIFOIbfektjAY6Rlo3vby3AMZDmbeNvAY4BIG/6i1YLcAyg8s8GfcIPFuAY+Kv35TM4RoUFOAZu+sHPzo/DhDoLcAxsZQG+WAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASzAH/bu4CaCGAiiaJmCRYLD5p8tIoBC9k6jHlv/h1Dv3g3APwN8++9udUZOuzQOTbs0Dk27NA5NuzQOTbs0Dk27NA5NuzQOTbs0Dk27NA5NuzQOTbs0Dk27NLbo8fbx9hjzAVCbV0/nAFCalx+XAVCZ159XAlCYX/iGCUBdFgCdWQB0ZgHQmQVAZxYAnVkAdGYB0JkFQGcWAJ1ZAHRmAdCZBUBnFgCdWQB0ZgHQmQVAZxYAnVkAdGYB0JkFQGcWAJ1ZAHRmAdCZBUBnFgCdWQB0ZgHQmQVAZxYAlX1+PZ9+H9NZAFT2/qHfHvP7A3ChsP+8gAXAhcL+8wIWABcK+88LWABcKOw/L2ABcKGw/7yABcCFwv7zAhYA40Jh/2kBC4AigLy/soAFQBVA3j8LWABUAeT9s4AFQBVA3j8LWABUAeT9s4AFQBVA3j8LWABUAeT9s4AFQBVA3j8LWABUAeT9s4AFQBVA3j8LWABUAeT9s4AFQBVA3j8LWABUAeT9s4AFQB1A3j8HwATATfcHYHV/AF4CuO3+AKzuD8ALADfeH4DV/QFYBrj1/gCs7g/AIsDN9wdgdX8Afti50x1HYSAIwF22wQfO8f5PuxrNTDYcJmSzkrtafP9HmlRBA+Z4qwD1+Z8FvJv/WcAbBRDkv1PAZareXf2U7RfQLf92AaEkefDZdgG98m8XEKvMuWC4gF75twu4J1kpZgvolX+7gCJbXLRZQOf8xTXyX7tFYUGU/7qASVq8sCDKf1VAEAOI8l8VcBMDiPJfFjCKBUT5LwtwYgGO0ZC/uL0jwO3qkhBCg8a93bVPgWoEgCJ88JKeX+aah+CCb1noYJ+qH+ZbE2hQtqW8A8dU6S+F1gQa8YvnCvgXDroX/xb33/lLcwIF4lMjkAqNY8MkZEBqMYF4ZxBIzSYQ8+UZOC0mEPEMAic/n0DEMwiUZktTgXqJCJT8fAIxzyAwmmU8AswzCIQmeRYB5hkEOrHKM6904cpqAaEkmQkA9S4AJqGssq1q127NFfCV/soQsOEqPMDhkf5Cxpao4g6qoQKyk20F2y5CA/oFJw1F+U1sGwVMSRqq+scILBRQpKVgTyY5DkC5Zv5Dxr7A8eQidBulocYDf8ywE0C1sB1hqgFHBIIKoJqXDW6KOCx75R1As7CTvpUOAhTzrfQNdXCBYsMy/Q9kpW8tjdDrIk8KPnVX+fi6h17T4f+T6SH7hQF61c+OVSR3ajLU8oc/lEL0jPdKhVpOHq6A1RmUIrTy8nDDPqYXfZYKtPLPm4nZY4Aktddi06ebCcmb9Q5KZfkrXbDA9K2vFyboFJM8qQGfiJPK6zDdp6JeZtwY8G/iqPst7qR0RSjLkhuDufS/pDtUciJbHRhLX/HJaJZNbsQxuXKk/8WpPButsm04UkHQed7fVDRW0MzQB7xQeLb+H8nrOxjHmzQMF1Ob/4/Bj1nXjhC9tIyUV12WjGf+neUz/75SwDeL31Ok4IjW/W2aiJadTUoRK0qfADKqnDtAX+ncATrLmIt0KxDkKsOzJ5Yl4re0bcjMX6uxoJ4TqK90TqDO8jmB+qrnBOornRPoTzt3cAIACMMAEASL1f33dQZfpXI3RD4JKZYSqNaQQMVSE1ZrRauHlB/NHafnEAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4NUFirWtPQ3mwlIAAAAASUVORK5CYII="},e_=e=>{var{spaceId:t,reloadList:r,getCommonActions:n}=e,o=(0,ex.Pc)(),{workflowResourceModals:i,handleWorkflowResourceClick:s,renderWorkflowResourceActions:a,openCreateModal:u}=(0,ey.oh)({spaceId:t,userId:null==o?void 0:o.user_id_str,refreshPage:r,getCommonActions:n});return{modals:i,config:{typeFilter:{label:y.o.t("library_resource_type_workflow"),value:L.b0.Workflow},parseParams:e=>{var t;return(null==e?void 0:null===(t=e.res_type_filter)||void 0===t?void 0:t[0])===L.b0.Workflow?(0,h._)((0,p._)({},e),{is_get_imageflow:!0}):e},renderCreateMenu:()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.v2.Item,{"data-testid":"workspace.library.header.create.workflow",icon:(0,l.jsx)(O.eTH,{}),onClick:()=>{u(eb.Workflow)},children:y.o.t("library_resource_type_workflow")}),null]}),target:[L.b0.Workflow,L.b0.Imageflow],onItemClick:s,renderItem:e=>(0,l.jsx)(T,{resourceInfo:e,defaultIcon:void 0!==e.res_type?ew[e.res_type]:void 0,tag:!0===e.collaboration_enable?(0,l.jsx)(x.Vp,{"data-testid":"workspace.library.item.tag",color:"brand",size:"mini",className:"flex-shrink-0 flex-grow-0",children:y.o.t("library_filter_tags_collaboration")}):null}),renderResType:e=>e.res_type===L.b0.Workflow&&e.res_sub_type===eb.ChatFlow?y.o.t("wf_chatflow_76"):y.o.t("library_resource_type_workflow"),renderActions:a}}},ek=r("189284"),eC=r("628253"),eA=r("28260");var eO=((a={})[a.SingleMode=0]="SingleMode",a[a.MultiMode=1]="MultiMode",a[a.WorkflowMode=2]="WorkflowMode",a),eD=e=>(0,d._)(function*(){var t,r,n=yield _.sD.GetDraftIntelligenceList({space_id:e.spaceId,name:e.searchValue,size:20,cursor_id:e.cursorId,order_by:eC.d$.UpdateTime,types:[eA.jH.Bot],status:[eA.Gr.Using],search_scope:eC.$0.CreateByMe,option:{need_replica:!0}}),o=(null!==(r=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.intelligences)&&void 0!==r?r:[]).filter(e=>{var t;return(null===(t=e.other_info)||void 0===t?void 0:t.bot_mode)===eO.SingleMode});return(null==n?void 0:n.code)===0&&(null==n?void 0:n.data)?{list:o,hasMore:!!n.data.has_more,nextCursorId:n.data.next_cursor_id}:{list:[],hasMore:!1}})(),eS=e=>{var t,{spaceId:r,searchValue:n,containerRef:o}=e;return(0,g.Z)((t=(0,d._)(function*(e){return yield eD({spaceId:r,searchValue:n,cursorId:null==e?void 0:e.nextCursorId})}),function(e){return t.apply(this,arguments)}),{target:o,isNoMore:e=>!(null==e?void 0:e.hasMore),reloadDeps:[n]})},eT=new class e{highlightText(e,t){if(!t)return e;var r=e.split(RegExp("(".concat(t,")"),"gi"));return(0,l.jsx)(l.Fragment,{children:r.map((e,r)=>e.toLowerCase()===t.toLowerCase()?(0,l.jsx)("span",{className:"coz-fg-hglt-yellow",children:e},r):e)})}},eE=e=>{var{intelligence:t,searchValue:r,onClick:n}=e,{basic_info:o}=t;return(0,l.jsx)("div",{className:"rounded-lg hover:coz-mg-secondary-hovered cursor-pointer h-[80px] box-border",onClick:n,children:(0,l.jsxs)("div",{className:"flex items-center gap-[14px] px-3 h-full",children:[(0,l.jsx)("img",{src:null==o?void 0:o.icon_url,className:"flex-shrink-0 w-[52px] h-[52px] rounded-lg",alt:null==o?void 0:o.name}),(0,l.jsxs)("div",{className:"w-full overflow-hidden flex flex-col gap-1 justify-center border-b-[0.6px] border-solid border-0 coz-stroke-primary pb-3 pt-2 h-full",children:[(0,l.jsx)("div",{className:"font-medium text-sm",children:(0,l.jsx)(x.ZT.Text,{className:"text-[16px] !font-medium w-full",children:eT.highlightText((null==o?void 0:o.name)||"",r)})}),(null==o?void 0:o.description)?(0,l.jsx)("div",{className:"text-sm leading-4 coz-fg-secondary",children:(0,l.jsx)(x.ZT.Text,{className:"text-sm w-full",ellipsis:{rows:1},children:eT.highlightText((null==o?void 0:o.description)||"",r)})}):null,(0,l.jsxs)("div",{className:"text-xs coz-fg-secondary flex items-center gap-1",children:[(0,l.jsx)("div",{className:"text-xs coz-fg-secondary",children:y.o.t("bot_list_rank_tag_edited")}),(0,l.jsx)("div",{className:"text-xs coz-fg-secondary",children:(0,b.p6)(Number(null==o?void 0:o.update_time),(0,b.uq)(Number(null==o?void 0:o.update_time)))})]})]})]})})},eM=e=>{var{loading:t,loadingMore:r,noMore:n,data:o,searchValue:i,onSelect:s}=e;return t?(0,l.jsx)("div",{className:"flex justify-center py-8",children:(0,l.jsx)(x.yC,{})}):(null==o?void 0:o.list.length)?(0,l.jsxs)("div",{className:"relative h-full",children:[(0,l.jsx)("div",{className:"sticky top-0 left-0 right-0 h-[20px] bg-gradient-to-b from-[rgba(255,255,255,1)] to-transparent pointer-events-none z-10"}),(0,l.jsxs)("div",{className:"styled-scrollbar",children:[o.list.map(e=>{var t;return(0,l.jsx)(eE,{intelligence:e,searchValue:i,onClick:()=>s(e)},null===(t=e.basic_info)||void 0===t?void 0:t.id)}),r?(0,l.jsxs)("div",{className:"flex items-center justify-center h-[38px] my-[20px] text-[12px]",children:[(0,l.jsx)(x.hU,{icon:(0,l.jsx)(O.j2n,{}),loading:!0,color:"secondary"}),(0,l.jsxs)("div",{children:[y.o.t("Loading"),"..."]})]}):null,n&&o.list.length>0?(0,l.jsx)("div",{className:"h-[38px] my-[20px]"}):null]}),(0,l.jsx)("div",{className:"sticky bottom-0 left-0 right-0 h-[20px] bg-gradient-to-t from-[rgba(255,255,255,1)] to-transparent pointer-events-none z-10"})]}):(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center w-full h-full",children:[(0,l.jsx)(O.nL$,{className:"w-[48px] h-[48px] coz-fg-dim"}),(0,l.jsx)("div",{className:"text-sm coz-fg-primary mt-2",children:y.o.t("select_agent_no_result")})]})},ej=e=>{var{visible:t,onCancel:r,onSelect:n,spaceId:o}=e,i=(0,c.useRef)(null),[s,a]=(0,c.useState)(""),{loading:u,data:d,loadingMore:p,noMore:h}=eS({spaceId:o,searchValue:s,containerRef:i});return(0,l.jsx)(x.u_,{visible:t,onCancel:r,width:640,height:588,className:"[&_.semi-modal-header]:flex [&_.semi-modal-header]:items-center [&_.semi-modal-header]:px-3 [&_.semi-modal-content]:!px-3 [&_.semi-modal-content]:!coz-bg-max",footer:null,title:(0,l.jsxs)("div",{className:"flex items-center justify-between w-full mr-4",children:[(0,l.jsx)("div",{className:"coz-fg-plus text-[20px] font-medium",children:y.o.t("select_agent_title")}),(0,l.jsx)(x.ol,{placeholder:y.o.t("Search"),value:s,onChange:a,showClear:!0})]}),children:(0,l.jsx)("div",{ref:i,className:"max-h-[480px] h-full overflow-auto",children:(0,l.jsx)(eM,{loading:u,loadingMore:p,noMore:h,data:d,searchValue:s,onSelect:e=>{null==n||n(e)}})})})},eN=e=>{var[t,r]=(0,c.useState)(!1),n=()=>{r(!1)};return{node:t?(0,l.jsx)(ej,{visible:t,spaceId:e.spaceId,onSelect:e.onSelect,onCancel:n}):null,close:n,open:()=>{r(!0)}}},eP=r("753015"),{TableAction:eB}=x.iA,eI=e=>{var{spaceId:t,isPersonalSpace:r=!0,reloadList:n,getCommonActions:o}=e,i=(0,u.useNavigate)(),[s]=(0,ek.V)(),a=(0,c.useRef)(null),{open:d,node:p}=eN({spaceId:t,onSelect:e=>{var r,n,o=null===(r=e.basic_info)||void 0===r?void 0:r.id,s=null===(n=a.current)||void 0===n?void 0:n.res_id;i("/space/".concat(t,"/bot/").concat(o),{replace:!0,state:{mode:"diff",diffPromptResourceId:s,targetId:o}}),(0,w.Gg)(w.Kg.compare_mode_front,{bot_id:o,compare_type:"prompts",from:"prompt_resource",source:"bot_detail_page",action:"start"})}}),{open:h,node:f}=(0,eP.c)({spaceId:t,source:"resource_library",enableDiff:s["bot.studio.prompt_diff"],onUpdateSuccess:n,onDiff:e=>{var{libraryId:t}=e;a.current={res_id:t},d()}}),{run:m}=(0,eu.Z)(e=>_.pr.DeletePromptResource({prompt_resource_id:e}),{manual:!0,onSuccess:()=>{n(),x.FN.success(y.o.t("Delete_success"))}});return{modals:(0,l.jsxs)(l.Fragment,{children:[p,f]}),config:{typeFilter:{label:y.o.t("library_resource_type_prompt"),value:L.b0.Prompt},renderCreateMenu:()=>(0,l.jsx)(x.v2.Item,{"data-testid":"workspace.library.header.create.prompt",icon:(0,l.jsx)(O.TU,{}),onClick:()=>{(0,w.Gg)(w.Kg.widget_create_click,{source:"menu_bar",workspace_type:r?"personal_workspace":"team_workspace"}),h({mode:"create"})},children:y.o.t("creat_new_prompt_prompt")}),target:[L.b0.Prompt],onItemClick:e=>{var t,r;a.current=e,h({mode:"info",canEdit:null===(r=e.actions)||void 0===r?void 0:null===(t=r.find(e=>e.key===D.Edit))||void 0===t?void 0:t.enable,editId:e.res_id||""})},renderActions:e=>{var t,r,n,i;return(0,l.jsx)(eB,{deleteProps:{disabled:!(null===(r=e.actions)||void 0===r?void 0:null===(t=r.find(e=>e.key===D.Delete))||void 0===t?void 0:t.enable),deleteDesc:y.o.t("prompt_resource_delete_describ"),handler:()=>{m(e.res_id||"")}},editProps:{disabled:!(null===(i=e.actions)||void 0===i?void 0:null===(n=i.find(e=>e.key===D.Edit))||void 0===n?void 0:n.enable),handler:()=>{h({mode:"edit",editId:e.res_id||""})}},actionList:null==o?void 0:o(e)})}}}},eL=r("328591"),eF=r("402635"),{TableAction:ez}=x.iA,eR={0:"library_filter_tags_text",1:"library_filter_tags_table",2:"library_filter_tags_image"},eX={3:"library_filter_tags_disabled"},eZ=e=>{var t,r,n=void 0!==e.res_sub_type&&eR[e.res_sub_type],o=void 0!==e.biz_res_status&&eX[e.biz_res_status];return(0,l.jsx)(T,{resourceInfo:e,defaultIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAMAAACTGUWNAAAAM1BMVEUYi/////9vt/+o0/+Lxf81mf/F4v9SqP/i8f8mkv/x+P99vv9gr/+azP9Dof/T6v+32/+UJ2cMAAAFCElEQVR42uzBsQkAIAwAsOpgKYj/n+sbRZMEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAjas9eMk/FN3KNji779pbbIAxFUfReCMZxnvMfbdVIlfpBK1lqwPv07BEkLNlgY1p5XtZ/wLCMefm/esxXbYR7y+Er0xKqLYDr/9m8hmY1KdVJcSqaElQ96c1EnAHwql5CqzVp1SmUuiSvWWkeuiUwpUEwJzKdQQAFyKoiQAXIJvI4hAXIPIVCYAANATJA3oIfGiDnwMcGEJiF4AB8ATpA0hfFeIB2D3R4gKzstzR8gHwGOQGARG9KKAA08sacAkCW4CYBkOATKxoANbBpAIAXxCIADbsYEAHgDgEVgBbQVACwm3IyANS1gAwAdS2gAwC9DesAQG/DOgDQOUgIgDkHCQEwn4OEABK5HaEEcA1gSgDIk4pKAMi380oAyNcySgDIu7AUAPGQnBQA8TFICoD4TkAKgLgZYYC+DKD2xZIB+jKAAQbOAH0ZwADHZ4C+DGCAgTNAXwYwwPEZoC8DGGDgDNCXAQxwfAboywAGeFUf5Z1VA/xWO53jzS1TNcBPlXPs0FIMsN0jdqoYYLMldmppBjj2T94G/m1/BzDwt4irAY49An42wEaxY/ktA3gE9NYPMNgZ/A/27gXHTRgKo7AvYMC8kv2vtlVbKZO2qXRpEvu/OWcFI31jbAcMGwCu49D1/7aPAHjfMmgyAGp+QCrPADwQ2NIbmmYD4FFjd+TX1o1mAMgFgC8AAKgfAL4AAKDhAPAFAAD1A8AXAAA0HAC+AACgfgD4AgCAhgPAFwAA1A8AXwAA0HCfA3Dph5e2XwD4R+OUXl7uAaj8ftoBgMrvB94BqPuZijIDUPcV8QMAdb9SkQH4I86IAfDpADm9rQOAv7Smt9UBUPeQHsvQukNgMABq7gQ6A+BBQ04vr+wGwMOWfu1e2tovBoBeAPgCAID6AeALAAAaDgBfAABQPwB8AQBAwwHgCwAA6geALwAAaDgAfAEAQP0A8AUAAA33MQDLvk3+tn62+wA4BbCs6WR5sLsAOAOwHOl8q30NgDMA3dNO3gFQ4enostgtAM4d0mt2CHwEQH7ip5EAqHBGbLJzAfCrAsCPZM8Jd3YLgBMAQ/q/rnYLgBMAS3ne6XcATgDY/rwXcADw7vcFlYt9DQAHwBM+pVe62e4C4Abgaxl7f+NivwUAN2SqB4AvAABoOAB8AQBA/QDwBQAADQeALwAAqB8AvgAAoOEA8AUAAPUbLFAA+ALge50FShFgs0ApAhwWKEWAYoFSBEizxUkS4GpxkgTYLU6SAJGWQZIAkWZhSYA0Wpg0AQL9GKEJMFmYNAHSYlESBYhzDRIFiHMNEgWIsw5SBQhzT0AVIMw0LAsQZRqWBShBhoAsQJQhoAsQ5LaMMECMvYAwQIy9gDJAjjAPKwOk1fSTBohwd14boOivhLQB0iE/DYgD6P8opw4gvyGWB1AX0AcQP7EUAED7ScUIANJXoRAAygIxANIqux8IApCy6p44CkDKoouhMAApdZKDYE9xkhwEa4qU4CA4UqxWMYI5RSsPUgRdilcRuhDFGwA/m0Sm4yWnqOVO4KGVJdoMfF/Z+ou13Bj3//+GMK3Xsc3ficYpfUzlmKaurbaSiIiIiIiIiIjoW3twQAIAAAAg6P/rfoQKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAT9irYmTo16WgAAAABJRU5ErkJggg==",tag:(0,l.jsxs)(l.Fragment,{children:[(null===(t=(0,F.dj)(null===(r=e.biz_extend)||void 0===r?void 0:r.processing_file_id_list))||void 0===t?void 0:t.length)?(0,l.jsx)(x.Vp,{"data-testid":"workspace.library.item.tag",color:"brand",size:"mini",className:"flex-shrink-0 flex-grow-0",prefixIcon:(0,l.jsx)(O.kSS,{}),children:y.o.t("library_filter_tags_processing")}):null,n?(0,l.jsx)(x.Vp,{"data-testid":"workspace.library.item.tag",color:"brand",size:"mini",className:"flex-shrink-0 flex-grow-0",children:y.o.t(n)}):null,o?(0,l.jsx)(x.Vp,{"data-testid":"workspace.library.item.tag",color:"red",size:"mini",className:"flex-shrink-0 flex-grow-0",children:y.o.t(o)}):null]})})},eW=()=>({label:(0,l.jsx)("span",{"data-testid":"space.library.filter.knowledge",children:y.o.t("library_resource_type_knowledge")}),filterName:y.o.t("library_resource_type_knowledge"),value:L.b0.Knowledge,children:[{label:(0,l.jsx)("span",{"data-testid":"space.library.filter.knowledge.all_types",children:y.o.t("library_filter_tags_all_types")}),value:-1},{label:(0,l.jsx)("span",{"data-testid":"space.library.filter.knowledge.text",children:y.o.t("library_filter_tags_text")}),value:0},{label:(0,l.jsx)("span",{"data-testid":"space.library.filter.knowledge.table",children:y.o.t("library_filter_tags_table")}),value:1},{label:(0,l.jsx)("span",{"data-testid":"space.library.filter.knowledge.image",children:y.o.t("library_filter_tags_image")}),value:2}]}),eV=e=>{var{spaceId:t,reloadList:r,getCommonActions:n}=e,o=(0,u.useNavigate)(),{modal:i,open:s,close:a}=(0,eL.Eb)({onFinish:(e,r,n)=>{o("/space/".concat(t,"/knowledge/").concat(e).concat(n?"/upload":"","?type=").concat(r,"&from=create")),a()}}),{run:c}=(0,eu.Z)(e=>_.MJ.DeleteDataset({dataset_id:e}),{manual:!0,onSuccess:()=>{r(),x.FN.success(y.o.t("Delete_success"))}}),{run:d,loading:p}=(0,eu.Z)((e,t)=>{var r;return _.MJ.UpdateDataset({dataset_id:t.res_id,name:t.name,description:t.desc,icon_uri:null===(r=t.biz_extend)||void 0===r?void 0:r.icon_uri,status:e?eF._z.DatasetReady:eF._z.DatasetForbid})},{manual:!0,debounceWait:300,onSuccess:r});return{modals:(0,l.jsx)(l.Fragment,{children:i}),config:{typeFilter:eW(),renderCreateMenu:()=>(0,l.jsx)(x.v2.Item,{"data-testid":"workspace.library.header.create.knowledge",icon:(0,l.jsx)(O.Guk,{}),onClick:s,children:y.o.t("library_resource_type_knowledge")}),target:[L.b0.Knowledge],onItemClick:e=>{o("/space/".concat(t,"/knowledge/").concat(e.res_id,"?from=library"))},renderItem:eZ,renderActions:e=>{var t,r,o,i,s,a=!(null===(r=e.actions)||void 0===r?void 0:null===(t=r.find(e=>e.key===D.Delete))||void 0===t?void 0:t.enable),u=!(null===(i=e.actions)||void 0===i?void 0:null===(o=i.find(e=>e.key===D.EnableSwitch))||void 0===o?void 0:o.enable),h={disabled:a,deleteDesc:y.o.t("library_delete_desc"),handler:()=>{c(e.res_id||"")}},f={actionKey:"enable",actionText:y.o.t("library_actions_enable"),disabled:u||p,extActionDom:(0,l.jsx)(x.rs,{size:"mini",disabled:u,loading:p,defaultChecked:3!==e.biz_res_status,onChange:t=>{d(t,e)}})};return(0,l.jsx)(ez,{deleteProps:h,actionList:[f,...null!==(s=null==n?void 0:n(e))&&void 0!==s?s:[]]})}}}},eH=(0,c.forwardRef)((e,t)=>{var r,n,o,i,{spaceId:s,isPersonalSpace:a=!0,entityConfigs:u}=e,{params:f,setParams:A,resetParams:O,hasFilter:D,ready:S}=U({spaceId:s});var T=(0,g.Z)((r=(0,d._)(function*(e){if(!S)return{list:[],nextCursorId:void 0,hasMore:!1};var t=yield _.Js.LibraryResourceList(u.reduce((e,t)=>{var r,n;return null!==(n=null===(r=t.parseParams)||void 0===r?void 0:r.call(t,e))&&void 0!==n?n:e},(0,h._)((0,p._)({},f),{cursor:null==e?void 0:e.nextCursorId,space_id:s,size:15})));return{list:(null==t?void 0:t.resource_list)||[],nextCursorId:null==t?void 0:t.cursor,hasMore:!!(null==t?void 0:t.has_more)}}),function(e){return r.apply(this,arguments)}),{reloadDeps:[f,s]});(0,c.useImperativeHandle)(t,()=>({reloadList:T.reload}));var E=N({entityConfigs:u,reloadList:T.reload,isPersonalSpace:a}),M=[{label:y.o.t("library_filter_tags_all_types"),value:-1},...u.map(e=>e.typeFilter).filter(e=>!!e)],j=X(),P=Z();return(0,l.jsxs)(x.Ar,{className:el["layout-content"],title:(0,b.Z$)(y.o.t("navigation_workspace_library")),children:[(0,l.jsx)(x.Ar.Header,{className:m()(el["layout-header"],"pb-0"),children:(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(q,{entityConfigs:u}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)(x.T,{children:[(0,l.jsx)(x.vT,{"data-testid":"workspace.library.filter.type",className:el.cascader,style:(null==f?void 0:null===(n=f.res_type_filter)||void 0===n?void 0:n[0])!==-1?k.J:{},dropdownClassName:"[&_.semi-cascader-option-lists]:h-fit",showClear:!1,value:f.res_type_filter,treeData:M,onChange:e=>{var t,r=M.find(t=>t.value===(null==e?void 0:e[0]));(0,w.Gg)(w.Kg.workspace_action_front,{space_id:s,space_type:a?"personal":"teamspace",tab_name:"library",action:"filter",filter_type:"types",filter_name:null!==(t=null==r?void 0:r.filterName)&&void 0!==t?t:null==r?void 0:r.label}),A(t=>(0,h._)((0,p._)({},t),{res_type_filter:e}))}}),a?null:(0,l.jsx)(x.Ph,{"data-testid":"workspace.library.filter.user",className:m()(el.select),style:(null==f?void 0:f.user_filter)!==0?k.J:{},showClear:!1,value:f.user_filter,optionList:j,onChange:e=>{var t;(0,w.Gg)(w.Kg.workspace_action_front,{space_id:s,space_type:a?"personal":"teamspace",tab_name:"library",action:"filter",filter_type:"creators",filter_name:null===(t=j.find(t=>t.value===(null==e?void 0:e[0])))||void 0===t?void 0:t.label}),A(t=>(0,h._)((0,p._)({},t),{user_filter:e}))}}),(0,l.jsx)(x.Ph,{"data-testid":"workspace.library.filter.status",className:el.select,style:(null==f?void 0:f.publish_status_filter)!==0?k.J:{},showClear:!1,value:f.publish_status_filter,optionList:P,onChange:e=>{var t;(0,w.Gg)(w.Kg.workspace_action_front,{space_id:s,space_type:a?"personal":"teamspace",tab_name:"library",action:"filter",filter_type:"status",filter_name:null===(t=P.find(t=>t.value===(null==e?void 0:e[0])))||void 0===t?void 0:t.label}),A(t=>(0,h._)((0,p._)({},t),{publish_status_filter:e}))}})]}),(0,l.jsx)(x.ol,{"data-testid":"workspace.library.filter.name",className:"!min-w-min",style:f.name?k.J:{},showClear:!0,width:200,loading:T.loading,placeholder:y.o.t("workspace_library_search"),value:f.name,onSearch:e=>{(0,w.Gg)(w.Kg.search_front,{full_url:window.location.href,source:"library",search_word:e}),A(t=>(0,h._)((0,p._)({},t),{name:e}))}})]})]})}),(0,l.jsx)(x.Ar.Content,{children:(0,l.jsx)(x.iA,{"data-testid":"workspace.library.table",offsetY:178,tableProps:{loading:T.loading,dataSource:null===(o=T.data)||void 0===o?void 0:o.list,columns:E,onRow:e=>!e||void 0===e.res_type||e.detail_disable?{}:{onClick:()=>{var t;(0,w.Gg)(w.Kg.workspace_action_front,{space_id:s,space_type:a?"personal":"teamspace",tab_name:"library",action:"click",id:e.res_id,name:e.name,type:e.res_type&&W[e.res_type]}),null===(t=u.find(t=>t.target.includes(e.res_type)))||void 0===t||t.onItemClick(e)}}},empty:(0,l.jsx)(C.G,{onClear:O,hasFilter:D}),enableLoad:!0,loadMode:"cursor",strictDataSourceProp:!0,hasMore:null===(i=T.data)||void 0===i?void 0:i.hasMore,onLoad:T.loadMore})})]})}),eU=e=>{var{spaceId:t}=e,r=(0,c.useRef)(null),n={spaceId:t,reloadList:()=>{var e;null===(e=r.current)||void 0===e||e.reloadList()}},{config:o,modals:i}=ev(n),{config:s,modals:a}=e_(n),{config:u,modals:d}=eV(n),{config:p,modals:h}=eI(n),{config:f,modals:m}=ep(n);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eH,{spaceId:t,ref:r,entityConfigs:[o,s,u,p,f]}),i,a,h,m,d]})},eq=()=>{var{space_id:e}=(0,u.useParams)();return e?(0,l.jsx)(eU,{spaceId:e}):null}},610382:function(e,t,r){"use strict";r.d(t,{Hv:()=>z,rm:()=>n.rm,qz:()=>R.q});var n=r("910376");r("786406");var o=r("825955"),i=r("808549"),s=r("120454"),a=r("151064"),l=r("455069"),u=r("626389"),c=r.n(u),d=r("252237"),p=r.n(d),h=r("287487"),f=r("336205"),m=r("707107"),g=r("214942"),y=r("775699"),x=r("966219"),b=r("458949"),w=r("178385"),_=r("382534"),k=r("407821"),C=r.n(k),A=r("472772"),O=r.n(A),D=r("395245"),S=r.n(D),T=r("297998"),E=r.n(T),M=r("646576"),j=r.n(M),N=r("606121"),P=r.n(N),B=r("376756"),I={};I.styleTagTransform=P(),I.setAttributes=E(),I.insert=S().bind(null,"head"),I.domAPI=O(),I.insertStyleElement=j(),C()(B.Z,I);var L=B.Z&&B.Z.locals?B.Z.locals:void 0,F=[{label:"cURL",value:b.gR.Curl},{label:"Wget",value:b.gR.Wget},{label:"Node.js",value:b.gR.NodeJS},{label:"Python",value:b.gR.Python},{label:"Golang",value:b.gR.Golang}],z=e=>{var{onCancel:t,visible:r,pluginAPIInfo:n}=e,[u,d]=(0,l.useState)(b.gR.Curl),[k,C]=(0,l.useState)(""),{id:A,space_type:O}=(0,g.rY)(e=>e.space),D=O===w.Sn.Personal,S=h.Z.useUserInfo();return(0,l.useEffect)(()=>{d(b.gR.Curl),C("")},[r]),(0,l.useEffect)(()=>{if(n){var e;(e=(0,o._)(function*(){C("");var e=yield _.Js.PluginAPI2Code({plugin_id:n.plugin_id||"",api_id:n.api_id||"",space_id:A||"",dev_id:(null==S?void 0:S.user_id_str)||"",program_lang:u});C((null==e?void 0:e.program_code)||"")}),function(){return e.apply(this,arguments)})()}},[u,n]),(0,a.jsx)(y.M5,{type:"base-composition",title:f.o.t("code_snippet"),visible:r,onCancel:t,footer:(0,a.jsx)(y.T,{children:(0,a.jsx)(y.y3,{theme:"solid",type:"primary",onClick:()=>{var e=c()(k),t={environment:"cn-boe",workspace_id:A||"",workspace_type:D?"personal_workspace":"team_workspace",tool_id:(null==n?void 0:n.api_id)||"",code_type:function(e){switch(e){case b.gR.Curl:return"curl";case b.gR.Wget:return"wget";case b.gR.NodeJS:return"javascript";case b.gR.Python:return"python";case b.gR.Golang:return"golang";default:return""}}(u)||"",status:1};e?(y.O$.success({content:f.o.t("copy_success")}),(0,m.Gg)(m.Kg.code_snippet_front,(0,s._)((0,i._)({},t),{status:0}))):(y.O$.warning({content:f.o.t("copy_failed")}),(0,m.Gg)(m.Kg.code_snippet_front,(0,s._)((0,i._)({},t),{status:1,error_message:"copy_failed"})))},children:f.o.t("copy")})}),maskClosable:!1,children:(0,a.jsxs)("div",{className:"h-[100%] flex flex-col min-h-0",children:[(0,a.jsx)("div",{children:(0,a.jsx)(y.FX,{type:"card",options:F,defaultValue:u,className:"mb-[16px]",value:u,onChange:e=>d(e.target.value)})}),(0,a.jsx)("div",{className:p()(L["editor-container"],"flex-1 min-h-0"),children:(0,a.jsx)(x.Editor,{className:L.editor,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1},language:function(e){switch(e){case b.gR.Curl:case b.gR.Wget:case b.gR.NodeJS:return"javascript";case b.gR.Python:return"python";case b.gR.Golang:return"go";default:return"javascript"}}(u),theme:"tomorrow",width:"100%",value:k})})]})})};r("3779"),r("512421");var R=r("317612")},317612:function(e,t,r){"use strict";r.d(t,{q:()=>k});var n=r("808549"),o=r("473980"),i=r("151064"),s=r("455069"),a=r("550655"),l=r("120454"),u=r("664319"),c=r("252237"),d=r.n(c),p=r("277194"),h=r("336205"),f=r("775699"),m=r("30961"),g=r("458949");r("382534");var{Select:y,TextArea:x}=r("659596").l0;g.nw.NotFoundPlugin,h.o.t("plugin_feedback_modal_request_type_official_plugins_not_found"),g.nw.OfficialPlugin,h.o.t("plugin_feedback_modal_request_type_feedback_to_existing_plugin"),r("398778");var b=r("770131"),w=r("719894"),_=e=>{var{type:t,openMode:r,from:s,openModeCallback:a,showButton:c,showCopyPlugin:g,onCopyPluginCallback:y,pluginApiList:x,projectId:_,clickProjectPluginCallback:k,hideCreateBtn:C,initQuery:A}=e,O=(0,o._)(e,["type","openMode","from","openModeCallback","showButton","showCopyPlugin","onCopyPluginCallback","pluginApiList","projectId","clickProjectPluginCallback","hideCreateBtn","initQuery"]),{pluginApis:D,updateSkillPluginApis:S}=(0,p.Ee)((0,u.N)(e=>({pluginApis:e.pluginApis,updateSkillPluginApis:e.updateSkillPluginApis}))),{sider:T,filter:E,content:M}=(0,b.A)({pluginApiList:x?x:r===m.jG.OnlyOnceAdd?[]:D,onPluginApiListChange:S,openMode:r,from:s,openModeCallback:a,showButton:c,showCopyPlugin:g,onCopyPluginCallback:y,projectId:_,clickProjectPluginCallback:k,onCreateSuccess:null==O?void 0:O.onCreateSuccess,isShowStorePlugin:null==O?void 0:O.isShowStorePlugin,hideCreateBtn:C,initQuery:A});return(0,i.jsx)(f.FS,(0,l._)((0,n._)({"data-testid":"plugin-modal"},O),{header:h.o.t("bot_edit_plugin_select_title"),className:d()(w.Z["plugin-modal"],O.className),sider:T,extra:null,filter:E,content:M}))},k=e=>{var t=e||{},{closeCallback:r}=t,l=(0,o._)(t,["closeCallback"]),[u,c]=(0,s.useState)(!1),[d,p]=(0,s.useState)(1),[h,f]=(0,s.useState)();return{node:u?(0,i.jsx)(_,(0,n._)({type:d,visible:u,onCancel:()=>{c(!1),null==r||r()},initQuery:h,footer:null},l)):null,open:e=>{var t=(0,a.Z)(e)?e:null==e?void 0:e.openType,r=(0,a.Z)(e)?void 0:null==e?void 0:e.initQuery;c(!0),f(r),(0,a.Z)(t)&&p(t)},close:()=>{c(!1),f(void 0),null==r||r()}}}},381677:function(e,t,r){"use strict";r.d(t,{Tj:function(){return n.Tj},_u:function(){return n._u},cC:function(){return n.cC},e2:function(){return n.e2}});var n=r(910376)},770131:function(e,t,r){"use strict";r.d(t,{A:()=>W});var n=r("808549"),o=r("120454"),i=r("151064"),s=r("455069"),a=r("664319"),l=r("287487"),u=r("76672"),c=r("388993"),d=r("214942"),p=r("117140"),h=r("178385"),f=r("833047"),m=r("252237"),g=r.n(m),y=r("336205"),x=r("775699"),b=r("44172"),w=r("150838"),_=e=>{var{isSearching:t,type:r,onChange:n,projectId:o,from:s,isShowStorePlugin:a=!0}=e,l=(0,d.rY)(e=>e.space.space_type),u=(0,f.ir)().id,c=e=>{if(t){n(e);return}if(e!==r)n(e)};return(0,i.jsxs)("div",{className:w.Z["tool-tag-list"],children:[l===h.Sn.Personal&&(0,i.jsxs)("div",{"data-testid":"plugin.modal.filter.option.mine",className:g()(w.Z["tool-tag-list-cell"],{[w.Z.active]:r===f.eL.Mine}),onClick:()=>c(f.eL.Mine),children:[(0,i.jsx)(b.ckl,{className:w.Z["tool-tag-list-cell-icon"]}),y.o.t("add_resource_modal_sidebar_library_tools")]}),o&&s===f.tx.ProjectWorkflow?(0,i.jsxs)("div",{className:g()(w.Z["tool-tag-list-cell"],{[w.Z.active]:r===f.eL.Project}),onClick:()=>c(f.eL.Project),children:[(0,i.jsx)(b.Qi1,{className:w.Z["tool-tag-list-cell-icon"]}),y.o.t("add_resource_modal_sidebar_project_tools")]}):null,a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.yh.Divider,{}),(0,i.jsx)("div",{className:w.Z["tool-content-area"],children:(0,i.jsx)("div",{className:g()(w.Z["tool-tag-list-cell"],{[w.Z.active]:r===u}),onClick:()=>c(u),children:y.o.t("explore_tools")})})]}):null]})},k=r("881305"),C=[{label:y.o.t("Create_time"),value:h.d$.CreateTime},{label:y.o.t("Update_time"),value:h.d$.UpdateTime}],A=e=>{var{query:t,setQuery:r}=e;return(0,i.jsx)("div",{className:k.Z["plugin-modal-filter"],children:t.type===f.eL.Mine||t.type===f.eL.Team||t.type===f.eL.Project?(0,i.jsxs)(x.Cj,{label:y.o.t("Sort"),value:t.orderBy,optionList:C,onChange:e=>{r({orderBy:e})},children:[(0,i.jsx)(x.Ph.Option,{value:h.d$.CreateTime,children:y.o.t("Create_time")}),(0,i.jsx)(x.Ph.Option,{value:h.d$.UpdateTime,children:y.o.t("Edit_time_2")})]}):null})},O=r("998600"),D=r("824113"),S=r("910376"),T=r("196163"),E=e=>{var{query:t,setQuery:r,from:n,onCreateSuccess:o,isShowStorePlugin:a,hideCreateBtn:l}=e,[u,c]=(0,s.useState)(!1),p=(0,d.rY)(e=>e.space.id),h=e=>{r({search:null!=e?e:""})},{run:m,cancel:g}=(0,O.Z)(e=>{h(e)},{wait:300});return(0,i.jsxs)(i.Fragment,{children:[l?null:(0,i.jsx)(S.rm,{projectId:t.projectId,isCreate:!0,visible:u,onSuccess:e=>{null==o||o({spaceId:p,pluginId:e})},onCancel:()=>{c(!1)}}),(0,i.jsxs)(x.yh,{style:{paddingTop:16},children:[(0,i.jsxs)(x.yh.Header,{children:[(0,i.jsx)(D.yO,{tabIndex:-1,value:t.search,maxLength:100,onSearch:e=>{e?m(e):(g(),h(e))},placeholder:y.o.t("Search"),"data-testid":"plugin.modal.search"}),l?null:(0,i.jsx)(x.y3,{"data-testid":"plugin.modal.create.plugin",className:T.Z.addbtn,theme:"solid",onClick:()=>{if(o&&(n===f.tx.ProjectIde||n===f.tx.ProjectWorkflow)){c(!0);return}window.open("/space/".concat(p,"/library?type=1"))},children:y.o.t("plugin_create")})]}),(0,i.jsx)(x.yh.Content,{children:(0,i.jsx)(_,{isSearching:""!==t.search,type:t.type,onChange:e=>{r({type:e})},from:n,projectId:t.projectId,isShowStorePlugin:a})})]})]})},M=r("322512"),j=r("136515"),N=r("309673"),P=r("938382"),B=r("364676"),I=r("44099"),L=r("825955"),F=r("298203"),z=r("366714"),R=(e,t,r,n)=>(t||r)&&!n?{text:{emptyTitle:y.o.t("plugin_empty_desc"),emptyDesc:y.o.t("plugin_empty_description")},btn:{emptyClick:()=>{window.open("/space/".concat(e,"/library?type=1"))},emptyText:y.o.t("plugin_create")}}:{text:{emptyTitle:y.o.t("plugin_empty_desc"),emptyDesc:""},btn:{emptyClick:()=>{window.open("/store/plugin")},emptyText:y.o.t("mkl_plugin_to_plugin_gallery")}},X=e=>{var{query:t,pluginApiList:r,onPluginApiListChange:l,openMode:u,from:c,openModeCallback:p,showButton:h,showCopyPlugin:m,onCopyPluginCallback:y,clickProjectPluginCallback:b}=e,{type:w,mineActive:_,search:k,isOfficial:C,orderBy:A,orderByPublic:O,orderByFavorite:D,agentId:S,pluginType:T}=t,E=(0,d.rY)(e=>e.space.id),X=(0,s.useRef)(null),[Z,W]=(0,s.useState)([]),V=(0,s.useRef)(null),{scroll2Top:H,loadData:U,isSearching:q,isFavorite:Y,isTemplate:Q,isProject:G,isMine:$,isTeam:K}=function(e){var t,{scrollContainer:r,query:i,triggerService:a,formatCacheKey:l,onSetScrollData:u}=e,{search:c,type:d,mineActive:p}=i,h=""!==c,m=d===f.eL.Mine,g=d===f.eL.Team,y=d===f.eL.Favorite,x=d===f.eL.Project,b=p===f.gp.Mine,w=Number(d)>=0||"recommend"===d,_=(e,t,r)=>{var i=(0,F.lJ)(t);if(!t||!i)return!1;var{data:s}=i;if(!r)return i.data;var a=(null==e?void 0:e.nextPage)||1,{list:l,total:c}=s||{list:[],total:0},d=c>0&&a*f.L8<c;return u((0,o._)((0,n._)({},e),{hasMore:d,list:[...(null==a?void 0:a.list)||[],...l]})),!1},k=(e,t,r)=>{if(!!e)(0,F.K7)(e,t,{time:Date.now(),data:r})};var C=(t=(0,L._)(function*(e){var t=(null==e?void 0:e.nextPage)||1,r=l({query:i,isSearching:h,isTemplate:w,page:t})||"";!m&&!g&&(r="");var n=_(e,r,!w);!n&&k(r,3e5,n=yield a(i,{nextPage:t,isMine:m,isTeam:g,isCreatorMine:b,isTemplate:w,isFavorite:y,isProject:x}));var{list:o,hasMore:s}=n||{list:[],total:0},u=t+1,c={};return((null==e?void 0:e.list)||[]).map(e=>{var t;c[null==e?void 0:null===(t=e.pluginInfo)||void 0===t?void 0:t.id]=!0}),{list:(o||[]).filter(e=>{var t,r=null==e?void 0:null===(t=e.pluginInfo)||void 0===t?void 0:t.id;return(!r||!c[r])&&!0})||[],hasMore:s,nextPage:u}}),function(e){return t.apply(this,arguments)});return(0,s.useEffect)(()=>{(0,F.LK)()},[]),{scroll2Top:()=>{r.current&&r.current.scrollTo({top:0})},isSearching:h,loadData:C,isFavorite:y,isTemplate:w,isMine:m,isTeam:g,isProject:x}}({query:t,formatCacheKey:f.TB,scrollContainer:X,triggerService:f.Ht,onSetScrollData:e=>{var t;null===(t=V.current)||void 0===t||t.mutate(e)}}),{nodes:J}=(0,B.I)((0,a.N)(e=>({nodes:e.nodes})));return(0,j.Z)(()=>{H()},[]),(0,i.jsx)(x.vy,{children:(0,i.jsx)("div",{className:z.Z["plugin-content"],ref:X,children:(0,i.jsx)(x.vy.Content,{style:{minHeight:"100%",display:"flex"},children:(0,i.jsx)(x.UO,{className:z.Z["plugin-collapse"],activeKey:Z,onChange:e=>{W(e)},expandIcon:(0,i.jsx)(N.Z,{className:z.Z["collapse-icon"],"data-testid":"plugin-collapse-panel-expand"}),collapseIcon:(0,i.jsx)(P.Z,{className:z.Z["collapse-icon"],"data-testid":"plugin-collapse-panel-collapse"}),children:(0,i.jsx)(I.$r,{ref:V,itemClassName:z.Z["item-container"],renderItem:(e,t)=>{var s,a,d,x=null==e?void 0:null===(s=e.pluginInfo)||void 0===s?void 0:s.id;return(0,i.jsx)(f.WB,{agentId:S,index:t,pluginApiList:r,onPluginApiListChange:l,onCopyPluginCallback:y,showButton:h,showCopyPlugin:m,openMode:u,from:c,workflowNodes:J,openModeCallback:p,highlightWords:[k],showCreator:!0,showMarketLink:Y||Q,showCreateTime:0===A||"number"==typeof w,showPublishTime:!$&&!K&&!G,activeKey:Z,scrollContainerRef:X,isFromMarket:null==e?void 0:e.isFromMarket,info:(0,o._)((0,n._)({},null==e?void 0:e.pluginInfo),{id:x,listed_at:null==e?void 0:null===(a=e.productInfo)||void 0===a?void 0:a.listed_at,plugin_apis:(0,M.Z)(null==e?void 0:null===(d=e.pluginInfo)||void 0===d?void 0:d.plugin_apis,e=>e.name)}),productInfo:null==e?void 0:e.productInfo,commercialSetting:null==e?void 0:e.commercial_setting,type:String(w||""),className:g()(z.Z["plugin-collapse"],{[z.Z.activePanel]:null==Z?void 0:Z.includes(null!=x?x:"")}),showProjectPluginLink:G,clickProjectPluginCallback:b},x)},emptyConf:R(E,$,K,G),scrollConf:{reloadDeps:[w,_,k,C,A,O,D,T],targetRef:X,loadData:U},isSearching:q})})})})})},Z=(e,t)=>e!==f.tx.ProjectWorkflow&&e===f.tx.ProjectIde&&t&&e?t===h.Sn.Personal?f.eL.Mine:t===h.Sn.Team&&e===f.tx.ProjectIde?f.eL.Team:"":"",W=e=>{var t,r,{pluginApiList:m,onPluginApiListChange:g,agentId:y,openMode:x,from:b,openModeCallback:w,showButton:_,showCopyPlugin:k,onCopyPluginCallback:C,projectId:O,clickProjectPluginCallback:D,onCreateSuccess:S,isShowStorePlugin:T,hideCreateBtn:M,initQuery:j}=e,N=l.Z.useUserInfo(),P=(0,d.rY)(e=>e.space.space_type),[B,I]=(0,s.useState)({agentId:y,projectId:O,devId:(null==N?void 0:N.user_id_str)||"",search:"",page:f.XJ,type:null!==(t=null==j?void 0:j.type)&&void 0!==t?t:Z(b,P),orderBy:h.d$.CreateTime,orderByPublic:p.ER.Heat,orderByFavorite:p.ER.Newest,mineActive:f.gp.All,isOfficial:null!==(r=null==j?void 0:j.isOfficial)&&void 0!==r?r:void 0,pluginType:b===f.tx.ProjectWorkflow?p.zV.CLoudPlugin:void 0}),{botId:L}=(0,c.G)((0,a.N)(e=>({botId:e.botId}))),{version:F}=(0,u.c2)((0,a.N)(e=>({version:e.baseVersion}))),z=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={current_entity_type:p._J.Bot,current_entity_id:L,current_entity_version:F};I(i=>t?(0,o._)((0,n._)({},i,e),{page:f.XJ,botInfo:r}):(0,o._)((0,n._)({},i,e),{botInfo:r}))},R=(0,i.jsx)(E,{hideCreateBtn:M,query:B,setQuery:z,from:b,onCreateSuccess:S,isShowStorePlugin:T}),W=(0,i.jsx)(A,{from:b,query:B,setQuery:z});return{sider:R,content:(0,i.jsx)(X,{query:B,setQuery:z,pluginApiList:m,onPluginApiListChange:g,openMode:x,from:b,openModeCallback:w,showButton:_,showCopyPlugin:k,onCopyPluginCallback:C,clickProjectPluginCallback:D}),filter:W}}},910376:function(e,t,r){"use strict";r.d(t,{Tj:()=>en,cC:()=>es,e2:()=>ei,rm:()=>J,_u:()=>eo});var n,o,i=r("825955"),s=r("151064"),a=r("455069"),l=r("808549"),u=r("120454"),c=r("735114"),d=r("215451"),p=r("581259"),h=r("368696"),f=r("75117"),m=r("297158"),g=r("336205"),y=r("873183"),x=r("659596"),b=r("298203"),w=r("189284"),_=r("178385"),k=r("382534"),C=r("625196"),A=r("458949"),O={name:[{required:!0,message:g.o.t("create_plugin_modal_name1_error")},{pattern:RegExp("^[\\w\\s\\u4e00-\\u9fa5]+$","u"),message:g.o.t("create_plugin_modal_nameerror_cn")}],desc:[{required:!0,message:g.o.t("create_plugin_modal_descrip1_error")},{}],url:[{required:!0,message:g.o.t("create_plugin_modal_url1_error")}],key:[{required:!0,message:g.o.t("create_plugin_modal_Parameter_error")},{pattern:/^[\x00-\x7F]+$/,message:g.o.t("plugin_Parametename_error")}],service_token:[{required:!0,message:g.o.t("create_plugin_modal_Servicetoken_error")}]},D=e=>{var t,r;if(!!e)return[{url:(null===(t=e.icon)||void 0===t?void 0:t.url)||"",uid:(null==e?void 0:null===(r=e.icon)||void 0===r?void 0:r.uri)||""}]},S=(e,t,r)=>{if((null==t?void 0:t[0])===0)return e.find(e=>0===e.value);if((null==t?void 0:t[0])===1){var n=e.find(e=>1===e.value);return null==n?void 0:n.children.find(e=>e.value===r)}if((null==t?void 0:t[0])===3){var o=e.find(e=>3===e.value);return null==o?void 0:o.children.find(e=>e.value===r)}},T=()=>{var e,[t,r]=(0,a.useState)([]),[n,o]=(0,a.useState)([]),[s,l]=(0,a.useState)("1");var u=(e=(0,i._)(function*(){var e,t,n=yield k.Js.GetOAuthSchema();r([{label:g.o.t("create_plugin_modal_Authorization_no"),value:0,key:"None"},{label:g.o.t("create_plugin_modal_Authorization_service"),value:1,key:"Service",children:[{label:g.o.t("plugin_auth_method_service_api_key"),value:0,key:"Service Token / API Key"}]},{label:g.o.t("create_plugin_modal_Authorization_oauth"),value:3,key:"OAuth",children:(0,b.dj)(n.oauth_schema)}]);var i=null===(t=(0,b.dj)(n.ide_conf,[]))||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>"code_runtime_enum"===e.key);i&&(o(i.options.map(e=>({value:e.value,label:e.name}))),l(i.default))}),function(){return e.apply(this,arguments)});return(0,a.useEffect)(()=>{u()},[]),{authOption:t,runtimeOptions:n,defaultRuntime:s}},E=e=>{var t,r,n,o,i,{val:s,spaceId:a,headerList:c,projectId:d,creationMethod:p,defaultRuntime:h,pluginType:f,extItemsJSON:m}=e,g=null===(t=s.auth_type)||void 0===t?void 0:t.at(0),y=null===(r=s.auth_type)||void 0===r?void 0:r.at(-1),x=(0,u._)((0,l._)({},s),{icon:{uri:null==s?void 0:null===(o=s.plugin_uri)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.uid},auth_type:g,common_params:{[A.Pi.Header]:c,[A.Pi.Body]:[],[A.Pi.Path]:[],[A.Pi.Query]:[]},space_id:a,project_id:d,creation_method:p,ide_code_runtime:null!==(i=s.ide_code_runtime)&&void 0!==i?i:h,plugin_type:Number(f),private_link_id:"0"===s.private_link_id?void 0:s.private_link_id});return 1===g?(0,u._)((0,l._)({},x),{sub_auth_type:y,auth_payload:JSON.stringify(m)}):(0,u._)((0,l._)({},x),{sub_auth_type:3===g?y:void 0,oauth_info:JSON.stringify(m)})};var M=(n=(0,i._)(function*(e){var{params:t}=e;return(yield k.Js.RegisterPluginMeta((0,l._)({},t),{__disableErrorToast:!0})).plugin_id}),function(e){return n.apply(this,arguments)});var j=(o=(0,i._)(function*(e){var{params:t,editInfo:r}=e;return yield k.Js.UpdatePluginMeta((0,u._)((0,l._)({},t),{plugin_id:(null==r?void 0:r.plugin_id)||"",edit_version:null==r?void 0:r.edit_version}),{__disableErrorToast:!0}),""}),function(e){return o.apply(this,arguments)}),N=r("274038"),P=e=>e?"".concat(null==e?void 0:e.plugin_type,"-").concat(null==e?void 0:e.creation_method):"",B=(0,x.Q2)(x.vT),I=()=>[{label:g.o.t("plugin_creation_method_cloud_plugin_use_existing_services"),value:p.Qb}],L=e=>{var t,r,n,o,A,T,E,M,j,L,F,z,R,X,Z,W,V,H,U,{pluginState:q,disabled:Y,editInfo:Q,isCreate:G,visible:$}=e,{formApi:K,extItems:J,setExtItems:ee,headerList:et,setHeaderList:er,isValidCheckResult:en,setIsValidCheckResult:eo,pluginTypeCreationMethod:ei,setPluginTypeCreationMethod:es,authOption:ea}=q,[el]=(0,w.V)(),{compareLevel:eu}=(0,d.th)(),ec=(0,h.HU)(),[ed,ep]=(0,a.useState)(0),[eh,ef]=(0,a.useState)(0),[em,eg]=(0,a.useState)(!1),ev=()=>{!en&&eo(!0)},ey=I(),ex=(0,p.C5)(),[eb,ew]=(0,a.useState)(),{data:e_}=(0,c.Z)((0,i._)(function*(){var e,{data:t}=yield k.Js.PrivateLinkList({enterprise_id:null==ec?void 0:ec.enterprise_id});ew(null==t?void 0:t.private_links);var r=null==t?void 0:null===(e=t.private_links)||void 0===e?void 0:e.map(e=>({label:e.name,value:e.id}));return[{label:g.o.t("vpc_plugin_create_plugin_2"),value:"0"},...null!=r?r:[]]}),{ready:eu===d.aZ.Enterprise&&el["bot.studio.plugin_vpc"]&&!1});var ek=(t=(0,i._)(function*(){try{var e,t,r,n=yield k.nA.GetIcon({icon_type:_.Tu.Plugin}),o=null===(t=n.data)||void 0===t?void 0:null===(e=t.icon_list)||void 0===e?void 0:e[0];if(!o)return;var{url:i="",uri:s=""}=o;null===(r=K.current)||void 0===r||r.setValue("plugin_uri",[{url:i,uid:s}])}catch(e){m.kg.info("getIcon error: ".concat(e))}}),function(){return t.apply(this,arguments)});(0,a.useEffect)(()=>{if(!!$)if(!G&&Q){var e,t,r,n,o,i,s,a,l,u,c,p,h,f,m,g,y,x;if((null===(t=Q.meta_info)||void 0===t?void 0:null===(e=t.auth_type)||void 0===e?void 0:e.at(0))===1)switch(null===(h=Q.meta_info)||void 0===h?void 0:h.sub_auth_type){case 0:ef(5);break;case 1:ef(6);break;case 2:ef(7);break;default:ef(0)}else ef(null!==(g=null===(m=Q.meta_info)||void 0===m?void 0:null===(f=m.auth_type)||void 0===f?void 0:f.at(-1))&&void 0!==g?g:0);ep(null!==(y=null===(n=Q.meta_info)||void 0===n?void 0:null===(r=n.auth_type)||void 0===r?void 0:r.at(0))&&void 0!==y?y:0),ee((null===(o=S(ea,null===(i=Q.meta_info)||void 0===i?void 0:i.auth_type,null!==(x=null===(a=Q.meta_info)||void 0===a?void 0:null===(s=a.auth_type)||void 0===s?void 0:s[1])&&void 0!==x?x:null===(l=Q.meta_info)||void 0===l?void 0:l.sub_auth_type))||void 0===o?void 0:o.items)||[]),er([...(null===(c=Q.meta_info)||void 0===c?void 0:null===(u=c.common_params)||void 0===u?void 0:u[4])||[]]),es("".concat(Q.plugin_type,"-").concat(Q.creation_method)),(null==Q?void 0:null===(p=Q.meta_info)||void 0===p?void 0:p.private_link_id)&&eu===d.aZ.Enterprise&&el["bot.studio.plugin_vpc"]&&eg(!0)}else eC()},[$]);var eC=()=>{ek(),ef(0),ef(0),ee([]),er([{name:"User-Agent",value:"Coze/1.0"}]),eo(!0),es(void 0)},eA=()=>{er(e=>[...e,{name:"",value:""}])},eO=e=>{er(t=>t.length<=1?[{name:"",value:""}]:t.filter((t,r)=>r!==e))},eD=(e,t)=>{er(r=>r.map((r,n)=>n===e?t:r))};return(0,s.jsxs)(x.l0,{getFormApi:e=>K.current=e,autoScrollToError:!0,showValidateIcon:!1,className:N.Z["upload-form"],onValueChange:e=>{if("auth_type"in e){if(1===e.auth_type.at(0))switch(e.auth_type.at(-1)){case 0:ef(5);break;case 1:ef(6);break;case 2:ef(7);break;default:ef(0)}else ef(e.auth_type.at(-1));ep(e.auth_type.at(0))}},children:[(0,s.jsx)(f.s,{noLabel:!0,disabled:Y,fieldClassName:N.Z["upload-field"],field:"plugin_uri",iconType:_.Tu.Plugin,fileBizType:_.ym.BIZ_PLUGIN_ICON,initValue:D(null==Q?void 0:Q.meta_info),onChange:ev}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.ld,{disabled:Y,initValue:null==Q?void 0:null===(V=Q.meta_info)||void 0===V?void 0:V.name,field:"name",className:N.Z["textarea-single-line"],label:g.o.t("create_plugin_modal_name1"),placeholder:g.o.t("create_plugin_modal_name2"),trigger:["blur","change"],maxCount:30,maxLength:30,rows:1,onBlur:()=>{var e,t,r;null===(r=K.current)||void 0===r||r.setValue("name",null===(t=K.current)||void 0===t?void 0:null===(e=t.getValue("name"))||void 0===e?void 0:e.trim())},onChange:ev,rules:O.name}),(0,s.jsx)(x.ld,{disabled:Y,initValue:null==Q?void 0:null===(H=Q.meta_info)||void 0===H?void 0:H.desc,field:"desc",label:g.o.t("create_plugin_modal_descrip1"),trigger:["blur","change"],placeholder:g.o.t("create_plugin_modal_descrip2"),rows:2,maxCount:600,maxLength:600,onBlur:()=>{var e,t,r;null===(r=K.current)||void 0===r||r.setValue("desc",null===(t=K.current)||void 0===t?void 0:null===(e=t.getValue("desc"))||void 0===e?void 0:e.trim())},onChange:ev,rules:O.desc}),(0,s.jsx)(x.l0.Slot,{label:{text:g.o.t("plugin_creation_method"),required:!0,extra:(0,s.jsx)(C.O,{data:ex})},children:G?(0,s.jsx)(x.l0.RadioGroup,{noLabel:!0,className:N.Z["creation-method"],direction:"vertical",rules:[{required:!0,message:g.o.t("plugin_creation_select_creation_method_warning")}],field:"creation_method",disabled:Y,options:ey,initValue:Q?P(Q):void 0,onChange:e=>es(e.target.value)}):(0,s.jsx)(x.ZT.Text,{fontSize:"14px",children:null===(U=ey.find(e=>e.value===ei))||void 0===U?void 0:U.label})})]}),ei===p.Qb?(W=[0],!Q&&(W=[0]),(null==Q?void 0:null===(n=Q.meta_info)||void 0===n?void 0:null===(r=n.auth_type)||void 0===r?void 0:r.length)===2?W=null==Q?void 0:null===(j=Q.meta_info)||void 0===j?void 0:j.auth_type:(null==Q?void 0:null===(F=Q.meta_info)||void 0===F?void 0:null===(L=F.auth_type)||void 0===L?void 0:L.at(0))===0?W=null==Q?void 0:null===(z=Q.meta_info)||void 0===z?void 0:z.auth_type:void 0!==(null==Q?void 0:null===(R=Q.meta_info)||void 0===R?void 0:R.sub_auth_type)&&(W=[...(null==Q?void 0:null===(X=Q.meta_info)||void 0===X?void 0:X.auth_type)||[],null==Q?void 0:null===(Z=Q.meta_info)||void 0===Z?void 0:Z.sub_auth_type]),(0,s.jsxs)(s.Fragment,{children:[eu===d.aZ.Enterprise&&el["bot.studio.plugin_vpc"]?(0,s.jsx)(x.ih,{label:{text:g.o.t("vpc_plugin_create_plugin_1"),required:!0,extra:(0,s.jsx)(C.O,{data:p.HW.private_link_id})},field:"private_link_id",style:{width:"100%"},initValue:(null==Q?void 0:null===(o=Q.meta_info)||void 0===o?void 0:o.private_link_id)||"0",onChange:e=>{var t,r,n;eg("0"!==e),"0"===e?null===(t=K.current)||void 0===t||t.setValue("url",""):null===(n=K.current)||void 0===n||n.setValue("url",null==eb?void 0:null===(r=eb.find(t=>t.id===e))||void 0===r?void 0:r.plugin_access_url)},optionList:e_}):null,Y?null:(0,s.jsx)(x.yt,{disabled:em,className:N.Z["textarea-single-line"],initValue:null==Q?void 0:null===(A=Q.meta_info)||void 0===A?void 0:A.url,trigger:["blur","change"],field:"url",label:g.o.t("create_plugin_modal_url1"),placeholder:g.o.t("create_plugin_modal_url2"),onBlur:()=>{var e,t,r;null===(r=K.current)||void 0===r||r.setValue("url",null===(t=K.current)||void 0===t?void 0:null===(e=t.getValue("url"))||void 0===e?void 0:e.trim())},rules:em?[]:O.url}),(0,s.jsx)(x.l0.Slot,{className:N.Z["header-list"],label:{text:g.o.t("plugin_create_header_list_title"),align:"right",extra:(0,s.jsxs)("div",{className:N.Z["header-list-extra"],children:[(0,s.jsx)(C.O,{data:p.HW.header_list}),et.length<20&&!Y&&(0,s.jsx)(x.hU,{size:"small",color:"secondary",icon:(0,s.jsx)(y.PwN,{className:"coz-fg-hglt text-[16px]"}),onClick:eA})]})},children:(0,s.jsxs)("div",{className:N.Z["header-list-box"],children:[(0,s.jsxs)(x.X2,{className:N.Z["header-row"],children:[(0,s.jsx)(x.JX,{span:9,children:(0,s.jsx)("div",{className:N.Z["header-col-content"],children:"Key"})}),(0,s.jsx)(x.JX,{span:12,children:(0,s.jsx)("div",{className:N.Z["header-col-content"],children:"Value"})}),(0,s.jsx)(x.JX,{span:3,children:(0,s.jsx)("div",{className:N.Z["header-col-content"],children:g.o.t("plugin_create_action_btn")})})]}),(0,s.jsx)("div",{children:null==et?void 0:et.map((e,t)=>(0,s.jsxs)(x.X2,{type:"flex",justify:"space-between",align:"middle",children:[(0,s.jsx)(x.JX,{span:9,children:(0,s.jsx)("div",{className:N.Z["col-content"],children:(0,s.jsx)(x.II,{placeholder:"Name",value:e.name,onChange:r=>{eD(t,(0,u._)((0,l._)({},e),{name:r}))},maxLength:100,disabled:Y})})}),(0,s.jsx)(x.JX,{span:12,children:(0,s.jsx)("div",{className:N.Z["col-content"],children:(0,s.jsx)(x.II,{placeholder:"Value",value:e.value,onChange:r=>{eD(t,(0,u._)((0,l._)({},e),{value:r}))},maxLength:2e3,disabled:Y})})}),(0,s.jsx)(x.JX,{span:3,children:(0,s.jsx)("div",{className:N.Z["col-content"],children:(0,s.jsx)(x.hU,{size:"small",color:"secondary",icon:(0,s.jsx)(y.dVD,{className:"coz-fg-secondary text-[14px]"}),disabled:Y,onClick:()=>eO(t)})})})]},t))})]})}),(0,s.jsx)(B,{disabled:Y,rules:[{required:!0}],style:{width:"100%"},initValue:W,field:"auth_type",label:{text:g.o.t("create_plugin_modal_auth1"),extra:(0,s.jsx)(C.O,{data:p.HW.auth})},placeholder:g.o.t("please_select_an_authorization_method"),treeData:ea,displayRender:e=>"".concat(e.at(-1)),onChange:e=>{var t;ee((null===(t=S(ea,[e.at(0)],e.at(-1)))||void 0===t?void 0:t.items)||[])}}),1===ed&&5===eh&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.l0.RadioGroup,{disabled:Y,rules:[{required:!0}],field:"location",label:{text:g.o.t("create_plugin_modal_location"),extra:(0,s.jsx)(C.O,{data:p.HW.location})},options:p.cg,initValue:(null==Q?void 0:null===(T=Q.meta_info)||void 0===T?void 0:T.location)||1}),(0,s.jsx)(x.yt,{disabled:Y,initValue:null==Q?void 0:null===(E=Q.meta_info)||void 0===E?void 0:E.key,trigger:["blur","change"],field:"key",label:{text:g.o.t("create_plugin_modal_Parameter"),extra:(0,s.jsx)(C.O,{data:p.HW.key})},placeholder:g.o.t("create_plugin_modal_Parameter_empty"),maxLength:100,rules:O.key}),(0,s.jsx)(x.yt,{disabled:Y,initValue:null==Q?void 0:null===(M=Q.meta_info)||void 0===M?void 0:M.service_token,trigger:["blur","change"],field:"service_token",label:{text:g.o.t("create_plugin_modal_Servicetoken"),extra:(0,s.jsx)(C.O,{data:p.HW.service_token})},placeholder:g.o.t("create_plugin_modal_Servicetoken_empty"),maxLength:2e3,rules:O.service_token})]}),null==J?void 0:J.map((e,t)=>{var r,n,o,i,l={};return((null==Q?void 0:null===(n=Q.meta_info)||void 0===n?void 0:null===(r=n.auth_type)||void 0===r?void 0:r.at(0))===1&&(l=(0,b.dj)(Q.meta_info.auth_payload)),(null==Q?void 0:null===(i=Q.meta_info)||void 0===i?void 0:null===(o=i.auth_type)||void 0===o?void 0:o.at(0))===3&&(l=(0,b.dj)(Q.meta_info.oauth_info)),"select"===e.type)?(0,s.jsx)(x.ih,{disabled:Y,label:(null==e?void 0:e.label)||e.key,field:e.key,optionList:p.Cx,initValue:(null==l?void 0:l[e.key])||e.default,style:{width:"100%"},rules:[{required:e.required,message:p.VF[e.key]}]},e.key+t):(0,s.jsx)(a.Fragment,{children:(0,s.jsx)(x.yt,{disabled:Y,trigger:["blur","change"],field:e.key,label:{text:(null==e?void 0:e.label)||e.key,extra:p.HW[e.key]&&(0,s.jsx)(C.O,{data:p.HW[e.key]})},placeholder:p.VF[e.key],initValue:(null==l?void 0:l[e.key])||e.default,maxLength:e.max_len,rules:[{required:e.required,message:p.VF[e.key]},"url"===e.type?{pattern:/^(http|https):\/\/.+$/,message:g.o.t("create_plugin_modal_URLerror")}:{pattern:/^[\x00-\x7F]+$/,message:g.o.t("create_plugin_modal_descrip_error")},...(null==e?void 0:e.ruleList)||[]]},e.key)},e.key+t)})]})):null]})},F=()=>{var e=(0,a.useRef)(),{authOption:t,runtimeOptions:r,defaultRuntime:n}=T(),[o,i]=(0,a.useState)([]),[s,l]=(0,a.useState)([{name:"User-Agent",value:"Coze/1.0"}]),[u,c]=(0,a.useState)(!0),[d,p]=(0,a.useState)();return{formApi:e,extItems:o,setExtItems:i,headerList:s,setHeaderList:l,isValidCheckResult:u,setIsValidCheckResult:c,pluginTypeCreationMethod:d,setPluginTypeCreationMethod:p,authOption:t,runtimeOptions:r,defaultRuntime:n}},z=r("947578"),R=r("214942"),X=r("900021"),Z=r("927070"),W=r("3779"),V=r("786406"),H=e=>{var{onCancel:t,onSuccess:r,projectId:n}=e,[o,i]=(0,a.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(V.iy,{projectId:n,visible:o,onSuccess:e=>{var t=null==e?void 0:e.plugin_id;t?null==r||r(t):null==r||r()},onCancel:()=>i(!1)}),(0,s.jsx)(x.zx,{color:"primary",onClick:()=>{i(!0),null==t||t()},children:g.o.t("import")})]})},U=r("44172"),q=r("252237"),Y=r.n(q),Q=r("775699"),G=r("512421"),$=e=>{var t,{isCreate:r=!0,onCancel:n,editInfo:o,visible:c,onSuccess:d,disabled:p=!1,actions:h,projectId:f}=e,[m,y]=(0,a.useState)(),[x,w]=(0,a.useState)(),[_,C]=(0,a.useState)(),[A,O]=(0,a.useState)(),[D,S]=(0,a.useState)();(0,a.useEffect)(()=>{if(c){var e,t,r,n,i;y(JSON.stringify((0,b.dj)(null==o?void 0:null===(e=o.code_info)||void 0===e?void 0:e.plugin_desc),null,2)||""),S((null==o?void 0:null===(t=o.code_info)||void 0===t?void 0:t.openapi_desc)||""),w(null==o?void 0:null===(r=o.code_info)||void 0===r?void 0:r.client_id),C(null==o?void 0:null===(n=o.code_info)||void 0===n?void 0:n.client_secret),O(null==o?void 0:null===(i=o.code_info)||void 0===i?void 0:i.service_token)}},[c]);var T=(t=(0,i._)(function*(){var e,t,i={ai_plugin:m,client_id:x,client_secret:_,service_token:A,openapi:D};r?t=yield k.Js.RegisterPlugin((0,u._)((0,l._)({},i),{project_id:f,space_id:R.rY.getState().getSpaceId()})):yield k.Js.UpdatePlugin((0,u._)((0,l._)({},i),{plugin_id:null==o?void 0:o.plugin_id,edit_version:null==o?void 0:o.edit_version})),Q.FN.success({content:r?g.o.t("register_success"):g.o.t("Plugin_update_success"),showClose:!1}),null==d||d(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.plugin_id),null==n||n()}),function(){return t.apply(this,arguments)});return(0,s.jsx)(Q.M5,{fullScreen:!0,className:"full-screen-modal",title:(0,s.jsxs)("div",{className:Z.Z["bot-code-edit-title-action"],children:[(0,s.jsx)("span",{children:r?g.o.t("plugin_create"):g.o.t("plugin_Update")}),(0,s.jsx)("div",{children:h})]}),visible:c,onCancel:()=>null==n?void 0:n(),footer:p?null:(0,s.jsxs)(Q.T,{children:[(0,s.jsx)(Q.y3,{type:"tertiary",onClick:()=>null==n?void 0:n(),children:g.o.t("Cancel")}),(0,s.jsx)(Q.y3,{type:"primary",onClick:T,children:g.o.t("Confirm")})]}),maskClosable:!1,children:(0,s.jsx)("div",{className:Y()(Z.Z.flex),children:(0,s.jsx)("div",{className:Y()(Z.Z["plugin-height"],Z.Z.flex5),children:(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("div",{style:{flex:1,borderRight:"1px solid rgb(215,218,221)"},children:[(0,s.jsx)("div",{className:Z.Z.title,children:g.o.t("ai_plugin_(fill_in_json)_*")}),(0,s.jsx)(G.M,{dataTestID:"create-plugin-code-editor-json",disabled:p,theme:"tomorrow",mode:"json",height:560,value:m,useValidate:!1,onChange:e=>y(e)})]}),(0,s.jsxs)("div",{style:{flex:1},children:[(0,s.jsx)("div",{className:Z.Z.title,children:g.o.t("openapi_(fill_in_yaml)_*")}),(0,s.jsx)(G.M,{dataTestID:"create-plugin-code-editor-yaml",disabled:p,theme:"tomorrow",mode:"yaml",height:560,value:D,useValidate:!1,onChange:e=>S(e)})]})]})})})})},K=e=>{var{onCancel:t,onSuccess:r,projectId:n}=e,[o,i]=(0,a.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)($,{isCreate:!0,visible:o,onSuccess:e=>{null==r||r(e)},onCancel:()=>{i(!1)},projectId:n}),(0,s.jsx)(x.zx,{"data-testid":"create-plugin-code-modal-button",color:"primary",icon:(0,s.jsx)(U.WTs,{}),onClick:()=>{i(!0),null==t||t()}})]})},J=e=>{var t,{onCancel:r,editInfo:n,isCreate:o=!0,visible:l,onSuccess:u,disabled:c=!1,projectId:d}=e,{id:p}=(0,R.rY)(e=>e.space),h=(0,a.useMemo)(()=>o?(0,s.jsxs)("div",{className:"w-full flex justify-between items-center pr-[8px]",children:[(0,s.jsx)("div",{children:g.o.t("create_plugin_modal_title1")}),(0,s.jsxs)(x.T,{children:[(0,s.jsx)(K,{onCancel:r,onSuccess:u,projectId:d}),(0,s.jsx)(H,{onCancel:r,onSuccess:u,projectId:d}),(0,s.jsx)(x.iz,{layout:"vertical",className:"h-5"})]})]}):c?g.o.t("plugin_detail_view_modal_title"):g.o.t("plugin_detail_edit_modal_title"),[o,c]),[f,m]=(0,a.useState)(!1),b=F(),{formApi:w,extItems:_,headerList:k,isValidCheckResult:C,setIsValidCheckResult:A,pluginTypeCreationMethod:O,defaultRuntime:D}=b;(0,a.useEffect)(()=>{if(!!o)if(l){var e,t=document.querySelector(".create-plugin-modal-content .semi-modal-body");t&&(t.scrollTop=0)}else null==w||null===(e=w.current)||void 0===e||e.reset()},[l]);var S=(t=(0,i._)(function*(){yield null===(e=w.current)||void 0===e?void 0:e.validate();var e,t,i=o?"create":"edit",s=null===(t=w.current)||void 0===t?void 0:t.getValues();if(!!s&&!!O){var a={};null==_||_.forEach(e=>{e.key in s&&(a[e.key]=s[e.key])});var[l,c]=O.split("-"),h=E({val:s,spaceId:String(p),headerList:k,projectId:d,creationMethod:Number(c),defaultRuntime:D,pluginType:Number(l),extItemsJSON:a});try{m(!0);var f=yield({create:()=>M({params:h}),edit:()=>j({params:h,editInfo:n})})[i]();x.FN.success({content:o?g.o.t("Plugin_new_toast_success"):g.o.t("Plugin_update_toast_success"),showClose:!1}),null==r||r(),null==u||u(f)}catch(e){var{code:y,msg:b}=e;Number(y)===X.B.SAFE_CHECK?A(!1):x.FN.error({content:(0,z.u)(b)})}finally{m(!1)}}}),function(){return t.apply(this,arguments)});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(x.u_,{title:h,className:"[&_.semi-modal-header]:items-center",visible:l,keepDOM:o,onCancel:()=>null==r?void 0:r(),modalContentClass:"create-plugin-modal-content",footer:!c&&(0,s.jsxs)("div",{children:[!C&&(0,s.jsx)("div",{className:Z.Z["error-msg-box"],children:(0,s.jsx)("span",{className:Z.Z["error-msg"],children:g.o.t("plugin_create_modal_safe_error")})}),(0,s.jsxs)(x.ZT.Paragraph,{type:"secondary",fontSize:"12px",className:"text-start mb-[16px]",children:[(0,s.jsx)(y.DIY,{className:"coz-fg-hglt text-[14px] align-sub"}),(0,s.jsx)("span",{className:"mx-[4px]",children:g.o.t("plugin_create_draft_desc")}),(0,s.jsx)(W.v,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(x.zx,{color:"primary",onClick:()=>{null==r||r()},children:g.o.t("create_plugin_modal_button_cancel")}),(0,s.jsx)(x.zx,{loading:f,onClick:()=>{S()},children:g.o.t("create_plugin_modal_button_confirm")})]})]}),children:(0,s.jsx)(L,{pluginState:b,visible:l,isCreate:o,disabled:c,editInfo:n})})})},ee=r("664319"),et=r("228962"),er=r("172742"),en=e=>{var{modalProps:t}=e,{pluginInfo:r,canEdit:n,unlockPlugin:o,wrapWithCheckLock:i}=(0,et.RQ)((0,ee.N)(e=>({pluginInfo:e.pluginInfo,canEdit:e.canEdit,unlockPlugin:e.unlockPlugin,wrapWithCheckLock:e.wrapWithCheckLock}))),[c,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),f=(0,a.useMemo)(()=>n?(0,s.jsx)("div",{className:er.Z.actions,children:p?(0,s.jsx)(Q.y3,{onClick:()=>{h(!1),o()},children:g.o.t("Cancel")}):(0,s.jsx)(Q.y3,{theme:"solid",onClick:i(()=>h(!0)),children:g.o.t("Edit")})}):null,[p,n]);return(0,a.useEffect)(()=>{c&&h(!1)},[c]),{modal:(0,s.jsx)($,(0,u._)((0,l._)({},t),{isCreate:!1,visible:c,onCancel:()=>{d(!1),o()},disabled:!p||!n,editInfo:r,actions:f})),setShowCodePluginModel:d}},eo=e=>{var t,{modalProps:r}=e,[n,o]=(0,a.useState)({}),[c,d]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,m]=(0,a.useState)(!1),y=(null==n?void 0:n.plugin_id)||"",x=(0,a.useMemo)(()=>f?null:(0,s.jsx)("div",{className:er.Z.actions,children:p?(0,s.jsx)(Q.y3,{onClick:()=>{h(!1),(0,et.zO)(y)},children:g.o.t("Cancel")}):(0,s.jsx)(Q.y3,{theme:"solid",onClick:(0,i._)(function*(){if(!(yield(0,et.EA)(y)))h(!0)}),children:g.o.t("Edit")})}),[p,y,f]);(0,a.useEffect)(()=>{c&&h(!1)},[c]);var b=(0,s.jsx)($,(0,u._)((0,l._)({},r),{editInfo:n,isCreate:!1,visible:c,onCancel:()=>{d(!1),!f&&(0,et.zO)(y)},disabled:!p,actions:x}));return{modal:b,open:(0,a.useCallback)((t=(0,i._)(function*(e,t){var r,n,i,s,a,l=yield k.Js.GetPluginInfo({plugin_id:e||""});o({plugin_id:e,code_info:{plugin_desc:null===(r=l.code_info)||void 0===r?void 0:r.plugin_desc,openapi_desc:null===(n=l.code_info)||void 0===n?void 0:n.openapi_desc,client_id:null===(i=l.code_info)||void 0===i?void 0:i.client_id,client_secret:null===(s=l.code_info)||void 0===s?void 0:s.client_secret,service_token:null===(a=l.code_info)||void 0===a?void 0:a.service_token}}),m(t),d(!0)}),function(e,r){return t.apply(this,arguments)}),[])}},ei=e=>{var{modalProps:t}=e,{pluginInfo:r,canEdit:n,unlockPlugin:o}=(0,et.RQ)(e=>({pluginInfo:e.pluginInfo,canEdit:e.canEdit,unlockPlugin:e.unlockPlugin})),[i,c]=(0,a.useState)(!1);return{modal:(0,s.jsx)(J,(0,u._)((0,l._)({},t),{isCreate:!1,visible:i,editInfo:r,onCancel:()=>{o(),c(!1)},disabled:!n})),setShowFormPluginModel:c}},es=e=>{var t,r,n,{modalProps:o}=e,{pluginInfo:i,unlockPlugin:c}=(0,et.RQ)(e=>({pluginInfo:e.pluginInfo,unlockPlugin:e.unlockPlugin})),[d,p]=(0,a.useState)(!1);return{modal:(0,s.jsx)(V.JI,(0,u._)((0,l._)({},o),{pluginInfo:{pluginID:null==i?void 0:i.plugin_id,pluginName:null==i?void 0:null===(t=i.meta_info)||void 0===t?void 0:t.name,pluginUrl:null==i?void 0:null===(r=i.meta_info)||void 0===r?void 0:r.url,pluginDesc:null==i?void 0:null===(n=i.meta_info)||void 0===n?void 0:n.desc,editVersion:null==i?void 0:i.edit_version},visible:d,onCancel:()=>{c(),p(!1)}})),setShowImportToolModal:p}}},512421:function(e,t,r){"use strict";r.d(t,{M:()=>s});var n=r("151064"),o=r("455069"),i=r("966219"),s=e=>{var{mode:t,value:r,onChange:s,height:a=500,theme:l="monokai",disabled:u=!1,dataTestID:c}=e,[d,p]=(0,o.useState)(a);return(0,o.useEffect)(()=>{p(a)},[a]),(0,n.jsx)("div",{style:{position:"relative"},"data-testid":c,children:(0,n.jsx)(i.Editor,{options:{readOnly:u},language:t,theme:l,width:"100%",onChange:s,height:d,value:r})})}},786406:function(e,t,r){"use strict";r.d(t,{JI:()=>ey,iy:()=>eg});var n=r("825955"),o=r("808549"),i=r("120454"),s=r("151064"),a=r("455069"),l=r("287487"),u=r("947578"),c=r("297158"),d=r("336205"),p=r("707107"),h=r("214942"),f=r("775699"),m=r("44172"),g=r("178385"),y=r("382534"),x=r("473980"),b=r("494308"),w=r("64605"),_=r("165882"),k=r("298203"),C=r("727914"),A=r("458949");function O(e){var t=e.lastIndexOf(".");return e.slice(t+1)}function D(){return(D=(0,n._)(function*(e,t){return new Promise((r,n)=>{var o=new FileReader;o.onload=e=>{var t,o=null===(t=e.target)||void 0===t?void 0:t.result;if(!o||"string"!=typeof o){n(new C.sH("normal_error","file read fail"));return}r(o)},o.onprogress=e=>{e.total&&t({total:e.total,loaded:e.loaded})},o.readAsText(e)})})).apply(this,arguments)}function S(){return(S=(0,n._)(function*(e){var t=_.Z.create({responseType:"text"});return(yield t.get(e)).data})).apply(this,arguments)}var T={none:g.Mv.None,service_http:g.Mv.Service,oauth:g.Mv.OAuth},E={Header:g.Ot.Header,Query:g.Ot.Query};function M(e){var{aiPlugin:t,openAPI:r}=e;return{aiPlugin:(0,k.dj)(t||"{}"),openAPI:(0,b.Qc)(r||"")}}function j(e,t){if(void 0!==t){for(var[r,n]of Object.entries(e))if(n===t)return r}}function N(e){switch(e){case A.wL.Curl:return"curl";case A.wL.OpenAPI:return"openapi";case A.wL.Postman:return"postman";case A.wL.Swagger:return"swagger";default:return""}}var P=e=>(0,w.Z)(e)&&"paths_duplicated"in e;function B(e){var{duplicateInfos:t=[],onCancel:r,onOk:n}=e;f.M5.warning({title:d.o.t("duplicate_tools_within_plugin"),content:null==t?void 0:t.map(e=>(0,s.jsx)("div",{children:"".concat(e.method," ").concat(d.o.t("path_has_duplicates",{path:e.path,num:e.count}))})),okText:d.o.t("merge_duplicate_tools"),cancelText:d.o.t("Cancel"),centered:!0,icon:(0,s.jsx)(m.O5N,{}),okButtonProps:{type:"warning"},onOk:n,onCancel:r})}var I=r("75117");function L(){return"cn-boe"}var F={SAFE_CHECK:0x2aebbb74,DUP_PATH:0x29d916dd},z=["json","yaml"],R=z.map(e=>".".concat(e)),X={environment:L(),workspace_id:"",workspace_type:"",status:1,create_type:"import"},Z={environment:L(),workspace_id:"",workspace_type:"",status:1,create_type:"import",plugin_id:""},W=r("3779"),V={name:[{required:!0,message:d.o.t("create_plugin_modal_name1_error")},{pattern:RegExp("^[\\w\\s\\u4e00-\\u9fa5]+$","u"),message:d.o.t("create_plugin_modal_nameerror_cn")}],desc:[{required:!0,message:d.o.t("create_plugin_modal_descrip1_error")},!1],url:[{required:!0,message:d.o.t("create_plugin_modal_url1_error")}],key:[{required:!0,message:d.o.t("create_plugin_modal_Parameter_error")},{pattern:/^[\x00-\x7F]+$/,message:d.o.t("plugin_Parametename_error")}],service_token:[{required:!0,message:d.o.t("create_plugin_modal_Servicetoken_error")}]},H=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var n of e){if(n.value===r)return n;if((null===(t=n.children)||void 0===t?void 0:t.length)>0)return H(n.children,r)}},U=r("335740"),q=r("824113"),Y=r("581259"),Q=r("625196"),G=r("153796"),$=e=>{var{disabled:t}=e,r=(0,f.XQ)(),n=r.getValues();return t?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_name1"),required:!0},children:(0,s.jsx)("div",{children:null==n?void 0:n.name})}):(0,s.jsx)(f.P6,{field:"name",className:G.Z["textarea-single-line"],label:d.o.t("create_plugin_modal_name1"),placeholder:d.o.t("create_plugin_modal_name2"),trigger:["blur","change"],maxCount:30,maxLength:30,rows:1,onBlur:()=>{var e;r.setValue("name",null===(e=r.getValue("name"))||void 0===e?void 0:e.trim())},rules:V.name})},K=e=>{var{disabled:t}=e,r=(0,f.XQ)(),n=r.getValues();return t?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_descrip1"),required:!0},children:(0,s.jsx)("div",{children:null==n?void 0:n.desc})}):(0,s.jsx)(f.P6,{field:"desc",label:d.o.t("create_plugin_modal_descrip1"),trigger:["blur","change"],placeholder:d.o.t("create_plugin_modal_descrip2"),rows:2,maxCount:600,maxLength:600,onBlur:()=>{var e;r.setValue("desc",null==n?void 0:null===(e=n.desc)||void 0===e?void 0:e.trim())},rules:V.desc})},J=e=>{var{disabled:t}=e,r=(0,f.XQ)(),n=r.getValues();return t?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_url1"),required:!0},children:(0,s.jsx)("div",{children:null==n?void 0:n.url})}):(0,s.jsx)(f.K9,{className:G.Z["textarea-single-line"],trigger:["blur","change"],field:"url",label:d.o.t("create_plugin_modal_url1"),placeholder:d.o.t("create_plugin_modal_url2"),onBlur:()=>{var e;r.setValue("url",null==n?void 0:null===(e=n.url)||void 0===e?void 0:e.trim())},rules:V.url})},ee=(0,f.Q2)(e=>{var{disabled:t,value:r=[],onChange:n}=e,o=e=>{var t=(0,U.Z)(r);t.splice(e,1),null==n||n(t)};return(0,s.jsx)(f.l0.Slot,{className:G.Z["header-list"],label:{text:d.o.t("plugin_create_header_list_title"),align:"right",extra:(0,s.jsxs)("div",{className:G.Z["header-list-extra"],children:[(0,s.jsx)(Q.O,{data:Y.HW.header_list}),r.length<20&&!t&&(0,s.jsx)(f._3,{size:"large",icon:(0,s.jsx)(m.N_R,{}),onClick:e=>{var t=[...r];t.push(e.name?e:{name:"",value:""}),null==n||n(t)}})]})},children:(0,s.jsxs)("div",{className:G.Z["herder-list-box"],children:[(0,s.jsxs)(f.X2,{className:G.Z["header-row"],gutter:8,children:[(0,s.jsx)(f.JX,{span:9,children:(0,s.jsx)("div",{className:G.Z["header-col-content"],children:"Key"})}),(0,s.jsx)(f.JX,{span:12,children:(0,s.jsx)("div",{className:G.Z["header-col-content"],children:"Value"})}),(0,s.jsx)(f.JX,{span:3,children:(0,s.jsx)("div",{className:G.Z["header-col-content"],style:{textAlign:"right"},children:d.o.t("plugin_create_action_btn")})})]}),(0,s.jsx)("div",{className:G.Z["herder-list-cotent"],children:null==r?void 0:r.map((e,i)=>(0,s.jsxs)(f.X2,{gutter:8,type:"flex",justify:"space-between",align:"middle",children:[(0,s.jsx)(f.JX,{span:9,children:(0,s.jsx)("div",{className:G.Z["col-content"],children:(0,s.jsx)(f.u3,{placeholder:"Name",value:e.name,onChange:e=>{var t=(0,U.Z)(r);t[i].name=e,null==n||n(t)},maxLength:100,disabled:t})})}),(0,s.jsx)(f.JX,{span:12,children:(0,s.jsx)("div",{className:G.Z["col-content"],children:(0,s.jsx)(f.u3,{placeholder:"Value",value:e.value,onChange:e=>{var t=(0,U.Z)(r);t[i].value=e,null==n||n(t)},maxLength:200,disabled:t})})}),(0,s.jsx)(f.JX,{span:3,children:(0,s.jsx)("div",{className:G.Z["col-content"],children:(0,s.jsx)(f._3,{icon:(0,s.jsx)(m.WDf,{}),type:"secondary",disabled:t,onClick:()=>{o(i)}})})})]},i))})]})})},{valueKey:"value",onKeyChangeFnName:"onChange"}),et=e=>(0,s.jsx)(ee,(0,i._)((0,o._)({},e),{field:"headerList",label:{text:""}})),er=e=>{var t,r,{disabled:n,authOption:o,onChange:i}=e,a=(0,f.XQ)().getValues();return n?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_auth1"),extra:(0,s.jsx)(Q.O,{data:Y.HW.auth}),required:!0},children:(0,s.jsx)("div",{children:null===(t=H(o,null==a?void 0:null===(r=a.auth_type)||void 0===r?void 0:r.at(-1)))||void 0===t?void 0:t.label})}):(0,s.jsx)(f.oL.FormItem,{rules:[{required:!0}],style:{width:"100%"},initValue:(null==a?void 0:a.auth_type)||[0],field:"auth_type",label:{text:d.o.t("create_plugin_modal_auth1"),extra:(0,s.jsx)(Q.O,{data:Y.HW.auth})},placeholder:d.o.t("please_select_an_authorization_method"),treeData:o,displayRender:e=>"".concat(null==e?void 0:e.at(-1)),onChange:e=>{i(e)}})},en=e=>{var t,r,n,{disabled:o}=e,i=(0,f.XQ)(),a=i.getValues();return(0,s.jsxs)(s.Fragment,{children:[o?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_location"),extra:(0,s.jsx)(Q.O,{data:Y.HW.location}),required:!0},children:(0,s.jsx)("div",{children:null===(t=H(Y.cg,null===(r=i.getValues())||void 0===r?void 0:r.location))||void 0===t?void 0:t.label})}):(0,s.jsx)(f.l0.RadioGroup,{rules:[{required:!0}],field:"location",label:{text:d.o.t("create_plugin_modal_location"),extra:(0,s.jsx)(Q.O,{data:Y.HW.location})},options:Y.cg}),o?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_Parameter"),extra:(0,s.jsx)(Q.O,{data:Y.HW.key}),required:!0},children:(0,s.jsx)("div",{children:null===(n=i.getValues())||void 0===n?void 0:n.key})}):(0,s.jsx)(q.sI,{initValue:null==a?void 0:a.key,trigger:["blur","change"],field:"key",label:{text:d.o.t("create_plugin_modal_Parameter"),extra:(0,s.jsx)(Q.O,{data:Y.HW.key})},placeholder:d.o.t("create_plugin_modal_Parameter_empty"),maxLength:100,rules:V.key}),o?(0,s.jsx)(f.l0.Slot,{label:{text:d.o.t("create_plugin_modal_Servicetoken"),extra:(0,s.jsx)(Q.O,{data:Y.HW.service_token}),required:!0},children:(0,s.jsx)("div",{children:null==a?void 0:a.service_token})}):(0,s.jsx)(q.sI,{initValue:null==a?void 0:a.service_token,trigger:["blur","change"],field:"service_token",label:{text:d.o.t("create_plugin_modal_Servicetoken"),extra:(0,s.jsx)(Q.O,{data:Y.HW.service_token})},placeholder:d.o.t("create_plugin_modal_Servicetoken_empty"),maxLength:400,rules:V.service_token})]})},eo=e=>{var{disabled:t,extItems:r}=e,n=(0,f.XQ)().getValues();return(0,s.jsx)(s.Fragment,{children:null==r?void 0:r.map(e=>(0,s.jsx)(s.Fragment,{children:t?(0,s.jsx)(f.l0.Slot,{label:{text:e.key,extra:Y.HW[e.key]&&(0,s.jsx)(Q.O,{data:Y.HW[e.key]}),required:e.required},children:(0,s.jsx)("div",{children:(null==n?void 0:n.oauth_info)?(0,k.dj)(n.oauth_info)[e.key]:null})},e.key):(0,s.jsx)(q.sI,{trigger:["blur","change"],field:e.key,label:{text:e.key,extra:Y.HW[e.key]&&(0,s.jsx)(Q.O,{data:Y.HW[e.key]})},placeholder:Y.VF[e.key],initValue:(null==n?void 0:n.oauth_info)&&(0,k.dj)(n.oauth_info)[e.key]||e.default,maxLength:e.max_len,rules:[{required:e.required,message:Y.VF[e.key]},"url"===e.type?{pattern:/^(http|https):\/\/.+$/,message:d.o.t("create_plugin_modal_URLerror")}:{pattern:/^[\x00-\x7F]+$/,message:d.o.t("create_plugin_modal_descrip_error")}]},e.key)}))})},ei={headerList:[{name:"User-Agent",value:"Coze/1.0"}]},es=e=>{var t,r,l,c,w,{onCancel:_,importInfo:C,visible:O,onSuccess:D,disabled:S=!1,projectId:N}=e,[P,B]=(0,a.useState)([]),[L,z]=(0,a.useState)(!0),[R,Z]=(0,a.useState)([]),[V,U]=(0,a.useState)(!1),q=(null==C?void 0:null===(l=C.metaInfo)||void 0===l?void 0:null===(r=l.common_params)||void 0===r?void 0:r[4])||[],Y=C?(0,i._)((0,o._)({},null==C?void 0:C.metaInfo),{headerList:q||[]}):ei,Q=(0,a.useRef)(),ee=null===(w=Q.current)||void 0===w?void 0:null===(c=w.getFormState())||void 0===c?void 0:c.values,es=(0,h.rY)(e=>e.space.id);(0,a.useEffect)(()=>{(0,n._)(function*(){var e,t=yield y.nA.GetOAuthSchema();B((e=null==t?void 0:t.oauth_schema,[{label:d.o.t("create_plugin_modal_Authorization_no"),value:0,key:"None"},{label:d.o.t("create_plugin_modal_Authorization_service"),value:1,key:"Service"},{label:d.o.t("create_plugin_modal_Authorization_oauth"),value:3,key:"OAuth",children:(0,k.dj)(e)}]))})()},[]),(0,a.useEffect)(()=>{if(C){var e,t,r;Z((null===(e=H(P,(null===(r=C.metaInfo)||void 0===r?void 0:null===(t=r.auth_type)||void 0===t?void 0:t.at(-1))||0))||void 0===e?void 0:e.items)||[])}else Z([])},[P,C]);var ea=(t=(0,n._)(function*(){yield null===(n=Q.current)||void 0===n?void 0:n.validate();var e=null===(s=Q.current)||void 0===s?void 0:s.getValues();if(!!e){var{openAPI:t,aiPlugin:r}=el(e);try{U(!0);var n,s,a,{data:l}=yield y.Js.RegisterPlugin({ai_plugin:r,openapi:t,plugin_type:A.zV.PLUGIN,client_id:null==e?void 0:e.client_id,client_secret:null==e?void 0:e.client_secret,service_token:null==e?void 0:e.service_token,import_from_file:!0,space_id:es,project_id:N},{__disableErrorToast:!0});f.O$.success(d.o.t("plugin_imported_successfully")),null==_||_(),yield null==D?void 0:D({plugin_id:null==l?void 0:l.plugin_id}),(0,p.Gg)(p.Kg.create_plugin_front,(0,i._)((0,o._)({},(null==C?void 0:null===(a=C.extra)||void 0===a?void 0:a.reportParams)||X),{status:0}))}catch(e){var c,{code:h,msg:m}=e;(0,p.Gg)(p.Kg.create_plugin_front,(0,i._)((0,o._)({},(null==C?void 0:null===(c=C.extra)||void 0===c?void 0:c.reportParams)||X),{status:1,error_message:m})),Number(h)===F.SAFE_CHECK?z(!1):f.O$.error({content:(0,u.u)(m)})}finally{U(!1)}}}),function(){return t.apply(this,arguments)}),el=e=>{var t,{headerList:r,plugin_uri:n=[]}=e,s=(0,x._)(e,["headerList","plugin_uri"]),a={};return null==R||R.forEach(t=>{t.key in e&&(a[t.key]=e[t.key])}),function(e,t){var{aiPlugin:r,openAPI:n}=M(t),{name:s,desc:a,auth_type:l,common_params:u,location:c,key:d,service_token:p,oauth_info:h,icon:f}=e,m={name_for_human:s,name_for_model:s,description_for_human:a,description_for_model:a,logo_url:null==f?void 0:f.uri,common_params:{header:null==u?void 0:u[g.Pi.Header],body:null==u?void 0:u[g.Pi.Body],path:null==u?void 0:u[g.Pi.Path],query:null==u?void 0:u[g.Pi.Query]},auth:(0,o._)({type:j(T,null==l?void 0:l.at(0)),location:j(E,c),key:d,service_token:p},JSON.parse(h||"{}"))},y=(0,o._)({},r,m),x=(0,i._)((0,o._)({},n||{}),{info:(0,i._)((0,o._)({},(null==n?void 0:n.info)||{}),{title:s,description:a}),servers:[{url:e.url}]});return{aiPlugin:JSON.stringify(y),openAPI:(0,b.Pz)(x)}}((0,i._)((0,o._)({},s),{oauth_info:JSON.stringify(a),icon:{uri:null===(t=n[0])||void 0===t?void 0:t.uid},common_params:{[A.Pi.Header]:(null==e?void 0:e.headerList)||[],[A.Pi.Body]:[],[A.Pi.Path]:[],[A.Pi.Query]:[]}}),{openAPI:null==C?void 0:C.openAPI,aiPlugin:null==C?void 0:C.aiPlugin})};return(0,a.useEffect)(()=>{!L&&z(!0)},[(null==ee?void 0:ee.name)||(null==ee?void 0:ee.desc)]),(0,s.jsx)(s.Fragment,{children:O?(0,s.jsx)(f.M5,{type:"action-small",title:d.o.t("confirm_plugin_information"),visible:O,onCancel:()=>null==_?void 0:_(),footer:!S&&(0,s.jsxs)("div",{children:[!L&&(0,s.jsx)("div",{className:G.Z["error-msg-box"],children:(0,s.jsx)("span",{className:G.Z["error-msg"],children:d.o.t("plugin_create_modal_safe_error")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(f.y3,{type:"tertiary",onClick:()=>{null==_||_()},children:d.o.t("create_plugin_modal_button_cancel")}),(0,s.jsx)(f.y3,{type:"primary",theme:"solid",loading:V,onClick:()=>{ea()},children:d.o.t("create_plugin_modal_button_confirm")})]})]}),children:(0,s.jsx)(f.l0,{getFormApi:e=>Q.current=e,showValidateIcon:!1,initValues:(0,o._)({},Y||{}),className:G.Z["upload-form"],children:e=>{var{values:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.s,{noLabel:!0,disabled:S,fieldClassName:G.Z["upload-field"],field:"plugin_uri",iconType:g.Tu.Plugin,fileBizType:g.ym.BIZ_PLUGIN_ICON}),(0,s.jsx)($,{disabled:S}),(0,s.jsx)(K,{disabled:S}),(0,s.jsx)(J,{disabled:!0}),(0,s.jsx)(et,{disabled:S}),(0,s.jsx)(er,{disabled:S,authOption:P,onChange:e=>{var t;Z((null===(t=H(P,null==e?void 0:e.at(-1)))||void 0===t?void 0:t.items)||[])}}),1===t.auth_type.at(-1)&&(0,s.jsx)(en,{disabled:S}),(0,s.jsx)(eo,{disabled:S,extItems:R}),!S&&(0,s.jsxs)(f.T,{spacing:8,className:G.Z["footer-draft"],children:[(0,s.jsx)(m.Us8,{style:{fontSize:"16px",color:"#4D53E8"}}),(0,s.jsxs)("span",{children:[d.o.t("plugin_create_draft_desc"),(0,s.jsx)(W.v,{})]})]})]})}})}):null})},ea=r("252237"),el=r.n(ea),eu=r("623159"),ec=r("68344"),ed=r("468163"),ep=e=>{var t,{onUpload:r,disabled:o}=e,[i,l]=(0,a.useState)([]);var u=(t=(0,n._)(function*(e){var{onSuccess:t,file:r,onError:n,onProgress:o}=e;if("string"!=typeof r)try{var{name:i,fileInstance:s}=r;if(s){var a=O(i);if(!z.includes(a))return;var l=yield function(e,t){return D.apply(this,arguments)}(s,o);t(l)}}catch(e){c.kg.error({eventName:"fail_to_read_file",error:e}),n({status:0})}}),function(e){return t.apply(this,arguments)});return(0,s.jsx)(f.gq,{accept:R.join(","),action:"",onAcceptInvalid:()=>{f.O$.warning(d.o.t("file_format_not_supported"))},onSuccess:e=>{r(e)},disabled:o,fileList:i,onChange:e=>{var{fileList:t}=e;l(t),!t.length&&r()},className:el()(ed.Z["upload-file-area"],i.length&&ed.Z["drag-area-disabled"]),dragMainText:d.o.t("click_upload_or_drag_files"),draggable:!0,dragSubText:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:d.o.t("supports_uploading_json_or_yaml_files")}),(0,s.jsx)("a",{href:"/open/docs/guides/import",target:"_blank",onClick:e=>e.stopPropagation(),children:d.o.t("view_detailed_information")})]}),renderFileItem:e=>{var{name:t,onRemove:r,onRetry:n,percent:i,status:a}=e;return(0,s.jsxs)("div",{className:el()(ed.Z["upload-file-item"],o&&ed.Z.disabled),children:[(0,s.jsx)(f.Ee,{preview:!1,className:ed.Z["file-icon"],src:"yaml"===O(t)?eu:ec}),(0,s.jsx)(f.ZT.Text,{className:ed.Z.text,ellipsis:{showTooltip:{opts:{content:t}}},children:t}),(0,s.jsx)("div",{className:ed.Z.progress,children:(()=>{switch(a){case"success":return(0,s.jsx)(f.ZT.Text,{className:ed.Z["upload-text"],ellipsis:!0,children:d.o.t("file_upload_success")});case"uploadFail":case"validateFail":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.Ucq,{}),(0,s.jsx)(f.y3,{theme:"borderless",className:"ml-[8px]",onClick:n,children:d.o.t("retry")})]});default:return(0,s.jsx)("div",{className:el()("w-[90px]"),children:(0,s.jsx)(f.Ex,{percent:i})})}})()}),(0,s.jsx)(f._3,{icon:(0,s.jsx)(m.WDf,{className:ed.Z["delete-icon"],onClick:r})})]})},limit:1,customRequest:u})},eh=(0,a.forwardRef)((e,t)=>{var{onChange:r}=e,n=(0,x._)(e,["onChange"]);return(0,s.jsx)(f.Kx,(0,i._)((0,o._)({placeholder:d.o.t("enter_raw_content_or_url"),rows:17},n),{ref:t,onChange:e=>{r(e.trim())},className:ed.Z["text-area"]}))}),ef=r("170992"),em=e=>{var t,{onCancel:r,visible:o,onOk:i,title:l}=e,[u,p]=(0,a.useState)("File"),[h,m]=(0,a.useState)(),[g,y]=(0,a.useState)(),[x,b]=(0,a.useState)(!1),w=(0,a.useRef)(null),_=e=>{m(e)},k=()=>{p("File"),m(void 0)};var C=(t=(0,n._)(function*(){b(!0),y(void 0);var e=h,t="Text"===u?"raw_txt":"file";if("Text"===u&&function(e){try{return!!RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*","i").test(e||"")}catch(e){return!1}}(h))try{e=yield function(e){return S.apply(this,arguments)}(h||""),t="file_url"}catch(e){return c.kg.error({error:e,eventName:"fetch_url_resource_fail"}),y(d.o.t("unable_to_access_input_url")),b(!1),Promise.reject(e)}try{var r=yield null==i?void 0:i({type:t,content:e});!(null==r?void 0:r.success)&&y(null==r?void 0:r.errMsg)}finally{b(!1)}}),function(){return t.apply(this,arguments)});return(0,a.useEffect)(()=>{g&&y(void 0)},[h]),(0,a.useEffect)(()=>{o&&k()},[o]),(0,a.useEffect)(()=>{if("Text"===u&&w.current){var e;null==w||null===(e=w.current)||void 0===e||e.focus()}},[u]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(f.M5,{afterClose:k,keepDOM:!1,type:"action-small",title:l,visible:o,onCancel:r,onOk:C,footer:(0,s.jsx)(f.y3,{theme:"solid",type:"primary",disabled:!h,onClick:C,loading:x,children:d.o.t("next")}),className:ef.Z["import-modal"],children:(0,s.jsxs)("div",{className:"min-h-[472px]",children:[(0,s.jsx)("div",{className:"flex justify-center mb-[24px]",children:(0,s.jsxs)(f.FX,{onChange:e=>{p(e.target.value),m(void 0)},type:"button",buttonSize:"middle",defaultValue:u,disabled:x,className:ef.Z["radio-group"],children:[(0,s.jsx)(f.Y8,{value:"File",children:d.o.t("local_file")}),(0,s.jsx)(f.Y8,{value:"Text",children:d.o.t("url_raw_data")})]})}),(0,s.jsx)("div",{children:"File"===u?(0,s.jsx)(ep,{onUpload:_,disabled:x}):(0,s.jsx)(eh,{onChange:_,disabled:x,ref:w})}),(0,s.jsxs)("div",{className:ef.Z["error-msg"],children:[" ",g?(0,s.jsx)(f.ZT.Text,{ellipsis:{showTooltip:{opts:{content:g}}},children:g}):null]})]})})})},eg=e=>{var{visible:t}=e;return t?(0,s.jsx)(ev,(0,o._)({},e)):null},ev=e=>{var t,r,{onCancel:l,visible:m,onSuccess:b,projectId:w}=e,[_,k]=(0,a.useState)(),{id:C,space_type:A}=(0,h.rY)(e=>e.space),O=(0,a.useRef)(X),D=A===g.Sn.Personal;(0,a.useEffect)(()=>{O.current=(0,i._)((0,o._)({},O.current),{environment:L(),workspace_id:C||"",workspace_type:D?"personal_workspace":"team_workspace",status:1,create_type:"import"})},[C,D]);var S=(t=(0,n._)(function*(e){try{var t,{openapi:r,ai_plugin:s,plugin_data_format:a}=yield y.Js.Convert2OpenAPI(e,{__disableErrorToast:!0}),l=M({aiPlugin:s,openAPI:r}),h=function(e){var t,r,n,o,i,s,{aiPlugin:a,openAPI:l}=e,u=(null==a?void 0:a.auth)||{},{type:c,location:d,key:p,service_token:h}=u,f=(0,x._)(u,["type","location","key","service_token"]);return{name:null==a?void 0:a.name_for_human,desc:null==a?void 0:a.description_for_human,url:null==l?void 0:null===(r=l.servers)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.url,icon:{uri:null==a?void 0:a.logo_url},auth_type:[T[c||"none"]],location:E[d||""],key:p,service_token:h,oauth_info:JSON.stringify(f),common_params:{[g.Pi.Header]:(null==a?void 0:null===(n=a.common_params)||void 0===n?void 0:n.header)||[],[g.Pi.Body]:(null==a?void 0:null===(o=a.common_params)||void 0===o?void 0:o.body)||[],[g.Pi.Path]:(null==a?void 0:null===(i=a.common_params)||void 0===i?void 0:i.path)||[],[g.Pi.Query]:(null==a?void 0:null===(s=a.common_params)||void 0===s?void 0:s.query)||[]}}}(l);return k({aiPlugin:s,openAPI:r,metaInfo:h}),O.current=(0,i._)((0,o._)({},O.current),{import_format_type:N(a),import_tools_count:Object.entries((null==l?void 0:null===(t=l.openAPI)||void 0===t?void 0:t.paths)||{}).length}),{success:!0}}catch(t){var m,b,w,{msg:_,code:C,response:A}=t;if(c.kg.error({error:t,eventName:"plugin_convert_openapi_fail"}),O.current=(0,i._)((0,o._)({},O.current),{import_format_type:N(null==A?void 0:null===(b=A.data)||void 0===b?void 0:b.plugin_data_format),import_tools_count:0}),(0,p.Gg)(p.Kg.create_plugin_front,(0,i._)((0,o._)({},O.current),{status:1,error_message:_})),!(Number(C)===F.DUP_PATH||P(null==A?void 0:A.data)))return{success:!1,errMsg:_||d.o.t("error")};return B({onOk:(m=(0,n._)(function*(){var{errMsg:t,success:r}=yield S((0,i._)((0,o._)({},e),{merge_same_paths:!0}));if(!r)return f.O$.error({content:(0,u.u)(t||d.o.t("error"))}),Promise.reject(t)}),function(){return m.apply(this,arguments)}),duplicateInfos:null==A?void 0:null===(w=A.data)||void 0===w?void 0:w.duplicate_api_infos}),{success:!1,errMsg:""}}}),function(e){return t.apply(this,arguments)});var j=(r=(0,n._)(function*(e){var{content:t,type:r}=e;return O.current=(0,i._)((0,o._)({},O.current),{import_way_type:r}),yield S({data:t||"",space_id:C,merge_same_paths:!1})}),function(e){return r.apply(this,arguments)});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(em,{title:d.o.t("import_plugin"),visible:m,onCancel:l,onOk:j}),_?(0,s.jsx)(es,{visible:!!_,projectId:w,onCancel:()=>k(void 0),importInfo:{metaInfo:_.metaInfo,openAPI:_.openAPI,aiPlugin:_.aiPlugin,extra:{reportParams:O.current}},onSuccess:e=>{null==l||l(),null==b||b(e)}}):null]})},ey=e=>{var{visible:t}=e;return t?(0,s.jsx)(ex,(0,o._)({},e)):null},ex=e=>{var t,r,x,b,{onCancel:w,visible:_,onSuccess:k,pluginInfo:C}=e,A=(0,a.useRef)(Z),{id:O,space_type:D}=(0,h.rY)(e=>e.space),S=D===g.Sn.Personal,T=l.Z.useUserInfo();(0,a.useEffect)(()=>{A.current=(0,i._)((0,o._)({},A.current),{environment:L(),workspace_id:O||"",workspace_type:S?"personal_workspace":"team_workspace",status:1,create_type:"import",plugin_id:(null==C?void 0:C.pluginID)||""})},[null==C?void 0:C.pluginID,O,S]);var E=(t=(0,n._)(function*(e){try{var t,r,n,s=yield y.Js.BatchCreateAPI(e,{__disableErrorToast:!0}),a=(null==e?void 0:e.replace_same_paths)?null==e?void 0:null===(t=e.paths_to_replace)||void 0===t?void 0:t.length:null==s?void 0:null===(r=s.paths_created)||void 0===r?void 0:r.length;(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,i._)((0,o._)({},A.current),{status:0,import_tools_count:a||0})),s&&!(null==s?void 0:null===(n=s.paths_duplicated)||void 0===n?void 0:n.length)&&(f.O$.success((null==e?void 0:e.replace_same_paths)?d.o.t("plugin_tool_replace_success"):d.o.t("plugin_tool_import_succes")),null==w||w(),null==k||k())}catch(t){var l,u,{code:c,response:h}=t;if(Number(c)!==F.DUP_PATH&&!P(null==h?void 0:h.data))return Promise.reject(t);(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,i._)((0,o._)({},A.current),{status:0,import_tools_count:(null==h?void 0:null===(u=h.data)||void 0===u?void 0:null===(l=u.paths_created)||void 0===l?void 0:l.length)||0})),M(e,null==h?void 0:h.data)}}),function(e){return t.apply(this,arguments)}),M=(e,t)=>{var{paths_created:r=[],paths_duplicated:a=[]}=t||{},l=r.length,c=a.length,h=d.o.t("failed_to_import_tool",{num:c}),g=d.o.t("tools_imported_successfully",{num:l});f.M5.warning({title:l?"".concat(g,", ").concat(h):h,content:c?d.o.t("plugin_tool_exists_tips",{num:c}):null,okText:d.o.t("replace"),cancelText:d.o.t("Cancel"),centered:!0,icon:(0,s.jsx)(m.O5N,{}),okButtonProps:{type:"warning"},onOk:(0,n._)(function*(){var t=(0,i._)((0,o._)({},e),{replace_same_paths:!0,paths_to_replace:a});try{yield E(t)}catch(e){var{msg:r}=e;f.O$.error({content:(0,u.u)(r||d.o.t("error"))}),(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,i._)((0,o._)({},A.current),{import_tools_count:0,status:1,error_message:r||""}))}}),onCancel:l?(0,n._)(function*(){null==w||w(),yield null==k?void 0:k()}):void 0})};var j=(r=(0,n._)(function*(e){return yield y.Js.Convert2OpenAPI((0,i._)((0,o._)({},e),{plugin_description:null==C?void 0:C.pluginDesc}),{__disableErrorToast:!0})}),function(e){return r.apply(this,arguments)});var I=(x=(0,n._)(function*(e){try{var t=yield j(e);A.current=(0,i._)((0,o._)({},A.current),{import_format_type:N(null==t?void 0:t.plugin_data_format)});var r={plugin_id:null==C?void 0:C.pluginID,ai_plugin:null==t?void 0:t.ai_plugin,openapi:null==t?void 0:t.openapi,replace_same_paths:!1,space_id:O,dev_id:null==T?void 0:T.user_id_str,edit_version:null==C?void 0:C.editVersion};return yield E(r),{success:!0}}catch(t){var s,a,l,{msg:h,code:m,response:g}=t;if(c.kg.error({error:t,eventName:"batch_create_fail"}),A.current=(0,i._)((0,o._)({},A.current),{import_format_type:N(null==g?void 0:null===(a=g.data)||void 0===a?void 0:a.plugin_data_format)}),(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,i._)((0,o._)({},A.current),{import_tools_count:0,status:1,error_message:h||""})),!(Number(m)===F.DUP_PATH||P(null==g?void 0:g.data)))return{success:!1,errMsg:h||d.o.t("error")};return B({onOk:(s=(0,n._)(function*(){var{success:r,errMsg:n}=yield I((0,i._)((0,o._)({},e),{merge_same_paths:!0}));if(!r)return f.O$.error({content:(0,u.u)(n||d.o.t("error"))}),Promise.reject(t)}),function(){return s.apply(this,arguments)}),duplicateInfos:null==g?void 0:null===(l=g.data)||void 0===l?void 0:l.duplicate_api_infos}),{success:!1}}}),function(e){return x.apply(this,arguments)});var z=(b=(0,n._)(function*(e){var{content:t,type:r}=e||{};return A.current=(0,i._)((0,o._)({},A.current),{import_way_type:r}),yield I({data:t||"",plugin_name:null==C?void 0:C.pluginName,plugin_url:null==C?void 0:C.pluginUrl,merge_same_paths:!1,space_id:O})}),function(e){return b.apply(this,arguments)});return(0,s.jsx)(em,{title:d.o.t("import_plugin_tool"),visible:_,onCancel:w,onOk:z})}},3779:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(151064),o=r(455069),i=r(336205),s=r(659596),a=()=>{var e=(0,o.useMemo)(()=>({"zh-CN":"/docs/guides/plugin",en:"/docs/en_guides/en_plugin"})[i.o.language],[]);return(0,n.jsx)(s.ZT.Text,{link:{href:e,target:"_blank"},fontSize:"12px",children:i.o.t("plugin_create_guide_link")})}},625196:function(e,t,r){"use strict";r.d(t,{O:()=>a});var n=r("151064"),o=r("455069"),i=r("873183"),s=r("659596"),a=e=>{var{data:t}=e;return(0,n.jsx)(s.u,{showArrow:!0,theme:"dark",position:"right",arrowPointAtCenter:!0,className:"!max-w-[320px]",content:null==t?void 0:t.map((e,t)=>(0,n.jsxs)(o.Fragment,{children:["title"===e.type?(0,n.jsx)(s.ZT.Text,{fontSize:"14px",className:"dark coz-fg-primary",children:e.text}):null,"text"===e.type?(0,n.jsx)(s.ZT.Paragraph,{fontSize:"12px",className:"dark coz-fg-secondary",children:e.text}):null,"br"===e.type?(0,n.jsx)("div",{className:"h-[8px]"}):null,"demo"===e.type?(0,n.jsx)("div",{className:"dark mt-[4px] p-[10px] border border-solid coz-stroke-primary",children:(0,n.jsx)(s.ZT.Paragraph,{fontSize:"12px",className:"dark coz-fg-secondary",children:e.text})}):null]},"".concat(e.type).concat(t))),children:(0,n.jsx)(i.L03,{className:"coz-fg-secondary"})})}},827666:function(e,t,r){"use strict";r.d(t,{Eo:function(){return w},Fc:function(){return p},Il:function(){return d},JN:function(){return B},Oz:function(){return P},RE:function(){return _},TS:function(){return y},UR:function(){return f},YA:function(){return S},Zo:function(){return M},dT:function(){return m},iq:function(){return N},lR:function(){return j},ls:function(){return g},pq:function(){return x},rN:function(){return b},sp:function(){return h},w5:function(){return A}});var n,o,i=r(808549),s=r(120454),a=r(335740),l=r(336205),u=r(458949),c=r(187151),d="sub_parameters",p="id",h="[Array Item]",f="[Root Item]",m=0,g=1,y=2,x=[{label:"Body",value:u.Pi.Body},{label:"Path",value:u.Pi.Path},{label:"Query",value:u.Pi.Query},{label:"Header",value:u.Pi.Header}];var b=((n={})[n.DEFAULT=10001]="DEFAULT",n[n.IMAGE=10002]="IMAGE",n[n.DOC=10003]="DOC",n[n.CODE=10004]="CODE",n[n.PPT=10005]="PPT",n[n.TXT=10006]="TXT",n[n.EXCEL=10007]="EXCEL",n[n.AUDIO=10008]="AUDIO",n[n.ZIP=10009]="ZIP",n[n.VIDEO=10010]="VIDEO",n),w=e=>e+1e4,_=e=>e-1e4,k=[{label:"String",value:u.rH.String},{label:"Integer",value:u.rH.Integer},{label:"Number",value:u.rH.Number},{label:"Object",value:u.rH.Object},{label:"Array",value:u.rH.Array},{label:"Boolean",value:u.rH.Bool}],C=[{label:"Array<String>",value:u.rH.String},{label:"Array<Integer>",value:u.rH.Integer},{label:"Array<Number>",value:u.rH.Number},{label:"Array<Object>",value:u.rH.Object},{label:"Array<Boolean>",value:u.rH.Bool}],A={10001:{label:"File",listLabel:"Array<File>",fileTypes:[c.Wz.DEFAULT_UNKNOWN]},10002:{label:"Image",listLabel:"Array<Image>",fileTypes:[c.Wz.IMAGE]},10003:{label:"Doc",listLabel:"Array<Doc>",fileTypes:[c.Wz.DOCX,c.Wz.PDF]},10004:{label:"Code",listLabel:"Array<Code>",fileTypes:[c.Wz.CODE]},10005:{label:"PPT",listLabel:"Array<PPT>",fileTypes:[c.Wz.PPT]},10006:{label:"TXT",listLabel:"Array<TXT>",fileTypes:[c.Wz.TXT]},10007:{label:"Excel",listLabel:"Array<Excel>",fileTypes:[c.Wz.EXCEL,c.Wz.CSV]},10008:{label:"Audio",listLabel:"Array<Audio>",fileTypes:[c.Wz.AUDIO]},10009:{label:"Zip",listLabel:"Array<Zip>",fileTypes:[c.Wz.ARCHIVE]},10010:{label:"Video",listLabel:"Array<Video>",fileTypes:[c.Wz.VIDEO]}},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return k;var t=(0,a.Z)(k);return t.splice(1,0,{label:"File",value:10001,children:Object.entries(A).map(e=>{var[t,{label:r}]=e;return{label:r,value:Number(t)}})}),t},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return C;var t=(0,a.Z)(C);return t.splice(1,0,{label:"Array<File>",value:10001,children:Object.entries(A).map(e=>{var[t,{listLabel:r}]=e;return{label:r,value:Number(t)}})}),t},S=(e,t)=>e?D(t):O(t),T=k.reduce((e,t)=>(e[t.value]=t.label,e),(0,s._)((0,i._)({},Object.entries(A).reduce((e,t)=>{var[r,{label:n}]=t;return e[r]=n,e},{})),{10001:"File"})),E=C.reduce((e,t)=>(e[t.value]=t.label,e),(0,s._)((0,i._)({},Object.entries(A).reduce((e,t)=>{var[r,{listLabel:n}]=t;return e[r]=n,e},{})),{10001:"Array<File>"})),M=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?E[e]:T[e]},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.type;return(null==e?void 0:e.assist_type)&&(r=w(e.assist_type)),M(r,t)},N=[{type:"title",text:"Get"},{type:"text",text:l.o.t("plugin_tooltip_url")},{type:"demo",text:"GET /users?userId=123"},{type:"text",text:l.o.t("used_to_obtain_user_information_with_id_123")},{type:"br"},{type:"title",text:"Post"},{type:"text",text:l.o.t("submit_data_to_a_specified_resource__often_used_to_submit_forms_or_upload_files_")},{type:"demo",text:"POST /users"},{type:"text",text:l.o.t("attach_user_data_to_create_a_new_user_")},{type:"title",text:"Put"},{type:"text",text:l.o.t("upload_data_or_resources_to_a_specified_location__often_used_to_update_existing_")},{type:"demo",text:"PUT /users/123"},{type:"text",text:l.o.t("used_to_update_user_information_with_id_123_")},{type:"title",text:"Delete"},{type:"text",text:l.o.t("requests_the_server_to_delete_the_specified_resource__example_")},{type:"demo",text:"DELETE /users/123"},{type:"text",text:l.o.t("used_to_delete_the_user_with_id_123_")},{type:"title",text:l.o.t("Create_tool_s1_method_patch_tooltip_title")},{type:"text",text:l.o.t("Create_tool_s1_method_patch_tooltip_desp")},{type:"demo",text:l.o.t("Create_tool_s1_method_patch_tooltip_url")},{type:"text",text:l.o.t("Create_tool_s1_method_patch_tooltip_explain")}];var P=((o={})[o.NO_ERROR=0]="NO_ERROR",o[o.NAME_EMPTY=1]="NAME_EMPTY",o[o.CHINESE=2]="CHINESE",o[o.REPEAT=3]="REPEAT",o[o.ASCII=4]="ASCII",o[o.DESC_EMPTY=5]="DESC_EMPTY",o),B={0:"",1:l.o.t("Create_newtool_s2_table_name_error1"),2:l.o.t("Create_newtool_s2_table_name_error2"),3:l.o.t("plugin_Parameter_name_error"),4:l.o.t("create_plugin_modal_descrip_error"),5:l.o.t("Create_newtool_s3_table_des_empty")}},900021:function(e,t,r){"use strict";r.d(t,{B:function(){return i},Q:function(){return o}});var n,o=((n={}).PASS="PASS",n.FAIL="FAIL",n.WAIT="WAIT",n),i={SAFE_CHECK:0x2aebbb74}},577413:function(e,t,r){"use strict";r.d(t,{$F:function(){return A},$S:function(){return M},Hn:function(){return O},IK:function(){return x},Og:function(){return j},Rm:function(){return b},SR:function(){return C},UK:function(){return k},Vv:function(){return L},_v:function(){return E},aE:function(){return P},aY:function(){return D},bd:function(){return h},eO:function(){return f},jd:function(){return _},lf:function(){return g},qE:function(){return I},sl:function(){return S},ub:function(){return y},w:function(){return N}});var n=r(808549),o=r(120454),i=r(801815),s=r(550655),a=r(335740),l=r(788637),u=r(278796),c=r(64605),d=r(458949),p=r(827666),h=e=>{for(var{data:t,callback:r,childrenName:n=p.Il,path:o=[]}=e,i=0;i<t.length;i++){var s=JSON.parse(JSON.stringify(o));s.push(i),r(t[i],s),t[i][n]&&t[i][n].length>0&&h({data:t[i][n],callback:r,childrenName:n,path:s})}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global_default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(!!Array.isArray(e))for(var n of e)n.deep=r,n[t]&&(n.value=n[t]),n[p.Il]&&f(n[p.Il],t,r+1)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!!Array.isArray(e))for(var r of e)(0,s.Z)(r.deep)&&t.push(r.deep),r[p.Il]&&m(r[p.Il],t)},g=e=>{if(!Array.isArray(e)||0===e.length)return 0;var t=[];return m(e,t),Math.max.apply(null,t)},y=function(){var{isArray:e=!1,iscChildren:t=!1,deep:r=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[p.Fc]:(0,i.x0)(),name:e?p.sp:"",desc:"",type:d.rH.String,location:t?void 0:d.Pi.Query,is_required:!0,sub_parameters:[],deep:r}},x=(e,t)=>{for(var r=0;r<e.length;r++){if(e[r][p.Fc]===t)return e.splice(r,1),!0;if(e[r][p.Il]&&e[r][p.Il].length>0&&x(e[r][p.Il],t))return!0}return!1},b=(e,t)=>{for(var r of e){if(r[p.Fc]===t)return r[p.Il]=[],!0;if(Array.isArray(r[p.Il])&&r[p.Il].length>0&&b(r[p.Il],t))return!0}return!1},w=(e,t,r)=>{for(var n of e)n[t]=r,Array.isArray(n[p.Il])&&w(n[p.Il],t,r)},_=e=>{var{data:t,targetKey:r,field:n,value:o,inherit:i=!1}=e;for(var s of t){if(s[p.Fc]===r){s[n]=o,i&&Array.isArray(s[p.Il])&&s[p.Il].length>0&&w(s[p.Il],n,o);return}Array.isArray(s[p.Il])&&s[p.Il].length>0&&_({data:s[p.Il],targetKey:r,field:n,value:o})}},k=(e,t)=>{for(var r=(0,a.Z)(e),n=[...t],o=0;o<t.length;o++)r[t[o]]?r=r[t[o]]:(r=r[0],n[o]=0);return n},C=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.reduce((e,r)=>{var n=[];switch(r.type){case d.rH.String:r.value&&(e[r.name]=r.value),!t&&(e[r.name]=r.value);break;case d.rH.Integer:case d.rH.Number:r.value&&(e[r.name]=Number(r.value)),!t&&(e[r.name]=r.value);break;case d.rH.Bool:r.value&&(e[r.name]="true"===r.value),!t&&(e[r.name]=r.value);break;case d.rH.Object:if(r.sub_parameters){var o=C(r.sub_parameters,t);!(0,l.Z)(o)&&(e[r.name]=o)}break;case d.rH.Array:if(n=r.sub_parameters,[d.rH.Bool,d.rH.Integer,d.rH.Number,d.rH.String].includes(r.sub_parameters[0].type)&&(n=r.sub_parameters.filter(e=>e.value)),(0,l.Z)(n))break;e[r.name]=n.map(e=>[d.rH.Bool].includes(e.type)?t?"true"===e.value:e.value:[d.rH.Integer,d.rH.Number].includes(e.type)?t?Number(e.value):e.value:[d.rH.String].includes(e.type)?e.value:e.type===d.rH.Object?C(e.sub_parameters,t):void 0)}return e},{})},A=e=>{var t,r,n={};for(var o in e)(null===(t=e[o])||void 0===t?void 0:t.constructor)===Object?n[o]=A(e[o]):n[o]=e[o];return"sub_parameters"in n&&(n.sub_parameters=null===(r=n.sub_parameters)||void 0===r?void 0:r.map(A)),n[p.Fc]&&(n[p.Fc]=(0,i.x0)()),n.value&&(n.value=null),n},O=(e,t)=>!!e.map(e=>e[p.Fc]).includes(t)||T(e,t),D=(e,t,r)=>{for(var n of e){if(n[p.Fc]===t)return e.filter(e=>e.name===r).length>1;if(Array.isArray(n[p.Il])&&n[p.Il].length>0&&D(n[p.Il],t,r))return!0}},S=e=>{if(!Array.isArray(e))return!1;for(var t of e){if(t.type===d.rH.Array)return!0;if(Array.isArray(t[p.Il])&&t[p.Il].length>0&&S(t[p.Il]))return!0}return!1},T=(e,t)=>{for(var r of e){if(r[p.Fc]===t)return e.length>1;if(Array.isArray(r[p.Il])&&r[p.Il].length>0&&T(r[p.Il],t))return!0}},E=e=>new Promise(t=>{setTimeout(()=>{t(0)},e)}),M=e=>{var t=document.querySelector(e);t&&("function"==typeof t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView({behavior:"smooth",block:"start"}))},j=e=>{e.scrollTo({left:0,top:e.scrollHeight,behavior:"smooth"})},N=(e,t)=>{var r=(0,a.Z)(e),n=e=>{"local_default"===t&&!(0,u.Z)(e,"local_default")&&(e[t]=e.global_default),!e[t]&&(e[t]=""),e.default_param_source===d.qi.Input&&"local_default"===t&&e.is_required&&!e.local_default&&e.local_disable&&(e.local_disable=!1)},o=function(e){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0,s=e.length;i<s;i++){var a=e[i];r?(a[t]=void 0,a.sub_parameters&&a.sub_parameters.length>0&&o(a.sub_parameters,!0)):a.type===d.rH.Array?(n(a),a.sub_parameters&&a.sub_parameters.length>0&&o(a.sub_parameters,!0)):(a.type===d.rH.Object?a[t]=void 0:n(a),a.sub_parameters&&a.sub_parameters.length>0&&o(a.sub_parameters))}};return o(r),r},P=(e,t)=>{var r=[];return Array.isArray(e)&&e.forEach(e=>{var n=B(e,t[0]);r.push(n)}),r},B=(e,t)=>{var r={};if(Array.isArray(e))r=(0,o._)((0,n._)({},t),{id:(0,i.x0)(),sub_parameters:[]}),e.forEach(e=>{var n,o=B(e,t.sub_parameters[0]);null===(n=r.sub_parameters)||void 0===n||n.push(o)});else if((0,c.Z)(e)){r=(0,o._)((0,n._)({},t),{id:(0,i.x0)(),sub_parameters:[]});var s={};Object.keys(e).map(a=>{if(Object.prototype.hasOwnProperty.call(e,a)){var l,u=e[a];if(Array.isArray(u)||"object"==typeof u){var c,d=B(u,t.sub_parameters.find(e=>e.name===a));null===(c=r.sub_parameters)||void 0===c||c.push(d)}else(s=(0,o._)((0,n._)({},t.sub_parameters.find(e=>e.name===a)),{id:(0,i.x0)(),sub_parameters:[]})).value=String(u),null===(l=r.sub_parameters)||void 0===l||l.push(s)}})}else(r=(0,o._)((0,n._)({},t),{id:(0,i.x0)(),sub_parameters:[]})).value=String(e);return r},I=e=>{for(var t=(0,a.Z)(e),r=0,n=t.length;r<n;r++)if(t[r].type===d.rH.Array){var o=JSON.parse(t[r].global_default||"[]");if(o.length>0){var i=P(o,t[r].sub_parameters||[]);t[r].sub_parameters=i}}else t[r].sub_parameters=I(t[r].sub_parameters||[]);return t},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.length)return[];for(var r=(0,a.Z)(e),n=0,o=r.length;n<o;n++){var i,s=r[n];void 0===s.global_default&&(s.global_disable=void 0),s.global_default=void 0,!t&&(s.is_required=void 0),s.sub_parameters=L(null!==(i=s.sub_parameters)&&void 0!==i?i:[],t)}return r}},834557:function(e,t,r){"use strict";r.d(t,{p:function(){return h}});var n=r(825955),o=r(151064),i=r(455069),s=r(335740),a=r(336205),l=r(775699),u=r(458949),c=r(577413),d=r(849201),p=(0,i.lazy)((0,n._)(function*(){var{Debug:e}=yield r.e("6226").then(r.bind(r,364112));return{default:e}})),h=e=>{var t,[r,n]=(0,i.useState)(!1),[h,f]=(0,i.useState)();return(0,i.useEffect)(()=>{!r&&f(void 0)},[r]),{exampleNode:(0,o.jsx)(l.M5,{title:a.o.t("plugin_edit_tool_test_run_example_tip"),visible:r,width:1280,style:{height:"calc(100vh - 140px)",minWidth:"1040px"},centered:!0,onCancel:()=>{n(!1)},footer:null,getPopupContainer:null==e?void 0:e.getPopupContainer,children:h?(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(p,{disabled:!0,pluginId:"",apiId:null!==(t=null==h?void 0:h.api_id)&&void 0!==t?t:"",apiInfo:h,pluginName:"",debugExample:null==h?void 0:h.debug_example,isViewExample:!0})}):null}),doShowExample:e=>{var{scene:t,requestParams:r,debugExample:o}=e;if(!!r&&!!(null==o?void 0:o.req_example)){var i=(0,s.Z)(r);if("workflow"===t)(0,d.$T)(i,JSON.parse(null==o?void 0:o.req_example));else{if("bot"!==t)return;(0,d.rl)(i,JSON.parse(null==o?void 0:o.req_example))}(0,c.eO)(i),f({debug_example_status:u.ji.Enable,request_params:i,debug_example:o}),n(!0)}}}}},849201:function(e,t,r){"use strict";r.d(t,{$T:function(){return d},C$:function(){return a},rl:function(){return c}});var n=r(801815),o=r(962289),i=r(458949),s={string:i.rH.String,integer:i.rH.Integer,number:i.rH.Number,object:i.rH.Object,array:i.rH.Array,bool:i.rH.Bool,list:i.rH.Array,float:i.rH.Number,boolean:i.rH.Bool},a=(e,t)=>{var r=(e,t)=>{e.forEach(e=>{var n,s,a=(0,o.Z)(t,null!==(n=null==e?void 0:e.name)&&void 0!==n?n:"");void 0!==a&&(e.type===i.rH.Object?r(null!==(s=e.sub_parameters)&&void 0!==s?s:[],a):e.type===i.rH.Array?e.global_default=JSON.stringify(a):e.global_default=a)})};r(e,t)},l=e=>{if(Array.isArray(e))e.forEach(e=>{l(e)});else{if(e.type=s[e.type],e.sub_type=s[e.sub_type],e.is_required=e.required,e.global_disable=!1,e.local_disable=!1,e.location=void 0,e.id=(0,n.x0)(),e.desc=e.description,"schema"in e){if(e.type===i.rH.Array){var t,r,o;e.sub_parameters=[{name:"[Array Item]",is_required:e.required,type:s[null===(t=e.schema)||void 0===t?void 0:t.type],global_disable:!1,local_disable:!1,location:void 0,sub_type:0,sub_parameters:null!==(o=null===(r=e.schema)||void 0===r?void 0:r.schema)&&void 0!==o?o:[]}]}else e.type===i.rH.Object?e.sub_parameters=[...e.schema]:e.sub_parameters=[]}else e.sub_parameters=[];l(e.type===i.rH.Array?e.sub_parameters[0].sub_parameters:null==e?void 0:e.sub_parameters)}},u=e=>{Array.isArray(e)?e.forEach(e=>{u(e)}):(e.type=s[e.type],e.sub_type=s[e.sub_type],e.is_required=e.required,e.global_disable=!1,e.local_disable=!1,e.location=void 0,e.id=(0,n.x0)(),!("sub_parameters"in e)&&(e.sub_parameters=[]),"sub_params"in e&&(e.sub_parameters=e.sub_params),e.type===i.rH.Array?(e.sub_parameters=[{name:"[Array Item]",is_required:e.required,type:e.sub_type,global_disable:!1,local_disable:!1,location:void 0,sub_type:0,sub_parameters:[...e.sub_parameters]}],u(e.sub_parameters[0].sub_parameters)):u(e.sub_parameters))},c=(e,t)=>{u(e),a(e,t)},d=(e,t)=>{l(e),a(e,t)}},833047:function(e,t,r){"use strict";r.d(t,{eL:()=>c,YS:()=>y,gp:()=>a,WB:()=>ed,L8:()=>u,o_:()=>x,TB:()=>P,tx:()=>p,XJ:()=>l,Ht:()=>N,ir:()=>g});var n,o,i,s,a=((n={}).All="1",n.Mine="2",n),l=1,u=10;var c=((o={}).Mine="mine",o.Team="team",o.Favorite="favorite",o.Project="project",o),d=r("30961");var p=((i={}).WorkflowAddNode="workflow_addNode",i.BotSkills="bot_skills",i.BotTrigger="bot_trigger",i.ProjectIde="project_ide",i.ProjectWorkflow="project_workflow",i),h=r("336205"),f=r("656927"),m=r("318281");r("915100"),r("789716");var g=()=>({active_icon_url:f.Z,icon_url:m.Z,id:"",name:h.o.t("All")}),y=e=>{var t,r;return(null!==(t=e.plugin_id)&&void 0!==t?t:"0")+(null!==(r=e.name)&&void 0!==r?r:"")},x=e=>{var{apiInfo:t}=e;return(null==t?void 0:t.name)&&(null==t?void 0:t.plugin_id)?"".concat(t.name,"_").concat(t.plugin_id):""},b=r("825955"),w=r("808549"),_=r("517465"),k=r.n(_),C=r("721566"),A=r("117140"),O=r("458949"),D=r("382534"),S=(e,t)=>{if(!(e in{current_entity_id:"current_entity_id",current_entity_version:"current_entity_version"}))return t;if(""!==t)return t};function T(e,t){var r,n,o,i,s,a,l,u,c,d,p,h,f,m,g,y,x,b,_,k,C,A,O,D,S,T,E,M,j,N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{productInfo:(0,w._)({id:String(null==e?void 0:null===(u=e.meta_info)||void 0===u?void 0:u.id),category:null==e?void 0:null===(c=e.meta_info)||void 0===c?void 0:c.category,entity_type:null==e?void 0:null===(d=e.meta_info)||void 0===d?void 0:d.entity_type,favorite_count:null==e?void 0:null===(p=e.meta_info)||void 0===p?void 0:p.favorite_count,heat:null==e?void 0:null===(h=e.meta_info)||void 0===h?void 0:h.heat,is_favorited:null==e?void 0:null===(f=e.meta_info)||void 0===f?void 0:f.is_favorited,is_free:null==e?void 0:null===(m=e.meta_info)||void 0===m?void 0:m.is_free,favorite_time:String(N||""),status:null==e?void 0:null===(g=e.meta_info)||void 0===g?void 0:g.status,listed_at:null==e?void 0:null===(y=e.meta_info)||void 0===y?void 0:y.listed_at,user_info:e.meta_info.user_info},e.plugin_extra),pluginInfo:{name:null==e?void 0:null===(x=e.meta_info)||void 0===x?void 0:x.name,plugin_apis:(s=null==(r=e)?void 0:null===(n=r.meta_info)||void 0===n?void 0:n.name,a="".concat((null==r?void 0:null===(o=r.meta_info)||void 0===o?void 0:o.entity_id)||""),null==(l=null==r?void 0:null===(i=r.plugin_extra)||void 0===i?void 0:i.tools)?void 0:l.map(e=>{var t,r;return{api_id:"".concat((null==e?void 0:e.id)||""),desc:null==e?void 0:e.description,name:null==e?void 0:e.name,plugin_id:a,plugin_name:s,record_id:"",card_binding_info:{thumbnail:null==e?void 0:null===(t=e.card_info)||void 0===t?void 0:t.card_url},parameters:null==e?void 0:null===(r=e.parameters)||void 0===r?void 0:r.map(e=>({name:null==e?void 0:e.name,desc:null==e?void 0:e.description,required:null==e?void 0:e.required,type:null==e?void 0:e.type,sub_params:null==e?void 0:e.sub_params})),debug_example:null==e?void 0:e.example}})),id:"".concat((null==e?void 0:null===(b=e.meta_info)||void 0===b?void 0:b.entity_id)||""),plugin_icon:null==e?void 0:null===(_=e.meta_info)||void 0===_?void 0:_.icon_url,desc_for_human:null==e?void 0:null===(k=e.meta_info)||void 0===k?void 0:k.description,creator:{id:"".concat((null==e?void 0:null===(A=e.meta_info)||void 0===A?void 0:null===(C=A.user_info)||void 0===C?void 0:C.user_id)||""),name:null==e?void 0:null===(D=e.meta_info)||void 0===D?void 0:null===(O=D.user_info)||void 0===O?void 0:O.name,avatar_url:null==e?void 0:null===(T=e.meta_info)||void 0===T?void 0:null===(S=T.user_info)||void 0===S?void 0:S.avatar_url},statistic_data:{bot_quote:(null==e?void 0:null===(E=e.plugin_extra)||void 0===E?void 0:E.bots_use_count)||0},tag:null==e?void 0:null===(j=e.meta_info)||void 0===j?void 0:null===(M=j.category)||void 0===M?void 0:M.id},isFromMarket:!0,belong_page:t,commercial_setting:e.commercial_setting}}function E(){return(E=(0,b._)(function*(e,t){var r,n,{nextPage:o}=t,{search:i,type:s,orderByPublic:a,botInfo:l={},isOfficial:u,pluginType:c}=e,d=yield D.yF.PublicGetProductList((0,w._)({entity_type:A._J.Plugin,category_id:void 0,sort_type:a,page_num:o,page_size:20,keyword:i,source:"recommend"===s?A.QJ.CustomizedRecommend:void 0,is_official:u,plugin_type:c},l),{paramsSerializer:e=>k().stringify(e,{filter:S})}),p=((null==d?void 0:null===(r=d.data)||void 0===r?void 0:r.products)||[]).map(e=>T(e,o)),h=p.length>0&&(null==d?void 0:null===(n=d.data)||void 0===n?void 0:n.has_more)||!1;return{list:p,total:-1,hasMore:h}})).apply(this,arguments)}function M(){return(M=(0,b._)(function*(e,t){var r,n,o,{nextPage:i}=t,{search:s,orderByFavorite:a}=e,l=yield D.yF.PublicGetUserFavoriteList({entity_type:A._J.Plugin,sort_type:a,page_num:i,page_size:20,key_wrod:s}),u=null===(r=(null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.favorite_products)||[])||void 0===r?void 0:r.map(e=>T(e.product,i,"".concat((null==e?void 0:e.created_at)||""))),c=u.length>0&&(null==l?void 0:null===(o=l.data)||void 0===o?void 0:o.has_more)||!1;return{list:u,total:-1,hasMore:c}})).apply(this,arguments)}function j(){return(j=(0,b._)(function*(e,t){var r,{nextPage:n}=t,{search:o,projectId:i,devId:s,orderBy:a}=e,l=yield D.Js.GetDevPluginList({page:n,size:u,space_id:C.rY.getState().getSpaceId(),name:o,dev_id:s,project_id:i,order_by:a}),c=null===(r=(null==l?void 0:l.plugin_list)||[])||void 0===r?void 0:r.map(e=>({pluginInfo:e,isFromMarket:!1,belong_page:n})),d=c.length>0&&n*u<Number(null==l?void 0:l.total);return{list:c,total:-1,hasMore:d}})).apply(this,arguments)}var N=(e,t)=>{var{isMine:r,isTeam:n,isFavorite:o,isProject:i}=t;if(console.log("[div] params:",e,t),r||n)return function(e,t){var{isMine:r,isTeam:n,isCreatorMine:o,isTemplate:i,nextPage:s}=t,a=[O.zV.PLUGIN,O.zV.APP,O.zV.LOCAL],{search:l,orderByPublic:c,orderBy:d}=e,p={page:s||1,size:u,name:l||void 0,self_created:!!r||!!n&&!!o||void 0,order_by:i?c:d,plugin_types:a,space_id:C.rY.getState().getSpaceId(),channel_id:1};return D.Js.GetPlaygroundPluginList(p).then(e=>{var t,r,n,o=(null===(r=e.data)||void 0===r?void 0:null===(t=r.plugin_list)||void 0===t?void 0:t.map(e=>({pluginInfo:e,isFromMarket:!1,belong_page:s})))||[],i=o.length>0&&s*u<Number(null===(n=e.data)||void 0===n?void 0:n.total);return{list:o,total:-1,hasMore:i}})}(e,t);if(o)return function(e,t){return M.apply(this,arguments)}(e,t);if(i)return function(e,t){return j.apply(this,arguments)}(e,t);return function(e,t){return E.apply(this,arguments)}(e,t)},P=e=>{var{query:t,isSearching:r,isTemplate:n,page:o}=e,{orderBy:i,orderByPublic:s,type:a,mineActive:l}=t;return r?void 0:n?"plugin-".concat(a,"-").concat(o,"-").concat(s):"plugin-".concat(a,"-").concat(o,"-").concat(i,"-").concat(l)},B=r("151064"),I=r("455069"),L=r("252237"),F=r.n(L),z=r("584466"),R=r("998262"),X=r("775699"),Z=r("44172"),W=r("44099"),V=r("298203"),H=r("707107"),U=r("388993"),q=r("214942"),Y=r("982997"),Q=r("322512"),G=r("689951"),$=r("13194"),K=r("824113"),J=r("834557"),ee=r("659596"),et=r("916672"),er=r("873183");r("298188");var en=e=>{var{avgExecTime:t,callAmount:r,successRate:n,botsUseCount:o,className:i}=e;return null},eo=e=>{var t,r,n,{isAdded:o,onApiToggle:i,pluginApi:s,marketStatus:a,showButton:l,from:u,workflowNodes:c,loading:d,marketPluginInfo:f,isLocalPlugin:m,connectors:g}=e,{name:y,desc:x,parameters:b,debug_example:w}=s,{exampleNode:_,doShowExample:k}=(0,J.p)(),[C,{setFalse:O,setTrue:D}]=(0,G.Z)(!1),[S,T]=(0,I.useState)((c||[]).length),E=u===p.WorkflowAddNode||u===p.ProjectWorkflow,M=a===(null===A.Pt||void 0===A.Pt?void 0:A.Pt.Unlisted),j=m&&(!E&&!o||E&&0===S);return(0,B.jsxs)(B.Fragment,{children:[_,(0,B.jsxs)("div",{className:Y.Z["plugin-item"],children:[(0,B.jsxs)("div",{className:Y.Z["plugin-api-main"],children:[(0,B.jsxs)(X.T,{className:Y.Z["plugin-api-name"],children:[(0,B.jsx)(X.ZT.Text,{ellipsis:{showTooltip:{opts:{content:y,style:{wordBreak:"break-word"}}}},children:y}),(null==s?void 0:null===(t=s.card_binding_info)||void 0===t?void 0:t.thumbnail)?(0,B.jsx)(K.br,{url:null==s?void 0:null===(r=s.card_binding_info)||void 0===r?void 0:r.thumbnail}):null]}),(0,B.jsxs)("div",{className:Y.Z["plugin-api-desc"],children:[(0,B.jsx)(X.ZT.Text,{style:{width:640},ellipsis:{showTooltip:{opts:{content:x,style:{wordBreak:"break-word",maxWidth:"560px"}}},rows:1},children:x}),!!(null==b?void 0:b.length)&&(0,B.jsxs)("div",{className:Y.Z["api-params"],children:[(0,B.jsx)(et.D,{items:null===(n=(0,Q.Z)(b,e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.length}))||void 0===n?void 0:n.map((e,t)=>({tagName:e.name,key:String(t)})),overflowRenderer:e=>e.length?(0,B.jsxs)(X.fS,{className:Y.Z["tag-item"],size:"small",children:["+",e.length]}):null,visibleItemRenderer:e=>(0,B.jsx)(X.fS,{className:Y.Z["tag-item"],size:"small",children:e.tagName},e.key),collapseFrom:"end",className:Y.Z["params-tags"]}),(0,B.jsx)($.C,{pluginApi:s,children:(0,B.jsx)("div",{className:Y.Z["params-desc"],children:h.o.t("parameters")})}),w?(0,B.jsx)("div",{className:Y.Z["params-desc"],style:{marginLeft:"8px"},onClick:()=>k({scene:"bot",requestParams:b,debugExample:w}),children:h.o.t("plugin_edit_tool_view_example")}):null]}),(0,B.jsx)(en,{className:Y.Z["store-plugin-tools"],callAmount:null==f?void 0:f.call_amount,avgExecTime:null==f?void 0:f.avg_exec_time,successRate:null==f?void 0:f.success_rate,botsUseCount:null==f?void 0:f.bots_use_count})]})]}),(0,B.jsx)("div",{className:Y.Z["plugin-api-method"],children:l?(0,B.jsx)(ee.gn,{trigger:!M&&j?"click":"custom",position:"bottomRight",title:h.o.t("store_service_plugin_connector_only",{connector_names:null==g?void 0:g.join("、")}),okText:h.o.t("Add_1"),cancelText:h.o.t("Cancel"),onConfirm:()=>{null==i||i().then(e=>{e&&T(e=>e+1)})},children:(0,B.jsx)("div",{children:(0,B.jsx)(X.u,{content:h.o.t("mkpl_plugin_delisted_tips"),trigger:M?"hover":"custom",children:(0,B.jsx)(X.y3,{"data-testid":"bot.ide.plugin.plugin-panel-plugin-item-btn",className:F()(Y.Z["operator-btn"],{[Y.Z.added]:!M&&o,[Y.Z.addedMouseIn]:!M&&o&&C}),onClick:()=>{if(!j)null==i||i().then(e=>{e&&T(e=>e+1)})},onMouseEnter:()=>{D()},disabled:M,loading:d&&E,onMouseLeave:()=>{O()},children:o&&!M?C?h.o.t("Remove"):h.o.t("Added"):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{children:h.o.t("Add_1")}),E&&0!==S?(0,B.jsx)("span",{className:Y.Z.workflow_count_span,children:S}):null]})})})})},"".concat(j)):null})]})]})},ei=(e,t)=>{var r,n,o,i=t.find(t=>t.name===e);return null!==(o=null==i?void 0:null===(n=i.input)||void 0===n?void 0:null===(r=n.value)||void 0===r?void 0:r.content)&&void 0!==o?o:""},es=r("947578"),ea=r("346707"),el=r("156133");var eu=((s={})[s.NoAuth=0]="NoAuth",s[s.Required=1]="Required",s[s.Configured=2]="Configured",s[s.Supported=3]="Supported",s),ec=e=>{var{onApiToggle:t}=e;return(0,B.jsx)(X.y3,{onClick:e=>{e.stopPropagation(),null==t||t()},children:h.o.t("add_resource_modal_copy_to_project")})},ed=e=>{var t,r,n,o,i,s,a,l,u,c,f,{info:m,highlightWords:g,showCreator:x=!1,showCreateTime:_=!0,showPublishTime:k=!1,showButton:C=!0,showCopyPlugin:S=!1,className:T="",pluginApiList:E,productInfo:M,showMarketLink:j,showProjectPluginLink:N,clickProjectPluginCallback:P,isFromMarket:L,onPluginApiListChange:Q,openMode:G,from:$,workflowNodes:J,openModeCallback:et,onCopyPluginCallback:ed,scrollContainerRef:ep,type:eh,activeKey:ef,agentId:em,index:eg=0,addonBefore:ev,addonAfter:ey}=e,{name:ex,plugin_apis:eb,id:ew,plugin_icon:e_,project_id:ek,desc_for_human:eC,create_time:eA=0,update_time:eO=0,statistic_data:eD,listed_at:eS,plugin_product_status:eT,plugin_type:eE,is_official:eM,version_name:ej,version_ts:eN}=m,eP=(0,U.G)(e=>e.botId),{id:eB,status:eI,auth_mode:eL}=M||{},eF=(0,I.useRef)(null),ez=(0,I.useRef)(!1),eR=(0,I.useRef)(""),[eX,eZ]=(0,I.useState)(!1),eW=(0,I.useMemo)(()=>(0,R.Z)(J||[],e=>{var t,r,n,o=null!==(n=null===(r=e.data)||void 0===r?void 0:null===(t=r.inputs)||void 0===t?void 0:t.apiParam)&&void 0!==n?n:[],i=ei("pluginID",o),s=ei("apiID",o);return"".concat(i,"_").concat(s)}),[J]),[eV]=(0,z.Z)(eF,{root:()=>null==ep?void 0:ep.current}),eH=(0,I.useMemo)(()=>!!ew&&(!!(ef===ew||(null==ef?void 0:ef.includes(ew)))||!1),[ef,ew]);(0,I.useEffect)(()=>{eH&&(0,H.Gg)(H.Kg.product_click_front,{plugin_id:m.id,product_id:"".concat(null==M?void 0:M.id),product_name:(null==m?void 0:m.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:eh||"",action:"expand_tools",c_position:eg})},[eH,null==M?void 0:M.id]),(0,I.useEffect)(()=>{if(!!L&&!ez.current)eV&&(ez.current=!0,(0,H.Gg)(H.Kg.product_show_front,{plugin_id:m.id,product_id:"".concat(null==M?void 0:M.id),product_name:(null==m?void 0:m.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:eh||"",c_position:eg}))},[eV,M,m,eh]);var eU=k?h.o.t("mkl_plugin_publish"):_?h.o.t("mkl_plugin_created"):h.o.t("mkl_plugin_updated"),eq=(k?Number(eS):_?Number(eA):Number(eO))||0;return(0,B.jsx)(X.UO.Panel,{"data-testid":"plugin-collapse-panel",className:F()(Y.Z["plugin-panel"],T),disabled:!(null==eb?void 0:eb.length),header:(0,B.jsxs)("div",{className:Y.Z["plugin-panel-header"],ref:eF,children:[(0,B.jsx)(W.vC,{size:"small",visible:null!==(f=null==M?void 0:M.is_official)&&void 0!==f&&f,children:(0,B.jsx)(X.Ee,{className:Y.Z["header-icon"],src:e_,preview:!1})}),(0,B.jsxs)("div",{className:Y.Z["header-main"],children:[(0,B.jsx)("div",{className:Y.Z["header-name"],children:(0,B.jsxs)(X.T,{spacing:8,className:"flex-1",children:[(0,B.jsx)(X.ZT.Text,{children:(0,B.jsx)(X.y$,{sourceString:ex,searchWords:g,component:"strong"})}),(0,ea.Z)(eL)||eL===eu.NoAuth?null:eL===eu.Required||eL===eu.Supported?(0,B.jsx)(ee.Vp,{color:"yellow",className:"font-medium !py-2px !px-4px !h-20px",children:h.o.t("plugin_tool_config_status_unauthorized")}):(0,B.jsx)(ee.Vp,{color:"brand",className:"font-medium !py-2px !px-4px !h-20px",children:h.o.t("plugin_tool_config_status_authorized")}),N&&P?(0,B.jsx)(Z.WXt,{className:Y.Z["market-link-icon"],onClick:e=>{e.stopPropagation(),null==P||P((0,w._)({},m))}}):null,j&&Number(eB)>0?(0,B.jsx)(Z.WXt,{className:Y.Z["market-link-icon"],onClick:e=>{e.stopPropagation(),(0,H.Gg)(H.Kg.product_click_front,{plugin_id:m.id,product_id:"".concat(null==M?void 0:M.id),product_name:(null==m?void 0:m.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:eh||"",action:"enter_detailpage",c_position:eg}),window.open("/store/plugin/".concat(eB,"?from=add_plugin_menu"))}}):null]})}),(0,B.jsxs)("div",{className:F()(Y.Z["header-desc"],"flex items-center"),children:[eE===O.zV.LOCAL?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(ee.Vp,{color:"cyan",size:"mini",children:h.o.t("local_plugin_label")}),(0,B.jsx)(X.iz,{layout:"vertical",margin:"4px",className:"h-[9px]"})]}):null,(0,B.jsx)(X.ZT.Text,{ellipsis:{showTooltip:{opts:{content:eC,style:{wordWrap:"break-word",maxWidth:"560px"}}},rows:1},children:eC})]}),(0,B.jsx)("div",{className:"my-[8px] leading-[16px]",children:(0,B.jsxs)(X.T,{spacing:4,children:[ev,(null==M?void 0:M.plugin_type)===A.zV.LocalPlugin?(0,B.jsx)(ee.Vp,{color:"cyan",prefixIcon:(0,B.jsx)(er.ztm,{className:"coz-fg-color-cyan text-[10px]"}),size:"mini",children:h.o.t("store_service_plugin")}):null,(0,B.jsx)(ee.Vp,{color:"primary",size:"mini",children:h.o.t("bot_edit_page_plugin_list_plugin_has_n_tools",{n:null==eb?void 0:eb.length})}),!!(null==eD?void 0:eD.bot_quote)&&(0,B.jsx)(ee.Vp,{color:"primary",size:"mini",children:h.o.t("bot_edit_page_plugin_list_plugin_n_bots_using",{n:(0,V.uf)(null==eD?void 0:eD.bot_quote)})}),(null==M?void 0:null===(t=M.connectors)||void 0===t?void 0:t.length)?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(X.iz,{layout:"vertical",margin:0,className:"coz-stroke-primary"}),(0,B.jsxs)("div",{className:"ml-auto coz-fg-secondary text-base flex items-center gap-6px",children:[h.o.t("store_service_plugin_connector"),(0,B.jsx)(W.Hm,{connectors:null==M?void 0:M.connectors}),(0,B.jsx)(ee.u,{content:h.o.t("store_add_connector_tootip"),theme:"dark",children:(0,B.jsx)(er.L03,{className:"coz-fg-secondary text-lg"})})]})]}):null]})}),(0,B.jsxs)("div",{className:"flex justify-between",children:[(0,B.jsxs)(X.T,{className:Y.Z["header-info"],children:[x?(0,B.jsx)("span",{className:"max-w-[260px]",children:(0,B.jsx)(K.gj,{avatar:null==M?void 0:null===(r=M.user_info)||void 0===r?void 0:r.avatar_url,username:null==M?void 0:null===(n=M.user_info)||void 0===n?void 0:n.user_name,name:null==M?void 0:null===(o=M.user_info)||void 0===o?void 0:o.name,label:{name:null==M?void 0:null===(s=M.user_info)||void 0===s?void 0:null===(i=s.user_label)||void 0===i?void 0:i.label_name,icon:null==M?void 0:null===(l=M.user_info)||void 0===l?void 0:null===(a=l.user_label)||void 0===a?void 0:a.icon_url,href:null==M?void 0:null===(c=M.user_info)||void 0===c?void 0:null===(u=c.user_label)||void 0===u?void 0:u.jump_link},nameMaxWidth:150})}):null,x?(0,B.jsx)(X.iz,{layout:"vertical"}):null,(0,B.jsxs)("div",{className:Y.Z["creator-time"],children:["".concat(eU," "),(0,V.p6)(eq,"YYYY-MM-DD HH:mm")]}),ey]}),(0,B.jsx)(en,{className:Y.Z["plugin-total"],successRate:null==M?void 0:M.success_rate,callAmount:null==M?void 0:M.call_amount,avgExecTime:null==M?void 0:M.avg_exec_time,botsUseCount:null==M?void 0:M.bots_use_count})]})]}),S?(0,B.jsx)("div",{children:(0,B.jsx)(ec,{onApiToggle:()=>{null==ed||ed({pluginID:ew,name:ex})}})}):null]}),itemKey:"".concat(ew),children:null==eb?void 0:eb.map(e=>{var t,r,n,o,i,s,a=E.some(t=>{var r,n,o,i,s,a;return t.api_id&&t.api_id===e.api_id||(null!==(o=null===(r=t.plugin_id)||void 0===r?void 0:r.toString())&&void 0!==o?o:"0")+(null!==(i=t.name)&&void 0!==i?i:"")===(null!==(s=null===(n=e.plugin_id)||void 0===n?void 0:n.toString())&&void 0!==s?s:"0")+(null!==(a=e.name)&&void 0!==a?a:"")});return(0,B.jsx)(eo,{"data-testid":"plugin-panel-item-pluginapi",isAdded:a,pluginApi:e,from:$,workflowNodes:null!==(o=eW["".concat(null==e?void 0:e.plugin_id,"_").concat(null==e?void 0:e.api_id)])&&void 0!==o?o:[],marketPluginInfo:L?null==M?void 0:null===(t=M.tools)||void 0===t?void 0:t.find(t=>t.id===e.api_id):void 0,isLocalPlugin:(null==M?void 0:M.plugin_type)===A.zV.LocalPlugin,connectors:null==M?void 0:null===(r=M.connectors)||void 0===r?void 0:r.map(e=>{var t;return null!==(t=e.name)&&void 0!==t?t:""}),marketStatus:L?eI:void 0,onApiToggle:(0,b._)(function*(){var t=!0;if((0,V.Kn)(V.Ij.PLUGIN_API_BLOCK_OPEN),a)Q(E.filter(t=>y(t)!==y(e)&&(!(null==t?void 0:t.api_id)||(null==t?void 0:t.api_id)!==(null==e?void 0:e.api_id)))),X.FN.success({content:h.o.t("bot_edit_tool_removed_toast",{api_name:e.name}),showClose:!1}),(0,H.Gg)(H.Kg.click_tool_select,{operation:"remove",bot_id:eP,operation_type:"single",tool_id:(null==e?void 0:e.api_id)||"",tool_name:(null==e?void 0:e.name)||"",product_id:"".concat(null==M?void 0:M.id),product_name:(null==m?void 0:m.name)||"",source:"add_plugin_list",from:"bot_develop"});else{var r={plugin_icon:e_,plugin_type:eE,is_official:eM,project_id:ek,version_name:ej,version_ts:eN};if(E.map(e=>{var t;return(null!==(t=e.plugin_name)&&void 0!==t?t:"")+e.name}).includes((null!==(o=e.plugin_name)&&void 0!==o?o:"")+(null!==(i=e.name)&&void 0!==i?i:"")))X.FN.error({content:h.o.t("plugin_name_conflict_error"),showClose:!1}),t=!1;else{if(L){if(e.plugin_id&&(null==e?void 0:e.api_id)&&(null==e?void 0:e.api_id)!=="0"){eZ(!0),eR.current=e.api_id;var n,o,i,s,l,u,c,f,g,x=yield D.Js.GetPlaygroundPluginList({page:1,size:1,plugin_ids:[e.plugin_id],plugin_types:[O.zV.PLUGIN,O.zV.APP,O.zV.LOCAL],space_id:q.rY.getState().getSpaceId()});eZ(!1);var b=null==x?void 0:null===(c=x.data)||void 0===c?void 0:null===(u=c.plugin_list)||void 0===u?void 0:null===(l=u[0])||void 0===l?void 0:null===(s=l.plugin_apis)||void 0===s?void 0:s.find(t=>(null==t?void 0:t.api_id)===(null==e?void 0:e.api_id));b&&Object.assign(b,(0,w._)({plugin_product_status:null==x?void 0:null===(g=x.data)||void 0===g?void 0:null===(f=g.plugin_list)||void 0===f?void 0:f[0].plugin_product_status},r)),n=b}}else n=Object.assign((0,w._)({},e),(0,w._)({plugin_product_status:eT},r));if(n){if(G===d.jG.OnlyOnceAdd||$&&[p.WorkflowAddNode,p.ProjectIde,p.ProjectWorkflow].includes($)){var _=yield null==et?void 0:et((0,w._)({},n,r));return(0,el.Z)(_)?_:t}Q([...E,n]),X.FN.success({content:h.o.t("bot_edit_tool_added_toast",{api_name:e.name}),showClose:!1})}else X.FN.error({content:(0,es.u)(h.o.t("bot_edit_tool_added_toast_error",{api_name:e.name})),showClose:!1}),t=!1}(0,H.Gg)(H.Kg.click_tool_select,{operation:"add",bot_id:eP,operation_type:"single",tool_id:(null==e?void 0:e.api_id)||"",tool_name:(null==e?void 0:e.name)||"",product_id:"".concat(null==M?void 0:M.id),product_name:(null==m?void 0:m.name)||"",source:"add_plugin_list",from:"bot_develop"})}return t}),showButton:C,loading:eX&&(null==e?void 0:e.api_id)===eR.current},(null!==(i=null===(n=e.plugin_id)||void 0===n?void 0:n.toString())&&void 0!==i?i:"")+(null!==(s=e.name)&&void 0!==s?s:""))})})}},150500:function(e,t,r){"use strict";r.d(t,{OF:function(){return g},Tn:function(){return y},To:function(){return m},ci:function(){return x}});var n,o=r(825955),i=r(808549),s=r(788637),a=r(735114),l=r(947578),u=r(297158),c=r(336205),d=r(727914),p=r(382534),h=r(39663),f=r(659596),m=e=>{var{id:t,onRevokeSuccess:r,onRevokeFinally:n}=e,{loading:i,runAsync:s}=(0,a.Z)((0,o._)(function*(){return yield p.nA.CancelUserAuth({connector_id:t})}),{manual:!0,onSuccess:()=>{null==r||r(t)},onFinally:()=>{null==n||n()}});return{revokeLoading:i,runRevoke:s}};var g=(n=(0,o._)(function*(e){var t,r,{id:n,authInfo:o,origin:s}=e,a=yield p.nA.GetConnectorAuthState({connector_id:n}),l=null!==(r=null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.state)&&void 0!==r?r:{};(0,h.HL)({navigatePath:location.pathname,type:"oauth",extra:(0,i._)({origin:s},l)},n,o)}),function(e){return n.apply(this,arguments)}),y=e=>!(0,s.Z)(e)&&!!(null==e?void 0:e.authorize_url),x=()=>{u.kg.error({message:"connection_missing_oauth_info",error:new d.sH("normal_error","Connection missing oauth information")}),f.FN.error({content:(0,l.u)(c.o.t("error"))})}},561641:function(e,t,r){"use strict";r.d(t,{EK:function(){return u},dj:function(){return d},pX:function(){return s},vh:function(){return c},zW:function(){return l},zs:function(){return a}});var n=r(808549),o=r(120454);r(336205),r(775699);var i=r(178385);r(298203),r(150500);var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return null==e||e.forEach(e=>{e.level=t,r.push(e),e.sub_nodes&&r.push(...s(e.sub_nodes,t+1))}),r},a=()=>{var e=document.body.style,t=document.getElementsByTagName("html")[0].style;e.minHeight="600px",t.minHeight="600px",e.minWidth="1680px",t.minWidth="1680px"},l="10000114",u="10000122",c=(e,t)=>(null==t?void 0:t.length)?t.map(t=>{var r,s,a,l,u,c,d,p=null!==(a=null==e?void 0:e[t.id])&&void 0!==a?a:{};return(0,o._)((0,n._)({},t),{publish_status:null!==(l=p.publish_result_status)&&void 0!==l?l:i.an.Failed,fail_text:null!==(u=p.msg)&&void 0!==u?u:"",share_link:null!==(c=null===(r=p.connector)||void 0===r?void 0:r.share_link)&&void 0!==c?c:"",bind_info:null!==(d=null===(s=p.connector)||void 0===s?void 0:s.bind_info)&&void 0!==d?d:t.bind_info})}):[],d=e=>{try{return JSON.parse(e)}catch(e){return""}}},189284:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});var n=r(455069),o=r(864114),i=r(839974),s=()=>{var e=(0,i.L)(),[,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{var e=()=>{t(Date.now())};return o.l.on("change",e),()=>{o.l.off("change",e)}},[]),[e]}},966219:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffEditor:()=>p,Editor:()=>d});var n=r("825955"),o=r("808549"),i=r("151064"),s=r("455069"),a={init(){return(0,n._)(function*(){return(yield this.config()).init()}).apply(this)},config(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n._)(function*(){var t=yield Promise.all([r.e("4783"),r.e("6961"),r.e("7079")]).then(r.bind(r,66557)),{loader:n}=yield r.e("38").then(r.bind(r,354428));return n.config((0,o._)({monaco:t},e)),n})()}},l=(0,s.lazy)((0,n._)(function*(){yield a.config();var{Editor:e}=yield r.e("3617").then(r.bind(r,257073));return{default:e}})),u=(0,s.lazy)((0,n._)(function*(){yield a.config();var{DiffEditor:e}=yield r.e("3617").then(r.bind(r,257073));return{default:e}})),c=(0,i.jsx)("div",{children:"Loading Editor..."}),d=e=>(0,i.jsx)(s.Suspense,{fallback:c,children:(0,i.jsx)(l,(0,o._)({},e))}),p=e=>(0,i.jsx)(s.Suspense,{fallback:c,children:(0,i.jsx)(u,(0,o._)({},e))})},622103:function(e,t,r){"use strict";r.d(t,{Nh:function(){return i},aZ:function(){return s}});var n,o,i=((n={})[n.Bot=0]="Bot",n[n.Project=1]="Project",n);var s=((o={})[o.Free=0]="Free",o[o.PremiumLite=10]="PremiumLite",o[o.Premium=15]="Premium",o[o.PremiumPlus=20]="PremiumPlus",o[o.V1ProInstance=100]="V1ProInstance",o[o.ProPersonal=110]="ProPersonal",o[o.Team=120]="Team",o[o.Enterprise=130]="Enterprise",o)},602876:function(e,t,r){"use strict";r.d(t,{wp:function(){return o}});var n,o=((n={})[n.Text=1]="Text",n[n.Number=2]="Number",n[n.Date=3]="Date",n[n.Float=4]="Float",n[n.Boolean=5]="Boolean",n)},672958:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var n,o=((n={})[n.AllData=0]="AllData",n[n.OnlySchema=1]="OnlySchema",n[n.OnlyPreview=2]="OnlyPreview",n)},909776:function(e,t,r){"use strict";r.d(t,{K2:function(){return c},Lk:function(){return l},ai:function(){return u},b0:function(){return d},hY:function(){return p}});var n,o,i,s,a,l=((n={})[n.Rename=1]="Rename",n[n.Copy=2]="Copy",n[n.CopyToLibrary=3]="CopyToLibrary",n[n.MoveToLibrary=4]="MoveToLibrary",n[n.Delete=5]="Delete",n[n.Enable=6]="Enable",n[n.Disable=7]="Disable",n[n.SwitchToFuncflow=8]="SwitchToFuncflow",n[n.SwitchToChatflow=9]="SwitchToChatflow",n[n.UpdateDesc=10]="UpdateDesc",n);var u=((o={})[o.Workflow=1]="Workflow",o[o.Plugin=2]="Plugin",o[o.Data=3]="Data",o);var c=((i={})[i.CopyProjectResource=1]="CopyProjectResource",i[i.CopyResourceToLibrary=2]="CopyResourceToLibrary",i[i.MoveResourceToLibrary=3]="MoveResourceToLibrary",i[i.CopyResourceFromLibrary=4]="CopyResourceFromLibrary",i[i.CopyProject=5]="CopyProject",i[i.PublishProject=6]="PublishProject",i[i.CopyProjectTemplate=7]="CopyProjectTemplate",i[i.PublishProjectTemplate=8]="PublishProjectTemplate",i[i.LaunchTemplate=9]="LaunchTemplate",i[i.ArchiveProject=10]="ArchiveProject",i[i.RollbackProject=11]="RollbackProject",i[i.CrossSpaceCopy=12]="CrossSpaceCopy",i[i.CrossSpaceCopyProject=13]="CrossSpaceCopyProject",i);var d=((s={})[s.Plugin=1]="Plugin",s[s.Workflow=2]="Workflow",s[s.Imageflow=3]="Imageflow",s[s.Knowledge=4]="Knowledge",s[s.UI=5]="UI",s[s.Prompt=6]="Prompt",s[s.Database=7]="Database",s[s.Variable=8]="Variable",s[s.Voice=9]="Voice",s);var p=((a={})[a.Successed=1]="Successed",a[a.Processing=2]="Processing",a[a.Failed=3]="Failed",a[a.Canceled=4]="Canceled",a)},458949:function(e,t,r){"use strict";r.d(t,{K9:function(){return O},Mv:function(){return D},OZ:function(){return N},Pi:function(){return B},Pt:function(){return X},Yz:function(){return P},ZZ:function(){return z},fM:function(){return A},gR:function(){return Z},ji:function(){return T},nw:function(){return M},qJ:function(){return j},qi:function(){return E},rH:function(){return I},vF:function(){return F},vw:function(){return C},wA:function(){return W},wL:function(){return L},x9:function(){return S},zV:function(){return R}});var n,o,i,s,a,l,u,c,d,p,h,f,m,g,y,x,b,w,_,k,C=((n={})[n.DebugWaiting=0]="DebugWaiting",n[n.DebugPassed=1]="DebugPassed",n);var A=((o={})[o.GET=1]="GET",o[o.POST=2]="POST",o[o.PUT=3]="PUT",o[o.DELETE=4]="DELETE",o[o.PATCH=5]="PATCH",o);var O=((i={})[i.DEFAULT=1]="DEFAULT",i[i.IMAGE=2]="IMAGE",i[i.DOC=3]="DOC",i[i.CODE=4]="CODE",i[i.PPT=5]="PPT",i[i.TXT=6]="TXT",i[i.EXCEL=7]="EXCEL",i[i.AUDIO=8]="AUDIO",i[i.ZIP=9]="ZIP",i[i.VIDEO=10]="VIDEO",i[i.VOICE=12]="VOICE",i);var D=((s={})[s.None=0]="None",s[s.Service=1]="Service",s[s.OAuth=3]="OAuth",s);var S=((a={})[a.COZE=0]="COZE",a[a.IDE=1]="IDE",a);var T=((l={})[l.Default=0]="Default",l[l.Enable=1]="Enable",l[l.Disable=2]="Disable",l);var E=((u={})[u.Input=0]="Input",u[u.Variable=1]="Variable",u);var M=((c={})[c.Unknown=0]="Unknown",c[c.NotFoundPlugin=1]="NotFoundPlugin",c[c.OfficialPlugin=2]="OfficialPlugin",c);var j=((d={})[d.TokenExchange=1]="TokenExchange",d[d.ClientCredential=2]="ClientCredential",d);var N=((p={})[p.Authorized=1]="Authorized",p[p.Unauthorized=2]="Unauthorized",p);var P=((h={})[h.OFFLINE=0]="OFFLINE",h[h.ONLINE=1]="ONLINE",h);var B=((f={})[f.Path=1]="Path",f[f.Query=2]="Query",f[f.Body=3]="Body",f[f.Header=4]="Header",f);var I=((m={})[m.String=1]="String",m[m.Integer=2]="Integer",m[m.Number=3]="Number",m[m.Object=4]="Object",m[m.Array=5]="Array",m[m.Bool=6]="Bool",m);var L=((g={})[g.OpenAPI=1]="OpenAPI",g[g.Curl=2]="Curl",g[g.Postman=3]="Postman",g[g.Swagger=4]="Swagger",g);var F=((y={})[y.Draft=0]="Draft",y[y.SUBMITTED=1]="SUBMITTED",y[y.REVIEWING=2]="REVIEWING",y[y.PREPARED=3]="PREPARED",y[y.PUBLISHED=4]="PUBLISHED",y[y.OFFLINE=5]="OFFLINE",y[y.BANNED=6]="BANNED",y);var z=((x={})[x.Required=0]="Required",x[x.Supported=1]="Supported",x[x.Disable=2]="Disable",x);var R=((b={})[b.PLUGIN=1]="PLUGIN",b[b.APP=2]="APP",b[b.FUNC=3]="FUNC",b[b.WORKFLOW=4]="WORKFLOW",b[b.IMAGEFLOW=5]="IMAGEFLOW",b[b.LOCAL=6]="LOCAL",b);var X=((w={})[w.NeverListed=0]="NeverListed",w[w.Listed=1]="Listed",w[w.Unlisted=2]="Unlisted",w[w.Banned=3]="Banned",w);var Z=((_={})[_.Curl=1]="Curl",_[_.Wget=2]="Wget",_[_.NodeJS=3]="NodeJS",_[_.Python=4]="Python",_[_.Golang=5]="Golang",_);var W=((k={})[k.Default=0]="Default",k[k.Owner=1]="Owner",k[k.Admin=2]="Admin",k[k.Member=3]="Member",k)},529223:function(e,t,r){"use strict";r.r(t),r.d(t,{ActionKey:function(){return p},CopyStatus:function(){return h},ProjectResourceActionKey:function(){return f},ProjectResourceGroupType:function(){return m},PublishStatus:function(){return g},ResType:function(){return x},ResourceCopyScene:function(){return y},SyncOperation:function(){return b},TaskStatus:function(){return w}});var n,o,i,s,a,l,u,c,d,p=((n={})[n.Copy=1]="Copy",n[n.Delete=2]="Delete",n[n.EnableSwitch=3]="EnableSwitch",n[n.Edit=4]="Edit",n[n.SwitchToFuncflow=8]="SwitchToFuncflow",n[n.SwitchToChatflow=9]="SwitchToChatflow",n[n.CrossSpaceCopy=10]="CrossSpaceCopy",n);var h=((o={})[o.Successful=1]="Successful",o[o.Processing=2]="Processing",o[o.Failed=3]="Failed",o[o.KeepOrigin=4]="KeepOrigin",o[o.Deleted=5]="Deleted",o);var f=((i={})[i.Rename=1]="Rename",i[i.Copy=2]="Copy",i[i.CopyToLibrary=3]="CopyToLibrary",i[i.MoveToLibrary=4]="MoveToLibrary",i[i.Delete=5]="Delete",i[i.Enable=6]="Enable",i[i.Disable=7]="Disable",i[i.SwitchToFuncflow=8]="SwitchToFuncflow",i[i.SwitchToChatflow=9]="SwitchToChatflow",i[i.UpdateDesc=10]="UpdateDesc",i);var m=((s={})[s.Workflow=1]="Workflow",s[s.Plugin=2]="Plugin",s[s.Data=3]="Data",s);var g=((a={})[a.UnPublished=1]="UnPublished",a[a.Published=2]="Published",a);var y=((l={})[l.CopyProjectResource=1]="CopyProjectResource",l[l.CopyResourceToLibrary=2]="CopyResourceToLibrary",l[l.MoveResourceToLibrary=3]="MoveResourceToLibrary",l[l.CopyResourceFromLibrary=4]="CopyResourceFromLibrary",l[l.CopyProject=5]="CopyProject",l[l.PublishProject=6]="PublishProject",l[l.CopyProjectTemplate=7]="CopyProjectTemplate",l[l.PublishProjectTemplate=8]="PublishProjectTemplate",l[l.LaunchTemplate=9]="LaunchTemplate",l[l.ArchiveProject=10]="ArchiveProject",l[l.RollbackProject=11]="RollbackProject",l[l.CrossSpaceCopy=12]="CrossSpaceCopy",l[l.CrossSpaceCopyProject=13]="CrossSpaceCopyProject",l);var x=((u={})[u.Plugin=1]="Plugin",u[u.Workflow=2]="Workflow",u[u.Imageflow=3]="Imageflow",u[u.Knowledge=4]="Knowledge",u[u.UI=5]="UI",u[u.Prompt=6]="Prompt",u[u.Database=7]="Database",u[u.Variable=8]="Variable",u[u.Voice=9]="Voice",u);var b=((c={})[c.Upsert=1]="Upsert",c[c.Delete=2]="Delete",c);var w=((d={})[d.Successed=1]="Successed",d[d.Processing=2]="Processing",d[d.Failed=3]="Failed",d[d.Canceled=4]="Canceled",d)},220607:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=(0,r(455069).createContext)({controller:{hideActionBar:()=>{},rePosition:()=>{}},size:"small"})},818188:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(455069),o=r(220607),i=()=>{var{size:e,controller:t}=(0,n.useContext)(o.l);return{size:e,controller:t}}},936381:function(e,t,r){"use strict";r.d(t,{ol:()=>f});var n=r("151064"),o=r("455069"),i=r("252237"),s=r.n(i),a=r("887874"),l=r("919658"),u=r("659596"),c=r("249294"),d=r("925623"),p=r("358477"),h=r("220607"),f=e=>{var{className:t,size:r="small",children:i,visible:f,onVisibleChange:m,trigger:g="selection"}=e,[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(""),[_,k]=(0,o.useState)(-1),C=(0,o.useRef)(null),A=(0,p.j)(),[O,D]=(0,o.useState)({from:0,to:0,anchor:0,head:0}),S=(0,a.jE)(),T=(0,a.G6)(),[E,M]=(0,o.useState)();return((0,o.useEffect)(()=>{M((null==O?void 0:O.head)>(null==O?void 0:O.anchor)?"bottomRight":"topLeft")},[O]),(0,o.useLayoutEffect)(()=>T.inject([(0,c.Uw)()]),[T]),(0,o.useEffect)(()=>{if(!!S)return S.$on("mousedown",e),document.addEventListener("mouseup",t),S.$on("selectionChange",r),()=>{S.$off("mousedown",e),document.removeEventListener("mouseup",t),S.$off("selectionChange",r)};function e(){null==m||m(!1),x(!1),k(-1)}function t(e){if(null===(t=C.current)||void 0===t?!void 0:!t.contains(e.target)){var t,r=S.getSelection();if(D(r),!r){null==m||m(!1),k(-1),x(!1);return}var n=r.from!==r.to;D(r),null==m||m(n),x(n),k(r.head)}}function r(){null==m||m(!1),k(-1),x(!1)}},[S]),A)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.J2,{rePosKey:b,visible:"custom"===g?f:y,trigger:"custom",position:E,autoAdjustOverflow:!0,className:"rounded",content:(0,n.jsx)(h.l.Provider,{value:{controller:{hideActionBar:()=>{null==m||m(!1),x(!1)},rePosition:e=>{w(String(Math.random())),e&&M(e)}},size:r},children:(0,n.jsx)("div",{className:s()("flex gap-1",t),ref:C,children:i})}),children:(0,n.jsx)(l.Iq,{position:_,onChange:()=>w(String(Math.random()))})}),(0,n.jsx)(d.G,{themes:[c.tk.theme({".cm-selectionBackground":{backgroundColor:"rgba(148, 152, 247, 0.44)"}})]})]})};r("818188")},99285:function(e,t,r){"use strict";r.d(t,{_i:()=>c._,aS:()=>h});var n=r("151064"),o=r("252237"),i=r.n(o),s=r("887874"),a=r("336205"),l=r("873183"),u=r("659596"),c=r("446091"),d=r("944881"),p=r("818188"),h=e=>{var t=(0,s.jE)(),{className:r}=e,{controller:o,size:h}=(0,p.Y)(),f=(0,d.tQ)(),m=(0,d.eJ)();return f||m?null:(0,n.jsx)("div",{className:i()("hover:coz-mg-secondary-hovered coz-icon-button rounded-little"),children:(0,n.jsx)(u.u,{content:a.o.t("edit_block_set_as_edit_block"),position:"bottom",children:(0,n.jsx)(u.hU,{color:"primary",icon:(0,n.jsx)(l.Ga9,{}),className:i()("!bg-transparent",r),size:h,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),null==o||o.hideActionBar(),!!t)(0,c._)(t)}})})})}},446091:function(e,t,r){"use strict";r.d(t,{_:function(){return s}});var n=r(336205),o=r(913693),i=new(r(227571)).b({mark:"InputSlot"}),s=(e,t)=>{if(!!e){var{mode:r="input",placeholder:s=n.o.t("edit_block_guidance_text_placeholder")}=null!=t?t:{},{selection:a}=e.$view.state,l=e.$view.state.selection.main,u=e.$view.state.sliceDoc(l.from,l.to),c=i.extractTemplateContent(u),{open:d,template:p,textContent:h}=i.generateTemplateJson({content:c,data:{placeholder:s,mode:r}}),f=l.from+d.length,m=f+h.length;e.$view.dispatch({changes:{from:l.from,to:l.to,insert:p}}),setTimeout(()=>{e.$view.dispatch({selection:a.replaceRange(o.jT.range(f,m))})},100)}}},944881:function(e,t,r){"use strict";r.d(t,{g7:()=>x,tQ:()=>b,eJ:()=>_,Vv:()=>g});var n=r("151064"),o=r("455069"),i=r("887874"),s=r("919658"),a=r("336205"),l=r("659596"),u=e=>{var[t,r]=(0,o.useState)(""),{direction:i,placeholder:u,value:c}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.J2,{rePosKey:t,visible:e.visible,trigger:"custom",position:i,autoAdjustOverflow:!0,content:(0,n.jsxs)("div",{className:"flex flex-col gap-2 pt-3 pb-4 px-4 w-[320px]",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:a.o.t("edit_block_guidance_text_when_empty")}),(0,n.jsx)(l.II,{value:u,placeholder:a.o.t("edit_block_guidance_text_placeholder"),onChange:t=>{var r;return null===(r=e.onPlaceholderChange)||void 0===r?void 0:r.call(e,t)},onBlur:()=>{if(!u){var t;null===(t=e.onPlaceholderChange)||void 0===t||t.call(e,a.o.t("edit_block_guidance_text_placeholder"))}}})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:a.o.t("edit_block_prefilled_text")}),(0,n.jsx)(l.II,{value:c,placeholder:a.o.t("edit_block_default_guidance_text"),onChange:t=>{var r;return null===(r=e.onValueChange)||void 0===r?void 0:r.call(e,t)}})]})]}),children:(0,n.jsx)(s.Iq,{position:e.positon,onChange:()=>r(String(Math.random()))})})})},c=e=>{var{direction:t,templateParser:r}=e,s=(0,i.jE)(),[a,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(""),[p,h]=(0,o.useState)(!1),[f,m]=(0,o.useState)(-1);return(0,o.useEffect)(()=>{if(!!s){var e=e=>{if(e.docChanged){var{state:t}=e,n=r.getCursorInMarkNodeRange(t);if(!n)return;var o=t.sliceDoc(n.open.to,n.close.from);if(o===c)return;d(o)}if(e.selectionSet){var i,{state:a}=e,u=r.getCursorInMarkNodeRange(a);if(!u){m(-1),h(!1);return}var p=r.getCursorTemplateContent(s),{placeholder:f}=null!==(i=r.getCursorTemplateData(a))&&void 0!==i?i:{};l(f),d(null!=p?p:""),m(u.open.from),h(!0)}};return s.$on("viewUpdate",e),()=>{s.$off("viewUpdate",e)}}},[s,c]),(0,n.jsx)(u,{visible:p,positon:f,direction:t,placeholder:a,value:c,onPlaceholderChange:e=>{if(!!s&&!!p)l(e),r.updateCursorTemplateData(s,{placeholder:e})},onValueChange:e=>{if(!!s&&!!p)d(e),r.updateCursorTemplateContent(s,e)}})};r("700003");var d=r("642199"),p=r("561700"),h=r("227571"),f=r("358477"),m=new h.b({mark:"InputSlot"}),g=e=>{var{mode:t,onSelectionInInputSlot:r}=e,s=(0,i.G6)(),a=(0,i.jE)(),l=(0,f.j)();return((0,o.useLayoutEffect)(()=>{var{markInfoField:e}=m;return s.inject([d.Cj.whole.of((e,t)=>{if(m.isOpenNode(e.node,t)){var r=e.node,n=m.findCloseNode(r,t);if(n){var o=t.sliceDoc(r.from,r.to),i=m.getData(o),s=r.to,a=n.from;return s===a?[{type:"replace",widget:new p.S9({className:"slot-side-left"}),atomicRange:!0,from:r.from,to:r.to},{type:"widget",widget:new p.S9({text:(null==i?void 0:i.placeholder)||"",className:"slot-placeholder"}),from:s,atomicRange:!0,side:1},{type:"replace",widget:new p.S9({className:"slot-side-right"}),atomicRange:!0,from:n.from,to:n.to}]:[{type:"replace",widget:new p.S9({className:"slot-side-left"}),atomicRange:!0,from:r.from,to:r.to},{type:"className",className:"slot-content",from:s,to:a},{type:"replace",widget:new p.S9({className:"slot-side-right"}),atomicRange:!0,from:n.from,to:n.to}]}}}),e,d.Pu.of(t=>t.field(e).contents),d._h.of(t=>t.field(e).specs),d.bi.of(t=>t.field(e).specs)])},[s]),(0,o.useEffect)(()=>{if(!!a){var e=e=>{if(!e.state.selection.main.empty){var t=m.getSelectionInMarkNodeRange(e.state.selection.main,e.state);if(t){null==r||r(t);return}null==r||r(void 0)}};return a.$on("viewUpdate",e),()=>{a.$off("viewUpdate",e)}}},[a]),"configurable"!==t||l)?null:(0,n.jsx)(c,{direction:"bottomLeft",templateParser:m})};r("446091");var y=new h.b({mark:"InputSlot"}),x=()=>{var e=(0,i.jE)(),[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!!e){var t=e=>{if(e.selectionSet){if(y.getSelectionInMarkNodeRange(e.state.selection.main,e.state)){r(!0);return}r(!1)}};return e.$on("viewUpdate",t),()=>{e.$off("viewUpdate",t)}}},[e]),t},b=()=>{var e=(0,i.jE)(),[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!!e){var t=e=>{if(!e.state.selection.main.empty){if(y.getSelectionInMarkNodeRange(e.state.selection.main,e.state)){r(!0);return}r(!1)}};return e.$on("viewUpdate",t),()=>{e.$off("viewUpdate",t)}}},[e]),t},w=r("562312"),_=()=>{var e=(0,i.jE)(),[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(!!e){var t=()=>{var t=e.getSelection();if(!t){r(!1);return}var{state:n}=e.$view,o=(0,w.qz)(n).cursor(),i=!1;do if("RawText"===o.name&&o.from<=t.from&&o.to>=t.to){i=!0;break}while(o.next());r(i)};return e.$on("viewUpdate",t),t(),()=>{e.$off("viewUpdate",t)}}},[e]),t}},539227:function(e,t,r){"use strict";r.d(t,{Fi:()=>ea,jy:()=>ee});var n,o,i,s=r("455069"),a=r("887874"),l=r("642199"),u=r("825955"),c=r("808549"),d=r("120454"),p=r("382534"),h=r("286518"),f=e=>{switch(e){case"plugin":default:return h.ye.Plugin;case"workflow":return h.ye.Workflow;case"imageflow":return h.ye.ImageFlow;case"text":case"image":case"table":return h.ye.Knowledge}},m=(e,t)=>{var{type:r}=t,n=e.find(e=>{var{type:n,items:o}=e;return n===r&&o.some(e=>g(e,t))}),o=null==n?void 0:n.items.find(e=>g(e,t));if(!!o)return(0,d._)((0,c._)({},o),{type:r})},g=(e,t)=>{var{apiId:r,id:n}=t;return r?e.api_id===r:e.id===n},y=(e,t)=>e!==t.name;var x=(n=(0,u._)(function*(e){var{id:t,type:r,apiId:n,spaceId:o,projectId:i,avatarBotId:s}=e,{data:a}=yield p.pr.GetPromptReferenceInfo({reference_id:t,reference_type:f(r),api_id:n,space_id:null!=o?o:"",project_id:i,avatar_bot_id:s},{__disableErrorToast:!0});if(!!a)return(0,d._)((0,c._)({},a),{type:r})}),function(e){return n.apply(this,arguments)}),b=e=>{var{librarys:t,libraryBlockInfo:r,content:n}=e,o="disabled";if(!r)return{libraryStatus:"disabled"};var i=m(t,r);return i?{libraryStatus:o=y(n,i)?"outdated":"existing"}:{libraryStatus:"disabled"}},w=r("473980"),_=r("871873"),k=r("86609"),C=r("182418"),A=r("724971"),O=r("184561"),D=r("94238"),S=r("698226");r("351564");var T={plugin:{icon:k.Z},workflow:{icon:C.Z},imageflow:{icon:A.Z},table:{icon:O.Z},text:{icon:D.Z},image:{icon:S.Z}},E=e=>{var{template:t,templateParser:r}=e,n=r.getData(t);if(!n)return null;var{type:o}=n,i=(0,w._)(n,["type"]);return(0,_.Z)({},T[o],(0,c._)({type:o},i))},M=(e,t)=>{if(!e||!t)return null;var r,n,o=e.find(e=>e.type===t.type);return null!==(n=null==o?void 0:null===(r=o.items)||void 0===r?void 0:r.find(e=>g(e,t)))&&void 0!==n?n:null},j=r("227571"),N=r("151064"),P=r("131325"),B=r("252237"),I=r.n(B),L=r("659596"),F=r("249294"),z=r("336205"),R=r("568251"),X=e=>{var{editorRef:t,library:r,range:n,onRename:o}=e;return(0,N.jsx)(L.zx,{onClick:()=>{var e;if(!!t.current)null===(e=t.current)||void 0===e||e.$view.dispatch({changes:{from:n.left,to:n.right,insert:r.name}}),null==o||o({from:n.left,to:n.right})},color:"primary",size:"small",children:z.o.t("edit_block_api_rename")})},Z=r("603141");var W=(o=(0,u._)(function*(e){var{editorRef:t,libraryStatus:r,libraryItem:n,blockDataInfo:o,onAddLibrary:i,readonly:s,spaceId:a,range:l,projectId:u,avatarBotId:c,onRename:d,disabled:p}=e;try{if(p)return U();if(s)return H();var{type:h,id:f}=null!=o?o:{};if(!o||!h||!f)return H();if("disabled"===r||!n)return yield Y({blockDataInfo:o,spaceId:a,onAddLibrary:i,projectId:u,avatarBotId:c});if("outdated"===r)return q({editorRef:t,item:n,range:l,onRename:d});if("existing"===r)return V(n);return H()}catch(e){var m=e.msg;if(m)return{tooltipConfig:{content:m}};return H()}}),function(e){return o.apply(this,arguments)}),V=e=>{var t,r,n;return{tooltipConfig:{content:(0,N.jsx)(R.J,{title:null!==(t=e.name)&&void 0!==t?t:"",description:null!==(r=e.desc)&&void 0!==r?r:"",avatar:null!==(n=e.icon_url)&&void 0!==n?n:"",className:"!p-0"}),className:"library-block-tooltip !w-[310px] !p-2"}}},H=e=>({tooltipConfig:{content:null!=e?e:z.o.t("edit_block_api_disable_tooltips")}}),U=()=>({tooltipConfig:{visible:!1,trigger:"custom"}}),q=e=>{var t,r,n,{item:o,range:i,onRename:s,editorRef:a}=e;return{tooltipConfig:{content:(0,N.jsx)(R.J,{title:null!==(t=o.name)&&void 0!==t?t:"",description:null!==(r=o.desc)&&void 0!==r?r:"",avatar:null!==(n=o.icon_url)&&void 0!==n?n:"",className:"!p-0",actions:(0,N.jsx)(X,{library:o,range:i,editorRef:a,onRename:s})}),className:"library-block-tooltip !w-[310px] !p-2"}}};var Y=(i=(0,u._)(function*(e){var{blockDataInfo:t,spaceId:r,onAddLibrary:n,projectId:o,avatarBotId:i}=e,{id:s,type:a}=null!=t?t:{};if(!s||!a)return H();try{var l,u,p,h=yield x((0,d._)((0,c._)({id:s,type:a},"plugin"===a&&{apiId:null==t?void 0:t.apiId}),{spaceId:r,projectId:o,avatarBotId:i}));if(!h)return H();return{tooltipConfig:{content:(0,N.jsx)(R.J,{title:null!==(l=h.name)&&void 0!==l?l:"",description:null!==(u=h.desc)&&void 0!==u?u:"",avatar:null!==(p=h.icon_url)&&void 0!==p?p:"",className:"!p-0",actions:n?(0,N.jsx)(Z.H,{library:h,onClick:n}):void 0}),className:"library-block-tooltip !w-[310px] !p-2",showArrow:!1}}}catch(e){return H(e.msg)}}),function(e){return i.apply(this,arguments)});function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=document.createElement(e);for(var[o,i]of Object.entries(t))n.setAttribute(o,i);for(var s of r)if("string"==typeof s){var a=document.createTextNode(s);n.appendChild(a)}else n.appendChild(s);return n}class G extends F.l9{toDOM(){return this.options?(this.root&&this.destroy(),!this.mounted&&(this.renderLibraryBlock(this.options),this.renderTooltip(this.options),this.mounted=!0),this.container):this.container}renderLibraryBlock(e){var t,r=Q("span",{class:I()("library-block-container leading-5",e.className,{"!coz-mg-hglt !text-[#9498F7] !text-opacity-70":!e.hightlight})},[Q("img",{src:(null===(t=e.blockDataInfo)||void 0===t?void 0:t.icon)||"",class:I()("library-block-icon",{"!opacity-70":!e.hightlight})}),Q("span",{class:"library-block-content"},[e.content])]);this.dom=r,this.container.appendChild(r)}renderTooltip(e){var t,r=document.createElement("span");this.root=(0,P.createRoot)(r),this.container.appendChild(r),this.root.render((0,N.jsx)($,{editorRef:e.editorRef,blockDataInfo:null==e?void 0:e.blockDataInfo,libraryItem:e.libraryItem,content:e.content,hightlight:e.hightlight,readonly:e.readonly,libraryStatus:e.libraryStatus,onAddLibrary:e.onAddLibrary,onRename:e.onRename,spaceId:null!==(t=e.spaceId)&&void 0!==t?t:"",range:e.range,beforeMount:()=>{var e=this.dom;(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)},projectId:e.projectId,avatarBotId:e.avatarBotId,disabledTooltips:e.disabledTooltips}))}destroy(){this.mounted=!1,this.root&&(setTimeout(()=>{var e;null===(e=this.root)||void 0===e||e.unmount()},0),this.root=null),this.dom&&(this.dom.remove(),this.dom=void 0),this.options=null}constructor(e){super(),this.options=e,this.container=document.createElement("span"),this.root=null,this.mounted=!1}}var $=e=>{var t,{blockDataInfo:r,libraryItem:n,content:o,hightlight:i=!0,libraryStatus:a,onAddLibrary:l,readonly:p,spaceId:h,range:f,editorRef:m,beforeMount:g,className:y,projectId:x,avatarBotId:b,onRename:w,disabledTooltips:_}=e,[k,C]=(0,s.useState)(void 0);var A=(t=(0,u._)(function*(){if(!!m.current)C((yield W({editorRef:m,libraryStatus:a,readonly:p,libraryItem:n,blockDataInfo:r,onAddLibrary:l,spaceId:h,range:f,projectId:x,avatarBotId:b,onRename:w,disabled:_})).tooltipConfig)}),function(){return t.apply(this,arguments)});(0,s.useLayoutEffect)(()=>{g()},[]);var O=(0,N.jsxs)("span",{className:I()("library-block-container leading-5",y,{"!coz-mg-hglt !text-[#9498F7] !text-opacity-70":!i}),onMouseEnter:A,children:[(0,N.jsx)("img",{src:(null==r?void 0:r.icon)||"",className:I()("library-block-icon",{"!opacity-70":!i})}),(0,N.jsx)("span",{className:"library-block-content",children:o})]});return k?(0,N.jsx)(L.u,(0,d._)((0,c._)({position:"bottomLeft",spacing:{y:4,x:0},showArrow:!1},k),{children:O})):O};r("747555");var K=new j.b({mark:"LibraryBlock"});function J(e){var t=(0,s.useRef)(e);return t.current=e,t}var ee=e=>{var t=J(e),r=(0,a.jE)(),n=J(r),o=(0,a.G6)();return(0,s.useLayoutEffect)(()=>o.inject([l.Cj.whole.of((e,r)=>{var{librarys:o,readonly:i=!1,spaceId:s,className:a,projectId:l,avatarBotId:u,onRename:c,disabledTooltips:d}=t.current;if(K.isOpenNode(e.node,r)){var p=e.node,h=K.findCloseNode(p,r);if(h){var f=r.sliceDoc(p.from,p.to),m=p.to,g=h.from,y=r.sliceDoc(m,g),x=E({template:f,templateParser:K}),{libraryStatus:w}=b({librarys:o,libraryBlockInfo:x,content:y}),_=x?M(o,x):null;return[{type:"replace",widget:new G({editorRef:n,blockDataInfo:x,libraryItem:_,readonly:i,content:y,spaceId:s,className:a,hightlight:"existing"===w,libraryStatus:w,onAddLibrary(e){"function"==typeof t.current.onAddLibrary&&t.current.onAddLibrary(e,{from:p.from,to:h.to})},range:{left:p.to,right:h.from},projectId:l,avatarBotId:u,onRename:c,disabledTooltips:d}),atomicRange:!0,from:p.from,to:h.to}]}}}),K.markInfoField]),[o]),(0,s.useEffect)(()=>{if(!!r)null==r||r.updateWholeDecorations()},[r,e.librarys]),null},et=r("801815"),er=r("206644"),en=r("919658"),eo=r("562312"),ei=r("584673"),es=new j.b({mark:"LibraryBlock"}),ea=e=>{var{librarys:t,direction:r="bottomLeft"}=e,[n,o]=(0,s.useState)(""),[i,l]=(0,s.useState)(!1),[u,d]=(0,s.useState)(-1),[p,h]=(0,s.useState)(-1),f=0===t.map(e=>e.items).flat().length,m=(0,a.jE)();return(0,er.n3)(e=>{var[t,r,n,o,i]=e.change;["{}","{"].includes(i.toString())&&"JinjaText"===(0,eo.qz)(e.view.state).resolve("{}"===i.toString()?o-1:o).name?(d(n),h(o),l(!0)):l(!1)}),(0,s.useEffect)(()=>{if(!!m)return m.$on("viewUpdate",e),()=>{m.$off("viewUpdate",e)};function e(e){e.transactions.some(e=>e.isUserEvent("select"))&&l(!1)}},[m]),(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(L.J2,{rePosKey:n,visible:i,trigger:"custom",position:f?"bottomLeft":r,onClickOutSide:()=>l(!1),autoAdjustOverflow:!0,content:f?(0,N.jsx)("div",{className:"coz-fg-primary text-sm font-medium px-3 py-2",children:z.o.t("edit_block_api_empty")}):(0,N.jsx)("div",{className:"flex flex-col p-1 w-[352px] max-h-[330px] overflow-y-auto",children:(0,N.jsx)(ei.X,{librarys:t,onInsert:e=>{var{name:t="",id:r="",type:n}=e,o=(0,et.x0)(),i=es.generateTemplate({content:t,data:(0,c._)({id:r,uuid:o,type:n},"plugin"===n&&{apiId:e.api_id})});es.insertTemplateByRange(m,i,{from:u,to:p}),l(!1)}})}),children:(0,N.jsx)(en.Iq,{position:u,onChange:()=>o(String(Math.random()))})})})}},603141:function(e,t,r){"use strict";r.d(t,{H:function(){return s}});var n=r(151064),o=r(336205),i=r(659596),s=e=>{var{library:t,onClick:r}=e;return(0,n.jsx)(i.zx,{onClick:()=>r(t),color:"primary",size:"small",children:o.o.t("add")})}},568251:function(e,t,r){"use strict";r.d(t,{J:function(){return a}});var n=r(151064),o=r(252237),i=r.n(o),s=r(659596),a=e=>{var{title:t,description:r,avatar:o,icons:a,actions:l,className:u,searchWords:c}=e;return(0,n.jsxs)("div",{className:i()("w-full flex flex-row items-center coz-bg-max rounded-[8px]"," gap-3",u),children:[(0,n.jsxs)("div",{className:i()("flex flex-row flex-1 min-w-[0px] justify-center items-center "),children:[o?(0,n.jsx)("img",{src:o,className:i()("w-[24px] h-[24px] rounded-[5px]","overflow-hidden")}):null,(0,n.jsx)("div",{className:i()("ml-[8px]","flex flex-col flex-1 min-w-[0px] w-0"),children:(0,n.jsxs)("div",{className:"flex flex-row items-center overflow-hidden",children:[(0,n.jsx)(s.ZT.Paragraph,{ellipsis:{showTooltip:!0},className:i()("text-[14px] leading-[20px]","coz-fg-primary truncate flex-1 font-medium"),children:(0,n.jsx)(s.y$,{sourceString:t,searchWords:c,highlightStyle:{color:"var(--coz-fg-hglt-yellow, #FF7300)",backgroundColor:"transparent"}})}),(0,n.jsx)("div",{className:"justify-self-end grid grid-flow-col gap-x-[2px]",children:a})]})})]}),(0,n.jsx)("div",{className:i()("grid grid-flow-col gap-x-[2px]"),children:l})]})}},584673:function(e,t,r){"use strict";r.d(t,{X:function(){return h}});var n=r(808549),o=r(120454),i=r(151064),s=r(252237),a=r.n(s),l=r(336205),u=r(659596),c=r(568251),d=r(603141),p={plugin:l.o.t("edit_block_api_plugin"),workflow:l.o.t("edit_block_api_workflow"),imageflow:l.o.t("edit_block_api_imageflow"),text:l.o.t("edit_block_api_knowledge_text"),image:l.o.t("edit_block_api_knowledge_image"),table:l.o.t("edit_block_api_knowledge_table")},h=e=>{var{librarys:t,onInsert:r,libraryItemClassName:s,searchWords:l}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-2",children:Object.values(t).map(e=>{var{items:t,type:h}=e;return 0===t.length?null:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(u.ZT.Text,{className:"coz-fg-tertiary text-xs mb-1 px-2 pt-2 pb-1",children:p[h]}),t.map(e=>{var{name:t,desc:u,icon_url:p}=e;return(0,i.jsx)(c.J,{searchWords:l,title:t||"",description:u||"",avatar:p||"",className:a()("p-[8px]",s),actions:(0,i.jsx)(d.H,{library:(0,o._)((0,n._)({},e),{type:h}),onClick:e=>{null==r||r(e)}})},t)})]},h)})})}},358477:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(455069),o=r(887874),i=()=>{var e=(0,o.jE)(),[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!!e){r(e.$view.state.readOnly);var t=e=>{e.startState.readOnly!==e.state.readOnly&&r(e.state.readOnly)};return e.$on("viewUpdate",t),()=>{e.$off("viewUpdate",t)}}},[e]),t}},227571:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});var n=r(808549),o=r(913693),i=r(562312);class s{getMarkInfoField(){return o.QQ.define({create:e=>this.getMarkSpecs(e),update:(e,t)=>t.docChanged?this.getMarkSpecs(t.state):e})}isOpenNode(e,t){if(!e||"JinjaComment"!==e.name)return!1;var r=t.sliceDoc(e.from,e.to);return this.openReg.test(r)}isCloseNode(e,t){if(!e||"JinjaComment"!==e.name)return!1;var r=t.sliceDoc(e.from,e.to);return this.closeReg.test(r)}getCursorInMarkNodeRange(e){var t=e.selection.main.head;return this.getPostionInMarkNodeRange(t,e)}getSelectionInMarkNodeRange(e,t){return this.getPostionInMarkNodeRange(e.from,t)&&this.getPostionInMarkNodeRange(e.to,t)}getPostionInMarkNodeRange(e,t){var r=t.field(this.markInfoField).marks.find(t=>t.from<e&&e<t.to);return r?r:null}findCloseNode(e,t){for(var r=e.nextSibling,n=null;r;){if(this.isCloseNode(r,t)){n=r;break}r=r.nextSibling}return n}getData(e){var t=RegExp("\\{#".concat(this.mark,"\\s+([^#]+)#\\}"),"g").exec(e);if(null!==t){for(var r,n=t[1].trim(),o=/(\w+)\s*=\s*"([^"]*)"/g,i={};null!==(r=o.exec(n));){;i[r[1]]=r[2]}return i}return null}getCursorTemplateData(e){var t=this.getCursorInMarkNodeRange(e);if(!!t){var{from:r,to:n}=t.open,o=e.sliceDoc(r,n);return this.getData(o)}}getAllMarksByState(e){var t=[],r=(0,i.qz)(e).cursor();do if(this.isOpenNode(r.node,e)){var n=r.node,o=this.findCloseNode(r.node,e);o&&t.push({from:n.from,to:o.to,open:{from:n.from,to:n.to},close:{from:o.from,to:o.to}})}while(r.next());return t}getMarkSpecs(e){var t=this.getAllMarksByState(e),r=[],n=[];return t.forEach(e=>{r.push({source:{from:e.open.from,to:e.open.to},target:{from:e.from,to:e.to}}),r.push({source:{from:e.close.from,to:e.close.to},target:{from:e.from,to:e.to}}),n.push({from:e.open.to,to:e.close.from})}),{specs:r,contents:n,marks:t}}updateCursorTemplateData(e,t){var{state:r}=e.$view,o=this.getCursorInMarkNodeRange(r);if(!!o){var{from:i,to:s}=o.open,a=r.sliceDoc(i,s),l=this.getData(a),u=(0,n._)({},l,t);if(!l){this.addCursorTemplateData(e,u);return}var c=this.generateOpenTemplateByData(u);e.$view.dispatch({changes:{from:i,to:s,insert:c}})}}addCursorTemplateData(e,t){var{state:r}=e.$view,o=this.getCursorInMarkNodeRange(r);if(!!o){var{from:i,to:s}=o.open,a=r.sliceDoc(i,s),l=this.getData(a),u=(0,n._)({},l,t),c=this.generateOpenTemplateByData(u);e.replaceTextByRange({from:i,to:s,text:c})}}generateOpenTemplateByData(e){var t=Object.keys(e),r=Object.values(e),n=t.map((e,t)=>"".concat(e,'="').concat(r[t],'"')).join(" ");return"{#".concat(this.mark," ").concat(n,"#}")}generateTemplate(e){var{content:t,data:r}=e,n=this.generateOpenTemplateByData(r),o="{#/".concat(this.mark,"#}");return"".concat(n).concat(t).concat(o)}generateTemplateJson(e){var{content:t,data:r}=e,n=this.generateOpenTemplateByData(r),o="{#/".concat(this.mark,"#}");return{open:n,close:o,textContent:this.extractTemplateContent(t),template:"".concat(n).concat(t).concat(o)}}updateCursorTemplateContent(e,t){var{state:r}=e.$view,n=this.getCursorInMarkNodeRange(r);if(!!n)e.replaceTextByRange({from:n.open.to,to:n.close.from,text:t})}getCursorTemplateContent(e){var{state:t}=e.$view,r=this.getCursorInMarkNodeRange(t);if(!!r)return t.sliceDoc(r.open.to,r.close.from)}insertTemplateByCursor(e,t){var{state:r}=e.$view,n=r.selection.main.head;if(!!n)e.$view.dispatch({changes:{from:n,to:n,insert:t}})}insertTemplateByRange(e,t,r){var{from:n,to:o}=r;e.$view.dispatch({changes:{from:n,to:o,insert:t}})}extractTemplateContent(e){var t=RegExp("\\{#".concat(this.mark,"\\s+[^#]+#\\}|\\{#\\/").concat(this.mark,"#\\}"),"g"),r=e.replace(t,"");return console.log("extractTemplateContent",r),r}constructor(e){if(s.instances.has(e.mark))return s.instances.get(e.mark);var{mark:t}=e;this.mark=t,this.openReg=new RegExp("^\\{#\\s*".concat(t)),this.closeReg=new RegExp("^\\{#\\s*/".concat(t)),this.markInfoField=this.getMarkInfoField(),s.instances.set(t,this)}}s.instances=new Map},925623:function(e,t,r){"use strict";r.d(t,{G:()=>i});var n=r("455069"),o=r("887874"),i=e=>{var{themes:t}=e,r=(0,o.G6)();return(0,n.useLayoutEffect)(()=>r.inject(t),[r,t]),null}},753015:function(e,t,r){"use strict";r.d(t,{c:()=>q});var n=r("808549"),o=r("120454"),i=r("151064"),s=r("455069"),a=r("227048"),l=r("825955"),u=r("252237"),c=r.n(u),d=r("887874"),p=r("919658"),h=r("659596"),f=r("707107"),m=r("382534"),g=r("539227"),y=r("944881"),x=r("936381"),b=r("336205"),w=(0,s.createContext)(null),_=w.Provider,k=()=>(0,s.useContext)(w),C=e=>{var{initCount:t,disabled:r,rows:a}=e,[l,u]=(0,s.useState)(t||0),c=e=>{u(e.length)};(0,s.useEffect)(()=>{u(t||0)},[t]);var d=(0,i.jsx)("div",{className:"overflow-hidden coz-fg-secondary text-sm pr-[9px]",children:"".concat(l,"/").concat(e.maxCount)});return r?(0,i.jsx)(A,(0,n._)({},e)):a&&a>1?(0,i.jsx)(h.ld,(0,o._)((0,n._)({},e),{autosize:!0,autoComplete:"off",onChange:e=>c(e)})):(0,i.jsx)(h.yt,(0,o._)((0,n._)({},e),{autoComplete:"off",suffix:d,onChange:e=>c(e)}))},A=(0,h.Q2)(e=>{var{value:t}=e;return(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)("div",{className:"coz-fg-secondary text-base break-all whitespace-pre-line",children:t})})},{valueKey:"value",onKeyChangeFnName:"onChange"}),O=r("873183"),D=e=>{var{canEdit:t,onEditIconClick:r,mode:n}=e;return"info"===n&&t?(0,i.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,i.jsx)("span",{children:b.o.t("prompt_detail_prompt_detail")}),(0,i.jsxs)("div",{className:"flex items-center ",children:[(0,i.jsx)(h.u,{content:b.o.t("prompt_library_edit"),children:(0,i.jsx)(h.hU,{color:"secondary",icon:(0,i.jsx)(O.JAz,{className:"semi-icon-default"}),onClick:r,size:"small"})}),(0,i.jsx)(h.iz,{layout:"vertical",className:"mx-[10px] coz-stroke-primary"})]})]}):"create"===n?(0,i.jsx)(i.Fragment,{children:b.o.t("creat_new_prompt")}):"edit"===n?(0,i.jsx)(i.Fragment,{children:b.o.t("edit_prompt")}):(0,i.jsx)(i.Fragment,{children:b.o.t("prompt_detail_prompt_detail")})},S=e=>{var{onCancel:t}=e;return(0,i.jsx)(h.zx,{color:"primary",onClick:t,children:b.o.t("Cancel")})},T=e=>{var{mode:t,isSubmitting:r,onSubmit:n}=e;return(0,i.jsx)(h.zx,{loading:r,onClick:n,children:"info"===t?b.o.t("prompt_detail_copy_prompt"):b.o.t("Confirm")})},E=e=>{var t,{mode:r,editor:n,spaceId:o,botId:s,projectId:a,workflowId:u,source:c,submitFun:d,editId:p,onDiff:m,onCancel:g}=e;if("info"===r)return(0,i.jsx)(h.zx,{color:"primary",onClick:e=>{var t;if(!!p)null==m||m({prompt:null!==(t=null==n?void 0:n.getValue())&&void 0!==t?t:"",libraryId:p}),(0,f.Gg)(f.Kg.compare_mode_front,{source:c,space_id:o,action:"start",compare_type:"prompts",bot_id:s,from:"prompt_resource",project_id:a,workflow_id:u}),null==g||g(e)},children:b.o.t("compare_prompt_compare_debug")});return(0,i.jsx)(h.zx,{color:"primary",onClick:(t=(0,l._)(function*(e){var t,r=yield null==d?void 0:d(e);(null==r?void 0:r.id)&&(null==m||m({prompt:null!==(t=null==n?void 0:n.getValue())&&void 0!==t?t:"",libraryId:r.id}),(0,f.Gg)(f.Kg.compare_mode_front,{source:c,space_id:o,action:"start",compare_type:"prompts",bot_id:s,from:"prompt_resource",project_id:a,workflow_id:u})),null==g||g(e)}),function(e){return t.apply(this,arguments)}),children:b.o.t("creat_prompt_button_comfirm_and_compare")})},M=r("625218"),j=[],N=(0,s.lazy)(()=>r.e("3785").then(r.bind(r,20311))),P=e=>{var t,r,{mode:u,editId:w,spaceId:k,botId:A,projectId:O,workflowId:P,canEdit:B,onUpdateSuccess:I,promptSectionConfig:L,enableDiff:F,onDiff:z,defaultPrompt:R,source:X,containerAppendSlot:Z}=e,W=(0,s.useRef)(null),V=(0,d.jE)(),[H,U]=(0,s.useState)(u),[q,Y]=(0,s.useState)(""),Q=(0,s.useRef)(!1),[G,$]=(0,s.useState)(!1),K=(0,s.useRef)(!1),J="info"===H,{editorPlaceholder:ee,editorActions:et,headerActions:er,editorActiveLinePlaceholder:en,editorExtensions:eo}=null!=L?L:{},[ei,es]=(0,s.useState)({name:"",description:"",prompt_text:""});var ea=(t=(0,l._)(function*(e){if(!Q.current&&!!(yield null===(t=W.current)||void 0===t?void 0:t.validate())){if(Q.current=!0,"info"===H){el();return}if("create"===H||"edit"===H){var t,r,n=yield eu(e);return Q.current=!1,(0,f.Gg)(f.Kg.prompt_library_front,{bot_id:A,project_id:O,workflow_id:P,space_id:k,prompt_id:null!==(r=null==n?void 0:n.id)&&void 0!==r?r:"",prompt_type:"workspace",action:u,source:X}),n}Q.current=!1}}),function(e){return t.apply(this,arguments)}),el=()=>{var e=null==V?void 0:V.getValue();navigator.clipboard.writeText(null!=e?e:""),h.FN.success(b.o.t("prompt_library_prompt_copied_successfully"))};var eu=(r=(0,l._)(function*(t){try{var r,i,s,a=yield null===(r=W.current)||void 0===r?void 0:r.validate();if(!a)return;var l=yield m.pr.UpsertPromptResource({prompt:(0,n._)((0,o._)((0,n._)({},a),{space_id:k}),"edit"===H&&{id:w})},{__disableErrorToast:!0});null===(i=e.onCancel)||void 0===i||i.call(e,t);var c="edit"===H?w:null==l?void 0:null===(s=l.data)||void 0===s?void 0:s.id;if("create"===u&&h.FN.success(b.o.t("prompt_library_prompt_creat_successfully")),null==I||I(u,c),!c)return;return{mode:u,id:c}}catch(e){Y(e.message)}}),function(e){return r.apply(this,arguments)});return(0,s.useEffect)(()=>{if(!!R&&!!V)null==V||V.$view.dispatch({changes:{from:0,to:V.$view.state.doc.length,insert:R}})},[R,V]),(0,s.useEffect)(()=>{if(!!w&&!!V)m.pr.GetPromptResourceInfo({prompt_resource_id:w}).then(e=>{var t,{data:{name:r="",description:n="",prompt_text:o=""}={}}=e;null===(t=W.current)||void 0===t||t.setValues({prompt_text:o,name:r,description:n}),null==V||V.$view.dispatch({changes:{from:0,to:V.$view.state.doc.length,insert:o}}),es({name:r,description:n,prompt_text:o})})},[w,H,V]),(0,i.jsxs)(_,{value:{props:e,formApiRef:W,isReadOnly:J},children:[(0,i.jsx)(h.u_,{title:(0,i.jsx)(D,{canEdit:!!B,mode:H,onEditIconClick:()=>{U("edit")}}),closeOnEsc:!1,maskClosable:!1,visible:!0,width:"640px",footer:(0,i.jsxs)("div",{className:"flex items-center justify-end",children:[F?(0,i.jsx)(E,{spaceId:k,botId:A,projectId:O,workflowId:P,source:X,mode:H,editor:V,submitFun:ea,editId:w,onDiff:e=>{var{prompt:t,libraryId:r}=e;null==z||z({prompt:t,libraryId:r})},onCancel:t=>{var r;null===(r=e.onCancel)||void 0===r||r.call(e,t)}}):(0,i.jsx)(S,{onCancel:e.onCancel}),(0,i.jsx)(T,{mode:H,isSubmitting:Q.current,onSubmit:ea})]}),onCancel:e.onCancel,className:M.Z["prompt-configurator-modal"],children:(0,i.jsx)("div",{className:"flex flex-col gap-4",children:(0,i.jsxs)("div",{children:[(0,i.jsxs)(h.l0,{getFormApi:e=>{W.current=e},children:[(0,i.jsx)(C,{disabled:"info"===H,label:b.o.t("creat_new_prompt_prompt_name"),placeholder:b.o.t("creat_new_prompt_name_placeholder"),maxLength:20,maxCount:20,initCount:ei.name.length,rows:1,rules:[{required:!J,message:b.o.t("creat_new_prompt_name_placeholder")}],field:"name"}),(0,i.jsx)(C,{disabled:"info"===H,label:b.o.t("creat_new_prompt_prompt_description"),placeholder:b.o.t("creat_new_prompt_des_placeholder"),maxLength:50,maxCount:50,initCount:ei.description.length,rows:1,field:"description"}),(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsx)(h.l0.Label,{text:b.o.t("creat_new_prompt_prompt"),className:"mb-0"}),er]}),(0,i.jsxs)("div",{className:c()("rounded-lg border border-solid coz-stroke-plus h-[400px] overflow-y-auto styled-scrollbar hover-show-scrollbar"),children:[(0,i.jsx)(a.gv,{readonly:"info"===H,options:{minHeight:300},onChange:e=>{var t;null===(t=W.current)||void 0===t||t.setValue("prompt_text",e)}}),(0,i.jsx)(y.Vv,{mode:"configurable",onSelectionInInputSlot:e=>{K.current=!!e}}),(0,i.jsx)(g.jy,{librarys:j,readonly:!0,spaceId:k}),(0,i.jsx)(x.ol,{trigger:"custom",visible:G,onVisibleChange:e=>{if(!K.current)$(e)},children:et}),(0,i.jsx)(p.Vm,{children:ee}),(0,i.jsx)(p.GH,{children:en}),eo]})]})]}),q?(0,i.jsx)("div",{className:"text-red",children:(0,i.jsx)(s.Suspense,{fallback:null,children:(0,i.jsx)(N,{skipHtml:!0,linkTarget:"_blank",children:q})})}):null]})})}),Z]})},B=e=>{var{CustomPromptConfiguratorModal:t=P}=e,[r,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)({mode:"create",editId:"",canEdit:!0,defaultPrompt:""}),d=()=>{l(!1)};return{node:r?(0,i.jsx)(a.hT,{children:(0,i.jsx)(t,(0,o._)((0,n._)({},e,u),{onCancel:d}))}):null,close:d,open:e=>{l(!0),c(e)}}},I=()=>{var e=(0,d.jE)(),{props:t,formApiRef:r}=k()||{},{importPromptWhenEmpty:n}=t||{};return n?(0,i.jsx)("div",{className:"coz-fg-hglt text-sm cursor-pointer mt-1",onClick:()=>{var t;null==e||e.$view.dispatch({changes:{from:0,to:e.$view.state.doc.length,insert:n}}),null==r||null===(t=r.current)||void 0===t||t.setValue("prompt_text",n)},children:b.o.t("creat_new_prompt_import_link")}):null},L=r("749518"),F=r("99285"),z=r("249294"),R=r("411534"),X=r("384313");r("497013");var Z=r("249869"),W=e=>{var{className:t,disabled:r}=e,n=(0,d.jE)(),o=(0,R.j)(),a=(0,d.G6)(),[l,u]=(0,L.Z)(V,{defaultValue:!0});return(0,s.useLayoutEffect)(()=>a.inject([z.$f.of([{key:"Cmd-k",run:()=>!!n&&!o&&!r&&((0,F._i)(n),!1)}])]),[a,n,o,r]),(0,i.jsx)("div",{className:"hover:coz-mg-secondary-hovered coz-icon-button coz-icon-button-default rounded-little",children:(0,i.jsx)(H,{showActionGuide:!!l,children:(0,i.jsx)(h.zx,{color:"primary",size:"small",disabled:o||r,icon:(0,i.jsx)(O.Ga9,{}),className:t,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),!!n&&!o)u(!1),(0,F._i)(n)},children:b.o.t("creat_new_prompt_edit_block")})})})},V="insert_input_slot_tooltip_guide",H=e=>{var{showActionGuide:t,children:r}=e;return t?(0,i.jsx)(h.u,{content:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("img",{className:"w-full h-auto",src:X}),(0,i.jsxs)("div",{className:"flex flex-col mt-2 p-2 gap-1",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between ",children:[(0,i.jsx)("span",{className:"text-xxl font-medium",children:b.o.t("edit_block_guild_title")}),(0,i.jsx)("img",{src:Z,className:"w-[33px] h-5"})]}),(0,i.jsx)("div",{className:"text-sm coz-fg-primary",children:b.o.t("edit_block_guild_describe")})]})]}),className:"!w-[301px] !max-w-[301px]",children:r}):(0,i.jsx)(h.u,{content:(0,i.jsx)("div",{className:"coz-fg-primary text-sm",style:{fontFamily:"-apple-system, SF Pro"},children:"⌘ K"}),className:"coz-fg-primary text-sm",children:r})},U=e=>{var{isReadOnly:t}=k()||{},r=(0,y.g7)();return(0,i.jsx)(P,(0,o._)((0,n._)({},e),{promptSectionConfig:{editorPlaceholder:(0,i.jsx)(I,{}),editorActions:(0,i.jsx)(W,{disabled:r}),headerActions:t?null:(0,i.jsx)("div",{className:"flex gap-2",children:(0,i.jsx)("div",{children:(0,i.jsx)(W,{disabled:r})})})}}))},q=e=>B((0,o._)((0,n._)({},e),{CustomPromptConfiguratorModal:U}))},227048:function(e,t,r){"use strict";r.d(t,{hT:()=>b,jE:()=>s.jE,GH:()=>a.GH,gv:()=>x});var n=r("151064"),o=r("455069"),i=r("871873"),s=r("887874"),a=r("919658"),l=r("665917"),u=r("925623"),c=r("642199"),d=r("249294"),p="lowest",h="lowest",f=function(){var e=(0,s.G6)();return(0,o.useLayoutEffect)(()=>e.inject([c.Cj.whole.of(e=>e.name.startsWith("ATXHeading")?{type:"className",className:"markdown-heading",prec:p}:"Emphasis"===e.name?{type:"className",className:"markdown-emphasis",prec:p}:"StrongEmphasis"===e.name?{type:"className",className:"markdown-strong-emphasis",prec:p}:"ListMark"===e.name||"QuoteMark"===e.name?{type:"className",className:"markdown-mark",prec:p}:void 0),d.tk.theme({".markdown-heading":{color:"#00818C",fontWeight:"500"},".markdown-emphasis":{fontStyle:"italic"},".markdown-strong-emphasis":{fontWeight:"bold"},".markdown-mark":{color:"#4E40E5"}})]),[e]),null},m=function(){var e=(0,s.G6)();return(0,o.useLayoutEffect)(()=>e.inject([c.Cj.whole.of(e=>"JinjaStatement"===e.name||"JinjaRawOpenStatement"===e.name||"JinjaRawCloseStatement"===e.name?{type:"className",className:"jinja-statement",prec:h}:"JinjaStringLiteral"===e.name?{type:"className",className:"jinja-string",prec:h}:"JinjaComment"===e.name?{type:"className",className:"jinja-comment",prec:h}:"JinjaExpression"===e.name?{type:"className",className:"jinja-expression",prec:h}:"JinjaFilterName"===e.name||"JinjaStatementStart"===e.name||"JinjaStatementEnd"===e.name||"JinjaKeyword"===e.name||"JinjaFilterName"===e.name?{type:"className",className:"jinja-statement-keyword",prec:h}:void 0),d.tk.theme({".jinja-statement":{color:"#060709CC"},".jinja-statement-keyword":{color:"#D1009D"},".jinja-string":{color:"#060709CC"},".jinja-comment":{color:"#0607094D"},".jinja-expression":{color:"#4E40E5"}})]),[e]),null};function g(){var e=(0,s.G6)();return(0,o.useLayoutEffect)(()=>e.inject([l.Q$]),[e]),null}var y=d.tk.theme({".cm-content":{color:"rgba(6, 7, 9, 0.80)"},".cm-line":{lineHeight:"24px",paddingLeft:"12px"},".cm-cursor":{height:"20px !important"}}),x=e=>{var{readonly:t,placeholder:r,defaultValue:c,className:d,dataTestID:p,value:h,onChange:x,onFocus:b,onBlur:w,options:_,isControled:k,getEditor:C}=e,A=(0,o.useRef)(null),O=(0,s.jE)();(0,o.useEffect)(()=>{if(!!O&&!!w)return O.$on("blur",w),()=>{O.$off("blur",w)}},[O,w]),(0,o.useEffect)(()=>{if(!!O&&!!b)return O.$on("focus",b),()=>{O.$off("focus",b)}},[O,b]),(0,o.useEffect)(()=>{var e=A.current;if(!!e&&!!k&&!!O){var t=e.getValue();"string"==typeof h&&h!==t&&O.$view.dispatch({changes:{from:0,to:O.$view.state.doc.length,insert:null!=h?h:""}})}},[k,h,O]);var D=(0,o.useCallback)(e=>{"function"==typeof x&&x(e.value)},[x]),S=(0,o.useMemo)(()=>({class:null!=d?d:"","data-testid":null!=p?p:""}),[d,p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Th,{plugins:l.ZP,defaultValue:c,options:(0,i.Z)({fontSize:14,contentAttributes:S,editable:!t,readOnly:t},_),onChange:D,didMount:e=>{A.current=e,C&&C(e)}}),(0,n.jsx)(a.Vm,{children:r}),(0,n.jsx)(u.G,{themes:[y]}),(0,n.jsx)(g,{}),(0,n.jsx)(f,{}),(0,n.jsx)(m,{})]})},b=e=>{var{children:t}=e;return(0,n.jsx)(s.KU,{children:t})}},411534:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(455069),o=r(887874),i=()=>{var e=(0,o.jE)(),[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!!e){r(e.$view.state.readOnly);var t=e=>{e.startState.readOnly!==e.state.readOnly&&r(e.state.readOnly)};return e.$on("viewUpdate",t),()=>{e.$off("viewUpdate",t)}}},[e]),t}},44099:function(e,t,r){"use strict";r.d(t,{iN:()=>ec,WL:()=>ef,vE:()=>U,$r:()=>j,Hm:()=>P,wh:()=>el,pw:()=>em,vC:()=>h,N0:()=>H});var n,o=r("151064"),i=r("455069"),s=r("252237"),a=r.n(s),l=r("336205"),u=r("659596"),c=r("44172"),d=r("384174"),p={small:d.Z.small,default:d.Z.default,large:d.Z.large},h=e=>{var{size:t="default",children:r,visible:n,className:i}=e;return(0,o.jsxs)("div",{className:"relative w-fit h-fit",children:[(0,o.jsx)(u.u,{spacing:12,trigger:n?"hover":"custom",content:l.o.t("mkpl_plugin_tooltip_official"),children:n?(0,o.jsx)(c.mQT,{className:a()(d.Z["official-label"],p[t],i)}):null}),r]})},f=r("808549"),m=r("120454"),g=r("100282"),y=r("775699"),x=r("825955"),b=r("974235"),w=r("537845"),_=r("136515"),k=r("998600"),C=function(e){var t,r,n,{targetRef:o,loadData:s,threshold:a,reloadDeps:l,isNeedBtnLoadMore:u,resetDataIfReload:c=!0}=e,[d,p]=(0,i.useState)(!1),h=(0,i.useRef)(0),g=(0,i.useRef)();var{loading:y,data:C,loadingMore:A,loadMore:O,noMore:D,cancel:S,mutate:T,reload:E}=(0,b.Z)((t=(0,x._)(function*(e){var t=h.current;g.current&&g.current((0,m._)((0,f._)({},e||{}),{list:[]}));var r=yield new Promise((t,r)=>{g.current=t,s(e).then(e=>t(e)).catch(e=>r(e))});return(g.current=null,h.current!==t)?(e&&(e.list=[]),{list:[],nextPage:1}):r}),function(e){return t.apply(this,arguments)}),{target:d||u?null:o,threshold:a,onBefore:()=>{},isNoMore:e=>(null==e?void 0:e.hasMore)!==void 0&&!(null==e?void 0:e.hasMore),onSuccess:()=>{d&&p(!1)},onError:e=>{var t,r;1===C.nextPage&&(null!==(r=null==C?void 0:null===(t=C.list)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0&&T((0,m._)((0,f._)({},C),{list:[]})),p(!0)}});var{insertData:M,removeData:j,getDataList:N}=(r=C,n=T,{insertData:(e,t)=>{r.list.splice(t,0,e),n((0,m._)((0,f._)({},r),{list:[...(null==r?void 0:r.list)||[]]}))},removeData:e=>{r.list.splice(e,1),n((0,m._)((0,f._)({},r),{list:[...(null==r?void 0:r.list)||[]]}))},getDataList:()=>null==r?void 0:r.list});(0,i.useEffect)(()=>{u&&!(y||A)&&E()},[]);var P=(0,w.Z)(()=>{var e;T({list:c?[]:null!==(e=null==C?void 0:C.list)&&void 0!==e?e:[],hasMore:void 0,nextPage:1}),S(),p(!1),E()});(0,_.Z)(()=>{h.current++,P()},[...l||[]]);var B=y||A||e.isLoading,{run:I}=(0,k.Z)(()=>{if(!B)!u&&O()},{wait:500});(0,i.useEffect)(()=>{var e=()=>{I()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);var{list:L}=C||{};return{dataList:L,isLoading:B,loadMore:()=>{!B&&O()},reload:P,noMore:D,cancel:S,isLoadingError:d,mutate:T,insertData:M,removeData:j,getDataList:N}},A=r("30961"),O=r("772650"),D=function(e){var{isLoading:t,loadRetry:r,isError:n,renderFooter:i,isNeedBtnLoadMore:s,noMore:u}=e,c=(0,A.Fm)();return(0,o.jsx)("div",{className:a()(O.Z["footer-container"],{[O.Z["responsive-foot-container"]]:c}),children:(null==i?void 0:i(e))||(t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.yC,{}),(0,o.jsx)("span",{className:O.Z.loading,children:l.o.t("Loading")})]}):n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.yC,{}),(0,o.jsx)("span",{className:O.Z["error-retry"],onClick:r,children:l.o.t("inifinit_list_retry")})]}):s&&!u?(0,o.jsx)(y.y3,{onClick:r,className:O.Z["load-more-btn"],theme:"borderless",children:l.o.t("mkpl_load_btn")}):null)})},S=r("763055"),T=r("918966"),E=function(e){var{isLoading:t,isSearching:r,loadRetry:n,isError:i,renderEmpty:s,text:a,btn:u,icon:c}=e;return(0,o.jsx)("div",{className:T.Z.empty,children:(null==s?void 0:s(e))||(i?(0,o.jsx)(y.YZ,{empty:{title:l.o.t("inifinit_list_load_fail"),icon:(0,o.jsx)(S.My,{}),btnText:n&&l.o.t("inifinit_list_retry"),btnOnClick:()=>{null==n||n()}}}):t?(0,o.jsx)(y.yC,{tip:(0,o.jsx)("span",{className:T.Z["loading-text"],children:l.o.t("Loading")}),wrapperClassName:T.Z.spin,size:"middle"}):(0,o.jsx)(y.YZ,{isNotFound:!!r,empty:{title:(null==a?void 0:a.emptyTitle)||l.o.t("inifinit_list_empty_title"),description:(null==a?void 0:a.emptyTitle)?null==a?void 0:a.emptyDesc:"",btnText:null==u?void 0:u.emptyText,btnOnClick:null==u?void 0:u.emptyClick,icon:c},notFound:{title:(null==a?void 0:a.searchEmptyTitle)||l.o.t("inifinit_search_not_found")}}))})},M=r("565922"),j=(0,i.forwardRef)(function(e,t){var{isSearching:r,className:n,emptyContent:s,grid:l,renderItem:u,itemClassName:c,renderFooter:d,scrollConf:p,emptyConf:h,onChangeState:x,canShowData:b=!0,isNeedBtnLoadMore:w=!1,isResponsive:_,retryFunc:k,responsiveConf:A,containerClassName:O}=e,{dataList:S,isLoading:T,loadMore:j,noMore:N,isLoadingError:P,mutate:B,reload:I,insertData:L,removeData:F,getDataList:z}=C((0,m._)((0,f._)({},p),{isNeedBtnLoadMore:w}));return(0,i.useImperativeHandle)(t,()=>({mutate:B,reload:I,insertData:L,removeData:F,getDataList:z}),[B,I,L,F,z]),(0,i.useEffect)(()=>{null==x||x(T,S)},[S,T]),(0,o.jsx)("div",{className:a()(M.Z["height-whole-100"],O),children:(null==S?void 0:S.length)&&b?_?(0,o.jsx)(g.gz,{className:n,emptyContent:T?(0,o.jsx)(o.Fragment,{}):s,dataSource:S,renderItem:(e,t)=>null==u?void 0:u(e,t),gridCols:null==A?void 0:A.gridCols,gridGapXs:{basic:4},footer:(0,o.jsx)("div",{className:"text-sm px-6 py-3",children:(0,o.jsx)(D,{isError:P,noMore:N,isLoading:T,loadRetry:k||j,renderFooter:d,isNeedBtnLoadMore:w})})}):(0,o.jsx)(y.aV,{className:n,emptyContent:s,grid:l,emptyContent:T?(0,o.jsx)(o.Fragment,{}):s,dataSource:S,split:!1,renderItem:(e,t)=>(0,o.jsx)(y.aV.Item,{className:"string"==typeof c?c:null==c?void 0:c(e),children:null==u?void 0:u(e,t)}),footer:(0,o.jsx)(D,{isError:P,noMore:N,isLoading:T,loadRetry:k||j,renderFooter:d,isNeedBtnLoadMore:w,dataNum:null==S?void 0:S.length})}):(0,o.jsx)(E,(0,f._)({isError:!!b&&P,isSearching:r,isLoading:!b||T,loadRetry:k||j},h))})}),N=r("121022"),P=e=>{var{connectors:t,className:r,visibleNum:n=3}=e,i=t.length-n;return(0,o.jsxs)("div",{className:a()("ml-auto flex gap-4px",r),children:[t.slice(0,n).map(e=>(0,o.jsx)(u.u,{content:e.name,theme:"dark",children:(0,o.jsx)(u.EZ,{className:"border coz-stroke-primary border-solid",size:"micro",src:e.icon,type:"platform"})},e.id)),i>0?(0,o.jsx)(u.u,{position:"right",content:(0,o.jsx)("div",{className:"flex flex-col gap-8px max-w-[200px] max-h-[188px] overflow-y-auto overflow-x-hidden",children:t.slice(n).map(e=>(0,o.jsxs)("div",{className:"flex gap-8px items-center max-w-full",children:[(0,o.jsx)(u.EZ,{className:"border coz-stroke-primary border-solid",size:"micro",src:e.icon,type:"platform"}),(0,o.jsx)(u.ZT.Text,{ellipsis:!0,className:"flex-1 overflow-hidden",children:e.name})]},e.id))}),children:(0,o.jsxs)(u.Vp,{className:N.Z.more,size:"mini",color:"primary",children:["+",i]})}):null]})},B=r("382534"),I=r("664679"),L=e=>{var t,{productId:r,entityType:n,entityId:o,topicId:i,onChange:s,setIsFavorite:a}=e;return{changeFavoriteStatus:(0,w.Z)((t=(0,x._)(function*(e,t){a(!e);try{yield B.yF.PublicFavoriteProduct({product_id:r||void 0,entity_type:n,is_cancel:e,entity_id:o,topic_id:i}),null==s||s(e?-1:1),I.k.emit("refreshFavList",{id:o,numDelta:"add"===t?1:-1,emitPosition:"favorite-icon-btn"})}catch(t){a(e)}}),function(e,r){return t.apply(this,arguments)}))}},F=e=>{var{isVisible:t}=e,[r,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{!t&&n(!1)},[t]),{isShowAni:r,changeAnimationStatus:(0,w.Z)(e=>{e?n(!1):n(!0)})}},z=e=>e?"cancel":"add",R=e=>{var t,r,{isFavoriteDefault:n,onReportTea:o,productId:s,entityId:a,entityType:l,onChange:u,onClickBefore:c,topicId:d,isVisible:p,onFavoriteStateChange:h}=e,[f,m]=(0,i.useState)(null!=n&&n),{isShowAni:g,changeAnimationStatus:y}=F({isVisible:p}),b=(0,i.useRef)(!1);var k=(0,w.Z)((t=(0,x._)(function*(e,t){return(yield null==c?void 0:c(e,t))!==!1}),function(e,r){return t.apply(this,arguments)})),{changeFavoriteStatus:C}=L({productId:s,entityType:l,entityId:a,topicId:d,onChange:u,setIsFavorite:m});var A=(0,i.useCallback)((r=(0,x._)(function*(e){if(b.current){null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),null==e||null===(r=e.preventDefault)||void 0===r||r.call(e);return}var t,r,n,i=z(f);b.current=!0;try{(yield k(i,e))!==!1&&(null==e||null===(n=e.stopPropagation)||void 0===n||n.call(e),null==o||o(i),y(f),yield C(f,i))}catch(e){console.error("useFavoriteChange:",e)}b.current=!1}),function(e){return r.apply(this,arguments)}),[f,o]);return(0,_.Z)(()=>{null==h||h(f)},[f]),{isFavorite:f,onClick:A,isShowAni:g}},X=e=>{var{isFavorite:t}=e;return(0,o.jsx)(o.Fragment,{children:t?(0,o.jsx)(c.Aj,{}):(0,o.jsx)(c.ubE,{})})},Z=r("261008"),W=e=>{var{isFavorite:t,isShowAni:r,className:n,unCollectedIconCls:i,useButton:s}=e,l={className:a()(t?Z.Z["icon-filled"]:Z.Z["icon-stroked"],t?n:i,{[Z.Z["show-ani"]]:t&&r,[Z.Z["show-btn"]]:s})},d=t?(0,o.jsx)(c._h$,(0,f._)({},l)):(0,o.jsx)(c.q5R,(0,f._)({},l));return s?(0,o.jsx)(u.hU,{size:"default",color:"primary",icon:d}):d},V=r("420666"),H=(0,i.forwardRef)((e,t)=>{var{topicId:r,productId:n,entityType:s,entityId:a,isFavorite:l,onChange:u,isVisible:c,onReportTea:d,unCollectedIconCls:p,onClickBefore:h,onFavoriteStateChange:f,isMobile:m,className:g,useButton:y=!1,isForbiddenClick:x=!1}=e,{isFavorite:b,onClick:w,isShowAni:_}=R({isFavoriteDefault:l,onReportTea:d,productId:n,entityId:a,entityType:s,onChange:u,onClickBefore:h,topicId:r,isVisible:c,onFavoriteStateChange:f});return((0,i.useImperativeHandle)(t,()=>({favorite:w}),[w]),c)?(0,o.jsx)("div",{onClick:x?void 0:w,className:V.Z["favorite-icon-btn"],"data-testid":"bot-card-favorite-icon",children:m?(0,o.jsx)(X,{isFavorite:b}):(0,o.jsx)(W,{useButton:y,isFavorite:b,isShowAni:_,unCollectedIconCls:p,className:g})}):null});r("546410");var U=e=>{var{icon:t=null,title:r,activeIcon:n=null,isActive:i,suffix:s,onClick:l}=e;return(0,o.jsxs)("div",{onClick:l,className:a()("flex items-center gap-[8px]","transition-colors","rounded-[8px]","h-[32px] w-full","px-[8px]","cursor-pointer","hover:coz-mg-primary-hovered",i?"coz-bg-primary coz-fg-plus":"coz-fg-primary coz-bg-max"),children:[(0,o.jsx)("div",{className:"text-[16px] leading-none leading-none w-[16px] h-[16px]",children:i?n:t}),(0,o.jsx)(u.ZT.Text,{ellipsis:{showTooltip:!0,rows:1},fontSize:"14px",weight:500,className:"flex-1 text-[14px] leading-[20px] font-[500]",children:r}),s]})},q=r("903124"),Y=r("721566"),Q=r("873183"),G=r("117140"),$={[G._J.BotTemplate]:{icon:(0,o.jsx)(Q.Cr5,{}),i18nKey:"template_agent"},[G._J.WorkflowTemplateV2]:{icon:(0,o.jsx)(Q.eTH,{}),i18nKey:"template_workflow"},[G._J.ImageflowTemplateV2]:{icon:(0,o.jsx)(Q.eTH,{}),i18nKey:"template_workflow"},[G._J.ProjectTemplate]:{icon:(0,o.jsx)(Q.wmN,{}),i18nKey:"project_store_search"}},K={[G._J.BotTemplate]:"primary",[G._J.WorkflowTemplateV2]:"primary",[G._J.ImageflowTemplateV2]:"primary",[G._J.ProjectTemplate]:"brand"},J=e=>{var t,{type:r}=e,n=$[r];return n?(0,o.jsxs)(u.Vp,{color:null!==(t=K[r])&&void 0!==t?t:"primary",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:[n.icon,(0,o.jsx)("span",{className:"ml-[2px]",children:l.o.t(n.i18nKey)})]}):null},ee=r("824113"),et=e=>{var t,r,n,{title:i,description:s,userInfo:l,renderCardTag:c,descClassName:d,renderDescBottomSlot:p}=e;return(0,o.jsxs)("div",{className:a()("mt-[8px] px-[4px] grow","flex flex-col"),children:[(0,o.jsxs)("div",{className:"flex items-center gap-[8px] overflow-hidden",children:[(0,o.jsx)(u.ZT.Text,{className:"!font-medium text-[16px] leading-[22px] coz-fg-primary !max-w-[180px]",ellipsis:{showTooltip:!0,rows:1},children:i}),null==c?void 0:c()]}),(0,o.jsx)(ee.gj,{className:"mt-[4px]",avatar:null==l?void 0:l.avatar_url,name:null==l?void 0:l.name,username:null==l?void 0:l.user_name,label:{name:null==l?void 0:null===(t=l.user_label)||void 0===t?void 0:t.label_name,icon:null==l?void 0:null===(r=l.user_label)||void 0===r?void 0:r.icon_url,href:null==l?void 0:null===(n=l.user_label)||void 0===n?void 0:n.jump_link}}),(0,o.jsxs)("div",{className:a()("mt-[8px] flex flex-col justify-between grow",d),children:[(0,o.jsx)(u.ZT.Text,{className:"min-h-[40px] leading-[20px] coz-fg-secondary",ellipsis:{showTooltip:!0,rows:2},children:s}),null==p?void 0:p()]})]})},er=r("872457"),en=e=>{var{className:t,children:r,onClick:n,shadowMode:i}=e;return(0,o.jsx)("div",{className:a()("coz-bg-max",er.Z.container,er.Z.width100,t,er.Z["shadow-".concat(i)]),onClick:n,children:r})},eo=e=>(0,o.jsx)("div",{className:a()("coz-mg-primary",er.Z.container,er.Z.width100,er.Z.skeleton,e.className),children:null==e?void 0:e.children}),ei=r("207265"),es=e=>{var{className:t,onClick:r,children:n}=e;return(0,o.jsx)("button",{className:a()(ei.Z["card-button"],t),color:"primary",onClick:r,children:n})},ea=r("651242"),el=e=>{var t,r,n,s,a,[c,d]=(0,i.useState)(!1);return(0,o.jsxs)(en,{className:ea.Z.template,shadowMode:"default",children:[(0,o.jsxs)("div",{className:ea.Z["template-wrapper"],children:[(0,o.jsx)(ed,{title:null===(t=e.meta_info)||void 0===t?void 0:t.name,description:null===(r=e.meta_info)||void 0===r?void 0:r.description,userInfo:null===(n=e.meta_info)||void 0===n?void 0:n.user_info,entityType:e.meta_info.entity_type,imgSrc:null===(s=e.meta_info.covers)||void 0===s?void 0:s[0].url}),(0,o.jsx)(u.T,{className:ea.Z["btn-container"],children:(0,o.jsx)(es,{onClick:()=>{d(!0)},className:"w-full",children:l.o.t("copy")})})]}),c?(0,o.jsx)(eu,{productId:e.meta_info.id,entityType:e.meta_info.entity_type,defaultTitle:"".concat(null===(a=e.meta_info)||void 0===a?void 0:a.name,"(").concat(l.o.t("duplicate_rename_copy"),")"),hide:()=>d(!1)}):null]})},eu=e=>{var t,{defaultTitle:r,hide:n,productId:s,entityType:a}=e,[c,d]=(0,i.useState)(r),{spaces:p}=(0,Y.B3)(),h=null==p?void 0:null===(t=p[0])||void 0===t?void 0:t.id;return(0,o.jsx)(u.u_,{type:"modal",title:l.o.t("creat_project_use_template"),visible:!0,onOk:(0,x._)(function*(){try{yield q.K.PublicDuplicateProduct({product_id:s,entity_type:a,space_id:h,name:c}),u.FN.success(l.o.t("copy_success")),n()}catch(e){console.error("PublicDuplicateProduct",e),u.FN.error(l.o.t("copy_failed"))}}),onCancel:n,cancelText:l.o.t("Cancel"),okText:l.o.t("Confirm"),children:(0,o.jsxs)(u.T,{vertical:!0,spacing:4,className:"w-full",children:[(0,o.jsxs)(u.T,{className:"w-full",children:[(0,o.jsx)("span",{className:"coz-fg-primary font-medium leading-[20px]",children:l.o.t("creat_project_project_name")}),(0,o.jsx)("span",{className:"coz-fg-hglt-red",children:"*"})]}),(0,o.jsx)(u.II,{className:"w-full",placeholder:"",defaultValue:r,onChange:e=>{d(e)}})]})})},ec=()=>(0,o.jsx)(eo,{className:a()("h-[278px]",ea.Z.template)}),ed=e=>{var{title:t,imgSrc:r,description:n,entityType:i,userInfo:s,renderImageBottomSlot:a,renderDescBottomSlot:l}=e;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"relative w-full h-[140px] rounded-[8px] overflow-hidden",children:[(0,o.jsx)(u.Ee,{preview:!1,src:r,className:"w-full h-full",imgCls:"w-full h-full object-cover object-center"}),null==a?void 0:a()]}),(0,o.jsx)(et,{title:t,description:n,userInfo:s,renderCardTag:()=>i?(0,o.jsx)(J,{type:i}):null,descClassName:ea.Z.description,renderDescBottomSlot:l})]})};var ep=((n={})[n.NoAuth=0]="NoAuth",n[n.Required=1]="Required",n[n.Configured=2]="Configured",n[n.Supported=3]="Supported",n),eh=r("784636"),ef=e=>(0,o.jsx)(en,{className:eh.Z.plugin,shadowMode:"default",children:(0,o.jsxs)("div",{className:eh.Z["plugin-wrapper"],children:[(0,o.jsx)(eg,(0,f._)({},e)),(0,o.jsx)(u.T,{className:a()(eh.Z["btn-container"],{[eh.Z["one-column-grid"]]:e.isInstalled||!e.isShowInstallButton}),children:!e.isInstalled&&e.isShowInstallButton?(0,o.jsx)(es,{onClick:()=>{u.FN.success(l.o.t("plugin_install_success"))},children:l.o.t("plugin_store_install")}):null})]})}),em=()=>(0,o.jsx)(eo,{className:a()("h-[186px]",eh.Z.plugin)}),eg=e=>{var t,r,n,i;return(0,o.jsxs)("div",{children:[(0,o.jsx)(u.qE,{className:eh.Z["card-avatar"],src:null===(t=e.meta_info)||void 0===t?void 0:t.icon_url,shape:"square"}),(0,o.jsx)(et,{title:null===(r=e.meta_info)||void 0===r?void 0:r.name,description:null===(n=e.meta_info)||void 0===n?void 0:n.description,userInfo:null===(i=e.meta_info)||void 0===i?void 0:i.user_info,authMode:e.plugin_extra.auth_mode,renderCardTag:()=>e.plugin_extra.auth_mode===ep.Required||e.plugin_extra.auth_mode===ep.Supported?(0,o.jsx)(u.Vp,{color:"yellow",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:(0,o.jsx)("span",{className:"ml-[2px]",children:l.o.t("plugin_store_unauthorized")})}):e.plugin_extra.auth_mode===ep.Configured?(0,o.jsx)(u.u,{content:l.o.t("plugin_store_contact_deployer"),children:(0,o.jsx)(u.Vp,{color:"brand",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:(0,o.jsx)("span",{className:"ml-[2px]",children:l.o.t("plugin_store_authorized")})})}):null})]})}},569603:function(e,t,r){"use strict";r.d(t,{CJ:()=>M,v6:()=>g,vL:()=>x,ir:()=>O,c$:()=>A});var n,o=r("151064"),i=r("455069"),s=r("252237"),a=r.n(s),l=r("336205"),u=r("873183"),c=r("775699");function d(){return(0,o.jsxs)("svg",{width:"48",height:"38",viewBox:"0 0 48 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{x:"1.83317",y:"1.49998",width:"44.3333",height:"35",rx:"3.5",stroke:"currentColor","stroke-opacity":"0.8","stroke-width":"2.33333"}),(0,o.jsx)("path",{d:"M14.6665 30.6667H33.3332",stroke:"currentColor","stroke-opacity":"0.8","stroke-width":"2.33333","stroke-linecap":"round"})]})}function p(){return(0,o.jsx)("svg",{width:"34",height:"52",viewBox:"0 0 34 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9998 16.6666V35.3333C30.9998 37.5748 30.9948 38.4695 30.9 39.1895C30.2108 44.4247 26.0912 48.5443 20.856 49.2335C20.1361 49.3283 19.2413 49.3333 16.9998 49.3333C14.7584 49.3333 13.8636 49.3283 13.1437 49.2335C7.90847 48.5443 3.78888 44.4247 3.09965 39.1895C3.00487 38.4695 2.99984 37.5748 2.99984 35.3333V16.6666C2.99984 14.4252 3.00487 13.5304 3.09965 12.8105C3.78888 7.57528 7.90847 3.45569 13.1437 2.76646C13.7232 2.69017 14.4159 2.67202 15.8332 2.66785V9.86573C14.4738 10.3462 13.4998 11.6426 13.4998 13.1666V17.8332C13.4998 19.3571 14.4738 20.6536 15.8332 21.1341V23.6666C15.8332 24.3109 16.3555 24.8333 16.9998 24.8333C17.6442 24.8333 18.1665 24.3109 18.1665 23.6666V21.1341C19.5259 20.6536 20.4998 19.3572 20.4998 17.8332V13.1666C20.4998 11.6426 19.5259 10.3462 18.1665 9.86571V2.66785C19.5837 2.67202 20.2765 2.69017 20.856 2.76646C26.0912 3.45569 30.2108 7.57528 30.9 12.8105C30.9948 13.5304 30.9998 14.4252 30.9998 16.6666ZM0.666504 16.6666C0.666504 14.4993 0.666504 13.4157 0.786276 12.5059C1.61335 6.22368 6.55687 1.28016 12.8391 0.453085C13.7489 0.333313 14.8325 0.333313 16.9998 0.333313C19.1671 0.333313 20.2508 0.333313 21.1605 0.453085C27.4428 1.28016 32.3863 6.22368 33.2134 12.5059C33.3332 13.4157 33.3332 14.4994 33.3332 16.6666V35.3333C33.3332 37.5006 33.3332 38.5843 33.2134 39.494C32.3863 45.7763 27.4428 50.7198 21.1605 51.5469C20.2508 51.6666 19.1671 51.6666 16.9998 51.6666C14.8325 51.6666 13.7489 51.6666 12.8391 51.5469C6.55687 50.7198 1.61335 45.7763 0.786276 39.494C0.666504 38.5843 0.666504 37.5006 0.666504 35.3333V16.6666ZM15.8332 13.1666C15.8332 13.0011 15.8676 12.8437 15.9297 12.7011C15.9886 12.566 16.0722 12.4443 16.1749 12.3416C16.386 12.1305 16.6777 11.9999 16.9998 11.9999C17.6435 11.9999 18.1654 12.5212 18.1665 13.1646L18.1665 13.1666V17.8332L18.1665 17.8353C18.1665 17.8364 18.1665 17.8376 18.1665 17.8387C18.1661 17.9132 18.1588 17.986 18.1452 18.0565C18.0853 18.3656 17.9033 18.6312 17.6515 18.8011C17.4655 18.9266 17.2412 18.9999 16.9998 18.9999C16.3555 18.9999 15.8332 18.4776 15.8332 17.8332V13.1666Z",fill:"currentColor","fill-opacity":"0.8"})})}var h=r("273768"),{Title:f,Paragraph:m}=c.ZT;var g=((n={}).Mouse="MOUSE",n.Pad="PAD",n),y=e=>{var{title:t,subTitle:r,icon:n,onChange:i,value:s,selected:l}=e;return(0,o.jsxs)("div",{className:a()({[h.Z["mouse-pad-option"]]:!0,[h.Z["mouse-pad-option-selected"]]:l}),onClick:()=>i(s),children:[(0,o.jsx)("div",{className:a()({[h.Z["mouse-pad-option-icon"]]:!0,[h.Z["mouse-pad-option-icon-selected"]]:l}),children:n}),(0,o.jsx)(f,{heading:6,className:a()({[h.Z["mouse-pad-option-title"]]:!0,[h.Z["mouse-pad-option-title-selected"]]:l}),children:t}),(0,o.jsx)(m,{type:"tertiary",className:a()({[h.Z["mouse-pad-option-subTitle"]]:!0,[h.Z["mouse-pad-option-subTitle-selected"]]:l}),children:r})]})},x=i.forwardRef((e,t)=>{var{value:r,onChange:n,onPopupVisibleChange:s,containerStyle:f,iconStyle:m,arrowStyle:g}=e,[x,b]=(0,i.useState)(!1);return(0,o.jsx)(c.J2,{trigger:"custom",position:"topLeft",closeOnEsc:!0,visible:x,onVisibleChange:e=>{null==s||s(e)},onClickOutSide:()=>{b(!1)},spacing:20,content:(0,o.jsxs)("div",{className:h.Z["ui-mouse-pad-selector-popover"],children:[(0,o.jsx)(c.ZT.Title,{heading:4,children:l.o.t("workflow_interactive_mode")}),(0,o.jsxs)("div",{className:h.Z["ui-mouse-pad-selector-popover-options"],children:[(0,o.jsx)(y,{title:l.o.t("workflow_mouse_friendly"),subTitle:l.o.t("workflow_mouse_friendly_desc"),"data-testid":"workflow.detail.toolbar.interactive.mouse",value:"MOUSE",selected:"MOUSE"===r,icon:(0,o.jsx)(p,{}),onChange:n}),(0,o.jsx)(y,{title:l.o.t("workflow_pad_friendly"),subTitle:l.o.t("workflow_pad_friendly_desc"),"data-testid":"workflow.detail.toolbar.interactive.pad",value:"PAD",selected:"PAD"===r,icon:(0,o.jsx)(d,{}),onChange:n})]})]}),children:(0,o.jsxs)("div",{className:a()({[h.Z["ui-mouse-pad-selector"]]:!0,[h.Z["ui-mouse-pad-selector-active"]]:x}),ref:t,onClick:()=>{b(!x)},style:f,children:[(0,o.jsx)("div",{className:h.Z["ui-mouse-pad-selector-icon"],style:m,children:"MOUSE"===r?(0,o.jsx)(u.V3N,{}):(0,o.jsx)(u.XiX,{})}),(0,o.jsx)("div",{className:h.Z["ui-mouse-pad-selector-arrow"],style:g,children:(0,o.jsx)(u.Wdl,{})})]})})}),b=r("808549"),w=r("120454"),_="workflow_prefer_interactive_type",k="show_workflow_interactive_type_guide",C=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),A=()=>{var e=localStorage.getItem(_);return e&&[g.Mouse,g.Pad].includes(e)?e:C?g.Pad:g.Mouse},O=e=>{localStorage.setItem(_,e)},D=()=>{localStorage.setItem(k,"true")},S=()=>"true"!==localStorage.getItem(k),T=r("825926"),E=e=>(0,o.jsxs)("div",{className:T.Z["guiding-content"],children:[(0,o.jsx)("div",{className:T.Z["guiding-content-title"],children:(0,o.jsx)(c.ZT.Text,{children:e.mainTitle})}),(0,o.jsxs)("div",{className:T.Z["guiding-content-mouse-option"],children:[(0,o.jsx)("div",{className:T.Z["guiding-content-mouse-option-icon"],children:(0,o.jsx)(p,{})}),(0,o.jsxs)("div",{children:[(0,o.jsx)(c.ZT.Text,{className:T.Z["guiding-content-title"],children:e.mouseOptionTitle}),(0,o.jsx)(c.ZT.Paragraph,{className:T.Z["guiding-content-desc"],children:e.mouseOptionDesc})]})]}),(0,o.jsxs)("div",{className:T.Z["guiding-content-pad-option"],children:[(0,o.jsx)("div",{className:T.Z["guiding-content-pad-option-icon"],children:(0,o.jsx)(d,{})}),(0,o.jsxs)("div",{children:[(0,o.jsx)(c.ZT.Text,{className:T.Z["guiding-content-title"],children:e.padOptionTitle}),(0,o.jsx)(c.ZT.Paragraph,{className:T.Z["guiding-content-desc"],children:e.padOptionDesc})]})]}),(0,o.jsx)("div",{children:(0,o.jsx)(c.zx,{type:"primary",theme:"solid",className:T.Z["guiding-content-button"],onClick:null==e?void 0:e.onGotIt,children:e.buttonText})})]}),M=e=>{var{children:t,mainTitle:r=l.o.t("workflow_interactive_mode_popover_title"),buttonText:n=l.o.t("guidance_got_it"),mouseOptionTitle:s=l.o.t("workflow_interactive_mode_mouse_friendly"),mouseOptionDesc:a=l.o.t("workflow_interactive_mode_mouse_friendly_desc"),padOptionTitle:u=l.o.t("workflow_interactive_mode_pad_friendly"),padOptionDesc:d=l.o.t("workflow_interactive_mode_pad_friendly_desc")}=e,[p,h]=(0,i.useState)(()=>S());return(0,o.jsx)(c.J2,{content:(0,o.jsx)(E,(0,w._)((0,b._)({},{mainTitle:r,mouseOptionTitle:s,mouseOptionDesc:a,padOptionTitle:u,padOptionDesc:d,buttonText:n}),{onGotIt:()=>{D(),h(!1)}})),trigger:"custom",position:"top",style:{padding:0},visible:p,showArrow:!0,onClickOutSide:()=>h(!1),children:t})}},936731:function(e,t,r){"use strict";r.d(t,{v:function(){return n.v}});var n=r(888461)},888461:function(e,t,r){"use strict";r.d(t,{v:function(){return d}});var n=r(151064),o=r(455069),i=r(252237),s=r.n(i),a=r(385038),l=r(659596),u=r(561119),c=r(105452),d=e=>{var{className:t,style:r,mainText:i,subText:d,percent:p=10,percentFormat:h,avatar:f,status:m,actions:g,tipText:y=""}=e;return(0,n.jsxs)("div",{className:s()(c.Z["progress-wrap"],"flex justify-between relative mb-[8px]",m===u.N.Failed?c.Z["processing-failed"]:"",m===u.N.Processing?c.Z.processing:"",t),style:r,children:[(0,n.jsx)("div",{className:s()(c.Z.content,"process-progress-item-content","max-w-[calc(100%-100px)]"),children:(0,n.jsxs)("div",{className:s()("flex items-center",c.Z.info),children:[f,(0,n.jsxs)("div",{className:s()("pl-[10px] max-w-full"),children:[(0,n.jsx)("div",{className:c.Z["main-text"],children:(0,n.jsx)(l.ZT.Text,{"data-dtestid":"".concat(a.w.CreateUnitListProgressName,".").concat(i),className:"coz-fg-primary text-14px",ellipsis:{showTooltip:{opts:{content:i}}},children:i})}),(0,n.jsxs)("div",{className:c.Z["sub-text"],children:[(0,n.jsx)("div",{className:c.Z.desc,children:d}),y?(0,n.jsx)("div",{className:c.Z["tip-desc"],children:y}):null]})]})]})}),(0,n.jsx)("div",{className:s()(c.Z.right,"process-progress-item-right"),children:m===u.N.Processing?(0,n.jsx)("span",{className:c.Z.percent,children:h||"".concat(p,"%")}):(0,n.jsx)("div",{className:s()(c.Z.actions,"process-progress-item-actions"),children:Array.isArray(g)?(0,n.jsx)(l.T,{spacing:"tight",children:g.map((e,t)=>(0,n.jsx)(o.Fragment,{children:e},t))}):null})}),m===u.N.Processing?(0,n.jsx)("div",{className:c.Z.progress,style:{width:"".concat(p,"%")}}):null]},i)}},392902:function(e,t,r){"use strict";r.d(t,{u3:()=>Z,zx:()=>W,IO:()=>T,tM:()=>b});var n=r("808549"),o=r("120454"),i=r("473980"),s=r("151064"),a=r("455069"),l=r("962289"),u=r("550655"),c=r("252237"),d=r.n(c),p=r("385038"),h=r("336205"),f=r("775699"),m=r("659596"),g=r("528751"),y=(e,t)=>{for(var r=e>50?50:e,n=[],o=t;o<r;o++)n.push({label:h.o.t("datasets_createFileModel_tab_dataStarRow_value",{LineNumber:o+1}),value:o});return n},x=r("151359"),b=e=>{var{className:t="",data:r={},tableSettings:c,setTableSettings:b}=e,{preview_data:w,sheet_list:_}=r;if(!w||!_||!_.length)return(0,s.jsx)(s.Fragment,{});var k=(0,a.useRef)(),C=(0,a.useMemo)(()=>(0,l.Z)(_,c[g.hD.SHEET]),[_,c]),A=(0,a.useMemo)(()=>c,[_]),O=(0,a.useMemo)(()=>{var e=C.id||0===C.id?y(Number(null==C?void 0:C.total_row)>1?Number(C.total_row):2,0):[];return[{e2e:p.w.TableLocalTableConfigurationDataSheet,field:g.hD.SHEET,label:h.o.t("datasets_createFileModel_tab_DataSheet"),options:_.map(e=>({value:e.id,label:e.sheet_name}))},{e2e:p.w.TableLocalTableConfigurationSheetHeader,field:g.hD.KEY_START_ROW,label:h.o.t("datasets_createFileModel_tab_header"),options:e.slice(0,e.length-1)},{e2e:p.w.TableLocalTableConfigurationStarRow,field:g.hD.DATA_START_ROW,label:h.o.t("datasets_createFileModel_tab_dataStarRow"),options:e.slice(Number(c[g.hD.KEY_START_ROW])+1)}]},[r,C]),D=(e,t)=>{b&&b((0,n._)({},e));var r=(0,l.Z)(t,g.hD.SHEET),o=(0,l.Z)(t,g.hD.KEY_START_ROW);(0,u.Z)(r)&&k.current&&(k.current.setValue(g.hD.KEY_START_ROW,0),k.current.setValue(g.hD.DATA_START_ROW,1)),o&&k.current&&!(o<(0,l.Z)(e,g.hD.DATA_START_ROW))&&k.current.setValue(g.hD.DATA_START_ROW,o+1)};return(0,s.jsx)("div",{className:d()(x.Z["table-setting-bar"],t),children:(0,s.jsx)(f.l0,{layout:"horizontal",initValues:A,getFormApi:e=>k.current=e,onValueChange:(e,t)=>{D(e,t)},children:O.map(e=>{var{options:t}=e,r=(0,i._)(e,["options"]);return(0,s.jsx)(m.ih,(0,o._)((0,n._)({"data-testid":e.e2e,optionList:t},r),{onChange:t=>{if(!!t)D((0,o._)((0,n._)({},c),{[e.field]:t}),{[e.field]:t})}}),e.field)})})})},w=r("763055"),_=r("263825"),k=r("461190"),C=r("594022"),A=r("690612"),O=r("210208"),D=e=>(0,s.jsx)(m.Vp,{color:"primary",className:O.Z["column-type"],size:"mini",children:(0,_.y8)(e.columnType)}),S="table-preview",T=e=>{var{data:t,settings:r}=e,{sheet_list:n=[],table_meta:o={},preview_data:i={}}=t,l=Number(r[g.hD.DATA_START_ROW])||0,u=(0,a.useMemo)(()=>r[g.hD.SHEET]||0,[r]),c=(0,a.useMemo)(()=>{var e;return null===(e=(n||[]).find(e=>(null==e?void 0:e.id)===u))||void 0===e?void 0:e.sheet_name},[n,u]),d=(0,a.useMemo)(()=>{var e;return Number((null===(e=(n||[]).find(e=>(null==e?void 0:e.id)===u))||void 0===e?void 0:e.total_row)||0)-l||0},[n,u]),f=(o[u]||[]).map(e=>{var{sequence:t,column_name:r,is_semantic:n,column_type:o=C.QD.Unknown}=e;return o===C.QD.Image?{title:(0,s.jsxs)("div",{className:O.Z["td-title"],children:[(0,s.jsx)("div",{children:r}),(0,s.jsx)(D,{columnType:o})]}),dataIndex:t,render:(e,t)=>{var r=(0,A.bp)(e);return(0,s.jsx)(k.e0,{srcList:r,editable:!1})}}:{title:n?(0,s.jsxs)("div",{className:O.Z["td-title"],children:[r,n?(0,s.jsx)(m.Vp,{size:"mini",color:"green",className:O.Z["semantic-tag"],"data-testid":p.w.TableLocalPreviewSemantic,children:h.o.t("knowledge_1226_001")}):null,(0,s.jsx)(D,{columnType:o})]}):(0,s.jsxs)("div",{className:O.Z["td-title"],children:[r,(0,s.jsx)(D,{columnType:o})]}),width:180,dataIndex:t,ellipsis:{showTitle:!1},render:e=>(0,s.jsx)(m.ZT.Text,{ellipsis:{showTooltip:!0},children:e})}}),y=(0,a.useMemo)(()=>(i[u]||[]).slice(0,10).sort((e,t)=>JSON.stringify(e)>JSON.stringify(t)?1:-1),[i,u]);return(0,s.jsx)("div",{className:O.Z[S],children:y.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:O.Z["".concat(S,"-title")],"data-testid":p.w.TableLocalPreviewTitle,children:c}),(0,s.jsx)("div",{className:O.Z["".concat(S,"-content")],children:(0,s.jsx)(m.iA,{tableProps:{dataSource:y,columns:f}})}),(0,s.jsx)("div",{className:O.Z["preview-tips"],"data-testid":p.w.TableLocalPreviewFooterTotal,children:h.o.t("datasets_unit_tableformat_tips1",{TotalRows:d,ShowRows:Number(d)>10?10:d})})]}):(0,s.jsxs)("div",{className:O.Z["no-result"],children:[(0,s.jsx)(w.xs,{}),(0,s.jsx)("div",{className:O.Z["no-result-tips"],children:h.o.t("knowledge_1221_02")})]})})},E=r("745304"),M=r("306785"),j=r("481655"),N=r("410517"),P=r("537714"),B=r("873183"),I=r("44172"),L=r("274971"),F=r("391757"),z="table-structure",R=e=>{var{children:t,tooltip:r,dataTestId:n}=e;return(0,s.jsxs)("div",{className:F.Z["".concat(z,"-required-container")],"data-testid":n,children:[t,(0,s.jsx)("span",{className:F.Z["".concat(z,"-col-required")],children:" *"}),r]})},X=e=>{var{onChange:t,record:r,value:n,autofocus:o=!1,isBlurValid:i=!1,initValid:l,validate:u,isPreview:c,placeholder:d,maxStrLen:p}=e,f=e=>{var t=null==u?void 0:u(e,h.o.t("datasets_segment_tableStructure_field_errEmpty"));return{valid:!l||!!(u?null==t?void 0:t.valid:e&&""!==e),errorMsg:(null==t?void 0:t.errorMsg)||h.o.t("datasets_segment_tableStructure_field_errEmpty")}},[g,y]=(0,a.useState)(n),[x,b]=(0,a.useState)(()=>{var e=f(n);return{valid:!!i||e.valid,errorMsg:e.errorMsg}}),w=e=>{b(f(e))},_=(null==r?void 0:r.errMsg)||"",k=(0,a.useMemo)(()=>_?"error":x.valid?"default":"error",[x,_]),C=(0,a.useCallback)(()=>_?(0,s.jsx)("div",{className:F.Z["input-error-msg"],children:_}):(0,s.jsx)(s.Fragment,{children:!x.valid&&(0,s.jsx)("div",{className:F.Z["input-error-msg"],children:x.errorMsg})}),[_,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.II,{autoFocus:o,value:g,maxLength:p,onChange:e=>{y(e.substring(0,p)),i||w(e)},disabled:c,validateStatus:k,suffix:(0,s.jsxs)("span",{className:F.Z["input-suffix"],children:[(g||"").length,"/",p]}),onBlur:()=>{t((null==g?void 0:g.substring(0,p))||""),w(g)},placeholder:d}),C()]})},Z=e=>{var{data:t=[],setData:r,verifyMap:a={},initValid:l=!1,isBlurValid:u=!1,isPreview:c=!1,baseKey:g,showTitle:y=!1,children:x,tipsNode:b,isDragTable:w=!1}=e,k=(0,i._)(e,["data","setData","verifyMap","initValid","isBlurValid","isPreview","baseKey","showTitle","children","tipsNode","isDragTable"]),A=(0,L.l$)()===P.VP.RESEGMENT,O=[{title:()=>(0,s.jsx)(R,{dataTestId:p.w.TableLocalTableConfigurationIndex,tooltip:(0,s.jsx)(m.u,{className:"whitespace-pre-line",content:h.o.t("knowledge_multi_index"),children:(0,s.jsx)(f.y3,{size:"small",theme:"borderless",type:"tertiary",style:{marginLeft:4},icon:(0,s.jsx)(B.L03,{className:"coz-fg-secondary"})})}),children:(0,s.jsx)("div",{className:F.Z["table-header-tooltip"],"data-testid":p.w.TableLocalTableConfigurationIndex,children:(0,s.jsx)("span",{children:h.o.t("knowledge_table_structure_semantic")})})}),dataIndex:"is_semantic",width:90,align:"left",render:(e,n,o)=>{var i,{sequence:l}=n;var u=!!Object.keys(a).length&&!(null===(i=a[l||o])||void 0===i?void 0:i.valid)||c;return(0,s.jsxs)("div",{className:F.Z["semantic-radio"],children:[w?(0,s.jsx)(I.lls,{className:"structure-table-drag-icon"}):null,(0,s.jsx)(e=>{var t,r,{children:n}=e;return u&&(null===(t=a[l||o])||void 0===t?void 0:t.msg)?(0,s.jsx)(m.u,{trigger:"hover",content:null===(r=a[l||o])||void 0===r?void 0:r.msg,children:n}):n},{children:(0,s.jsx)(m.XZ,{checked:e,disabled:u,onChange:e=>{var n=[...t];n[o].is_semantic=!!e.target.checked,r(n)},"data-testid":p.w.TableStructureIndexCheckbox})})]})}},{title:()=>(0,s.jsx)(R,{dataTestId:p.w.TableLocalTableConfigurationColumnName,children:h.o.t("knowledge_table_structure_column_name")}),dataIndex:"column_name",align:"left",render:(e,n,o)=>{var{autofocus:i=!1}=n;return(0,s.jsx)("div",{className:F.Z["column-item"],children:(0,s.jsx)(X,{initValid:l,isBlurValid:u,onChange:e=>{var n=[...t];n[o].column_name=e,r(n)},record:n,value:e,validate:(e,r)=>(null==t?void 0:t.filter(t=>t.column_name===e).length)>=2?{valid:!1,errorMsg:h.o.t("Manual_crawling_040")}:(0,L.OP)(e,r),autofocus:i,isPreview:c,maxStrLen:30},"".concat(g).concat(null==n?void 0:n.sequence))})}},{title:()=>(0,s.jsx)("div",{"data-testid":p.w.TableLocalTableConfigurationDesc,children:h.o.t("knowledge_table_structure_desc")}),dataIndex:"desc",align:"left",render:(e,n,o)=>(0,s.jsx)("div",{className:F.Z["column-item"],children:(0,s.jsx)(X,{initValid:!1,isBlurValid:!1,placeholder:h.o.t("knowledge_variable_description_placeholder"),onChange:e=>{var n=[...t];n[o].desc=e,r(n)},record:n,value:e,autofocus:!1,isPreview:c,maxStrLen:2e3},"column-desc.".concat(g).concat(null==n?void 0:n.sequence))})},{title:()=>(0,s.jsx)(R,{dataTestId:p.w.TableLocalTableConfigurationType,children:h.o.t("knowledge_table_structure_data_type")}),dataIndex:"column_type",align:"left",render:(e,i,a)=>{var l=!!u||!!e;return(0,s.jsx)("div",{className:"pr-[16px] ".concat(F.Z["column-item"]),children:c?(0,s.jsx)(f.ZT.Text,{className:F.Z["column-item-value"],children:(0,_.y8)(e)}):(0,s.jsx)(_.L5,{value:e||"",selectProps:{disabled:!i.is_new_column&&A,optionList:(0,_.iQ)().map(e=>e.value===C.QD.Image?(0,o._)((0,n._)({},e),{disabled:i.is_semantic}):e),placeholder:h.o.t("db_table_save_exception_fieldtype")},errorMsg:l?void 0:h.o.t("datasets_segment_tableStructure_field_type_errEmpty"),handleChange:e=>{var n=[...t];n[a].column_type=e,r(n)}})},i.sequence)}},{title:(0,s.jsx)("div",{"data-testid":p.w.TableLocalTableConfigurationAction,children:h.o.t("datasets_unit_upload_field_action")}),dataIndex:"operate",width:82,align:"left",render:(e,n,o)=>(0,s.jsx)("div",{className:F.Z["column-item-action"],onClick:()=>{r(t.filter((e,t)=>o!==t))},children:(0,s.jsx)(m.u,{content:h.o.t(n.is_semantic?"datasets_segment_tableStructure_delTips":"datasets_table_title_actions_delete"),children:(0,s.jsx)(B.dVD,{"aria-disabled":!!n.is_semantic,className:F.Z["column-item-action-delete"]})})})}];c&&O.pop();var D=(0,N.Dy)((0,N.VT)(N.we,{activationConstraint:{distance:1}})),S=e=>{var{active:n,over:o}=e;if(n&&o&&n.id!==o.id){var i=Array.from(t),s=i.findIndex(e=>e.key===n.id),a=i.findIndex(e=>e.key===o.id);r((0,M.Rp)(i,s,a))}},T=e=>{var{attributes:t,listeners:r,setNodeRef:i,transform:a,transition:l,isDragging:u}=(0,M.nB)({id:e["data-row-key"]}),c=(0,n._)((0,o._)((0,n._)({},e.style),{transform:E.ux.Transform.toString(a),transition:l,cursor:u?"grabbing":"grab"}),u?{zIndex:999,position:"relative",background:"rgba(217, 220, 250, 1)"}:{});return(0,s.jsx)("tr",(0,n._)((0,o._)((0,n._)({},e),{ref:i,style:c}),t,r))};return(0,s.jsxs)("div",{className:F.Z["structure-wrapper"],children:[y?(0,s.jsx)(W,{}):null,b||null,w?(0,s.jsx)(N.LB,{autoScroll:!0,sensors:D,modifiers:[j.DL],onDragEnd:S,children:(0,s.jsx)(M.Fo,{items:t.map(e=>e.key||""),strategy:M.qw,children:(0,s.jsx)(m.iA,{wrapperClassName:d()(F.Z["".concat(z,"-wrapper")],F.Z["drag-table"]),tableProps:(0,n._)({sticky:!0,dataSource:t,columns:O,pagination:!1,className:F.Z[z],components:{body:{row:T}}},k)},g)})}):(0,s.jsx)(m.iA,{wrapperClassName:F.Z["".concat(z,"-wrapper")],tableProps:(0,n._)({sticky:!0,dataSource:t,columns:O,pagination:!1,className:F.Z[z]},k)},g),x]})},W=()=>(0,s.jsxs)("div",{className:F.Z["table-structure-bar-title"],"data-testid":p.w.TableLocalTableStructureTitle,children:[(0,s.jsx)("span",{children:h.o.t("datasets_segment_tableStructure_title")}),(0,s.jsx)(m.u,{content:h.o.t("knowledge_table_structure_column_tooltip"),children:(0,s.jsx)(B.L03,{className:d()(F.Z.icon,"coz-fg-secondary")})})]})},270917:function(e,t,r){"use strict";r.d(t,{p:()=>X});var n,o=r("808549"),i=r("120454"),s=r("473980"),a=r("151064"),l=r("455069"),u=r("252237"),c=r.n(u),d=r("763055"),p=r("263825"),h=r("385038"),f=r("336205"),m=r("873183"),g=r("659596"),y=r("528751"),x=r("537714"),b=r("695673"),w=r("900539"),_=e=>e.substring(0,e.lastIndexOf(".")),k=(e,t)=>{var r;return null==e?void 0:null===(r=e[t])||void 0===r?void 0:r.name},C=e=>e.reduce((e,t)=>(e[t.uid||""]=t,e),{}),A=(e,t)=>e.filter(e=>null==t?void 0:t.find(t=>{var r;return t.uri===(null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.upload_uri)})),O=(e,t)=>{var r,n,o,i;return{type:(0,w.mD)((null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.upload_uri)||e.name),uri:null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.upload_uri,url:null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.upload_url,name:(null!==(i=null==t?void 0:t.filename)&&void 0!==i?i:_(e.name)).slice(0,b.I1),size:e.size,status:e.status,percent:e.percent||0,fileInstance:e.fileInstance,uid:e.uid,validateMessage:e.validateMessage||""}},D=e=>e.filter(e=>!(!e.shouldUpload&&e.status===x.Dm.VALIDATE_FAIL)).map((t,r)=>O(t,{filename:k(e,r)})),S=(e,t)=>{var r=C(t);return e.filter(e=>{var t=r[e.uid||""];return!!t.shouldUpload||t.status!==x.Dm.VALIDATE_FAIL||!1}).map((e,n)=>{var i=r[e.uid||""],s=k(t,n);return(0,o._)({},e,O(i,{filename:s}))})},T=r("44172"),E=e=>{var t=(0,w.mD)(e.name)||"unknown",r={unknown:T.dd3,pdf:T.t1r,text:T.mBV,docx:T.yA0}[t]||T.dd3;return(0,a.jsx)(r,{})},M=r("825955"),j=r("745474"),N=r("458620"),P=r("727914"),B=r("178385"),I=r("382534"),L=r("274971");var F=(n=(0,M._)(function*(e){var{onSuccess:t,onError:r,onProgress:n,file:o}=e;try{var{name:i,fileInstance:s}=o;if(s){var a=(0,L.mD)(i),l=yield(0,L.y3)(s),u=yield I.nA.UploadFile({file_head:{file_type:a,biz_type:B.ym.BIZ_BOT_DATASET},data:l},{onUploadProgress:e=>{var t,r=null==o?void 0:o.status,i=null==o?void 0:o.response;if(r!==x.Dm.SUCCESS&&r!==x.Dm.UPLOAD_FAIL&&r!==x.Dm.VALIDATE_FAIL&&(null==i?!void 0:!i.upload_url)){var{total:a,loaded:l}=e;void 0!==a&&l<a&&n({total:null!==(t=e.total)&&void 0!==t?t:s.size,loaded:e.loaded})}}});t(u.data)}else r({status:0}),j.s5.errorEvent(j.xW.KNOWLEDGE,{eventName:N.b.KnowledgeUploadFile,error:new P.sH(N.b.KnowledgeUploadFile,"".concat(N.b.KnowledgeUploadFile,": Failed to upload file"))})}catch(e){r({status:0}),j.s5.errorEvent(j.xW.KNOWLEDGE,{eventName:N.b.KnowledgeUploadFile,error:e})}}),function(e){return n.apply(this,arguments)}),z=e=>{var t,{maxSizeMB:n}=e;return t=(0,M._)(function*(e){var t={fileInstance:e.file.fileInstance,status:e.file.status,validateMessage:e.file.validateMessage,shouldUpload:!0,autoRemove:!1},{fileInstance:s}=e.file;if(!s)return(0,i._)((0,o._)({},t),{status:x.Dm.UPLOAD_FAIL,shouldUpload:!1});var a=n||y.G2;if(s.size>1048576*a)return g.FN.warning({showClose:!1,content:f.o.t("file_too_large",{max_size:"".concat(a,"MB")})}),(0,i._)((0,o._)({},t),{shouldUpload:!1,status:x.Dm.VALIDATE_FAIL,validateMessage:f.o.t("file_too_large",{max_size:"".concat(a,"MB")})});if("pdf"===(0,L.mD)(s.name).toLowerCase())try{var{getDocument:l,initPdfJsWorker:u}=yield r.e("7841").then(r.bind(r,187394));u();var c=yield(0,L.JD)(s);if((yield l({data:c}).promise).numPages>y.XC)return g.FN.warning({showClose:!1,content:f.o.t("atasets_createpdf_over250")}),{shouldUpload:!1,status:x.Dm.VALIDATE_FAIL}}catch(e){if(j.s5.errorEvent(j.xW.KNOWLEDGE,{eventName:N.b.KnowledgeParseFile,error:e}),(null==e?void 0:e.name)==="PasswordException")return g.FN.error({showClose:!1,content:f.o.t("pdf_encrypted")}),{shouldUpload:!1,status:x.Dm.VALIDATE_FAIL}}return t}),function(e){return t.apply(this,arguments)}},R=r("928589"),X=e=>{var{unitList:t,onFinish:r,setUnitList:n,showIllustration:u=!0,multiple:x=!0,maxSizeMB:b=y.G2}=e,w=(0,s._)(e,["unitList","onFinish","setUnitList","showIllustration","multiple","maxSizeMB"]),{limit:_}=w,[k,C]=(0,l.useState)([]);(0,l.useEffect)(()=>{t.length<k.length&&C(A(k,t))},[t.length]);var O=(0,l.useCallback)(()=>{g.FN.warning({showClose:!1,content:f.o.t("knowledge_upload_format_error")})},[]),T=(0,p.hJ)(),M=(0,p.S2)(e=>{C(e.fileList),n(D(e.fileList))},T),j=(0,p.S2)(()=>{r(S(t,k))},T),N=(0,l.useMemo)(()=>t.length>=_,[t,_]),P=z({maxSizeMB:b});return(0,a.jsx)(g.gq,(0,i._)((0,o._)({draggable:!0,"data-testid":h.w.UploadUnitFile,multiple:x,fileList:k,disabled:N,previewFile:E,onAcceptInvalid:O,beforeUpload:P,customRequest:F,onChange:M,onSuccess:j,dragIcon:(0,a.jsx)(m.Isu,{className:R.Z["upload-icon"]})},w),{className:c()(R.Z.upload,w.className),children:t.length>=_&&u?(0,a.jsxs)("div",{className:R.Z["create-enough-file"],onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(d.ns,{className:R.Z.picture}),(0,a.jsx)("div",{className:R.Z.text,children:f.o.t("knowledge_1218_001",{MaxDocs:_})})]}):null}))}},47522:function(e,t,r){"use strict";r.d(t,{vL:()=>h,k1:()=>p,Zq:()=>d,nC:()=>n.n,G8:()=>c});var n=r("735997"),o=r("151064"),i=r("695673"),s=r("385038"),a=r("336205"),l=r("873183"),u=r("659596");function c(e){return(0,o.jsx)("div",{"data-dtestid":"".concat(s.w.LocalUploadListFileSize,".").concat(e.name),className:"coz-fg-secondary text-12px",children:null==e?void 0:e.size})}function d(e){var{index:t,record:r,params:n}=e,{onChange:i,unitList:s,onDelete:c}=n;return(0,o.jsx)(u.u,{spacing:12,content:a.o.t("Delete"),position:"top",children:(0,o.jsx)(u.hU,{color:"secondary",icon:(0,o.jsx)(l.dVD,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>{i(s.filter((e,r)=>t!==r)),"function"==typeof c&&(null==c||c(r,t))}})})}function p(e){var t,{index:r,record:n,params:s}=e,{onChange:c,unitList:d}=s,{node:p,open:h}=(0,i.i0)({name:null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"",onOk:e=>{var t=[...d];t[r].name=e,c(t)}});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.u,{spacing:12,content:a.o.t("Edit"),position:"top",children:(0,o.jsx)(u.hU,{color:"secondary",icon:(0,o.jsx)(l.JAz,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>h()})}),p]})}function h(e){var{index:t,record:r,params:n}=e;if(n.disableRetry)return null;var{onRetry:i}=n;return(0,o.jsx)(u.u,{spacing:12,content:a.o.t("datasets_unit_update_retry"),position:"top",children:(0,o.jsx)(u.hU,{color:"secondary",icon:(0,o.jsx)(l.mxP,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>{null==i||i(r,t)}})})}r("274971"),r("237365")},735997:function(e,t,r){"use strict";r.d(t,{n:function(){return p}});var n=r(808549),o=r(120454),i=r(151064);r(455069);var s=r(385038),a=r(336205),l=r(888461),u=r(561119),c=r(237365),d=(e,t,r)=>e===u.N.Failed?(0,i.jsx)("div",{"data-dtestid":"".concat(s.w.CreateUnitListProgressName,".","subText"),className:"text-12px",children:t||a.o.t("datasets_unit_upload_fail")}):r,p=e=>{var{unitList:t=[],getColumns:r}=e;return 0===t.length?null:(0,i.jsx)("div",{className:"upload-container",children:t.map((e,t)=>{var p=(0,c.Z)(null==e?void 0:e.status),h=(null==e?void 0:e.statusDescript)||"",{subText:f,actions:m,formatType:g}=r?r(e,t):{};return(0,i.jsx)(l.v,{mainText:e.name||"--",subText:d(p,h,f),tipText:(0,i.jsx)("span",{"data-dtestid":"".concat(s.w.LocalUploadListStatus,".").concat(e.name),children:p===u.N.Failed?h||a.o.t("datasets_unit_upload_fail"):a.o.t("datasets_unit_upload_success")}),status:p,avatar:(0,c.a)((0,o._)((0,n._)({},e),{formatType:g})),actions:m,percent:e.percent||10},e.uid)})})}},237365:function(e,t,r){"use strict";r.d(t,{Z:function(){return c},a:function(){return u}});var n=r(151064),o=r(537714),i=r(280053),s=r(775699),a=r(44172),l=r(561119),u=e=>{var{type:t,formatType:r,url:o}=e;return r===i.a5.Image&&["jpg","jpeg","png","webp"].includes(t)?(0,n.jsx)(s.Ee,{src:o,width:24,height:24,style:{borderRadius:"4px",marginRight:"12px",flexShrink:0}}):"md"===t?(0,n.jsx)(a.s7F,{}):"pdf"===t?(0,n.jsx)(a.I2v,{}):"docx"===t?(0,n.jsx)(a.KHq,{}):"txt"===t?(0,n.jsx)(a.KNN,{}):"xlsx"===t||"xltx"===t||"xls"===t?(0,n.jsx)(a.$lV,{}):"csv"===t?(0,n.jsx)(a.tsT,{}):r===i.a5.Table?(0,n.jsx)(a.LAr,{}):(0,n.jsx)(a.Hnk,{})},c=e=>e===o.Dm.UPLOADING||e===o.Dm.VALIDATING||e===o.Dm.WAIT||e===i.Vq.Handling||e===o.Ao.EntityStatusProcess?l.N.Processing:e===o.Dm.SUCCESS||e===i.Vq.Finish||e===o.Ao.EntityStatusSuccess?l.N.Complete:e===o.Dm.VALIDATE_FAIL||e===o.Dm.UPLOAD_FAIL||e===i.Vq.Failed||e===o.Ao.EntityStatusFail?l.N.Failed:l.N.Processing},861445:function(e,t,r){"use strict";r.d(t,{O7:function(){return n},WT:function(){return a},Yg:function(){return o},xT:function(){return i}});var n=100,o=3e3,i=[".xls",".xlsx",".csv"],s={DOUYIN:{acceptFileTypes:[".pdf",".txt",".doc",".docx"],fileFormatString:"PDF、TXT、DOC、DOCX",addUnitMaxLimit:100},DEFAULT:{acceptFileTypes:[".pdf",".txt",".docx",".md"],fileFormatString:"PDF、TXT、DOCX、MD",addUnitMaxLimit:300}},a=e=>e&&s[e]||s.DEFAULT},116497:function(e,t,r){"use strict";r.d(t,{G2:function(){return i},XC:function(){return s},ge:function(){return o}});var n,o=((n={})[n.ZERO=0]="ZERO",n[n.ONE=1]="ONE",n[n.THREE=3]="THREE",n[n.SEVEN=7]="SEVEN",n[n.THIRTY=30]="THIRTY",n),i=1e3,s=5e3},528751:function(e,t,r){"use strict";r.d(t,{pL:()=>a,O7:()=>i.O7,Q:()=>c,ge:()=>h.ge,hD:()=>u,XC:()=>h.XC,z2:()=>d,DU:()=>l,c3:()=>s,v1:()=>p.v,Px:()=>p.P,G2:()=>h.G2,Yg:()=>i.Yg});var n,o,i=r("861445");var s=((n={}).ERROR="error",n.LOADING="loading",n.NORMAL="normal",n),a=50,l=30;var u=((o={}).SHEET="sheet_id",o.KEY_START_ROW="header_line_idx",o.DATA_START_ROW="start_line_idx",o),c={sheet_id:0,header_line_idx:0,start_line_idx:1},d={sheet_id:0,header_line_idx:0,start_line_idx:0},p=r("461334"),h=r("116497")},461334:function(e,t,r){"use strict";r.d(t,{P:function(){return s},v:function(){return a}});var n=r(336205),o=r(288391),i=()=>({[o.IB.LINE_BREAK]:n.o.t("datasets_Custom_segmentID_linebreak"),[o.IB.LINE_BREAK2]:n.o.t("datasets_Custom_segmentID_2linebreak"),[o.IB.CN_PERIOD]:n.o.t("datasets_Custom_segmentID_cnperiod"),[o.IB.CN_EXCLAMATION]:n.o.t("datasets_Custom_segmentID_cn_exclamation"),[o.IB.EN_PERIOD]:n.o.t("datasets_Custom_segmentID_enperiod"),[o.IB.EN_EXCLAMATION]:n.o.t("datasets_Custom_segmentID_en_exclamation"),[o.IB.CN_QUESTION]:n.o.t("datasets_Custom_segmentID_cn_question"),[o.IB.EN_QUESTION]:n.o.t("datasets_Custom_segmentID_en_question"),[o.IB.CUSTOM]:n.o.t("datasets_Custom_segmentID_custom")}),s=()=>Object.entries(i()).map(e=>{var[t,r]=e;return{value:t,label:r}}),a={separator:{type:o.IB.LINE_BREAK,customValue:"###"},maxTokens:800,preProcessRules:[],overlap:10}},771242:function(e,t,r){"use strict";r.d(t,{nC:function(){return i.nC},p:function(){return o.p},uA:function(){return n.uA},vS:function(){return s.v},zP:function(){return n.zP}}),r(528751);var n=r(274971),o=r(270917),i=r(47522),s=r(936731);r(237365)},561119:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n,o=((n={})[n.Processing=0]="Processing",n[n.Complete=1]="Complete",n[n.Failed=2]="Failed",n)},288391:function(e,t,r){"use strict";r.d(t,{IB:function(){return l},OX:function(){return s},dV:function(){return a}});var n,o,i,s=((n={})[n.AUTO=0]="AUTO",n[n.CUSTOM=1]="CUSTOM",n[n.LEVEL=2]="LEVEL",n);var a=((o={}).REMOVE_SPACES="remove_extra_spaces",o.REMOVE_EMAILS="remove_urls_emails",o);var l=((i={}).LINE_BREAK="\n",i.LINE_BREAK2="\n\n",i.CN_PERIOD="。",i.CN_EXCLAMATION="",i.EN_PERIOD=".",i.EN_EXCLAMATION="!",i.CN_QUESTION="",i.EN_QUESTION="?",i.CUSTOM="custom",i)},900539:function(e,t,r){"use strict";r.d(t,{As:function(){return A},BD:function(){return S},JD:function(){return C},V1:function(){return D},l$:function(){return b},mD:function(){return _},mZ:function(){return O},td:function(){return w},te:function(){return g},uA:function(){return x},wV:function(){return m},y3:function(){return k},zP:function(){return y}});var n=r(808549),o=r(120454),i=r(962289),s=r(22916),a=r(745474),l=r(537714),u=r(458620),c=r(336205),d=r(727914),p=r(280053),h=r(659596),f=r(528751),m=e=>{var{unitList:t,data:r,fileInstance:i,index:s}=e;return r?t.map((e,t)=>s===t?(0,o._)((0,n._)({},e),{uri:r.upload_uri||"",status:l.Dm.SUCCESS,percent:100,fileInstance:i}):e):t};function g(e){var t=e.filter(e=>e.status===p._m.Failed);t.length&&a.s5.errorEvent(a.xW.KNOWLEDGE,{eventName:u.b.KnowledgeGetTaskProgress,error:new d.sH(u.b.KnowledgeGetTaskProgress,"".concat(u.b.KnowledgeGetTaskProgress,": get progress fail. ").concat(JSON.stringify(t))),meta:{failIds:t}})}function y(e){return e.length>0&&e.every(e=>e.progress===f.O7||e.status===p._m.Failed)}var x=e=>{e.current&&(clearTimeout(e.current),e.current=void 0)};function b(){var e=(0,s.kF)();return(0,i.Z)(e,"opt",l.VP.ADD)}function w(){var e=(0,s.kF)();return(0,i.Z)(e,"docID",void 0)}var _=e=>{var t=e.lastIndexOf(".");return e.slice(t+1).toLowerCase()},k=e=>new Promise((t,r)=>{var n=new FileReader;n.onload=e=>{var n,o=null===(n=e.target)||void 0===n?void 0:n.result;if(!o||"string"!=typeof o){r(new d.sH("getBase64","file read invalid"));return}t(o.replace(/^.*?,/,""))},n.onerror=()=>{h.FN.error(c.o.t("read_file_failed_please_retry")),r(new d.sH("getBase64","file read fail"))},n.onabort=()=>{r(new d.sH("getBase64","file read abort"))},n.readAsDataURL(e)}),C=e=>new Promise((t,r)=>{var n=new FileReader;n.onload=e=>{var n;(null===(n=e.target)||void 0===n?void 0:n.result)?t(new Uint8Array(e.target.result)):r(new d.sH("getUint8Array","file read invalid"))},n.readAsArrayBuffer(e)});function A(e,t){var r=e.filter(e=>e.status===p._m.Failed);r.length>0&&a.s5.errorEvent(a.xW.KNOWLEDGE,{eventName:t,error:new d.sH(t,"".concat(t,": fail document_ids are ").concat(JSON.stringify(r))),meta:{failDocumentIds:r}})}var O=e=>c.o.t("knowledge_add_unit_process_notice"),D=(e,t)=>e===l.VP.RESEGMENT&&t&&[l.Cm.TABLE_GOOGLE_DRIVE,l.Cm.TABLE_FEISHU].includes(t),S=e=>e===l.VP.INCREMENTAL},274971:function(e,t,r){"use strict";r.d(t,{wO:()=>n.wO,hd:()=>n.hd,l$:()=>o.l$,VR:()=>i.VR,V1:()=>o.V1,y3:()=>o.y3,mZ:()=>o.mZ,mD:()=>o.mD,zP:()=>o.zP,JD:()=>o.JD,td:()=>o.td,As:()=>o.As,UQ:()=>s,te:()=>o.te,wV:()=>o.wV,BD:()=>o.BD,OP:()=>n.OP,uA:()=>o.uA});var n=r("690612"),o=r("900539"),i=r("417062");function s(e){return!1}r("888711")},690612:function(e,t,r){"use strict";r.d(t,{OP:function(){return a},bp:function(){return l},hd:function(){return s},wO:function(){return c}});var n=r(962289),o=r(336205),i=r(528751),s=e=>({[i.ge.ZERO]:o.o.t("datasets_frequencyModal_frequency_noUpdate"),[i.ge.ONE]:o.o.t("datasets_frequencyModal_frequency_day",{num:1}),[i.ge.THREE]:o.o.t("datasets_frequencyModal_frequency_day",{num:3}),[i.ge.SEVEN]:o.o.t("datasets_frequencyModal_frequency_day",{num:7}),[i.ge.THIRTY]:o.o.t("datasets_frequencyModal_frequency_day",{num:30})})[e],a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!0,n="";return e?(/["'`\\]+/g.test(e)&&(r=!1,n=o.o.t("knowledge_tableStructure_field_errLegally")),["_knowledge_slice_id"].includes(e)&&(r=!1,n=o.o.t("knowledge_tableStructure_errSystemField")),{valid:r,errorMsg:n}):{valid:!1,errorMsg:t}},l=e=>{if(!e)return[];var t=e.match(/<img[^>]+src\s*=\s*['"]([^'"]+)['"][^>]*>/g),r=[];if(t)for(var n=0;n<t.length;n++){var o,i=null===(o=t[n].match(/src\s*=\s*['"]([^'"]+)['"]/))||void 0===o?void 0:o[1];i&&r.push(i)}return r},u=e=>Object.values(i.hD).includes(e),c=e=>{var t={sheet_id:"",header_line_idx:"",start_line_idx:""};return Object.keys(e).reduce((t,r)=>(u(r)&&(t[r]=String((0,n.Z)(e,r))),t),t),t}},417062:function(e,t,r){"use strict";r.d(t,{VR:function(){return a}});var n=r(280053),o=r(461334),i=r(288391),s=e=>e.chunk_type===n.x2.CustomChunk?i.OX.CUSTOM:e.chunk_type===n.x2.LevelChunk?i.OX.LEVEL:i.OX.AUTO,a=e=>{if(e&&Object.keys(e)&&(null==e?void 0:e.chunk_strategy))try{var t=(null==e?void 0:e.chunk_strategy)||{},r=[];return t.remove_extra_spaces&&r.push(i.dV.REMOVE_SPACES),t.remove_urls_emails&&r.push(i.dV.REMOVE_EMAILS),{docInfo:e,segmentMode:s(null==e?void 0:e.chunk_strategy),segmentRule:{separator:t.separator?l(t.separator):o.v.separator,maxTokens:t.max_tokens?Number(t.max_tokens):o.v.maxTokens,preProcessRules:r,overlap:t.overlap?Number(t.overlap):o.v.overlap}}}catch(e){}},l=e=>(function(e){var t=[];for(var[,r]of Object.entries(e))r!==e.CUSTOM&&t.push(r);return t})(i.IB).indexOf(e)>-1?{type:e}:{type:i.IB.CUSTOM,customValue:e}},888711:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(537714),o=r(288391),i=(e,t)=>{if(e===o.OX.CUSTOM){var r=(null==t?void 0:t.maxTokens)||0,i=null==t?void 0:t.separator,s=(null==i?void 0:i.type)===o.IB.CUSTOM&&!(null==i?void 0:i.customValue);if(0===r||s||"number"!=typeof t.overlap||Number.isNaN(t.overlap))return n.xZ.DISABLE}return n.xZ.ENABLE}},299464:function(e,t,r){"use strict";r.d(t,{q9:()=>tx,Gx:()=>eb,a8:()=>ej,it:()=>tw,hP:()=>eN});var n,o,i,s,a,l=r("151064"),u=r("455069"),c=r("287487"),d=r("22916"),p=r("825955"),h=r("808549"),f=r("120454"),m=r("263825"),g=r("75117"),y=r("336205"),x=r("659596"),b=r("653598"),w=r("178385"),_=r("382534"),k=r("658665");var C=((n={}).CREATE="create",n.EDIT="edit",n),A=e=>{var{onSubmit:t,onClose:r,initValues:n,mode:o="create",renderAutoGenerate:i}=e,[s,a]=(0,u.useState)(!1),c=()=>{a(!1),null==r||r()};return{visible:s,open:()=>{a(!0)},close:c,modal:(0,l.jsx)(O,{visible:s,onClose:c,onSubmit:t,initValues:n,mode:o,renderAutoGenerate:i})}},O=e=>{var t,r,n,o,i,s,a,c,d,C,{visible:A,initValues:O,onClose:D,onSubmit:S,mode:T,renderAutoGenerate:E}=e,M=(0,u.useRef)(null);var j=(t=(0,p._)(function*(){if(!!M.current){var e,t,r,n,o,i,s=yield M.current.validate();S((0,f._)((0,h._)({},s),{icon_uri:[{url:null!==(o=null==s?void 0:null===(t=s.icon_uri)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.url)&&void 0!==o?o:"",uri:null!==(i=null==s?void 0:null===(n=s.icon_uri)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.uid)&&void 0!==i?i:""}]}))}}),function(){return t.apply(this,arguments)}),[N,P]=(0,u.useState)({uri:null!==(a=null==O?void 0:null===(o=O.icon_uri)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.uri)&&void 0!==a?a:"",url:null!==(c=null==O?void 0:null===(s=O.icon_uri)||void 0===s?void 0:null===(i=s[0])||void 0===i?void 0:i.url)&&void 0!==c?c:""}),[B,I]=(0,u.useState)({name:null!==(d=null==O?void 0:O.name)&&void 0!==d?d:"",desc:null!==(C=null==O?void 0:O.description)&&void 0!==C?C:""});var L=(r=(0,p._)(function*(){var e,t,r,n,o,i,{icon:s}=yield _.MJ.GetIcon({format_type:b.a5.Database});P({uri:null!==(t=null==s?void 0:s.uri)&&void 0!==t?t:"",url:null!==(r=null==s?void 0:s.url)&&void 0!==r?r:""}),null===(e=M.current)||void 0===e||e.setValue("icon_uri",[{url:null!==(n=null==s?void 0:s.url)&&void 0!==n?n:"",uri:null!==(o=null==s?void 0:s.uri)&&void 0!==o?o:"",uid:null!==(i=null==s?void 0:s.uri)&&void 0!==i?i:"",isDefault:!0}])}),function(){return r.apply(this,arguments)}),F=(0,u.useCallback)(e=>{var{name:t,description:r,icon_uri:n}=e;if(!!M.current){if(M.current.setValue("name",t),M.current.setValue("description",r),I({name:null!=t?t:"",desc:null!=r?r:""}),!n||!n[0].url){L();return}M.current.setValue("icon_uri",[{url:n[0].url,uri:n[0].uri,uid:n[0].uri,isDefault:!0}])}},[M]);return(0,u.useEffect)(()=>{if(!!A&&!!O)F(O)},[A,O,F]),(0,l.jsx)(x.u_,{title:"create"===T?y.o.t("db_add_table_title"):y.o.t("db_edit_title"),closable:!0,visible:A,onCancel:()=>{if(M.current){var e;null===(e=M.current)||void 0===e||e.reset(["name","description","icon_uri"])}null==D||D()},className:"w-[480px]",okText:y.o.t("db2_004"),okButtonProps:{"data-testid":"database.info_modal.button.confirm"},cancelText:y.o.t("db_del_field_confirm_no"),onOk:j,maskClosable:!1,children:(0,l.jsx)(x.l0,{className:k.Z["database-model-content"],getFormApi:e=>{M.current=e},initValues:O,children:e=>{var{formState:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.NB,{"data-testid":"database.info_modal.input.name",field:"name",label:y.o.t("db_add_table_name"),placeholder:y.o.t("db_add_table_name_tips"),required:!0,maxLength:50,disabled:"edit"===T,onChange:e=>{I(t=>(0,f._)((0,h._)({},t),{name:(null==e?void 0:e.trim())||""}))},rules:[{required:!0,message:y.o.t("db2_005")},{pattern:/^[a-z][a-z0-9_]{0,63}$/,message:y.o.t("db_new_0004")}]}),(0,l.jsx)(m.eI,{"data-testid":"database.info_modal.input.description",field:"description",label:y.o.t("db_add_table_desc"),placeholder:y.o.t("db_add_table_desc_tips"),maxCount:100,maxlength:100,onChange:e=>{I(t=>(0,f._)((0,h._)({},t),{desc:(null==e?void 0:e.trim())||""}))}}),(0,l.jsx)(g.s,{label:y.o.t("datasets_model_create_avatar"),field:"icon_uri",fileBizType:w.ym.BIZ_DATASET_ICON,iconType:w.Tu.Dataset,uploadClassName:"w-auto",generateInfo:B,withAutoGenerate:!!E,renderAutoGenerate:E,initValue:[{url:null==N?void 0:N.url,uid:null==N?void 0:N.uri,isDefault:!0}]})]})}})})},D=r("177198"),S=r("873183"),T=r("252237"),E=r.n(T),M={info:"bg-[rgba(var(--coze-brand-1),var(--coze-brand-1-alpha))]",warning:"bg-[rgba(var(--coze-yellow-1),var(--coze-yellow-1-alpha))]",danger:"bg-[rgba(var(--coze-red-1),var(--coze-red-1-alpha))]",success:"bg-[rgba(var(--coze-green-1),var(--coze-green-1-alpha))]"};function j(e){var{type:t,persistentKey:r,className:n,children:o}=e,[i,s]=(0,u.useState)(!!localStorage.getItem(r)),[a,c]=(0,u.useState)(!1);return i||a?null:(0,l.jsxs)("div",{className:E()("p-[8px] flex justify-center",M[null!=t?t:"info"],n),children:[(0,l.jsx)("div",{className:"flex grow justify-center text-[14px] leading-[20px]",children:o}),(0,l.jsxs)("div",{className:"flex items-center gap-[10px] leading-none",children:[(0,l.jsx)(x.ZT.Text,{type:"secondary",fontSize:"12px",className:"cursor-pointer",onClick:()=>{localStorage.setItem(r,"1"),s(!0)},children:y.o.t("not_show_again")}),(0,l.jsx)(x.hU,{color:"secondary",size:"mini",className:"!h-[unset]",icon:(0,l.jsx)(S.rmE,{className:"w-[16px] h-[16px]"}),onClick:()=>c(!0)})]})]})}var N=r("801815"),P=r("392300"),B=r("689951"),I=r("745474"),L=r("458620"),F=r("707107"),z=r("775699"),R=r("44172"),X=r("499283"),Z=r("33630"),W=r("826256"),V=e=>{var{errorMsg:t,errorMsgFloat:r}=e;return(0,l.jsxs)("div",{className:E()({[W.Z["select-wrapper"]]:!0,[W.Z["error-wrapper"]]:!!t}),children:[(0,l.jsx)(x.Ph,(0,f._)((0,h._)({},e.selectProps),{style:{width:"100%"},value:e.value,onChange:t=>{var r;null==e||null===(r=e.handleChange)||void 0===r||r.call(e,t)},dropdownClassName:W.Z["selected-option"]})),t?(0,l.jsx)("div",{className:E()({[W.Z["error-content"]]:!0,[W.Z["error-float"]]:!!r}),children:(0,l.jsx)("div",{className:W.Z["error-text"],children:t})}):null]})},H=r("550655"),U=r("626862"),q=r("125915"),Y=e=>{var t,r,n,o,{ellipsis:i=!0,maxCount:s,errorMsgFloat:a}=e,c=(0,H.Z)(s)&&s>0;(0,u.useImperativeHandle)(e.onRef,()=>({triggerFocus:m}));var d=(0,U.Z)({value:e.value,inputOnFocus:!1,inputEle:!1}),p=(0,u.useRef)(null),m=()=>{var e;d.inputEle=!0,null==p||null===(e=p.current)||void 0===e||e.focus()},g=(0,u.useMemo)(()=>{var e,t;return((null===(e=p.current)||void 0===e?void 0:e.clientWidth)||0)<((null===(t=p.current)||void 0===t?void 0:t.scrollWidth)||0)-1},[i,d.inputOnFocus,d.value,null===(t=p.current)||void 0===t?void 0:t.clientWidth,null===(r=p.current)||void 0===r?void 0:r.scrollWidth,d.inputEle]);(0,u.useEffect)(()=>{d.value=e.value},[e.value]);var y=(0,l.jsxs)("span",{className:q.Z["limit-count"],children:[(null===(n=d.value)||void 0===n?void 0:n.length)||0,"/",s]});return(0,l.jsxs)("div",{className:E()(q.Z["input-wrapper"],e.className),style:e.style,children:[!d.inputEle&&g?(0,l.jsx)(x.u,(0,f._)((0,h._)({content:(0,l.jsx)("article",{style:{maxWidth:200,wordWrap:"break-word",wordBreak:"normal"},children:d.value}),position:"top",showArrow:!0,mouseEnterDelay:300},e.tooltipProps),{children:(0,l.jsx)("div",{className:E()((null==e?void 0:e.errorMsg)?q.Z["error-wrapper"]:null),onClick:()=>{!d.inputEle&&setTimeout(()=>{var e;null==p||null===(e=p.current)||void 0===e||e.focus()},10),d.inputEle=!0},children:(0,l.jsx)(x.II,(0,f._)((0,h._)({},e.inputProps),{ref:p,value:d.value,className:i?q.Z.input:"",suffix:c?y:void 0}))})})):(0,l.jsx)("div",{className:E()((null==e?void 0:e.errorMsg)?q.Z["error-wrapper"]:null),children:(0,l.jsx)(x.J2,(0,f._)((0,h._)({},e.onFocusPopoverProps),{trigger:"custom",visible:!!(null===(o=e.onFocusPopoverProps)||void 0===o?void 0:o.content)&&d.inputOnFocus,showArrow:!0,children:(0,l.jsx)(x.II,(0,f._)((0,h._)({},e.inputProps),{ref:p,value:d.value,className:i?q.Z.input:"",onChange:t=>{var r;d.value=t,null==e||null===(r=e.handleChange)||void 0===r||r.call(e,t)},onFocus:()=>{var t;d.inputOnFocus=!0,d.inputEle=!0,null==e||null===(t=e.handleFocus)||void 0===t||t.call(e,d.value||"")},onBlur:t=>{var r,n;d.inputOnFocus=!1,null==e||null===(r=e.handleBlur)||void 0===r||r.call(e,d.value||""),null==e||null===(n=e.onBlur)||void 0===n||n.call(e,t),d.inputEle=!1},suffix:c?y:void 0}))}))}),(null==e?void 0:e.errorMsg)?(0,l.jsx)("div",{className:E()({[q.Z["error-content"]]:!0,[q.Z["error-float"]]:!!a}),children:(0,l.jsx)("div",{className:q.Z["error-text"],children:null==e?void 0:e.errorMsg})}):null]})},Q=(0,x.Q2)(Y,{valueKey:"value",onKeyChangeFnName:"handleChange"}),G=r("602876"),$=[{value:G.wp.Text,label:y.o.t("db_add_table_field_type_txt")},{value:G.wp.Number,label:y.o.t("db_add_table_field_type_int")},{value:G.wp.Date,label:y.o.t("db_add_table_field_type_time")},{value:G.wp.Float,label:y.o.t("db_add_table_field_type_number")},{value:G.wp.Boolean,label:y.o.t("db_add_table_field_type_bool")}];y.o.t("db_add_table_temp_desc"),Z.mx.LimitedReadWrite,(0,N.x0)(),y.o.t("db_add_table_temp_field_desc1"),G.wp.Text,(0,N.x0)(),y.o.t("db_add_table_temp_field_desc2"),G.wp.Number,(0,N.x0)(),y.o.t("db_add_table_temp_field_desc3"),G.wp.Text,Z.mx.LimitedReadWrite,y.o.t("db_table_0129_005"),y.o.t("db_table_0129_002"),Z.mx.ReadOnly,y.o.t("db_table_0129_006"),y.o.t("db_table_0129_003"),Z.mx.UnlimitedReadWrite,y.o.t("db_table_0129_007"),y.o.t("db_table_0129_004"),Z.mx.RWModeMax;var K={excel:[Z.mx.LimitedReadWrite],normal:[Z.mx.LimitedReadWrite],expert:[Z.mx.LimitedReadWrite,Z.mx.UnlimitedReadWrite]},J={name:"uuid",desc:y.o.t("workflow_240221_01"),type:G.wp.Text,must_required:!0,nanoid:(0,N.x0)(),isSystemField:!0},ee={name:"id",desc:y.o.t("database_240520_01"),type:G.wp.Number,must_required:!0,nanoid:(0,N.x0)(),isSystemField:!0},et={name:"sys_platform",desc:y.o.t("db_optimize_002"),type:G.wp.Text,must_required:!0,nanoid:(0,N.x0)(),isSystemField:!0},er=[ee,et,J,{name:"bstudio_create_time",desc:y.o.t("db_optimize_003"),type:G.wp.Date,must_required:!0,nanoid:(0,N.x0)(),isSystemField:!0}],en={id:"bstudio_id",sys_platform:"bstudio_connector_id",uuid:"bstudio_connector_uid",bstudio_create_time:"bstudio_create_time"};function eo(e){var t,r,{field:n,textType:o="secondary",type:i,tip:s,required:a}=e;return(0,l.jsxs)("div",{className:"flex flex-row items-center",children:[(0,l.jsx)(x.ZT.Text,{type:o,weight:500,fontSize:"12px",ellipsis:!0,children:n}),a?(0,l.jsx)("span",{className:"coz-fg-hglt-red text-[12px] leading-[16px]",children:"*"}):null,s?(0,l.jsx)(x.u,{content:s,style:{maxWidth:"unset"},children:(0,l.jsx)(S.L03,{className:"w-[12px] h-[12px] ml-[3px] coz-fg-secondary"})}):null,"number"==typeof i?(0,l.jsx)(x.Vp,{color:"primary",size:"mini",className:"ml-[4px]",children:null!==(r=null===(t=$.find(e=>e.value===i))||void 0===t?void 0:t.label)&&void 0!==r?r:i}):null]})}var ei=r("736351");var es=((o={}).custom="custom",o.template="template",o.excel="excel",o.recommend="recommend",o.naturalLanguage="naturalLanguage",o);var ea=((i={})[i.Required=1]="Required",i[i.Unique=2]="Unique",i[i.Naming=3]="Naming",i),el=[{type:1,regex:/[^a-z0-9_]/,errorMsg:y.o.t("db_add_table_field_name_tips2")},{type:2,regex:/^[^a-z]/,errorMsg:y.o.t("db_add_table_field_name_tips3")},{type:3,regex:/[\s\S]{64,}/,errorMsg:y.o.t("db_add_table_field_name_tips4")}],eu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[...t];return el.forEach(t=>{r=r.filter(e=>e!==t.errorMsg),t.regex.test(e||"")&&r.push(t.errorMsg)}),r},ec=[{label:y.o.t("db_add_table_field_name"),key:"name",validator:[{type:ea.Naming,message:""},{type:ea.Required,message:y.o.t("db_table_save_exception_nofieldname")},{type:ea.Unique,message:y.o.t("db_table_save_exception_fieldname")}],defaultValue:"",require:!0},{label:y.o.t("db_add_table_field_desc"),key:"desc",require:!1,validator:[],defaultValue:""},{label:y.o.t("db_add_table_field_type"),key:"type",require:!0,validator:[{type:ea.Required,message:y.o.t("db_table_save_exception_fieldtype")}],defaultValue:""},{label:y.o.t("db_add_table_field_necessary"),key:"must_required",require:!1,validator:[],defaultValue:!0}],ed=(e,t)=>e.map(r=>{var n=(0,h._)({},r);return ec.forEach(r=>{var o=r.key;r.validator.forEach(r=>{!(null==n?void 0:n.errorMapper)&&(n.errorMapper={});var i,s=null==n?void 0:null===(i=n.errorMapper)||void 0===i?void 0:i[o],a=n[o];!s&&(n.errorMapper[o]=[],s=[]);var l=r.message;switch(r.type){case ea.Required:"save"===t&&!a&&ec.find(e=>!!n[e.key]&&!e.defaultValue)&&n.errorMapper[o].push(l),"change"===t&&a&&(n.errorMapper[o]=s.filter(e=>e!==l));break;case ea.Unique:"save"===t&&a&&1!==e.filter(e=>e[o]===n[o]).length&&n.errorMapper[o].push(l),"change"===t&&a&&1===e.filter(e=>e[o]===n[o]).length&&(n.errorMapper[o]=s.filter(e=>e!==l));break;case ea.Naming:("save"===t||"blur"===t||"change"===t&&s.length)&&(n.errorMapper[o]=eu(a,s))}n.errorMapper[o]=Array.from(new Set(n.errorMapper[o]))})}),n}),ep=r("824113"),eh=r("606526"),ef=()=>(0,l.jsx)(ep.yk,{className:eh.Z["modal-key-tip"],children:"- ".concat(y.o.t("db_add_table_field_name_tips1"),"\n- ").concat(y.o.t("db_add_table_field_name_tips2"),"\n- ").concat(y.o.t("db_add_table_field_name_tips3"),"\n- ").concat(y.o.t("db_add_table_field_name_tips4"))}),em=r("777432"),eg=(0,u.forwardRef)((e,t)=>{var r,n,o,{data:i,botId:s="",spaceId:a="",creatorId:c="",onSave:d,onCancel:m,onDeleteField:g,forceEdit:b=!1,maxColumnNum:w=20,useComputingEnableGoToNextStep:k,readAndWriteModeOptions:C,onlyShowDatabaseInfoRWMode:A,enableAdd:O=!0,loading:S=!1,setContentCheckErrorMsg:T=P.Z,createType:M,showDatabaseBaseInfo:j,hiddenTableBorder:W,isReadonlyMode:H,projectID:U,renderModeSelect:q}=e,[G,J]=(0,u.useState)([]),ee=(0,u.useRef)(null),et=(0,u.useRef)(null),en=(0,u.useRef)(),es=!!i.tableId,[ea,{setTrue:el,setFalse:ec}]=(0,B.Z)(!1),ep=G.filter(e=>!e.isSystemField),eh=ep.length>=w,eg=ep.length>w,ev=ep.filter(e=>e.name||e.desc||e.type).length<=0,ey=[0x2a339708,0x2a3851f8],ex=e=>{(0,X.k0)(e)&&ey.includes(Number(null==e?void 0:e.code))&&T((null==e?void 0:e.msg)||y.o.t("knowledge_bot_update_databse_tnserr_msg"))},eb=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!ea)J([...G,{nanoid:(0,N.x0)(),name:"",desc:"",type:void 0,must_required:!1}]),e&&setTimeout(()=>{var e,t,r;null===(t=ee.current)||void 0===t||null===(e=t.triggerFocus)||void 0===e||e.call(t),null===(r=et.current)||void 0===r||r.scrollIntoView({block:"end",behavior:"smooth"})},100)},ew=e=>{J(t=>ed(t,e))};var e_=(r=(0,p._)(function*(){var e=ed(G,"save");if(J(e),j)try{yield en.current.formApi.validate(["name"])}catch(e){return!1}return!e.find(e=>Object.keys(e.errorMapper||{}).find(t=>{var r,n;return!!(null==e?void 0:null===(n=e.errorMapper)||void 0===n?void 0:null===(r=n[t])||void 0===r?void 0:r.length)}))&&!ev&&!0}),function(){return r.apply(this,arguments)});var ek=(n=(0,p._)(function*(){var e,t,r={};r=en.current?en.current.formApi.getValues():{name:i.name,desc:i.desc,readAndWriteMode:i.readAndWriteMode,prompt_disabled:(null===(e=i.extra_info)||void 0===e?void 0:e.prompt_disabled)==="true"},es?(0,F.Gg)(F.Kg.edit_table_click,{need_login:!0,have_access:!0,bot_id:s,table_name:r.name}):(0,F.Gg)(F.Kg.create_table_click,{need_login:!0,have_access:!0,bot_id:s,table_name:r.name,database_create_type:M});var n={table_name:A?i.name:r.name,table_desc:A?i.desc:r.desc,icon_uri:i.icon_uri,prompt_disabled:!!r.prompt_disabled,field_list:G.filter(e=>!!e.name&&!e.isSystemField).map(e=>({name:e.name,desc:e.desc||"",type:e.type,must_required:e.must_required,id:null==e?void 0:e.id,alterId:null==e?void 0:e.alterId})),rw_mode:r.readAndWriteMode};if(es)try{t=yield _.v6.UpdateDatabase((0,f._)((0,h._)({},n),{id:i.tableId}))}catch(e){I.s5.errorEvent(I.xW.DATABASE,{eventName:L.b.DatabaseAlterTable,error:e}),ex(e);return}else try{t=yield _.v6.AddDatabase((0,f._)((0,h._)({},n),{space_id:a,creator_id:c,project_id:U}))}catch(e){I.s5.errorEvent(I.xW.DATABASE,{eventName:L.b.DatabaseAddTable,error:e}),ex(e);return}d&&(yield d({response:t})),null==m||m()}),function(){return n.apply(this,arguments)});var eC=(o=(0,p._)(function*(){try{if(el(),!(yield e_()))return;yield ek()}finally{ec()}}),function(){return o.apply(this,arguments)}),eA=e=>{if(!e)return y.o.t("db_add_table_name_tips");var t=eu(e);return t.length>0?t.join("; "):""};(0,u.useImperativeHandle)(t,()=>({submit:()=>(0,p._)(function*(){return yield eC()})(),validate:()=>(0,p._)(function*(){return yield e_()})(),setTableFieldsList:J,isReadonly:ea,tableBasicInfoFormRef:en,tableFieldsList:G}),[ea,G,en]),null==k||k(G,ev);var eO=O?[...G,{operate:"add"}]:G,eD=()=>{T("")};return(0,u.useEffect)(()=>{if(J([...er,...i.tableMemoryList]),en.current&&!S){var e;en.current.formApi.setValues({name:(null==i?void 0:i.name)||"",desc:(null==i?void 0:i.desc)||"",prompt_disabled:!!es&&(null===(e=i.extra_info)||void 0===e?void 0:e.prompt_disabled)==="true",readAndWriteMode:(null==i?void 0:i.readAndWriteMode)||Z.mx.LimitedReadWrite})}},[i,S]),(0,l.jsxs)("div",{className:E()(em.Z["table-structure-wrapper"],{[em.Z["hidden-form-border"]]:W}),children:[j?(0,l.jsxs)(x.l0,{ref:en,layout:"vertical",className:em.Z["table-structure-form"],onValueChange:(e,t)=>{("name"in t||"desc"in t)&&eD()},children:[A?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Q,{field:"name",label:{text:y.o.t("db_add_table_name"),required:!0},validate:e=>eA(e),trigger:["change","blur"],fieldClassName:em.Z["table-name-form-field"],disabled:H,inputProps:{"data-testid":D.A.BotDatabaseAddModalTableNameInput,disabled:!b&&(ea||es),placeholder:y.o.t("db_add_table_name_tips")},onFocusPopoverProps:{style:{padding:"2px 12px"},position:"left",content:(0,l.jsx)(ef,{})}}),(0,l.jsx)(x.l0.TextArea,{"data-testid":D.A.BotDatabaseAddModalTableDescInput,field:"desc",label:y.o.t("db_add_table_desc"),disabled:ea||H,rows:2,placeholder:y.o.t("db_add_table_desc_tips"),fieldClassName:em.Z["table-desc-form-field"]})]}),q&&C?q({dataTestId:D.A.BotDatabaseAddModalTableQueryModeSelect,field:"readAndWriteMode",label:y.o.t("db_table_0129_001"),type:"select",options:K[C]}):null]}):null,eg?(0,l.jsx)(z.jL,{type:"warning",description:y.o.t("db_table_0126_027",{ColumNum:w}),className:em.Z["max-row-banner"]}):null,(0,l.jsx)(z.$,{tableProps:{loading:S,columns:[{dataIndex:"name",title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_name"),required:!0,tip:(0,l.jsxs)("div",{className:em.Z["th-tip-name"],children:[(0,l.jsx)("span",{style:{width:494,marginBottom:8},children:y.o.t("db_add_table_field_name_tips")}),(0,l.jsx)(z.Ee,{preview:!1,width:494,height:163,src:ei})]})}),render:(e,t,r)=>{var n,o,i;return"add"!==t.operate?(0,l.jsx)(Y,{style:{position:"static"},onRef:ee,value:t.name,inputProps:{"data-testid":D.A.BotDatabaseAddModalFieldNameInput,"data-dtestid":D.A.BotDatabaseAddModalFieldNameInput,disabled:ea||t.isSystemField||H,placeholder:"Enter Name"},errorMsgFloat:!0,onFocusPopoverProps:{style:{padding:"2px 12px"},position:"left",content:(0,l.jsx)(ef,{})},errorMsg:null===(i=G[r])||void 0===i?void 0:null===(o=i.errorMapper)||void 0===o?void 0:null===(n=o.name)||void 0===n?void 0:n.join("; "),handleChange:e=>{var t=[...G];t[r].name=e,J(t),ew("change"),eD()},handleBlur:()=>{ew("blur")}}):(0,l.jsx)("div",{ref:et,"data-testid":D.A.BotDatabaseAddModalAddBtn,children:eh?(0,l.jsx)("div",{style:{paddingRight:10},children:(0,l.jsx)(z.u,{position:"top",content:y.o.t("bot_database_add_field",{number:w}),children:(0,l.jsx)(x.zx,{color:"secondary",disabled:!0,icon:(0,l.jsx)(R.N_R,{}),children:y.o.t("bot_userProfile_add")})})}):(0,l.jsx)(x.zx,{color:"primary",disabled:ea,onClick:()=>eb(!0),icon:(0,l.jsx)(R.N_R,{}),children:y.o.t("bot_userProfile_add")})})},width:261},{dataIndex:"desc",title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_desc"),tip:(0,l.jsx)("article",{style:{width:327},children:y.o.t("db_add_table_field_desc_tips")})}),render:(e,t,r)=>"add"!==t.operate?(0,l.jsx)(Y,{value:t.desc,maxCount:300,inputProps:{"data-testid":"".concat(D.A.BotDatabaseAddModalFieldDescInput,".").concat(r,".").concat(t.name),"data-dtestid":"".concat(D.A.BotDatabaseAddModalFieldDescInput,".").concat(r,".").concat(t.name),maxLength:300,disabled:ea||t.isSystemField||H,placeholder:y.o.t("bot_edit_variable_description_placeholder")},errorMsgFloat:!0,handleChange:e=>{var t=[...G];t[r].desc=e,J(t),eD()}}):null,width:369},{dataIndex:"type",title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_type"),required:!0,tip:(0,l.jsx)("article",{style:{width:327},children:y.o.t("db_add_table_field_type_tips")})}),render:(e,t,r)=>{var n,o,i;return"add"!==t.operate?(0,l.jsx)(V,{value:t.type,selectProps:{"data-testid":"".concat(D.A.BotDatabaseAddModalFieldTypeSelect,".").concat(r,".").concat(t.name),"data-dtestid":"".concat(D.A.BotDatabaseAddModalFieldTypeSelect,".").concat(r,".").concat(t.name),disabled:ea||es&&!!t.id||t.isSystemField||H,placeholder:y.o.t("db_table_save_exception_fieldtype"),optionList:$},errorMsgFloat:!0,errorMsg:null===(i=G[r])||void 0===i?void 0:null===(o=i.errorMapper)||void 0===o?void 0:null===(n=o.type)||void 0===n?void 0:n.join("; "),handleChange:e=>{var t=[...G];t[r].type=e,J(t),ew("change")}}):null},width:214},{dataIndex:"must_required",title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_necessary"),tip:(0,l.jsxs)("article",{style:{width:327},children:[(0,l.jsx)("p",{className:em.Z["th-tip-dot"],children:y.o.t("db_add_table_field_necessary_tips1")}),(0,l.jsx)("p",{className:em.Z["th-tip-dot"],children:y.o.t("db_add_table_field_necessary_tips2")})]})}),render:(e,t,r)=>"add"!==t.operate?(0,l.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,l.jsx)(x.rs,{"data-testid":"".concat(D.A.BotDatabaseAddModalFieldRequiredSwitch,".").concat(r,".").concat(t.name),"data-dtestid":"".concat(D.A.BotDatabaseAddModalFieldRequiredSwitch,".").concat(r,".").concat(t.name),disabled:ea||t.disableMustRequired||t.isSystemField||H,checked:t.must_required,onChange:e=>{var t=[...G];t[r].must_required=e,J(t)},size:"small","aria-label":"a switch for semi demo"})}):null,width:108},{dataIndex:"operate",title:(0,l.jsx)(eo,{field:y.o.t("db_table_0126_021")}),render:(e,t,r)=>"add"!==t.operate?(0,l.jsx)(z.gl,{deleteProps:{handleClick:()=>{if(!ea){var e=[...G.slice(0,r),...G.slice(r+1)];J(e),ew("change"),null==g||g(e)}},popconfirm:{defaultVisible:!1,visible:!1},tooltip:{content:y.o.t("datasets_table_title_actions_delete")},disabled:t.isSystemField||H},editProps:{hide:!0}}):null,width:85}],dataSource:eO,pagination:!1,className:em.Z["table-structure-table"],rowKey:"nanoid"},wrapperClassName:em.Z["table-structure-table-wrapper"]}),ev&&!S?(0,l.jsx)("div",{className:em.Z["table-empty-tips"],children:y.o.t("db_table_save_exception_nofield")}):null]})}),ev=e=>{var{onReturn:t,onSubmit:r,initValue:n,showDatabaseBaseInfo:o,extraParams:i,onlyShowDatabaseInfoRWMode:s,projectID:a,renderGenerate:c,renderModeSelect:d}=e,[p,h]=(0,u.useState)(!1),f=()=>{h(!1)};return{visible:p,open:()=>{h(!0)},close:f,modal:(0,l.jsx)(ey,{visible:p,onClose:f,onReturn:t,onSubmit:r,initValue:n,showDatabaseBaseInfo:o,extraParams:i,onlyShowDatabaseInfoRWMode:s,projectID:a,renderGenerate:c,renderModeSelect:d})}};function ey(e){var t,r,{visible:n,onClose:o,onReturn:i,onSubmit:s,initValue:a,showDatabaseBaseInfo:c,onlyShowDatabaseInfoRWMode:d,extraParams:{botId:m="",spaceId:g="",creatorId:b=""}={},projectID:w,renderGenerate:_,renderModeSelect:k}=e,[C,A]=(0,u.useState)(!1),[O,T]=(0,u.useState)(!1),[E,M]=(0,u.useState)(!1),[N,P]=(0,u.useState)(a),B=(0,u.useRef)(null),I=(0,u.useMemo)(()=>!!a.tableId,[a]);var L=(t=(0,p._)(function*(e){var{response:t}=e;yield null==s?void 0:s(t)}),function(e){return t.apply(this,arguments)});var F=(r=(0,p._)(function*(){if(B.current)try{T(!0),yield B.current.submit()}finally{T(!1)}}),function(){return r.apply(this,arguments)});return(0,u.useEffect)(()=>{P(a)},[a]),(0,l.jsx)(x.u_,{closable:!0,maskClosable:!1,visible:n,onCancel:void 0,onOk:F,size:"xxl",header:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-row items-center",children:[(0,l.jsx)("div",{className:"flex-1 text-[20px] font-medium coz-fg-plus",children:I?y.o.t("db_edit_title"):y.o.t("db_add_table_title")}),I?null:null==_?void 0:_({tableStructureRef:B,onGenerateChange:e=>{P((0,f._)((0,h._)({},N),{tableMemoryList:e}))},onGenerating:A,botId:m}),(0,l.jsx)("div",{children:(0,l.jsx)(x.hU,{color:"secondary",icon:(0,l.jsx)(S.rmE,{className:"text-[20px] coz-fg-secondary"}),onClick:o})})]}),I?(0,l.jsx)(j,{type:"warning",persistentKey:"_coze_database_edit_warning",className:"mx-[-24px]",children:y.o.t("db_edit_tips1")}):null]}),footer:(0,l.jsxs)("div",{className:"coz-modal-footer",children:[(0,l.jsx)(x.zx,{color:"primary",onClick:()=>{if(i){i();return}},children:I?y.o.t("db_del_field_confirm_no"):y.o.t("db2_003")}),(0,l.jsx)(x.zx,{"data-testid":D.A.BotDatabaseAddModalSubmitBtn,loading:O,onClick:F,disabled:E,children:y.o.t("db_edit_save")})]}),children:(0,l.jsx)("div",{children:(0,l.jsx)(eg,{data:N,ref:B,loading:C,loadingTips:y.o.t("bot_database_ai_waiting"),botId:m,spaceId:g,creatorId:b,maxColumnNum:20,useComputingEnableGoToNextStep:(e,t)=>{if(t||e.filter(e=>!e.isSystemField).length>20){M(!0);return}M(!e.every(e=>{var t,r;if(!(null==e?void 0:e.errorMapper))return!0;return!((null===(t=e.errorMapper.name)||void 0===t?void 0:t.length)>0)&&!((null===(r=e.errorMapper.type)||void 0===r?void 0:r.length)>0)&&!0}))},createType:es.custom,hiddenTableBorder:!0,readAndWriteModeOptions:"expert",showDatabaseBaseInfo:c,onlyShowDatabaseInfoRWMode:d,onSave:L,onCancel:o,projectID:w,renderModeSelect:k})})})}var ex=r("214942"),eb=e=>{var t,{projectID:r,onFinish:n}=e,o=(0,u.useRef)(0),i=(0,d.EV)(),s=(0,ex.rY)(e=>e.getSpaceId()),a=null===(t=c.Z.useUserInfo())||void 0===t?void 0:t.user_id_str,[p,h]=(0,u.useState)({name:"",description:"",icon_uri:[{uri:"",url:"",uid:""}]}),f=(0,u.useMemo)(()=>{var e,t;return{tableId:"",name:null==p?void 0:p.name,desc:null==p?void 0:p.description,icon_uri:null===(t=p.icon_uri)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.uri,readAndWriteMode:Z.mx.LimitedReadWrite,tableMemoryList:[]}},[p]),m=()=>{x(),_(),o.current=0},{modal:g,open:y,close:x}=A({onSubmit:e=>{h(e),o.current=1,x(),k()},initValues:p,mode:C.CREATE}),{modal:b,open:w,close:_}=ev({onClose:()=>{console.log("open"),o.current=0,k()},onReturn:()=>{o.current=0,k(),_()},onSubmit:e=>{var t,r,{id:o,draft_id:s}=null!==(t=e.database_info)&&void 0!==t?t:{};if(o&&s){if(n){n(o,s);return}null===(r=i.toResource)||void 0===r||r.call(i,"database",o,{page_modal:"normal",from:"create"}),m()}},initValue:f,showDatabaseBaseInfo:!0,onlyShowDatabaseInfoRWMode:!0,extraParams:{spaceId:s,creatorId:a},projectID:r}),k=()=>{0===o.current?y():w()};return{modal:(0,l.jsxs)(l.Fragment,{children:[g,b]}),open:k,close:m}},ew=r("311807"),e_=r("974235"),ek=r("763055"),eC=r("197960"),eA=r("280053"),eO=r("951003"),eD=r("75991"),eS=e=>{var{label:t,onClick:r,selected:n}=e;return(0,l.jsxs)("div",{onClick:r,className:E()(["flex items-center gap-[8px] px-[12px]","px-[12px] py-[6px] rounded-[8px]","cursor-pointer","hover:text-[var(--light-usage-text-color-text-0,#1c1f23)]","hover:bg-[var(--light-usage-fill-color-fill-0,rgba(46,50,56,5%))]",n&&"text-[var(--light-usage-text-color-text-0,#1c1d23)] bg-[var(--light-usage-fill-color-fill-0,rgba(46,47,56,5%))]"]),children:[(0,l.jsx)(S.Iqn,{}),t]})},eT=r("367275"),eE=e=>{var[t,{setFalse:r,setTrue:n}]=(0,B.Z)(!1);return(0,l.jsx)(z.zx,(0,f._)((0,h._)({onMouseEnter:()=>{n()},onMouseLeave:()=>{r()}},e),{className:E()(eT.Z["database-added"],{[eT.Z["added-mousein"]]:t}),children:t?y.o.t("Remove"):y.o.t("Added")}))},eM=e=>{var{icon:t,title:r,description:n,isAdd:o,onClick:i,onAdd:s,onRemove:a}=e,u=()=>{if(o){null==a||a();return}null==s||s()};return(0,l.jsxs)("div",{onClick:i,className:"flex flex-row items-center p-[16px] border-t-0 border-l-0 border-r-0 border-b-[1px] border-solid coz-stroke-primary last:border-b-0 cursor-pointer",children:[(0,l.jsx)("img",{src:t,className:"w-[36px] h-[36px] rounded-[8px]"}),(0,l.jsxs)("div",{className:"flex flex-col ml-[12px] min-w-0 flex-grow",children:[(0,l.jsx)("p",{className:"text-[14px] font-medium leading-[20px] coz-fg-primary mb-[4px]",children:r}),(0,l.jsx)(z.ZT.Text,{ellipsis:{showTooltip:{opts:{content:n}}},className:"text-[12px] leading-[16px] coz-fg-secondary truncate !max-w-[680px]",children:n})]}),(0,l.jsx)("div",{className:"ml-[16px]",children:o?(0,l.jsx)(eE,{onClick:e=>{e.stopPropagation(),u()}}):(0,l.jsx)(z.zx,{"data-testid":"bot.database.add.modal.add.button",className:E()("w-[53px] flex justify-center items-center",eT.Z["database-add"]),onClick:e=>{e.stopPropagation(),u()},children:y.o.t("Add_2")})})]})},ej=e=>{var t,r,{visible:n,onClose:o,onAddDatabase:i,onRemoveDatabase:s,onClickDatabase:a,onCreateDatabase:d,enterFrom:m,botId:g,spaceId:b,workflowAddList:w=[],projectID:k,tips:C}=e,A=(0,y.D)(),O=c.Z.useUserInfo(),D=(0,u.useRef)(null),[S,T]=(0,u.useState)(k?"project":"library"),[M,j]=(0,u.useState)(!1),[N,P]=(0,u.useState)(!0),[B,I]=(0,u.useState)("all"),[L,F]=(0,u.useState)("create_time"),[X,W]=(0,u.useState)(""),[V,H]=(0,u.useState)({tableId:"",name:"",desc:"",icon_uri:"",readAndWriteMode:Z.mx.LimitedReadWrite,tableMemoryList:[]}),[U,q]=(0,u.useState)(!1);var Y=(t=(0,p._)(function*(e){var{key_word:t,filter_creator:r,page_offset:n,sort_by:o}=e,i=yield _.v6.ListDatabase((0,f._)((0,h._)({},"project"===S?{project_id:k}:{}),{bot_id:"bot"===m?g:"0",space_id:b,table_type:"bot"===m?Z.Nd.DraftTable:Z.Nd.OnlineTable,table_name:t,creator_id:"all"===r?"0":r,limit:50,offset:n,order_by:[{field:o,direction:Z.Sr.Desc}]}));return{list:i.database_info_list||[],nextOffset:n+1,total:i.total_count,hasMore:i.has_more}}),function(e){return t.apply(this,arguments)}),{loading:Q,data:G,loadingMore:$,reload:K}=(0,e_.Z)(e=>Y({key_word:X,filter_creator:B,page_offset:(null==e?void 0:e.nextOffset)||0,sort_by:L}),{manual:!0,isNoMore:e=>!!(!(null==e?void 0:e.total)||!e.hasMore),reloadDeps:[X,B,L,S,k],target:D}),J=()=>{if(!!D.current){var{scrollTop:e,scrollHeight:t,clientHeight:r}=D.current;t-(e+r)<1?P(!1):P(!0)}},ee=e=>{i&&e.id&&(null==i||i(e.id,K))},et=e=>{s&&e.id&&(null==s||s(e.id,K))},er=e=>{a&&e.id&&(null==a||a(e.id))},en=e=>{"template"===e?H((0,f._)((0,h._)({},V),{name:"reading_notes",desc:"for saving reading notes",readAndWriteMode:Z.mx.LimitedReadWrite,extra_info:{prompt_disabled:"true"},tableMemoryList:[{name:"name",desc:"",type:1,must_required:!0},{name:"section",desc:"",type:2,must_required:!0},{name:"note",desc:"",type:1,must_required:!0}]})):H({tableId:"",name:"",desc:"",readAndWriteMode:Z.mx.LimitedReadWrite,tableMemoryList:[]}),q(!0)},eo=()=>(0,l.jsxs)("div",{className:eT.Z["tips-wrapper"],children:[(0,l.jsxs)("div",{className:eT.Z["tip-title"],children:[y.o.t("db2_018"),":"]}),(0,l.jsxs)("p",{className:"my-[8px]",children:["\uD83D\uDCA1 ",(0,l.jsxs)("em",{className:eT.Z["tip-desc"],children:[y.o.t("db2_019"),":"]})]}),(0,l.jsx)(z.Ee,{height:136,src:"zh-CN"===A?eD:eO}),(0,l.jsxs)("div",{className:eT.Z["tip-title"],children:[y.o.t("db2_020"),":"]}),(0,l.jsxs)("div",{className:eT.Z["bot-bg"],children:[(0,l.jsxs)("div",{className:E()(eT.Z["bot-item"],"mb-[12px]"),children:[(0,l.jsx)("div",{className:E()(eT.Z["bot-img"],eT.Z["img-user"]),children:y.o.t("db2_021")}),(0,l.jsx)("div",{className:E()(eT.Z["bot-content"],eT.Z["content-user"]),children:y.o.t("db2_022")})]}),(0,l.jsxs)("div",{className:eT.Z["bot-item"],children:[(0,l.jsx)("div",{className:E()(eT.Z["bot-img"],eT.Z["img-bot"]),children:y.o.t("db2_023")}),(0,l.jsx)("div",{className:E()(eT.Z["bot-content"],eT.Z["content-bot"]),children:y.o.t("db2_024")})]})]})]}),ei=()=>(0,l.jsx)(x.II,{placeholder:y.o.t("db2_014"),className:"w-full",value:X,onChange:(0,ew.Z)(e=>{W(e)},500)}),es=()=>(0,l.jsx)("div",{className:"flex flex-row items-center w-full justify-between pr-[12px]",children:(0,l.jsxs)("div",{className:E()(eT.Z.select,"flex flex-row flex-1"),children:[(0,l.jsx)("div",{className:"flex flex-row items-center",children:(0,l.jsxs)(x.Ph,{showArrow:!0,size:"default",className:"border-none ml-[4px] hover:border-none bg-transparent outline-none",value:B,onChange:e=>I(e),insetLabel:(0,l.jsx)("p",{className:eT.Z.label,children:y.o.t("db2_009")}),children:[(0,l.jsx)(x.Ph.Option,{value:"all",label:y.o.t("db2_010")}),O?(0,l.jsx)(x.Ph.Option,{value:O.user_id_str,label:O.name},O.user_id_str):null]})}),(0,l.jsx)("div",{className:"flex flex-row items-center ml-[12px]",children:(0,l.jsxs)(x.Ph,{showArrow:!0,size:"default",className:"border-none ml-[4px] hover:border-none bg-transparent outline-none",value:L,onChange:e=>F(e),insetLabel:(0,l.jsx)("p",{className:eT.Z.label,children:y.o.t("db2_011")}),children:[(0,l.jsx)(x.Ph.Option,{value:"create_time",label:y.o.t("db2_012")}),(0,l.jsx)(x.Ph.Option,{value:"update_time",label:y.o.t("db2_013")})]})})]})}),ea=()=>(0,l.jsxs)("div",{className:"overflow-y-auto relative h-full",ref:D,onScroll:J,children:[null==G?void 0:G.list.map((e,t)=>(0,l.jsx)(eM,{icon:e.icon_url,title:e.table_name,description:e.table_desc,isAdd:"workflow"===m?!!(e.id&&(null==w?void 0:w.length)&&(null==w?void 0:w.includes(e.id))):!!e.is_added_to_bot,onClick:()=>er(e),onAdd:()=>ee(e),onRemove:()=>et(e)},t)),$?(0,l.jsxs)("div",{className:eT.Z["loading-more"],children:[(0,l.jsx)(eC.Z,{spin:!0,style:{marginRight:"4px"}}),(0,l.jsx)("div",{children:y.o.t("Loading")})]}):null]}),el=()=>(0,l.jsx)("div",{className:"overflow-y-auto relative w-full h-full flex justify-center items-center",children:(0,l.jsx)(x.HY,{image:(0,l.jsx)(ek.ts,{style:{width:150,height:150}})})}),eu=()=>{o()},ec=e=>{eu();var t,{id:r,draft_id:n}=null!==(t=e.database_info)&&void 0!==t?t:{};r&&n&&(null==d||d(r,n))};var ed=(r=(0,p._)(function*(){var e,t,r=yield _.MJ.GetIcon({format_type:eA.a5.Database});(null===(e=r.icon)||void 0===e?void 0:e.uri)&&H((0,f._)((0,h._)({},V),{icon_uri:null===(t=r.icon)||void 0===t?void 0:t.uri}))}),function(){return r.apply(this,arguments)});(0,u.useEffect)(()=>{n&&(K(),ed())},[n]);var{modal:ep,open:eh,close:ef}=eb({projectID:k,enterFrom:"library",onFinish:(e,t)=>{ef(),null==d||d(e,t)}}),em=()=>(0,l.jsxs)(l.Fragment,{children:[C,(0,l.jsx)(x.yC,{spinning:Q,wrapperClassName:E()(["overflow-hidden",eT.Z.list]),children:(null==G?void 0:G.list.length)!==0?ea():el()}),N?(0,l.jsx)("div",{className:E()(eT.Z["bottom-shadow"],"w-full h-[80px] absolute left-0 bottom-0","pointer-events-none")}):null]});return{renderDatabase:()=>(0,l.jsxs)(u.Fragment,{children:[ep,(0,l.jsx)(z.FS,{closable:!0,visible:n,onCancel:eu,header:y.o.t("db2_025"),filter:es(),sider:(0,l.jsxs)(z.yh,{className:"!pt-[16px]",children:[(0,l.jsxs)(z.yh.Header,{className:"mb-[16px] gap-[12px]",children:[ei(),(0,l.jsx)(x.Lt,{trigger:"custom",visible:M,render:(0,l.jsxs)(x.Lt.Menu,{className:"w-[196px]",children:[(0,l.jsx)(x.Lt.Item,{className:"!pl-[8px]",onClick:()=>{j(!1),eh()},children:y.o.t("db2_015")}),(0,l.jsx)(x.Lt.Item,{className:"!pl-[8px] [&_.coz-item-text]:w-full",onClick:()=>{j(!1),en("template")},children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("span",{children:y.o.t("db2_016")}),(0,l.jsx)(x.J2,{style:{maxWidth:"460px",backgroundColor:"var(--Bg-COZ-bg-max, #363D4D)",boxShadow:"0 4px 12px 0 rgba(0, 0, 0, 8%), 0 8px 24px 0 rgba(0, 0, 0, 4%)"},trigger:"hover",content:eo(),zIndex:9999,showArrow:!0,children:(0,l.jsx)(x.Vp,{color:"primary",size:"small",className:"ml-[8px]",children:y.o.t("db2_017")})})]})})]}),onClickOutSide:()=>{j(!1)},children:(0,l.jsx)(x.zx,{color:"brand",iconPosition:"right",icon:(0,l.jsx)(R.Wdl,{}),onClick:()=>j(!0),children:y.o.t("db_add_table_title")})})]}),(0,l.jsxs)(z.yh.Content,{className:"flex flex-col gap-[4px]",children:[(0,l.jsx)(eS,{label:y.o.t("project_resource_modal_library_resources",{resource:y.o.t("resource_type_database")}),onClick:()=>{T("library")},selected:"library"===S}),k?(0,l.jsx)(eS,{label:y.o.t("project_resource_modal_project_resources",{resource:y.o.t("resource_type_database")}),onClick:()=>{T("project")},selected:"project"===S}):null]})]}),content:(0,l.jsx)(z.vy,{className:"relative px-[12px] gap-[16px]",children:em()})}),(0,l.jsx)(ey,{visible:U,onClose:()=>q(!1),onReturn:()=>q(!1),onSubmit:ec,showDatabaseBaseInfo:!0,onlyShowDatabaseInfoRWMode:!1,initValue:V,extraParams:{botId:g,spaceId:b,creatorId:null==O?void 0:O.user_id_str}})]}),renderContent:em,renderInput:ei,renderFilter:es}},eN=e=>{var{renderDatabase:t}=ej(e);return(0,l.jsx)(l.Fragment,{children:t()})},eP=r("157728"),eB=r("997516");var eI=((s={}).Structure="structure",s.Draft="draft",s.Online="online",s),eL=()=>(0,l.jsx)(l.Fragment,{});(0,x.Q2)(eL,{valueKey:"value",onKeyChangeFnName:"onChange"});var eF=()=>(0,l.jsx)(l.Fragment,{}),ez=r("40009"),eR=r("955751");function eX(e){var{loading:t,fieldList:r}=e,n=[{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_name"),tip:(0,l.jsxs)("article",{className:"w-[494px]",children:[(0,l.jsx)("p",{className:"mb-[8px]",children:y.o.t("db_add_table_field_name_tips")}),(0,l.jsx)(x.Ee,{preview:!1,width:494,height:163,src:ez})]})}),dataIndex:"name",width:261},{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_desc"),tip:(0,l.jsx)("article",{className:"w-[327px]",children:y.o.t("db_add_table_field_desc_tips")})}),dataIndex:"desc"},{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_type"),tip:(0,l.jsx)("article",{className:"w-[327px]",children:y.o.t("db_add_table_field_type_tips")})}),dataIndex:"type",width:214,render:(e,t)=>{var r,n;return null!==(n=null===(r=$.find(e=>e.value===t.type))||void 0===r?void 0:r.label)&&void 0!==n?n:t.type}},{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_necessary"),tip:(0,l.jsxs)("article",{className:"w-[327px]",children:[(0,l.jsx)("p",{children:y.o.t("db_add_table_field_necessary_tips1")}),(0,l.jsx)("p",{children:y.o.t("db_add_table_field_necessary_tips2")})]})}),dataIndex:"must_required",width:108,render:(e,t)=>y.o.t(t.must_required?"db_optimize_037":"db_optimize_038")}],o=er.concat(r),[i,s]=(0,u.useState)(0),a=(0,u.useRef)(null);return(0,u.useEffect)(()=>{var e=new ResizeObserver(e=>{for(var t of e)t.target===a.current&&s(t.contentRect.height)});return a.current&&e.observe(a.current),()=>e.disconnect()},[]),(0,l.jsx)("div",{className:"h-full mt-[8px]",ref:a,children:(0,l.jsx)(x.iA,{tableProps:{loading:t,columns:n,dataSource:o,scroll:{y:i>40?i-40:"auto"}},className:eR.Z["table-structure-wrapper"]})})}var eZ=r("735114"),eW=r("479886"),eV=r.n(eW),eH=BigInt("9223372036854775807"),eU=BigInt("-9223372036854775808"),eq=e=>{if(""===e||null==e||Number.isNaN(e))return!1;try{var t=BigInt(e);if(t>eH||t<eU)return!1;return!0}catch(e){return!1}},eY={0x9896f2:"10000120",0x9896f3:"10000121"};function eQ(){var e,t,{includeMigrated:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{space_id:n}=(0,eP.useParams)(),[o]=(0,eP.useSearchParams)(),i=null!==(e=null!=n?n:o.get("space_id"))&&void 0!==e?e:"",{data:s}=(0,eZ.Z)((0,p._)(function*(){var e=(yield _.v6.GetConnectorName({SpaceId:i,Version:"inhouse",ListAll:!0})).ConnectorList;return null==e?void 0:e.map(t=>{var r,n,o,i=null!==(n=null===(r=t.ConnectorID)||void 0===r?void 0:r.toString())&&void 0!==n?n:"";if(eY[i]){var s=e.find(e=>{var t;return(null===(t=e.ConnectorID)||void 0===t?void 0:t.toString())===eY[i]});if(null==s?void 0:s.ConnectorName)return{label:s.ConnectorName,value:i,migrated:!0}}return{label:null!==(o=t.ConnectorName)&&void 0!==o?o:"",value:i}})}),{refreshDeps:[i],cacheKey:"db_connector_name_".concat(i)});return null!==(t=r?s:null==s?void 0:s.filter(e=>!e.migrated))&&void 0!==t?t:[]}var eG=(0,x.Q2)(x.Kx),e$=(0,x.Q2)(x.k7),eK=(0,x.Q2)(e=>(0,l.jsx)(x.Mt,(0,f._)((0,h._)({},e),{type:"dateTime",format:"yyyy-MM-dd HH:mm:ss",onChange:t=>{var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,eV()(t).format("YYYY-MM-DD HH:mm:ss"))}}))),eJ=(0,x.Q2)(x.Ph);function e0(e){return Object.fromEntries(Object.values(e).map(e=>{var t,r;return[e.fieldName,null!==(r=null===(t=e.value)||void 0===t?void 0:t.toString())&&void 0!==r?r:""]}))}function e1(e){var{visible:t,fields:r,tableType:n,initialValues:o,onSubmit:i,onCancel:s}=e,a="object"!=typeof o,[c,d]=(0,u.useState)(!1),m=(0,u.useRef)(null);(0,u.useEffect)(()=>{if(t&&o){var e,r;null===(r=m.current)||void 0===r||null===(e=r.formApi)||void 0===e||e.setValues(e0(o))}},[t,o]);var g=eQ();return(0,l.jsx)(x.u_,{visible:t,title:y.o.t(a?"db_optimize_022":"db_optimize_023"),okText:y.o.t(a?"db_optimize_025":"db_edit_save"),okButtonProps:{loading:c},onOk:(0,p._)(function*(){d(!0);try{var e,t,r,n,s=yield null===(r=m.current)||void 0===r?void 0:null===(t=r.formApi)||void 0===t?void 0:t.validate();if(s){;yield i(Object.assign(o?e0(o):{},(e=s,Object.fromEntries(Object.entries(e).map(e=>{var t,[r,n]=e;return[r,null!==(t=null==n?void 0:n.toString())&&void 0!==t?t:""]})))),null==o?void 0:null===(n=o.bstudio_connector_id)||void 0===n?void 0:n.value)}}finally{d(!1)}}),cancelText:y.o.t("db_optimize_024"),onCancel:()=>{var e,t;s(),null===(t=m.current)||void 0===t||null===(e=t.formApi)||void 0===e||e.reset()},children:(0,l.jsxs)(x.l0,{allowEmpty:!0,ref:m,children:[n===Z.Nd.OnlineTable?(0,l.jsx)(eJ,(0,f._)((0,h._)({},function(e){var t,r;return{key:e.name,field:null!==(r=en[null!==(t=e.name)&&void 0!==t?t:""])&&void 0!==r?r:"",label:(0,l.jsx)(eo,{field:e.name,textType:"primary",type:e.type,tip:e.desc,required:!0})}}(et)),{optionList:g,className:"w-full"})):null,r.map(e=>{var t=function(e){return{key:e.fieldName,field:e.fieldName,rules:[{required:e.required}],label:{text:(0,l.jsx)(eo,{field:e.fieldName,textType:"primary",type:e.type,tip:e.fieldDescription,required:e.required}),required:!1}}}(e);switch(e.type){case G.wp.Text:return(0,l.jsx)(eG,(0,f._)((0,h._)({},t),{autosize:{minRows:1,maxRows:5}}));case G.wp.Number:return(0,l.jsx)(x.l0.Input,(0,f._)((0,h._)({},t),{className:E()("w-full","[&_.semi-input-wrapper]:coz-stroke-plus","focus-within:[&_.semi-input-wrapper]:coz-stroke-hglt","[&_.semi-input-wrapper.semi-input-wrapper-error]:coz-stroke-hglt-red"),validate:e=>{var t;return eq(null!==(t=null==e?void 0:e.toString())&&void 0!==t?t:"")?"":"invalid Integer"}}));case G.wp.Date:return(0,l.jsx)(eK,(0,f._)((0,h._)({},t),{className:E()("w-full","[&_.semi-datepicker-input]:w-full","[&_.coz-date-picker-select]:w-full","[&[aria-invalid]_.coz-date-picker-select]:coz-stroke-hglt-red")}));case G.wp.Float:return(0,l.jsx)(e$,(0,f._)((0,h._)({},t),{className:E()("w-full","[&_.semi-input-wrapper]:coz-stroke-plus","focus-within:[&_.semi-input-wrapper]:coz-stroke-hglt","[&_.semi-input-wrapper.semi-input-wrapper-error]:coz-stroke-hglt-red"),validate:e=>Number.isNaN(e)||Math.abs(e)===1/0?"invalid Float":""}));case G.wp.Boolean:return(0,l.jsx)(eJ,(0,f._)((0,h._)({},t),{optionList:[{value:"true",label:"true"},{value:"false",label:"false"}],className:"w-full"}));default:return null}})]})})}var e2=e=>"column-selection"===e.key?(0,f._)((0,h._)({},e),{resizable:!1,width:60}):e.fixed?(0,f._)((0,h._)({},e),{resizable:!1}):(0,f._)((0,h._)({},e),{width:100>Number(e.width)?100:Number(e.width)}),e4=r("537714"),e5=r("47522"),e6=r("771242");function e3(e){var t,{databaseId:r,tableType:n,unitList:o,onUnitListChange:i}=e;(0,u.useEffect)(()=>{i(o)},[i,o]);var s=(t=(0,p._)(function*(){var e=yield _.v6.GetDatabaseTemplate({database_id:r,table_type:n});e.TosUrl&&window.open(e.TosUrl,"_blank")}),function(){return t.apply(this,arguments)});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e6.p,{unitList:o,setUnitList:i,onFinish:i,limit:1,multiple:!1,accept:".csv,.xlsx",maxSizeMB:20,showRetry:!1,dragMainText:y.o.t("datasets_createFileModel_step2_UploadDoc"),dragSubText:y.o.t("datasets_unit_update_exception_tips3"),action:"",className:E()("[&_.semi-upload-drag-area]:!h-[290px]",{hidden:o.length>0}),showIllustration:!1}),(0,l.jsxs)(x.ZT.Paragraph,{type:"secondary",className:E()("mt-[8px]",{hidden:o.length>0}),children:[y.o.t("db_optimize_018"),(0,l.jsx)(x.ZT.Text,{link:!0,className:"ml-[8px]",onClick:s,children:y.o.t("db_optimize_019")})]}),(0,l.jsx)(e6.nC,{edit:!1,type:e4.Cm.TABLE_DOC,unitList:o,onChange:i,disableRetry:!0,getColumns:(e,t)=>({actions:[(0,l.jsx)(e5.Zq,{record:e,index:t,params:{unitList:o,onChange:i,type:e4.Cm.TABLE_DOC,edit:!1}})]})})]})}var e8=r("561119"),e9=r("298203"),e7={[e8.N.Processing]:"datasets_createFileModel_step4_processing",[e8.N.Complete]:"datasets_createFileModel_step4_Finish",[e8.N.Failed]:"datasets_createFileModel_step4_failed"};function te(e){var{databaseId:t,tableType:r,fileItem:n,tableSheet:o,connectorId:i}=e,s=(0,u.useMemo)(()=>{var e,t;return(0,e9.td)(null!==(t=null===(e=n.fileInstance)||void 0===e?void 0:e.size)&&void 0!==t?t:0)},[n]),[a,c]=(0,u.useState)({mainText:n.name,subText:s,tipText:s,percent:10,status:e8.N.Processing}),{run:d,cancel:p}=(0,eZ.Z)(()=>_.v6.DatabaseFileProgressData({database_id:t,table_type:r}),{manual:!0,pollingInterval:3e3,onSuccess:e=>{var{data:t}=e;if(t){if(t.status_descript){var r=t.status_descript;c(e=>(0,f._)((0,h._)({},e),{subText:r,tipText:r,status:e8.N.Failed})),p()}else c(e=>{var r;return(0,f._)((0,h._)({},e),{percent:null!==(r=t.progress)&&void 0!==r?r:0})}),100===t.progress&&(c(e=>(0,f._)((0,h._)({},e),{status:e8.N.Complete,actions:[y.o.t("datasets_unit_process_success")]})),p())}}});return(0,u.useEffect)(()=>{_.v6.SubmitDatabaseInsertTask({database_id:t,table_type:r,file_uri:n.uri,table_sheet:o,connector_id:i}).finally(()=>{d()})},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"h-[32px] leading-[32px] mb-[8px]",children:(0,l.jsx)(x.ZT.Text,{fontSize:"14px",weight:500,children:y.o.t(e7[a.status])})}),(0,l.jsx)(e6.vS,(0,f._)((0,h._)({avatar:(0,l.jsx)(R.$lV,{})},a),{className:"[&_.process-progress-item-actions]:!block"}))]})}var tt=r("392902"),tr=r("672958"),tn=r("594022"),to=r("532267");function ti(e){var t,r,n,o,{databaseId:i,tableFields:s,fileUri:a,tableSheet:c}=e,[d,p]=(0,u.useState)(),h=(0,u.useMemo)(()=>s.map((e,t)=>({column_name:e.fieldName,column_type:function(e){switch(e){case to.wp.Text:return tn.QD.Text;case to.wp.Number:return tn.QD.Number;case to.wp.Date:return tn.QD.Date;case to.wp.Float:return tn.QD.Float;case to.wp.Boolean:return tn.QD.Boolean;default:return tn.QD.Text}}(e.type),desc:e.fieldDescription,sequence:"".concat(t),is_semantic:!1,id:"".concat(t)})),[s]),{loading:f}=(0,eZ.Z)(()=>_.v6.GetTableSchema({database_id:i,source_file:{tos_uri:a},table_data_type:tr.n.OnlyPreview,table_sheet:c}),{onSuccess:e=>{var t,r=null==c?void 0:c.sheet_id;r&&p({sheet_list:e.sheet_list,table_meta:{[r]:h},preview_data:{[r]:null!==(t=e.preview_data)&&void 0!==t?t:[]}})}});return!f&&d&&c?(0,l.jsx)(tt.IO,{data:d,settings:{sheet_id:Number.parseInt(null!==(r=null==(t=c)?void 0:t.sheet_id)&&void 0!==r?r:"0"),header_line_idx:Number.parseInt(null!==(n=null==t?void 0:t.header_line_idx)&&void 0!==n?n:"0"),start_line_idx:Number.parseInt(null!==(o=null==t?void 0:t.start_line_idx)&&void 0!==o?o:"0")}}):(0,l.jsx)(x.yC,{size:"large",wrapperClassName:"w-full h-[288px]"})}function ts(e){var t,r,n,o,i,s;return{sheet_id:null!==(o=null==e?void 0:null===(t=e.sheet_id)||void 0===t?void 0:t.toString())&&void 0!==o?o:"",header_line_idx:null!==(i=null==e?void 0:null===(r=e.header_line_idx)||void 0===r?void 0:r.toString())&&void 0!==i?i:"",start_line_idx:null!==(s=null==e?void 0:null===(n=e.start_line_idx)||void 0===n?void 0:n.toString())&&void 0!==s?s:""}}function ta(e){var{databaseId:t,tableType:r,tableFields:n,fileUri:o,onTableSheetChange:i}=e,[s,a]=(0,u.useState)(),[c,d]=(0,u.useState)({sheet_id:0,header_line_idx:0,start_line_idx:1}),[p,h]=(0,u.useState)([]),{loading:f}=(0,eZ.Z)(()=>_.v6.GetTableSchema({database_id:t,source_file:{tos_uri:o},table_data_type:tr.n.OnlySchema,table_sheet:ts(c)}),{refreshDeps:[o,c],onSuccess:e=>{a({sheet_list:e.sheet_list,preview_data:{}}),e.table_meta&&h(e.table_meta.map(e=>{var t,r,o=n.find(t=>t.fieldName===e.column_name);return null!=o?o:{fieldName:null!==(t=e.column_name)&&void 0!==t?t:"-",fieldDescription:null!==(r=e.desc)&&void 0!==r?r:"-",type:function(e){switch(e){case b.QD.Text:return G.wp.Text;case b.QD.Number:return G.wp.Number;case b.QD.Date:return G.wp.Date;case b.QD.Float:return G.wp.Float;case b.QD.Boolean:return G.wp.Boolean;default:return G.wp.Text}}(e.column_type),required:!1}}))}});return(0,u.useEffect)(()=>{_.v6.ValidateTableSchema({database_id:t,source_file:{tos_uri:o},table_type:r,table_sheet:ts(c)}).then(e=>{e.schema_valid_result?i():i(ts(c))}).catch(()=>{i()})},[c]),s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tt.tM,{data:s,tableSettings:c,setTableSettings:d}),(0,l.jsx)(x.iA,{tableProps:{loading:f,columns:function(){return[{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_name")}),render:(e,t)=>t.fieldName},{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_desc")}),render:(e,t)=>t.fieldDescription},{title:(0,l.jsx)(eo,{field:y.o.t("db_add_table_field_type")}),render:(e,t)=>{var r,n;return null!==(n=null===(r=$.find(e=>e.value===t.type))||void 0===r?void 0:r.label)&&void 0!==n?n:"-"}}]}(),dataSource:p},className:E()("[&_.semi-table-row-head]:!border-b-[1px]","[&_.semi-table-row-cell]:!h-[56px]","[&_.semi-table-row-cell]:!border-b-0","[&_.semi-table-row-cell]:!bg-none","[&_.semi-table-row-cell]:!bg-transparent")})]}):(0,l.jsx)(x.yC,{size:"large",wrapperClassName:"w-full h-[288px]"})}var tl=((a={})[a.Upload=0]="Upload",a[a.Config=1]="Config",a[a.Preview=2]="Preview",a[a.Process=3]="Process",a);function tu(e){var{step:t}=e;return(0,l.jsxs)(x.Rg,{type:"basic",hasLine:!1,current:t,className:E()("my-[24px] justify-center","[&_.semi-steps-item]:flex-none","[&_.semi-steps-item-title]:!max-w-[unset]"),children:[(0,l.jsx)(x.Rg.Step,{title:y.o.t("db_optimize_014")}),(0,l.jsx)(x.Rg.Step,{title:y.o.t("db_optimize_015")}),(0,l.jsx)(x.Rg.Step,{title:y.o.t("db_optimize_016")}),(0,l.jsx)(x.Rg.Step,{title:y.o.t("db_optimize_017")})]})}function tc(e){var{visible:t,databaseId:r,tableFields:n,tableType:o,connectorId:i,onClose:s,onComplete:a}=e,[c,d]=(0,u.useState)(tl.Upload),[p,h]=(0,u.useState)([]),[f,m]=(0,u.useState)(),g=()=>{d(tl.Upload),h([]),m(void 0)};return(0,l.jsxs)(x.u_,{visible:t,title:y.o.t("db_optimize_013"),onCancel:s,width:1120,className:"[&_.semi-modal-content]:min-h-[520px]",footer:(0,l.jsx)(l.Fragment,{children:c!==tl.Process?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.zx,{color:"primary",disabled:c===tl.Upload,onClick:()=>d(c-1),children:y.o.t("db_optimize_020")}),(0,l.jsx)(x.zx,{disabled:(()=>{switch(c){case tl.Upload:return p.length<=0||p.some(e=>e.status!==e4.Dm.SUCCESS);case tl.Config:return!f;case tl.Preview:case tl.Process:default:return!1}})(),onClick:()=>d(c+1),children:y.o.t("db_optimize_021")})]}):(0,l.jsx)(x.zx,{onClick:()=>{null==s||s(),null==a||a(),g()},children:y.o.t("db2_004")})}),children:[(0,l.jsx)(tu,{step:c}),c===tl.Upload?(0,l.jsx)(e3,{databaseId:r,tableType:o,unitList:p,onUnitListChange:h}):null,c===tl.Config?(0,l.jsx)(ta,{databaseId:r,tableFields:n,tableType:o,fileUri:p[0].uri,onTableSheetChange:m}):null,c===tl.Preview?(0,l.jsx)(ti,{databaseId:r,tableFields:n,fileUri:p[0].uri,tableSheet:f}):null,c===tl.Process?(0,l.jsx)(te,{databaseId:r,tableType:o,fileItem:p[0],tableSheet:f,connectorId:i}):null]})}function td(e){var{readonly:t,databaseId:r,tableType:n,tableFields:o,onNewRow:i,onRefresh:s}=e,[a,c]=(0,u.useState)(!1),[d,h]=(0,u.useState)(!1),[f,m]=(0,u.useState)(),g=eQ(),b=e=>{c(!1),h(!0),m(e)};return(0,l.jsxs)("div",{className:"flex gap-[8px] mt-[8px] mb-[12px]",children:[(0,l.jsx)(x.zx,{color:"secondary",icon:(0,l.jsx)(S.PwN,{className:t?"":"coz-fg-hglt"}),disabled:t,onClick:i,children:(0,l.jsx)("span",{className:t?"":"coz-fg-hglt",children:y.o.t("db_optimize_022")})}),n===Z.Nd.DraftTable?(0,l.jsx)(x.zx,{color:"secondary",icon:(0,l.jsx)(S.nBN,{}),disabled:t,onClick:()=>b(),children:y.o.t("db_optimize_013")}):(0,l.jsx)(x.Lt,{trigger:"custom",visible:a,onClickOutSide:()=>c(!1),position:"bottomLeft",render:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.Lt.Title,{className:"pl-[32px] border-0 border-b border-solid coz-stroke-primary",children:y.o.t("database_optimize_100")}),(0,l.jsx)("div",{className:"min-w-[170px] max-h-[220px] overflow-auto",children:(0,l.jsx)(x.Lt.Menu,{children:g.map(e=>(0,l.jsx)(x.Lt.Item,{onClick:()=>b(e.value),children:e.label},e.value))})})]}),children:(0,l.jsxs)(x.zx,{color:"secondary",icon:(0,l.jsx)(S.nBN,{}),disabled:t,onClick:()=>c(!0),children:[(0,l.jsx)("span",{children:y.o.t("db_optimize_013")}),(0,l.jsx)(S.Wdl,{className:"ml-[4px]"})]})}),(0,l.jsx)("div",{className:"ml-auto"}),n===Z.Nd.DraftTable?(0,l.jsx)(x.zx,{color:"secondary",icon:(0,l.jsx)(S.dVD,{}),disabled:t,onClick:()=>x.u_.confirm({title:y.o.t("dialog_240305_01"),content:y.o.t("dialog_240305_02"),okText:y.o.t("dialog_240305_03"),okButtonColor:"red",cancelText:y.o.t("dialog_240305_04"),onOk:(0,p._)(function*(){yield _.v6.ResetBotTable({database_info_id:r,table_type:n}),s()})}),children:y.o.t("db_optimize_011")}):null,(0,l.jsx)(x.zx,{color:"secondary",icon:(0,l.jsx)(S.mxP,{}),onClick:s,children:y.o.t("db_optimize_012")}),(0,l.jsx)(tc,{visible:d,databaseId:r,tableFields:o,tableType:n,connectorId:f,onClose:()=>h(!1),onComplete:s})]})}var tp={id:200,sys_platform:180,uuid:260,bstudio_create_time:200};function th(e){var t,{value:r}=e,n=null!==(t=null==r?void 0:r.toString())&&void 0!==t?t:"";return(0,l.jsx)(x.ZT.Text,{ellipsis:{showTooltip:{opts:{className:E()("[&_.semi-tooltip-content]:max-h-[110px]","[&_.semi-tooltip-content]:line-clamp-5")}}},children:n})}var tf=e=>{var{fieldList:t,connectorNames:r,isReadonlyMode:n,handleEditRow:o,handleDeleteRow:i}=e,s=[];return s.push(...er.map(e=>{var t,n,o;return{title:()=>(0,l.jsx)(eo,{field:e.name,type:e.type,tip:e.desc,required:!0}),dataIndex:en[null!==(t=e.name)&&void 0!==t?t:""],width:null!==(o=tp[null!==(n=e.name)&&void 0!==n?n:""])&&void 0!==o?o:260,render:e=>{var t;return"bstudio_connector_id"===e.fieldName?(0,l.jsx)(x.ZT.Text,{ellipsis:!0,children:null!==(t=r[e.value])&&void 0!==t?t:e.value}):(0,l.jsx)(th,{value:e.value})}}})),s.push(...t.map(e=>({title:()=>(0,l.jsx)(eo,{field:e.fieldName,type:e.type,tip:e.fieldDescription,required:e.required}),dataIndex:e.fieldName,width:260,render:e=>(0,l.jsx)(th,{value:null==e?void 0:e.value})}))),s.push({title:y.o.t("db_table_0126_021"),width:100,resize:!1,fixed:"right",render:(e,t,r)=>n?(0,l.jsxs)(x.T,{children:[(0,l.jsx)(x.hU,{disabled:!0,icon:(0,l.jsx)(S.JAz,{}),size:"small",color:"secondary"}),(0,l.jsx)(x.hU,{disabled:!0,icon:(0,l.jsx)(S.dVD,{}),size:"small",color:"secondary"})]}):(0,l.jsxs)(x.T,{children:[(0,l.jsx)(x.hU,{icon:(0,l.jsx)(S.JAz,{}),size:"default",color:"secondary",onClick:()=>o(t)}),(0,l.jsx)(x.gn,{title:y.o.t("db_optimize_026"),content:y.o.t("db_optimize_027"),okText:y.o.t("db_optimize_028"),okButtonColor:"red",cancelText:y.o.t("db_optimize_029"),onConfirm:()=>i(t),children:(0,l.jsx)(x.hU,{icon:(0,l.jsx)(S.dVD,{}),size:"default",color:"secondary"})})]})}),s};function tm(e){var{selectedCount:t=0,onDelete:r,onCancel:n}=e;return(0,l.jsxs)("div",{className:E()("flex items-center p-[8px] gap-[8px] rounded-[12px]","coz-bg-max border-solid coz-stroke-primary coz-shadow-default","fixed bottom-[8px] left-[50%] translate-x-[-50%] z-10",{hidden:t<=0}),children:[(0,l.jsx)(x.ZT.Text,{type:"secondary",children:y.o.t("db_optimize_031",{n:t})}),(0,l.jsx)(x.iz,{layout:"vertical"}),(0,l.jsx)(x.zx,{color:"red",icon:(0,l.jsx)(S.dVD,{}),onClick:r,children:y.o.t("db_optimize_030")}),(0,l.jsx)(x.iz,{layout:"vertical"}),(0,l.jsx)(x.hU,{color:"secondary",icon:(0,l.jsx)(S.rmE,{}),onClick:n})]})}var tg=r("873688");function tv(e){var t,r,{databaseId:n,tableType:o,tableFields:i,isReadonlyMode:s,enterFrom:a,onAfterEditRecords:c}=e,d=(0,u.useMemo)(()=>i.map(e=>{var t,r,n,o;return{fieldName:null!==(t=e.name)&&void 0!==t?t:"",fieldDescription:null!==(r=e.desc)&&void 0!==r?r:"",required:null!==(n=e.must_required)&&void 0!==n&&n,type:null!==(o=e.type)&&void 0!==o?o:G.wp.Text}}),[i]),[f,m]=(0,u.useState)(20),[g,b]=(0,u.useState)(1),[w,k]=(0,u.useState)(0),[C,A]=(0,u.useState)([]),{loading:O,refresh:D}=(0,eZ.Z)(()=>_.v6.ListDatabaseRecords({database_id:n,table_type:o,offset:(g-1)*f,limit:f}),{onSuccess:e=>{k(e.TotalNum),A(e.data)},refreshDeps:[n,o,f,g]}),S=(0,u.useMemo)(()=>{var e;return e=d,C.map(t=>{var r=Object.keys(t),n={};return r.forEach(r=>{var o=e.find(e=>e.fieldName===r);if(!o){n[r]={fieldName:r,type:G.wp.Text,required:!0,value:t[r]};return}switch(o.type){case G.wp.Boolean:n[r]={fieldName:r,value:t[r],type:G.wp.Boolean,required:o.required};break;case G.wp.Number:n[r]={fieldName:r,value:t[r],type:G.wp.Number,required:o.required};break;case G.wp.Date:n[r]={fieldName:r,value:t[r],type:G.wp.Date,required:o.required};break;case G.wp.Float:n[r]={fieldName:r,value:t[r],type:G.wp.Float,required:o.required};break;case G.wp.Text:n[r]={fieldName:r,value:t[r],type:G.wp.Text,required:o.required}}}),n})},[d,C]),T=()=>{D(),null==c||c()},M=eQ({includeMigrated:!0}),j=(0,u.useMemo)(()=>Object.fromEntries(M.map(e=>[e.value,e.label])),[M]),[N,P]=(0,u.useState)([]),[B,I]=(0,u.useState)(!1),[L,F]=(0,u.useState)(),z=e=>{F(e),I(!0)};var R=(t=(0,p._)(function*(e,t){t?yield _.v6.UpdateDatabaseRecords({database_id:n,table_type:o,record_data_alter:[e],ori_connector_id:t}):yield _.v6.UpdateDatabaseRecords({database_id:n,table_type:o,record_data_add:[e]}),I(!1),F(void 0),T()}),function(e,r){return t.apply(this,arguments)});var X=(r=(0,p._)(function*(e){yield _.v6.UpdateDatabaseRecords({database_id:n,table_type:o,record_data_delete:[{bstudio_id:e.bstudio_id.value}]}),T()}),function(e){return r.apply(this,arguments)}),Z=(0,u.useMemo)(()=>tf({fieldList:d,isReadonlyMode:s,connectorNames:j,handleDeleteRow:X,handleEditRow:z}),[d,s,j]),[W,V]=(0,u.useState)(0),H=(0,u.useRef)(null);return(0,u.useEffect)(()=>{var e=new ResizeObserver(e=>{for(var t of e)t.target===H.current&&V(t.contentRect.height)});return H.current&&e.observe(H.current),()=>e.disconnect()},[]),(0,l.jsxs)("div",{className:tg.Z.table,ref:H,children:[(0,l.jsx)(td,{readonly:s,databaseId:n,tableType:o,tableFields:d,onNewRow:()=>z(),onRefresh:D}),(0,l.jsx)(x.iA,{tableProps:{loading:O,columns:Z,dataSource:S,rowSelection:{fixed:!0,selectedRowKeys:N.map(e=>{var t;return null===(t=e.bstudio_id)||void 0===t?void 0:t.value}),onChange:(e,t)=>P(null!=t?t:[])},resizable:{onResize:e2},rowKey:e=>{var t;return null==e?void 0:null===(t=e.bstudio_id)||void 0===t?void 0:t.value},scroll:{y:W>128?W-128:"auto"},pagination:{total:w,currentPage:g,pageSize:f,onChange:(e,t)=>{b(e),m(t),P([])}},renderPagination:e=>(0,l.jsxs)("div",{className:"w-full flex gap-[8px] items-center justify-end",children:[(0,l.jsx)(x.ZT.Text,{type:"secondary",fontSize:"12px",children:y.o.t("db_optimize_032",{n:w})}),(0,l.jsx)(x.iz,{layout:"vertical",className:"h-[16px]"}),(0,l.jsx)(x.U8,(0,h._)({size:"small",showSizeChanger:!0,pageSizeOpts:[20,50,100]},e))]})},wrapperClassName:E()(tg.Z["table-wrapper"],{[tg.Z["table-wrapper-project"]]:"project"===a}),empty:(0,l.jsx)(x.HY,{image:(0,l.jsx)(ek.ts,{className:"w-[140px] h-[140px]"}),title:y.o.t("timecapsule_0108_003")}),indexRowSelection:!0}),(0,l.jsx)(tm,{selectedCount:N.length,onDelete:()=>x.u_.confirm({title:y.o.t("db_optimize_026"),content:y.o.t("db_optimize_027"),okText:y.o.t("dialog_240305_03"),okButtonColor:"red",cancelText:y.o.t("dialog_240305_04"),onOk:(0,p._)(function*(){yield _.v6.UpdateDatabaseRecords({database_id:n,table_type:o,record_data_delete:N.map(e=>({bstudio_id:e.bstudio_id.value}))}),P([]),T()})}),onCancel:()=>P([])}),(0,l.jsx)(e1,{fields:d,visible:B,tableType:o,initialValues:L,onSubmit:R,onCancel:()=>I(!1)})]})}var ty=r("175706"),tx=e=>{var t,r,n,o,i,s,a,d,{version:m,enterFrom:g,initialTab:b,needHideCloseIcon:w=!1,addRemoveButtonText:k,onClose:A,onClickAddRemoveButton:T,onIDECallback:M,onAfterEditBasicInfo:N,onAfterEditRecords:P,databaseId:B}=e,I=null===(i=c.Z.useUserInfo())||void 0===i?void 0:i.user_id_str,[L,F]=(0,u.useState)(!1),[z,R]=(0,u.useState)(!1),[X,W]=(0,u.useState)({}),[V,H]=(0,u.useState)(m?eI.Structure:null!=b?b:eI.Structure),[U,q]=(0,u.useState)(!1),[Y,Q]=(0,u.useState)(!0);var G=(t=(0,p._)(function*(){try{Q(!0);var e,t,r,n,o=yield _.v6.GetDatabaseByID((0,h._)({id:B},m?{version:m}:{}));o.database_info?(W(o.database_info),o.database_info.table_name&&(null==M||null===(t=M.onUpdateDisplayName)||void 0===t||t.call(M,o.database_info.table_name),null==M||null===(r=M.onStatusChange)||void 0===r||r.call(M,"normal"))):null==M||null===(n=M.onStatusChange)||void 0===n||n.call(M,"error")}catch(t){null==M||null===(e=M.onStatusChange)||void 0===e||e.call(M,"error")}finally{Q(!1)}}),function(){return t.apply(this,arguments)}),$=X.creator_id!==I||!!m,K=(0,u.useMemo)(()=>({tableId:X.id||"",name:X.table_name||"",desc:X.table_desc||"",icon_uri:X.icon_uri||"",readAndWriteMode:X.rw_mode||Z.mx.LimitedReadWrite,tableMemoryList:X.field_list||[]}),[X]),J=(0,u.useMemo)(()=>({name:X.table_name||"",description:X.table_desc||"",icon_uri:[{url:X.icon_url||"",uri:X.icon_uri||"",uid:X.icon_uri||"",isDefault:!0}]}),[X]);var ee=(r=(0,p._)(function*(e){var t,r=yield _.v6.UpdateDatabase((0,h._)({},(0,eB.Z)(X,["id","icon_uri","table_name","table_desc","field_list","rw_mode","prompt_disabled","extra_info"]),e));(null==r?void 0:null===(t=r.database_info)||void 0===t?void 0:t.id)?(yield G(),N&&N(),L&&F(!1)):x.FN.error("Update database failed")}),function(e){return r.apply(this,arguments)});var et=(n=(0,p._)(function*(e){var t,r=yield _.v6.UpdateDatabase((0,f._)((0,h._)({},X),{rw_mode:e}));(null==r?void 0:null===(t=r.database_info)||void 0===t?void 0:t.id)&&(yield G(),N&&N())}),function(e){return n.apply(this,arguments)});var er=(o=(0,p._)(function*(){yield G(),N&&N()}),function(){return o.apply(this,arguments)});(0,u.useEffect)(()=>{G()},[]);var en=["create","library"].includes(g);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:E()("h-full w-full max-w-[100vw] flex flex-col overflow-hidden","project"===g?"coz-bg-max rounded-b-[8px] border-solid coz-stroke-primary":"coz-bg-plus"),children:[(0,l.jsxs)("div",{className:E()("flex flex-row items-center justify-between shrink-0",en?"h-[40px] m-[24px]":"h-[64px] px-[16px] py-[12px] border-0 border-b border-solid coz-stroke-primary"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-[8px]",children:[w?null:(0,l.jsx)(x.hU,{color:"secondary",icon:en?(0,l.jsx)(S.$1i,{}):(0,l.jsx)(S.rmE,{}),onClick:A}),(0,l.jsx)(x.EZ,{type:"bot",color:"grey",src:null===(a=J.icon_uri)||void 0===a?void 0:null===(s=a[0])||void 0===s?void 0:s.url}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[2px] leading-none",children:[(0,l.jsx)(x.ZT.Text,{weight:500,fontSize:"14px",children:J.name}),$?null:(0,l.jsx)(x.hU,{size:"mini",color:"secondary",icon:(0,l.jsx)(S.JAz,{className:"coz-fg-secondary"}),onClick:()=>F(!0)})]}),(0,l.jsx)(x.ZT.Text,{fontSize:"12px",children:J.description})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,l.jsx)(eL,{disabled:$,value:X.rw_mode,onChange:et}),g.includes("bot")||"workflow"===g?(0,l.jsx)(x.zx,{disabled:$,loading:U,onClick:()=>{if(T)try{q(!0),T("workflow"===g?B:null==X?void 0:X.draft_id)}finally{q(!1)}},children:k}):null]})]}),(0,l.jsx)("div",{className:E()("grow overflow-hidden",en?"mx-[24px]":"mx-[16px]"),children:(0,l.jsxs)(x.nj,{className:ty.Z.tab,type:"text",align:"left",tabBarExtraContent:(0,l.jsxs)(x.T,{spacing:16,children:[(0,l.jsx)(eF,{}),V===eI.Structure?(0,l.jsx)(x.zx,{"data-testid":D.A.BotDatabaseEditTableStructureBtn,onClick:()=>R(!0),icon:(0,l.jsx)(S.JAz,{}),color:"highlight",disabled:$,children:y.o.t("db_new_0003")}):null]}),tabBarClassName:"flex flex-row items-center w-full",activeKey:V,onChange:e=>H(e),lazyRender:!0,children:[(0,l.jsx)(x.nj.TabPanel,{tab:y.o.t("db_new_0001"),itemKey:eI.Structure,children:(0,l.jsx)(eX,{loading:Y,fieldList:null!==(d=X.field_list)&&void 0!==d?d:[]})}),(0,l.jsxs)(x.nj.TabPanel,{tab:y.o.t("db_optimize_009"),itemKey:eI.Draft,disabled:!!m,children:[(0,l.jsx)(j,{type:"info",persistentKey:"_coze_database_draft_data_warning",children:y.o.t("db_optimize_010")}),(0,l.jsx)(tv,{databaseId:B,tableType:Z.Nd.DraftTable,tableFields:X.field_list||[],isReadonlyMode:!1,enterFrom:g,onAfterEditRecords:P})]}),(0,l.jsxs)(x.nj.TabPanel,{tab:y.o.t("db_new_0002"),itemKey:eI.Online,disabled:!!m,children:[(0,l.jsx)(j,{type:"info",persistentKey:"_coze_database_online_data_warning",children:y.o.t("database_optimize_200")}),(0,l.jsx)(tv,{databaseId:B,tableType:Z.Nd.OnlineTable,tableFields:X.field_list||[],isReadonlyMode:$,enterFrom:g,onAfterEditRecords:P})]})]})})]}),(0,l.jsx)(O,{visible:L,onSubmit:e=>{var t,r;return ee({table_name:e.name,icon_uri:null===(r=e.icon_uri)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.uri,table_desc:e.description})},initValues:J,mode:C.EDIT,onClose:()=>F(!1)}),(0,l.jsx)(ey,{visible:z,initValue:K,onSubmit:er,showDatabaseBaseInfo:!1,onlyShowDatabaseInfoRWMode:!0,onReturn:()=>R(!1),onClose:()=>R(!1)})]})},tb=e=>{var t,r,{version:n,botId:o,spaceId:i,databaseId:s,enterFrom:a,needHideCloseIcon:c,initialTab:h}=e,{onStatusChange:f,onUpdateDisplayName:m}=(0,d.kJ)(),g=(0,eP.useNavigate)(),[b,w]=(0,u.useState)("bot_add"===a?"Add":"Remove");var k=(t=(0,p._)(function*(e){var t=yield _.v6.BindDatabase({database_id:e,bot_id:o});0===t.code?(x.FN.success("Add database success"),w("Remove")):x.FN.error(t.msg)}),function(e){return t.apply(this,arguments)});var C=(r=(0,p._)(function*(e){var t=yield _.v6.UnBindDatabase({database_id:e,bot_id:o});0===t.code?(x.FN.success("Remove database success"),w("Add")):x.FN.error(t.msg)}),function(e){return r.apply(this,arguments)}),A=(0,u.useMemo)(()=>"Add"===b?y.o.t("db2_030"):"Remove"===b?y.o.t("db2_031"):"",[b]);return(0,l.jsx)(tx,{version:n,enterFrom:a,databaseId:s,initialTab:h,addRemoveButtonText:A,onIDECallback:{onStatusChange:f,onUpdateDisplayName:m},onClickAddRemoveButton:e=>{if(!!e)if("Add"===b)k(e);else{if("Remove"!==b)return;C(e)}},needHideCloseIcon:c,onClose:()=>{1===window.history.length&&g("/space/".concat(i,"/library")),g(-1)}})},tw=e=>{var{version:t,needHideCloseIcon:r,initialTab:n}=e,o=(0,d.kF)(),{botID:i,tableID:s,biz:a}=o,u=(0,ex.rY)(e=>e.getSpaceId());return s?(0,l.jsx)(tb,{version:t,botId:null!=i?i:"",databaseId:s,needHideCloseIcon:r,enterFrom:null!=a?a:"",spaceId:null!=u?u:"",initialTab:null!=n?n:o.initialTab}):(0,l.jsx)("div",{children:"no database id!"})}},13194:function(e,t,r){"use strict";r.d(t,{C:function(){return y}});var n=r(808549),o=r(120454),i=r(473980),s=r(151064),a=r(322512),l=r(252237),u=r.n(l),c=r(336205),d=r(775699),p=r(178385),h=r(573049),f={1:"File",2:"Image",3:"Doc",4:"Code",5:"PPT",6:"Txt",7:"Excel",8:"Audio",9:"Zip",10:"Video",11:"Svg"},m=e=>{var{type:t,format:r}=e,{assist_type:n}=e,o=t;return"string"===t&&r===p.vG.ImageUrl?o="image":"string"===t&&n&&(o=f[n]),o},g=e=>{var{parameter:t}=e,{name:r,desc:n,required:o}=t;return(0,s.jsxs)("div",{className:h.Z["parameter-item"],children:[(0,s.jsxs)(d.T,{className:h.Z["parameter-text"],wrap:!0,children:[(0,s.jsx)("span",{className:h.Z["parameter-name"],children:r}),(0,s.jsx)("span",{className:h.Z["parameter-type"],children:m(t)}),o?(0,s.jsx)("span",{className:h.Z["parameter-required"],children:c.o.t("tool_para_required")}):null]}),(0,s.jsx)("div",{className:h.Z["parameter-desc"],children:n})]})},y=e=>{var t,{children:r,pluginApi:l,callback:c,onVisibleChange:p}=e,f=(0,i._)(e,["children","pluginApi","callback","onVisibleChange"]);return(0,s.jsx)(d.J2,(0,o._)((0,n._)({trigger:(null==f?void 0:f.trigger)||"hover",position:"right",showArrow:!0,onVisibleChange:p,content:(0,s.jsxs)("div",{className:u()("max-h-[400px] overflow-x-hidden overflow-y-auto",h.Z["popover-content"]),onClick:e=>{null==c||c(e)},children:[l.name?(0,s.jsx)("div",{className:h.Z["popover-api-name"],children:l.name}):null,l.desc?(0,s.jsx)("div",{className:h.Z["popover-api-desc"],children:l.desc}):null,null===(t=(0,a.Z)(l.parameters||[],e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.length}))||void 0===t?void 0:t.map(e=>e?(0,s.jsx)(g,{parameter:e},e.name):null)]})},f),{children:(0,s.jsx)("div",{children:r})}))}},581259:function(e,t,r){"use strict";r.d(t,{cg:()=>s,VF:()=>l,_5:()=>h,HW:()=>a,jG:()=>f,Qb:()=>u,C5:()=>c,Cx:()=>d,CG:()=>p});var n,o=r("336205"),i=r("458949");o.o.t("form_mode"),o.o.t("code_mode");var s=[{label:o.o.t("create_plugin_modal_header"),value:1},{label:o.o.t("create_plugin_modal_query"),value:2}],a={header_list:[{type:"title",text:o.o.t("create_plugin_modal_header_list")},{type:"text",text:o.o.t("create_plugin_modal_header_list1")}],auth:[{type:"title",text:o.o.t("create_plugin_modal_info_all")},{type:"br"},{type:"title",text:o.o.t("create_plugin_modal_info_None1")},{type:"text",text:o.o.t("create_plugin_modal_info_None2")},{type:"br"},{type:"title",text:o.o.t("create_plugin_modal_info_Service1")},{type:"text",text:o.o.t("create_plugin_modal_info_Service2")},{type:"br"},{type:"title",text:o.o.t("create_plugin_modal_info_Oauth1")},{type:"text",text:o.o.t("create_plugin_modal_info_Oauth2")}],location:[{type:"title",text:o.o.t("plugin_location_info_all")},{type:"br"},{type:"title",text:o.o.t("plugin_location_info_query")},{type:"text",text:o.o.t("plugin_location_info_query1")},{type:"demo",text:o.o.t("plugin_location_info_query2")},{type:"br"},{type:"title",text:o.o.t("plugin_location_header")},{type:"text",text:o.o.t("plugin_location_header1")},{type:"demo",text:o.o.t("plugin_location_header2")}],service_token:[{type:"title",text:o.o.t("create_plugin_modal_Servicetoken_info1")},{type:"text",text:o.o.t("create_plugin_modal_Servicetoken_info2")}],key:[{type:"title",text:o.o.t("create_plugin_modal_Parameter_info1")},{type:"text",text:o.o.t("create_plugin_modal_Parameter_info2")}],client_id:[{type:"text",text:o.o.t("create_plugin_modal_client_id4")},{type:"demo",text:o.o.t("create_plugin_modal_client_id5")}],client_secret:[{type:"text",text:o.o.t("create_plugin_modal_client_secret4")}],client_url:[{type:"text",text:o.o.t("create_plugin_modal_client_url_info1")},{type:"demo",text:o.o.t("create_plugin_modal_client_url_info2")}],scope:[{type:"text",text:o.o.t("create_plugin_modal_scope_info1")},{type:"demo",text:o.o.t("create_plugin_modal_scope_info2")}],authorization_url:[{type:"text",text:o.o.t("create_plugin_modal_authorization_url_info1")},{type:"demo",text:o.o.t("create_plugin_modal_authorization_url_info2")}],authorization_content_type:[{type:"text",text:o.o.t("create_plugin_modal_authorization_content_type_info1")},{type:"demo",text:o.o.t("create_plugin_modal_authorization_content_type_info2")}],creation_method:[{type:"title",text:o.o.t("plugin_creation_method_hover_tip_using_existing_services_title")},{type:"text",text:o.o.t("plugin_creation_method_hover_tip_using_existing_services_desc")}],private_link_id:[{type:"title",text:o.o.t("vpc_plugin_create_plugin_1")},{type:"text",text:o.o.t("vpc_plugin_tooltips")}]},l={client_id:o.o.t("create_plugin_modal_client_id2"),client_secret:o.o.t("create_plugin_modal_client_secret2"),client_url:o.o.t("create_plugin_modal_client_url_empty"),scope:o.o.t("create_plugin_modal_scope_empty"),authorization_url:o.o.t("create_plugin_modal_authorization_url_empty"),authorization_content_type:o.o.t("create_plugin_modal_authorization_content_type_empty"),service_token:o.o.t("create_plugin_modal_Servicetoken_empty"),key:o.o.t("create_plugin_modal_Parameter_empty")},u="".concat(i.zV.PLUGIN,"-").concat(i.x9.COZE);"".concat(i.zV.PLUGIN,"-").concat(i.x9.IDE),"".concat(i.zV.LOCAL,"-").concat(i.x9.COZE);var c=()=>a.creation_method,d=[{label:"TokenExchange",value:i.qJ.TokenExchange},{label:"ClientCredential",value:i.qJ.ClientCredential}],p=new Map([[i.vw.DebugWaiting,{label:o.o.t("plugin_api_type_fail"),color:"red"}],[i.vw.DebugPassed,{label:o.o.t("plugin_api_type_pass"),color:"green"}]]),h=new Map([[i.Yz.ONLINE,{label:o.o.t("plugin_service_status_online"),color:"var(--plugin-unpublished-color)"}],[i.Yz.OFFLINE,{label:o.o.t("plugin_service_status_offline"),color:"var(--plugin-published-color)"}]]);var f=((n={}).DEFAULT="default",n.CREATE_TOOL="create_tool",n.SELECT_TOOL="select_tool",n.PUHSLISH="publish",n)},215451:function(e,t,r){"use strict";r.d(t,{LZ:()=>d,th:()=>h,aZ:()=>g.aZ,D1:()=>m});var n,o=r("825955"),i=r("808549"),s=r("120454"),a=r("479910"),l=r("598208");var u=((n={})[n.Free=0]="Free",n[n.PremiumLite=10]="PremiumLite",n[n.Premium=15]="Premium",n[n.PremiumPlus=20]="PremiumPlus",n[n.V1ProInstance=100]="V1ProInstance",n[n.ProPersonal=110]="ProPersonal",n[n.Team=120]="Team",n[n.Enterprise=130]="Enterprise",n),c={polling:!1,plans:[],subs:{},currentPlan:{},hasTrial:!1,connections:[],benefit:{user_basic_info:{user_level:u.Free}},plansCN:[],volcanoInfo:{}},d=(0,l.Ue)()((0,a.mW)((e,t)=>(0,s._)((0,i._)({},c),{reset:()=>{console.log("unImplement usePremiumStore reset ")},setPolling:e=>{console.log("unImplement usePremiumStore setPolling ")},fetchPremiumPlans:(0,o._)(function*(){var{plans:e,subs:r,hasTrial:n}=t();return yield 0,{plans:e,subs:r,hasTrial:n}}),setPremiumPlansCN:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e({plansCN:t})},fetchPremiumPlan:(0,o._)(function*(){return yield 0,t().currentPlan}),cancelCurrentPlan:()=>{console.log("unImplement usePremiumStore cancelCurrentPlan ")},renewCurrentPlan:e=>{console.log("unImplement usePremiumStore renewCurrentPlan ")},fetchConnections:(0,o._)(function*(){yield 0,console.log("unImplement usePremiumStore fetchConnections ")}),disconnectUser:e=>{console.log("unImplement usePremiumStore disconnectUser ")},setUserBenefit:e=>{console.log("unImplement usePremiumStore setUserBenefit ")},setVolcanoInfo:e=>{console.log("unImplement usePremiumStore setVolcanoInfo ")}}),{enabled:!1,name:"botStudio.premiumStore"})),p={name:"",level:u.Free,compareLevel:u.Free,currPlan:{},nextPlan:{},accountPlan:{},instanceStatus:1,isOverdue:!1,isExpired:!1,isTerminated:!1,maxMember:-1};function h(){return p}var f={isFree:!1,isPremiumPlus:!1,hasLowLevelActive:!1,hasHighLevelActive:!1,sub:{},activeSub:{}};function m(){return f}var g=r("622103")},228962:function(e,t,r){"use strict";r.d(t,{ob:()=>M,pn:()=>T,A2:()=>I,Np:()=>P,RQ:()=>E,EA:()=>L,zO:()=>F,sF:()=>j,av:()=>N});var n,o,i=r("151064"),s=r("455069"),a=r("716894"),l=r("992499"),u=r("363036"),c=r("458620"),d=r("727914"),p=r("479910"),h=r("598208"),f=()=>(0,h.Ue)()((0,p.mW)((e,t)=>({isVisible:!1,setVisible:r=>e({isVisible:"boolean"==typeof r?r:r(t().isVisible)},!1,"setVisible")}),{enabled:!1,name:"botStudio.plugin-history-panel-ui"})),m=r("825955"),g=r("808549"),y=r("120454"),x=r("61111"),b=r("336205"),w=r("775699"),_=r("382534"),k=e=>"[PluginStore.Error]: ".concat(e),C=r("458949"),A={[C.wA.Owner]:b.o.t("team_management_role_owner",{},"Owner"),[C.wA.Admin]:b.o.t("team_management_role_admin",{},"Admin"),[C.wA.Member]:b.o.t("team_management_role_member",{},"Member"),[C.wA.Default]:"-"},O=e=>{var{pluginID:t,spaceID:r,projectID:n,version:o}=e;return(0,h.Ue)()((0,p.mW)((0,p.XR)((e,i)=>({version:o,canEdit:!o,isUnlocking:!1,pluginId:t,spaceID:r,projectID:n,pluginInfo:{},initSuccessed:!1,getIsIdePlugin:()=>{var{pluginInfo:e}=i();return(null==e?void 0:e.creation_method)===C.x9.IDE},setInitSuccessed:t=>e((0,x.Uy)(e=>{e.initSuccessed=t}),!1,"setInitSuccessed"),setPluginInfo:t=>e((0,x.Uy)(e=>{e.pluginInfo=t}),!1,"setPluginInfo"),setUpdatedInfo:t=>e((0,x.Uy)(e=>{e.updatedInfo=t}),!1,"setUpdatedInfo"),initUserPluginAuth:(0,m._)(function*(){var r,{setCanEdit:s}=i(),a=yield _.Js.GetUserAuthority({project_id:n,plugin_id:t,creation_method:C.x9.COZE});if(0!==a.code)throw new d.sH(c.b.normalError,k("auth init"));e((0,x.Uy)(e=>{e.auth=a.data}),!1,"initUserPluginAuth"),s(!!(null===(r=a.data)||void 0===r?void 0:r.can_edit)&&!o)}),setCanEdit(t){e((0,x.Uy)(e=>{e.canEdit=t}),!1,"setCanEdit")},wrapWithCheckLock:e=>(0,m._)(function*(){var{checkPluginIsLockedByOthers:t}=i();if(!(yield t()))e()}),initPlugin:(0,m._)(function*(){var{pluginId:e,setPluginInfo:t}=i(),r=yield _.Js.GetPluginInfo({plugin_id:e||"",preview_version_ts:o});if((null==r?void 0:r.code)!==0)throw new d.sH(c.b.normalError,k("getPluginInfo error"));t((0,y._)((0,g._)({},r),{plugin_id:e||""}))}),initTool:(0,m._)(function*(){var{pluginId:e,setUpdatedInfo:t}=i(),r=yield _.Js.GetUpdatedAPIs({plugin_id:e||""},{__disableErrorToast:!0});if((null==r?void 0:r.code)!==0)throw new d.sH(c.b.normalError,k("getToolInfo error"));t({updated_api_names:(null==r?void 0:r.updated_api_names)||[],created_api_names:(null==r?void 0:r.created_api_names)||[]})}),init:(0,m._)(function*(){var{initPlugin:e,initTool:t,initUserPluginAuth:r,setInitSuccessed:n}=i();yield Promise.all([e(),t(),r()]),n(!0)}),checkPluginIsLockedByOthers:(0,m._)(function*(){var{pluginId:e,getIsIdePlugin:t}=i();if(t())return!1;var r=yield _.Js.CheckAndLockPluginEdit({plugin_id:e});if(0!==r.code)return!1;var{data:n}=r,o=null==n?void 0:n.user;return(null==n?!!void 0:!!n.Occupied)&&!!o&&!o.self&&(w.M5.info({okText:b.o.t("guidance_got_it"),title:b.o.t("plugin_team_edit_tip_unable_to_edit"),content:"".concat(o.name,"(").concat(A[o.space_roly_type],") ").concat(b.o.t("plugin_team_edit_tip_another_user_is_editing")),hasCancel:!1}),!0)}),unlockPlugin:(0,m._)(function*(){var{pluginId:t,canEdit:r,isUnlocking:n,getIsIdePlugin:o}=i();if(!o()&&!!r&&!n)try{e((0,x.Uy)(e=>{e.isUnlocking=!0}),!1,"unlocking-true");var s=yield _.Js.UnlockPluginEdit({plugin_id:t});if(0!==s.code)throw new d.sH(c.b.normalError,k("unlock"))}finally{e((0,x.Uy)(e=>{e.isUnlocking=!1}),!1,"unlocking-false")}}),updatePluginInfoByImmer:t=>e((0,x.Uy)(e=>{t(e.pluginInfo)}),!1,"updatePluginInfoByImmer")})),{enabled:!1,name:"botStudio.botPlugin"}))},D=(0,s.createContext)({storeRef:{plugin:void 0},callbacks:{},resourceNavigate:{},memorizedStoreSet:null}),S=(0,s.createContext)({pluginHistoryController:{current:null},registryPluginHistoryController:()=>0}),T=e=>{var t,{pluginID:r,spaceID:n,projectID:o,version:a,children:l,onUpdateDisplayName:c,onStatusChange:d,resourceNavigate:p}=e,h=(0,s.useRef)({}),m=(0,u.Z)(()=>f(),[]),g=(0,s.useRef)(null);return!(null===(t=h.current)||void 0===t?void 0:t.plugin)&&(h.current.plugin=O({pluginID:r,spaceID:n,projectID:o,version:a})),(0,i.jsx)(D.Provider,{value:{storeRef:h.current,memorizedStoreSet:{usePluginHistoryPanelUIStore:m},callbacks:{onUpdateDisplayName:c,onStatusChange:d},resourceNavigate:p},children:(0,i.jsx)(S.Provider,{value:{pluginHistoryController:g,registryPluginHistoryController:e=>{g.current=e}},children:l})})},E=e=>{var t=(0,s.useContext)(D);if(!t.storeRef.plugin)throw new d.sH(c.b.normalError,"plugin store context");return(0,a.s)(t.storeRef.plugin,e,l.X)},M=()=>{var e=(0,s.useContext)(D);if(!e.storeRef.plugin)throw new d.sH(c.b.normalError,"plugin store context");return e.storeRef.plugin},j=()=>{var{callbacks:{onStatusChange:e,onUpdateDisplayName:t}}=(0,s.useContext)(D);return{onStatusChange:e,onUpdateDisplayName:t}},N=()=>{var{resourceNavigate:e}=(0,s.useContext)(D);return e},P=()=>{var{pluginHistoryController:e}=(0,s.useContext)(S);return e},B=e=>fetch("/api/plugin_api/unlock_plugin_edit",{keepalive:!0,method:"POST",body:JSON.stringify({plugin_id:e}),headers:{"Content-Type":"application/json"}}),I=e=>{(0,s.useEffect)(()=>{var t=()=>B(e);return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[])};var L=(n=(0,m._)(function*(e){var t=yield _.Js.CheckAndLockPluginEdit({plugin_id:e});if(0!==t.code)return!1;var{data:r}=t,n=null==r?void 0:r.user;return(null==r?!!void 0:!!r.Occupied)&&!!n&&!n.self&&(w.M5.info({okText:b.o.t("guidance_got_it"),title:b.o.t("plugin_team_edit_tip_unable_to_edit"),content:"".concat(n.name,"(").concat(A[n.space_roly_type],") ").concat(b.o.t("plugin_team_edit_tip_another_user_is_editing")),hasCancel:!1}),!0)}),function(e){return n.apply(this,arguments)});var F=(o=(0,m._)(function*(e){if(0!==(yield _.Js.UnlockPluginEdit({plugin_id:e})).code)throw new d.sH(c.b.normalError,k("unlock out"))}),function(e){return o.apply(this,arguments)})},564605:function(e,t,r){"use strict";r.d(t,{G:function(){return a}});var n=r(151064),o=r(336205),i=r(873183),s=r(659596),a=e=>{var{onClear:t,hasFilter:r=!1}=e;return(0,n.jsxs)("div",{className:"w-full h-full flex flex-col items-center pt-[120px]",children:[(0,n.jsx)(i.nL$,{className:"w-[48px] h-[48px] coz-fg-dim"}),(0,n.jsx)("div",{className:"text-[16px] font-[500] leading-[22px] mt-[8px] mb-[16px] coz-fg-primary",children:o.o.t(r?"library_empty_no_results_found_under":"search_not_found")}),r?(0,n.jsx)(s.zx,{color:"primary",icon:(0,n.jsx)(i.bGR,{}),onClick:()=>{null==t||t()},children:o.o.t("library_empty_clear_filters")}):null]})}},875441:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var n={border:"1px solid var(--semi-color-focus-border)"}},710736:function(e,t,r){"use strict";r.d(t,{N:function(){return a},t:function(){return s}});var n=r(517465),o=r.n(n),i=r(997516);function s(e,t,r){var n=(0,i.Z)(e,r),o=(0,i.Z)(t,r);return JSON.stringify(n)===JSON.stringify(o)}function a(e,t,r){return{toResource:(t,n,i,s)=>n?r("".concat(e,"/").concat(t,"/").concat(n,"?").concat(o().stringify(i)),s):"",tool:(n,i,s)=>r("".concat(e,"/plugin/").concat(t,"/tool/").concat(n,"?").concat(o().stringify(i)),s),mocksetList:(n,i,s)=>r("".concat(e,"/plugin/").concat(t,"/tool/").concat(n,"/plugin-mock-set?").concat(o().stringify(i)),s),mocksetDetail:(n,i,s,a)=>r("".concat(e,"/plugin/").concat(t,"/tool/").concat(n,"/plugin-mock-set/").concat(i,"?").concat(o().stringify(s)),a),cloudIDE:(n,i)=>r("".concat(e,"/plugin/").concat(t,"/cloud-tool?").concat(o().stringify(n)),i)}}},724847:function(e,t,r){"use strict";r.d(t,{Ys:()=>f,LA:()=>x,xm:()=>i,rZ:()=>g,YN:()=>m,lR:()=>b,nz:()=>l,fP:()=>h,T7:()=>c,ad:()=>p,WC:()=>u,AK:()=>y,PF:()=>s});var n,o=r("455069"),i=function(e){var{autoPlay:t,loop:r,onEnded:n,onLoad:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[s,a]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!0),[p,h]=(0,o.useState)(0),[f,m]=(0,o.useState)(0),g=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(!!e){var o=e instanceof Blob?URL.createObjectURL(e):e,s=new Audio(o);g.current=s,s.loop=null!=r&&r;var l=()=>{h(s.currentTime)},u=()=>{m(s.duration),h(0),null==i||i(),t&&s.play(),e instanceof Blob&&URL.revokeObjectURL(o)},c=()=>{a(!1),d(!0),h(s.duration),null==n||n()};return s.addEventListener("loadedmetadata",u),s.addEventListener("timeupdate",l),s.addEventListener("ended",c),()=>{s.removeEventListener("loadedmetadata",u),s.removeEventListener("timeupdate",l),s.removeEventListener("ended",c),s.pause(),s.src="",g.current=null}}},[e,t,r,n,i]);var y=(0,o.useCallback)(()=>{g.current&&(g.current.play(),a(!0),u(!1),d(!1))},[]),x=(0,o.useCallback)(()=>{g.current&&(g.current.pause(),a(!1),u(!0))},[]),b=(0,o.useCallback)(()=>{g.current&&(g.current.pause(),g.current.currentTime=0,a(!1),u(!1),d(!0))},[]),w=(0,o.useCallback)(()=>{s?x():y()},[s,y,x]);return{isPlaying:s,isPaused:l,isStopped:c,currentTime:p,duration:f,play:y,pause:x,stop:b,togglePlayPause:w,seek:(0,o.useCallback)(e=>{g.current&&(g.current.currentTime=e,h(e))},[])}};function s(e){return{open:()=>{},modal:null}}var a=r("598208"),l=e=>!1,u=(0,a.Ue)(()=>({rightsInfo:{},getRights:e=>Promise.resolve({})})),c=e=>null,d=r("151064"),p=e=>null,h=e=>null,f=e=>null,m=e=>null,g=e=>{var{children:t}=e;return(0,d.jsx)(d.Fragment,{children:t})};var y=((n={}).PUBLISH_RESULT="publishResult",n.WORKFLOW="workflow",n.WORKFLOW_INFO="workflowDetail",n.WORKFLOW_CASE="workflowCase",n),x=e=>({ModalComponent:null,showModal:e=>null,setSpace:e=>null}),b=()=>({enablePublishEntry:!1})},408487:function(e,t,r){"use strict";r.d(t,{ztP:()=>o.ztP,OHc:()=>d,fB_:()=>u,zV6:()=>o.zV6,Up9:()=>o.Up9,KNf:()=>o.KNf,vGB:()=>o.vGB,lcl:()=>o.lcl,TvD:()=>o.TvD,GdW:()=>o.GdW,VBX:()=>o.VBX,CPf:()=>o.CPf,MZY:()=>o.MZY,uql:()=>o.uql,n$I:()=>o.n$I,eLL:()=>o.eLL,k5N:()=>o.k5N,KN6:()=>o.KN6,B5l:()=>o.B5l,twY:()=>o.twY,Lo5:()=>o.Lo5,x5o:()=>o.x5o,_Uw:()=>c,BSe:()=>o.BSe,d$J:()=>o.d$J,wz8:()=>o.wz8,XG2:()=>o.XG2,z7A:()=>o.z7A,XQ3:()=>o.XQ3,gfc:()=>o.gfc,Vp9:()=>o.Vp9,MZx:()=>o.MZx,nBi:()=>o.nBi,Xpx:()=>o.Xpx,sL0:()=>o.sL0});var n=r("382534"),o=r("892989"),i=r("808549"),s=r("151064");r("455069");var a=r("178621"),l=r("527116"),u=new a.S;function c(e){return function(t){return(0,s.jsx)(l.aH,{client:u,children:(0,s.jsx)(e,(0,i._)({},t))})}}var d=new Proxy({},{get:(e,t)=>n.OH[t].bind(n.OH)})},267334:function(e,t,r){"use strict";r.d(t,{Ne:function(){return i},Pz:function(){return u},RV:function(){return o},aW:function(){return c},d9:function(){return a},hh:function(){return l},pj:function(){return s},wl:function(){return n}});var n=()=>{},o="999999",i="BOT_USER_INPUT",s="USER_INPUT",a="CONVERSATION_NAME",l=30,u=/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/,c="playground.node"},450562:function(e,t,r){"use strict";r.d(t,{sL0:()=>N.sL0,hhB:()=>O.hh,OHc:()=>N.OHc,Iyz:()=>j,d9h:()=>O.d9,nZF:()=>p.nZ,zV6:()=>N.zV6,KNf:()=>N.KNf,Tbq:()=>L,agJ:()=>S,E7u:()=>I,fB_:()=>N.fB_,lcl:()=>N.lcl,XmD:()=>p.Xm,tnn:()=>p.tn,FCD:()=>G,Gu0:()=>p.Gu,VNC:()=>z,pju:()=>O.pj,VKi:()=>p.VK,YX3:()=>p.YX,CPf:()=>N.CPf,nyy:()=>p.ny,Huc:()=>Y,GQ8:()=>W,fwJ:()=>H,IuB:()=>p.Iu,KN6:()=>N.KN6,SMH:()=>p.SM,B5l:()=>N.B5l,m_1:()=>ee,Pz_:()=>O.Pz,xtp:()=>D,ycG:()=>p.yc,Lo5:()=>N.Lo5,Rkg:()=>p.Rk,owu:()=>p.ow,ikd:()=>Z,BSe:()=>N.BSe,sSN:()=>p.sS,iBO:()=>K,_Uw:()=>N._Uw,wz8:()=>N.wz8,z7A:()=>N.z7A,$dM:()=>p.$d,XQ3:()=>N.XQ3,vHX:()=>p.vH,vTH:()=>p.vT,kOP:()=>p.kO,nBi:()=>N.nBi,QJG:()=>V,lZh:()=>p.lZ,rsR:()=>J,Psf:()=>p.Ps,RV6:()=>O.RV,ztP:()=>N.ztP});var n,o,i,s,a,l,u,c,d,p=r("569502"),h=r("335740");var f=((n={}).DEFAULT="default",n.INPUT_PARAMETERS="inputParameters",n.OUTPUTS="outputs",n.DATASET_PARAM="datasetParam",n.LLM_PARAM="llmParam",n.INTENTS="intents",n.CONCAT_RESULT="concatResult",n.CUSTOM_ARRAY_CONCAT_CHAR="customArrayConcatChar",n.CUSTOM_SPLIT_CHAR="customSplitChar",n.REF_INPUT_PARAMETER="refInputParameter",n.VARIABLE_ASSIGN="variableAssign",n.JSON_STRING_PARSER="jsonStringParser",n.IMAGE_REFERENCE_PARSER="imageReferenceParser",n.EXPRESSION_PARSER="expressionParser",n.VARIABLE_MERGE_GROUPS_PARSER="variableMergeGroupsParser",n.DB_FIELDS_PARSER="dbFieldsParser",n.DB_CONDITIONS_PARSER="dbConditionsParser",n),m=["\n"," ",".","。",",","",";",""," "],g=r("962289");function y(e){var t,r,n,o,i;try{o=new URL(e)}catch(e){return!1}return!!(["image","jpg","jpeg","png"].includes((null===(n=o.searchParams)||void 0===n?void 0:null===(r=n.get("x-wf-file_name"))||void 0===r?void 0:null===(t=r.split("."))||void 0===t?void 0:t.pop())||o.pathname.split(".").pop())&&["cC1ib3Qtd29ya2Zsb3ctc2lnbi5ieXRlZGFuY2UubmV0","cC1ib3Qtd29ya2Zsb3cuYnl0ZWQub3Jn","cC1ib3Qtd29ya2Zsb3cuYnl0ZWRhbmNlLm5ldA==","cDI2LWJvdC13b3JrZmxvdy1zaWduLmJ5dGVpbWcuY29t","cDMtYm90LXdvcmtmbG93LXNpZ24uYnl0ZWltZy5jb20=","cDktYm90LXdvcmtmbG93LXNpZ24uYnl0ZWltZy5jb20="].includes(btoa(null!==(i=o.hostname)&&void 0!==i?i:"")))||!1}var x=e=>{if(!e)return null;var t,r=(0,g.Z)(e,"value.content");if(!r)return null;if("string"==typeof r)return{value:r,isImage:y(r)};if("block-output"===r.source&&(r.name,1))return{value:r.name,isImage:!1};else if("string"==typeof r.source&&r.source.startsWith("global_variable"))return{value:null==r?void 0:null===(t=r.path)||void 0===t?void 0:t.join("."),isImage:!1}},b=e=>[].concat(e).filter(Boolean).map(x).filter(Boolean),w=e=>{var t,r,n=null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.content;if(!!n){if("string"==typeof n)return n;if("object"==typeof n){if("block-output"===n.source&&"string"==typeof n.name)return n.name;if("string"==typeof n.source&&n.source.startsWith("global_variable"))return null==n?void 0:null===(r=n.path)||void 0===r?void 0:r.join(".")}}},_=r("710705"),k=r("391963"),C=r("808549"),A=e=>{var t=[];return Array.isArray(e)?t=e:"object"==typeof e&&Object.keys(e||{}).forEach(r=>{t.push({name:r,input:e[r]})}),t.map(e=>{var t=x((0,g.Z)(e,"input"));return t?(0,C._)({name:e.name},t):null}).filter(Boolean)};f.DEFAULT,f.INPUT_PARAMETERS,f.OUTPUTS,f.DATASET_PARAM,f.LLM_PARAM,f.INTENTS,f.CONCAT_RESULT,f.CUSTOM_ARRAY_CONCAT_CHAR,f.CUSTOM_SPLIT_CHAR,f.REF_INPUT_PARAMETER,f.VARIABLE_ASSIGN,f.JSON_STRING_PARSER,f.IMAGE_REFERENCE_PARSER,f.EXPRESSION_PARSER,f.VARIABLE_MERGE_GROUPS_PARSER,f.DB_FIELDS_PARSER,f.DB_CONDITIONS_PARSER;var O=r("267334"),D=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(e=>!!e).join(".")},S=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return D((null==e?void 0:e.id)?D(O.aW,e.id):"",...r)};r("896335"),r("298203");var T=r("120454"),E=r("813864"),M=e=>{if((null==e?void 0:e.type)===p.Rk.image||(null==e?void 0:e.type)===p.Rk.string&&[p.$d.image,p.$d.svg].includes(null==e?void 0:e.assistType))return!0};function j(e){var t,r,n,{outputData:o,nodeSchema:i,excludeNodeTypes:s=[]}=e;if(!i||!o||s.includes(null==i?void 0:i.type))return[];var a=[];return(a=(null==i?void 0:i.type)===p.ny.End||(null==i?void 0:i.type)===p.ny.Output?null==i?void 0:null===(r=i.data)||void 0===r?void 0:null===(t=r.inputs)||void 0===t?void 0:t.inputParameters:null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.outputs)?(0,E.Z)(a.map(e=>(function e(t,r){var n=[];if(M(r)&&"string"==typeof t&&n.push(t),(null==r?void 0:r.type)===p.Rk.list&&Array.isArray(t)){var o=t.map(t=>e(t,r.schema));n=n.concat(...o)}if((null==r?void 0:r.type)===p.Rk.object){var i=Object.entries(t||{}).map(t=>{var[n,o]=t;return e(o,(r.schema||[]).find(e=>e.name===n))});n=n.concat(...i)}return n})((0,g.Z)(o,null==e?void 0:e.name),(null==e?void 0:e.input)?(0,T._)((0,C._)({},e.input),{name:e.name}):e))).filter(e=>!!e):[]}var N=r("408487"),P=r("297158"),B="workflow",I=P.E7.createReporterWithPreset({namespace:B});function L(e){var t;null===(t=P.E7.slardarInstance)||void 0===t||t.call(P.E7,"captureException",e,{isErrorBoundary:"false",namespace:B})}var F=r("686436");function z(e,t){return(0,F.vo)(e)?function(e,t){var r=e.getData(F.Ps).formModel.getFormItemValueByPath("/");if(!!r&&"object"==typeof r){var n=R(r,t);return(0,h.Z)(n)}}(e,t):function(e,t){var r=e.getData(F.Ps).formModel,n=[...r.formItemPathMap.keys()].find(e=>e.endsWith(t));if(!!n)return(0,h.Z)(r.getFormItemValueByPath(n))}(e,t)}var R=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!!e){if(r.endsWith(t))return e;if("object"==typeof e&&!Array.isArray(e)){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?"".concat(r,"/").concat(n):"/".concat(n);if(o.endsWith(t))return e[n];var i=R(e[n],t,o);if(void 0!==i)return i}}if(Array.isArray(e))for(var s=0;s<e.length;s++){var a="".concat(r,"/").concat(s);if(a.endsWith(t))return e[s];var l=R(e[s],t,a);if(void 0!==l)return l}}},X=r("567282"),Z=e=>e===X.wz.Workflow||e===X.wz.ChatFlow,W=e=>[O.Ne,O.pj,O.d9].includes(null!=e?e:""),V=e=>[O.Ne,O.pj].includes(null!=e?e:""),H=(e,t)=>{var r=Array.isArray(t)?e=>{t.forEach(t=>t(e))}:t;return d.traverseNodes({value:e},r),e};(o=d||(d={})).traverseNodes=(e,t)=>{var{value:r}=e;if(!!r){if("[object Object]"===Object.prototype.toString.call(r))Object.entries(r).forEach(n=>{var[i,s]=n;return o.traverseNodes({value:s,container:r,key:i,parent:e},t)});else if(Array.isArray(r))for(var n=r.length-1;n>=0;n--){var s=r[n];o.traverseNodes({value:s,container:r,index:n,parent:e},t)}t(i({node:e}))}},i=e=>{var{node:t}=e;return{node:t,setValue:e=>s(t,e),getParents:()=>a(t),getPath:()=>l(t),getStringifyPath:()=>u(t),deleteSelf:()=>c(t)}},s=(e,t)=>{if(!!t&&!!e){e.value=t;var{container:r,key:n,index:o}=e;n&&r?r[n]=t:"number"==typeof o&&(r[o]=t)}},a=e=>{for(var t=[],r=e;r;)t.unshift(r),r=r.parent;return t},l=e=>{var t=[];return a(e).forEach(e=>{e.key?t.unshift(e.key):e.index&&t.unshift(e.index)}),t},u=e=>l(e).reduce((e,t)=>"string"!=typeof t?"".concat(e,"[").concat(t,"]"):/\W/g.test(t)?"".concat(e,'["').concat(t,'"]'):"".concat(e,".").concat(t),""),c=e=>{var{container:t,key:r,index:n}=e;r&&t?delete t[r]:"number"==typeof n&&t.splice(n,1)};var U=r("139454"),q={[U.ow.Image]:["image/*"],[U.ow.Doc]:[".docx",".doc",".pdf"],[U.ow.Audio]:[".mp3",".wav",".aac",".flac",".ogg",".wma",".alac",".mid",".midi",".ac3",".dsd"],[U.ow.Excel]:[".xls",".xlsx",".csv"],[U.ow.Video]:[".mp4",".avi",".mov",".wmv",".flv",".mkv"],[U.ow.Zip]:[".zip",".rar",".7z",".tar",".gz",".bz2"],[U.ow.Code]:[".py",".java",".c",".cpp",".js",".css"],[U.ow.Txt]:[".txt"],[U.ow.Ppt]:[".ppt",".pptx"],[U.ow.Svg]:[".svg"]},Y=(e,t)=>{var r,n=U.ow.isArrayType(e)?U.ow.getArraySubType(e):e;return r=n===U.ow.File?(null==t?void 0:t.length)?t.map(e=>{var t;return null===(t=q[e])||void 0===t?void 0:t.join(",")}).join(","):Object.values(q).map(e=>e.join(",")).join(","):(q[n]||[]).join(",")};r("364676");var Q=r("727914"),G=()=>{var e=(0,F.PF)();if(!(null==e?void 0:e.id))throw new Q.sH("useNodeTestId must be called in a workflow node","");var t=()=>D(O.aW,e.id);return{getNodeTestId:t,getNodeSetterId:e=>D(t(),e),concatTestId:D}},$=r("455069"),K=(0,$.createContext)(void 0);function J(){return(0,$.useContext)(K)}class ee{get registry(){return this.node.getNodeRegistry()}get inputParameters(){var e,t;return this.registry.getNodeInputParameters?this.registry.getNodeInputParameters(this.node):(null===(e=this.node.getNodeMeta())||void 0===e?void 0:e.inputParametersPath)?this.node.getData(F.Ps).formModel.getFormItemValueByPath(null===(t=this.node.getNodeMeta())||void 0===t?void 0:t.inputParametersPath):this.getFormValueByPathEnds("/inputParameters")}get outputs(){var e;if(this.registry.getNodeOutputs)return this.registry.getNodeOutputs(this.node);return null===(e=this.data)||void 0===e?void 0:e.outputs}getFormValueByPathEnds(e){return z(this.node,e)}get type(){return this.node.flowNodeType}get isError(){return!!this.error}get error(){return this.node.getData(F.fu).getError()}setError(e){this.node.getData(F.fu).setError(e)}get isInitialized(){return this.form.initialized}get data(){return this.form.getFormItemValueByPath("/")}setData(e){if(void 0!==e){var{form:t}=this;if((0,F.vo)(this.node))Object.keys(e).forEach(r=>{t.setValueIn(r,e[r])});else{var r=t.getFormItemByPath("/");r&&(r.value=e)}}}get icon(){var e,t;return null===this||void 0===this?void 0:null===(t=this.data)||void 0===t?void 0:null===(e=t.nodeMeta)||void 0===e?void 0:e.icon}get title(){var e,t;return null===this||void 0===this?void 0:null===(t=this.data)||void 0===t?void 0:null===(e=t.nodeMeta)||void 0===e?void 0:e.title}get description(){var e,t;return null===this||void 0===this?void 0:null===(t=this.data)||void 0===t?void 0:null===(e=t.nodeMeta)||void 0===e?void 0:e.description}get form(){return this.node.getData(F.Ps).formModel}getValueByPath(e){return this.form.getValueIn(e)}constructor(e){this.node=e,this.setData=this.setData.bind(this),this.setError=this.setError.bind(this)}}},364676:function(e,t,r){"use strict";r.d(t,{I:()=>l});var n=r("808549"),o=r("120454"),i=r("479910"),s=r("598208"),a={nodes:[],edges:[],isCreatingWorkflow:!1},l=(0,s.Ue)()((0,i.mW)(e=>(0,o._)((0,n._)({},a),{setNodes:t=>e({nodes:null!=t?t:[]}),setEdges:t=>e({edges:null!=t?t:[]}),setIsCreatingWorkflow:t=>e({isCreatingWorkflow:t})})))},391963:function(e,t,r){"use strict";r.d(t,{$d:function(){return a},Rk:function(){return s},_T:function(){return i}}),(i||(i={})).createEmpty=function(){return{type:"string",value:{type:"ref",content:{source:"block-output",blockID:"",name:""}}}};var n,o,i,s=((o={}).object="object",o.list="list",o.string="string",o.integer="integer",o.float="float",o.boolean="boolean",o.image="image",o.time="time",o);var a=((n={})[n.file=1]="file",n[n.image=2]="image",n[n.doc=3]="doc",n[n.code=4]="code",n[n.ppt=5]="ppt",n[n.txt=6]="txt",n[n.excel=7]="excel",n[n.audio=8]="audio",n[n.zip=9]="zip",n[n.video=10]="video",n[n.svg=11]="svg",n[n.voice=12]="voice",n[n.time=1e4]="time",n)},569502:function(e,t,r){"use strict";r.d(t,{vT:()=>M,lZ:()=>O,ow:()=>m.ow,YX:()=>b,Tg:()=>N,SM:()=>T,Ps:()=>w,Iu:()=>m.Iu,Gu:()=>S,kO:()=>A,Xm:()=>C,sS:()=>E,_T:()=>g._T,Rk:()=>g.Rk,tn:()=>P,ny:()=>_,yc:()=>p,VK:()=>f,fw:()=>j,nZ:()=>h,vH:()=>m.vH,_C:()=>k,$d:()=>g.$d});var n,o,i,s,a,l,u,c,d,p,h,f,m=r("139454");(n=d||(d={})).getVariableTreeNodeByPath=function(e,t){t=t.slice();for(var r=e,n=t.shift();n&&r;)if((n=t.shift())&&!(r=(r.children||[]).find(e=>e.key===n)))return;return r},n.keyPathToNameString=function(e,t){var r=[];t=t.slice();for(var n=e,o=t.shift();o&&n;)if(r.push(n.name),(o=t.shift())&&!(n=(n.children||[]).find(e=>e.key===o)))return"";return r.join(".")},n.nameStringToKeyPath=function(e,t){for(var r=[],n=t.split("."),o=e,i=n.shift();i&&o;)if(r.push(o.key),(i=n.shift())&&!(o=(o.children||[]).find(e=>e.name===i)))return[];return r};var g=r("391963");!function(e){function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",n={name:e,input:{type:r,value:{type:"literal",content:String(t)}}},o=m.ow.String;switch(r){case"string":o=m.ow.String;break;case"integer":o=m.ow.Integer;break;case"float":o=m.ow.Number;break;case"boolean":o=m.ow.Boolean}return n.input.value.rawMeta={type:o},n}e.create=t;e.createString=function(e,r){return t(e,r,"string")};e.createInteger=function(e,r){return t(e,r,"integer")};e.createFloat=function(e,r){return t(e,r,"float")};e.createArray=function(e,t,r){return{name:e,input:{type:"list",schema:r,value:{type:"literal",content:t}}}};e.createBoolean=function(e,r){var n=t(e,r,"boolean");return n.input.value.content=r,n};e.toLiteral=function(e){return e.input.value.content};e.isBlockInput=function(e){var t,r;return!!(null==e?void 0:e.name)&&(null==e||null===(r=e.input)||void 0===r||null===(t=r.value)||void 0===t||t.content,!0)}}(p||(p={}));var y=r("346707"),x=r("155440");var b=((o={}).LITERAL="literal",o.REF="ref",o.OBJECT_REF="object_ref",o);!function(e){function t(e){return"ref"===e.type}function r(e){return"literal"===e.type}e.isRef=t,e.isLiteral=r;e.isObjectRef=function(e){return(null==e?void 0:e.type)==="object_ref"};e.isExpression=function(e){return!(0,y.Z)(e)&&(t(e)||r(e))};e.isEmpty=function(e){if((null==e?void 0:e.type)==="object_ref")return!1;if(null===e)return!0;if("object"!=typeof e&&"function"!=typeof e)return(0,x.Z)(e);if((null==e?void 0:e.content)===""||(0,x.Z)(null==e?void 0:e.content))return!0;if(Array.isArray(null==e?void 0:e.content))return(null==e?void 0:e.content.length)===0;if((null==e?void 0:e.type)==="ref"){var t,r;return!(null==e?void 0:null===(r=e.content)||void 0===r?void 0:null===(t=r.keyPath)||void 0===t?void 0:t.length)}return!1}}(h||(h={}));var w=((i={}).Single="single",i.Batch="batch",i);var _=((s={}).Start="1",s.End="2",s.LLM="3",s.Api="4",s.Code="5",s.Dataset="6",s.If="8",s.SubWorkflow="9",s.Variable="11",s.Database="12",s.Output="13",s.Imageflow="14",s.Text="15",s.ImageGenerate="16",s.ImageReference="17",s.Question="18",s.Break="19",s.SetVariable="20",s.Loop="21",s.Intent="22",s.ImageCanvas="23",s.SceneChat="25",s.SceneVariable="24",s.LTM="26",s.DatasetWrite="27",s.Batch="28",s.Continue="29",s.Input="30",s.Comment="31",s.VariableMerge="32",s.QueryMessageList="37",s.ClearContext="38",s.CreateConversation="39",s.TriggerUpsert="34",s.TriggerDelete="35",s.TriggerRead="36",s.VariableAssign="40",s.Http="45",s.DatabaseUpdate="42",s.DatabaseQuery="43",s.DatabaseDelete="44",s.DatabaseCreate="46",s.UpdateConversation="51",s.DeleteConversation="52",s.QueryConversationList="53",s.QueryConversationHistory="54",s.CreateMessage="55",s.UpdateMessage="56",s.DeleteMessage="57",s.JsonStringify="58",s.JsonParser="59",s),k={1:1,2:2,4:3,3:4,5:5,6:6,9:7,14:8,8:9,21:10,22:11,15:12,13:13,18:14,11:15,12:16,26:17,28:18,30:19,20:20,19:21,29:22,25:23,24:24,34:26,36:27,35:28},C=["39","51","52","53"],A=["55","56","57","37"],O=["54","38"],D=r("178385");(f||(f={})).DEFAULT={outputsPathList:["outputs"],inputsPathList:["inputs.inputParameters"],batchInputListPath:"inputs.batch.inputLists"};var S=((a={}).Customize="default_val",a.Creative="creative",a.Balance="balance",a.Precise="precise",a),T="response_format";var E=((l={})[l.OR=1]="OR",l[l.AND=2]="AND",l);var M=((u={}).OR="OR",u.AND="AND",u),j={[D.n$.String]:"String",[D.n$.Integer]:"Integer",[D.n$.Boolean]:"Boolean",[D.n$.Double]:"Double",[D.n$.List]:"List",[D.n$.Object]:"Object"},N={[g.$d.file]:m.Iu[m.ow.File],[g.$d.image]:m.Iu[m.ow.Image],[g.$d.doc]:m.Iu[m.ow.Doc],[g.$d.code]:m.Iu[m.ow.Code],[g.$d.ppt]:m.Iu[m.ow.Ppt],[g.$d.txt]:m.Iu[m.ow.Txt],[g.$d.excel]:m.Iu[m.ow.Excel],[g.$d.audio]:m.Iu[m.ow.Audio],[g.$d.zip]:m.Iu[m.ow.Zip],[g.$d.video]:m.Iu[m.ow.Video],[g.$d.svg]:m.Iu[m.ow.Svg]};var P=((c={}).DEFAULT="default",c.EXECUTING="executing",c.DONE="done",c)},139454:function(e,t,r){"use strict";r.d(t,{Iu:function(){return l},ow:function(){return o},vH:function(){return s}});var n,o=((n={})[n.String=1]="String",n[n.Integer=2]="Integer",n[n.Boolean=3]="Boolean",n[n.Number=4]="Number",n[n.Object=6]="Object",n[n.Image=7]="Image",n[n.File=8]="File",n[n.Doc=9]="Doc",n[n.Code=10]="Code",n[n.Ppt=11]="Ppt",n[n.Txt=12]="Txt",n[n.Excel=13]="Excel",n[n.Audio=14]="Audio",n[n.Zip=15]="Zip",n[n.Video=16]="Video",n[n.Svg=17]="Svg",n[n.Voice=18]="Voice",n[n.Time=19]="Time",n[n.ArrayString=99]="ArrayString",n[n.ArrayInteger=100]="ArrayInteger",n[n.ArrayBoolean=101]="ArrayBoolean",n[n.ArrayNumber=102]="ArrayNumber",n[n.ArrayObject=103]="ArrayObject",n[n.ArrayImage=104]="ArrayImage",n[n.ArrayFile=105]="ArrayFile",n[n.ArrayDoc=106]="ArrayDoc",n[n.ArrayCode=107]="ArrayCode",n[n.ArrayPpt=108]="ArrayPpt",n[n.ArrayTxt=109]="ArrayTxt",n[n.ArrayExcel=110]="ArrayExcel",n[n.ArrayAudio=111]="ArrayAudio",n[n.ArrayZip=112]="ArrayZip",n[n.ArrayVideo=113]="ArrayVideo",n[n.ArraySvg=114]="ArraySvg",n[n.ArrayVoice=115]="ArrayVoice",n[n.ArrayTime=116]="ArrayTime",n),i=[6,99,100,101,102,103,116],s=[8,7,9,10,11,12,13,14,15,16,17,18,104,105,106,107,108,109,110,111,112,113,114,115],a=[[1,99],[2,100],[3,101],[4,102],[6,103],[7,104],[8,105],[9,106],[10,107],[11,108],[12,109],[13,110],[14,111],[15,112],[16,113],[17,114],[18,115],[19,116]],l={1:"String",2:"Integer",3:"Boolean",4:"Number",6:"Object",7:"Image",8:"File",9:"Doc",10:"Code",11:"PPT",12:"Txt",13:"Excel",14:"Audio",15:"Zip",16:"Video",17:"Svg",18:"Voice",19:"Time",99:"Array<String>",100:"Array<Integer>",101:"Array<Boolean>",102:"Array<Number>",103:"Array<Object>",104:"Array<Image>",105:"Array<File>",106:"Array<Doc>",107:"Array<Code>",108:"Array<PPT>",109:"Array<Txt>",110:"Array<Excel>",111:"Array<Audio>",112:"Array<Zip>",113:"Array<Video>",114:"Array<Svg>",115:"Array<Voice>",116:"Array<Time>"};!function(e){e.LabelMap=l,e.ArrayTypes=a.map(e=>e[1]);e.getLabel=function(t){return e.LabelMap[t]};e.getComplement=function(e){return[...a.map(e=>e[0]),...a.map(e=>e[1])].filter(t=>!e.includes(t))};function t(e){return a.map(e=>e[1]).includes(e)}e.canDrilldown=function(e){return[6,103].includes(e)},e.isArrayType=t;e.isFileType=function(e){return s.includes(e)};e.isVoiceType=function(e){return[18].includes(e)};e.isJSONInputType=function(e){return i.includes(e)};e.getArraySubType=function(e){var t,r=null===(t=a.find(t=>t[1]===e))||void 0===t?void 0:t[0];if(!r)throw Error("WorkflowVariableEntity Error: Unknown Variable Type");return r};e.wrapToArrayType=function(e){var t,r=null===(t=a.find(t=>t[0]===e))||void 0===t?void 0:t[1];if(!r)throw Error("WorkflowVariableEntity Error: Unknown Variable Type");return r};e.getAllArrayType=function(){return[...a.map(e=>e[0]),...a.map(e=>e[1])].filter(t)}}(o||(o={}))},527021:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(157728),o=()=>{var{bot_id:e}=(0,n.useParams)();return t=>{var{workflowId:r,spaceId:n,projectId:o,ideNavigate:i}=t;if(o&&i)i("/workflow/".concat(r,"?from=createSuccess"));else{var s=new URLSearchParams;e&&s.append("bot_id",e),s.append("space_id",null!=n?n:""),s.append("workflow_id",r),s.append("from","createSuccess"),window.open("/work_flow?".concat(s.toString()),"_blank")}}}},731870:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});var n=r(825955),o=r(808549),i=r(120454),s=r(455069),a=r(529801),l=r(268935),u=r(408487),c=r(336205),d=r(727914),p=r(659596),h=r(104313),f=r(891052);function m(){var e,t,r,{pageSize:m=20,enabled:g=!1,from:y,fetchWorkflowListApi:x=u.OHc.GetWorkFlowList.bind(u.OHc)}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[b,w]=(0,s.useState)(u.wz8.All),[_,k]=(0,s.useState)(u.uql.User),[C,A]=(0,s.useState)(""),[O,D]=(0,s.useState)(),[S,T]=(0,s.useState)(),[E,M]=(0,s.useState)(),[j,N]=(0,s.useState)(),[P,B]=(0,s.useState)(),[I,L]=(0,s.useState)(),[F,z]=(0,s.useState)(),[R,X]=(0,s.useState)(""),Z=(0,s.useMemo)(()=>({page:1,size:m,type:_,name:O,space_id:C,status:S,tags:j,order_by:E,login_user_create:F,flow_mode:b,bind_biz_id:P,bind_biz_type:I,project_id:R}),[_,S,O,b,E,C,F,j,P,I,R]),W=(0,s.useCallback)(e=>{[{key:"type",func:k,defaultValue:u.uql.User},{key:"name",func:D},{key:"space_id",func:A,defaultValue:""},{key:"status",func:T},{key:"tags",func:N},{key:"order_by",func:M},{key:"login_user_create",func:z},{key:"flow_mode",func:w,defaultValue:u.wz8.All},{key:"bind_biz_id",func:B},{key:"bind_biz_type",func:L},{key:"project_id",func:X}].filter(t=>{var{key:r}=t;return r in e}).forEach(t=>{var r,{key:n,defaultValue:o,func:i}=t;return null==i?void 0:i(null!==(r=e[n])&&void 0!==r?r:o)})},[]);var V=(e=(0,n._)(function*(e){try{h.E7.info({message:"workflow_list_get_list"});var t={total:0,workflow_list:[]};if(e.bind_biz_type===u.k5N.Scene&&e.bind_biz_id){var r,n,s=yield u.OHc.WorkflowListByBindBiz(e);t.total=null!==(r=s.data.total)&&void 0!==r?r:0,t.workflow_list=(null!==(n=s.data.workflow_list)&&void 0!==n?n:[]).map(e=>{var t,r={can_edit:!0,can_copy:!0,can_delete:!!(null==e?void 0:null===(t=e.creator)||void 0===t?void 0:t.self)};return(0,i._)((0,o._)({},e),{authInfo:r})})}else{Object.assign(e,{schema_type_list:[u.XQ3.FDL],checker:y===f.w.WorkflowAgent?[u.gfc.BotAgent]:void 0});var l,c,d=e.bind_biz_type===u.k5N.DouYinBot?e:(0,a.Z)(e,["bind_biz_id"]),p=yield x(d);t.total=null!==(l=p.data.total)&&void 0!==l?l:0,t.workflow_list=(null!==(c=p.data.workflow_list)&&void 0!==c?c:[]).map(e=>{var t,r,n={can_edit:!0,can_copy:!0,can_delete:!!(null==e?void 0:null===(t=e.creator)||void 0===t?void 0:t.self)},s=(null!==(r=p.data.auth_list)&&void 0!==r?r:[]).find(t=>t.workflow_id===e.workflow_id);return s&&(n=(0,o._)({},n,s.auth)),(0,i._)((0,o._)({},e),{authInfo:n})})}return h.E7.info({message:"workflow_list_get_list_success",meta:{currentPage:e.page,pageSize:e.size,order_by:e.order_by,name:e.name,total:t.total}}),t}catch(e){throw h.E7.error({message:"workflow_list_get_list_fail",error:e}),e}}),function(t){return e.apply(this,arguments)}),{data:H,error:U,fetchNextPage:q,hasNextPage:Y,isFetching:Q,isFetchingNextPage:G,status:$,refetch:K}=(0,l.N)({enabled:g&&!!C,queryKey:["space_workflow_list","vcs",JSON.stringify(Z)],queryFn:e=>{var{pageParam:t}=e;return V(t)},initialPageParam:Z,getNextPageParam:(e,t,r)=>{var n,s;return(null!==(n=r.page)&&void 0!==n?n:1)*m>e.total?null:(0,i._)((0,o._)({},r),{page:(null!==(s=r.page)&&void 0!==s?s:1)+1})}}),J=(0,s.useMemo)(()=>{var e=[],t={};return null==H||H.pages.forEach(r=>{r.workflow_list.forEach(r=>{if(!!r.workflow_id)!t[r.workflow_id]&&e.push(r),t[r.workflow_id]=!0})}),e},[H]),ee=(0,s.useMemo)(()=>{var e;return(null==H?void 0:H.pages)&&Array.isArray(H.pages)&&0!==H.pages.length?null!==(e=H.pages[H.pages.length-1].total)&&void 0!==e?e:0:0},[H]);var et=(t=(0,n._)(function*(e){if(!e.workflow_id||!C)throw new d.sH("normal_error","miss workflowId or spaceID");if(!e.authInfo.can_copy)throw new d.sH("normal_error","no copy permission");h.E7.info({message:"workflow_list_copy_row",meta:{workflowId:e.workflow_id}});try{var t=!1,{data:r}=yield u.OHc.CopyWorkflow({space_id:C,workflow_id:e.workflow_id});if(t=!(null==r?void 0:r.workflow_id)){p.FN.error(c.o.t("workflow_detail_toast_createcopy_failed")),h.E7.error({message:"workflow_list_copy_row_fail",error:new d.sH("normal_error","result no workflow")});return}p.FN.success({content:b===u.wz8.Imageflow?c.o.t("imageflow_detail_toast_createcopy_succeed"):c.o.t("workflow_detail_toast_createcopy_succeed"),showClose:!1}),h.E7.info({message:"workflow_list_copy_row_success",meta:{workflowId:e.workflow_id}}),yield(0,h.Dc)(300),K()}catch(e){h.E7.error({message:"workflow_list_copy_row_fail",error:e}),p.FN.error(c.o.t("workflow_detail_toast_createcopy_failed"))}}),function(e){return t.apply(this,arguments)});var er=(r=(0,n._)(function*(e){if(!e.workflow_id||!C)throw new d.sH("normal_error","miss workflowId or spaceID");if(!e.authInfo.can_delete)throw new d.sH("normal_error","no delete permission");h.E7.info({message:"workflow_list_delete_row",meta:{workflowId:e.workflow_id}});var t,r=u.KN6.CanDelete;r=(yield u.OHc.GetDeleteStrategy({space_id:C,workflow_id:e.workflow_id})).data;var o=[u.KN6.CanDelete,u.KN6.RejectProductDraft].includes(r);var i=(t=(0,n._)(function*(t){var r=(null==t?void 0:t.needDeleteBlockwise)?u.sL0.BlockwiseDelete:u.sL0.BlockwiseUnbind;if(!e.workflow_id||!C)throw new d.sH("normal_error","miss workflowId or spaceID");try{yield u.OHc.DeleteWorkflow({space_id:C,workflow_id:e.workflow_id,action:r}),p.FN.success({content:c.o.t("workflow_add_delete_success"),showClose:!1}),h.E7.info({message:"workflow_list_delete_row_success"}),yield(0,h.Dc)(300),K()}catch(e){h.E7.error({message:"workflow_list_delete_row_fail",error:e}),p.FN.error({content:c.o.t("workflow_add_delete_fail"),showClose:!1})}}),function(e){return t.apply(this,arguments)});return{canDelete:o,deleteType:r,handleDelete:o?i:void 0}}),function(e){return r.apply(this,arguments)});return{flowType:_,setFlowType:k,flowMode:b,setFlowMode:w,spaceId:C,setSpaceId:A,status:S,setStatus:T,name:O,setName:D,tags:j,setTags:N,orderBy:E,setOrderBy:M,loginUserCreate:F,setLoginUserCreate:z,updatePageParam:W,workflowList:J,total:ee,queryError:U,fetchNextPage:q,hasNextPage:Y,isFetching:Q,isFetchingNextPage:G,loadingStatus:$,refetch:K,handleCopy:et,handleDelete:er}}},614904:function(e,t,r){"use strict";r.d(t,{Ax:()=>ec,oh:()=>tg,qz:()=>y,tk:()=>t_,HA:()=>em,R0:()=>eb,AC:()=>ev,Zv:()=>eC,pJ:()=>D.pJ,U8:()=>ef,md:()=>ek.md,wj:()=>eI,Do:()=>ek.Do,ds:()=>tv.d,UF:()=>ee,A2:()=>e9,Mz:()=>eA.Z,wL:()=>ek.wL,tf:()=>Q,BD:()=>ek.BD,tF:()=>ei,ub:()=>tm,Zo:()=>eg,ye:()=>ek.ye,CA:()=>eF,xv:()=>ez});var n,o,i,s,a,l,u,c,d,p,h,f,m,g,y,x,b,w,_,k=r("419034"),C=r("151064"),A=r("455069"),O=r("336205");r("569603");var D=r("104313");/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),r("414616"),(0,D.mk)();var S=r("252237"),T=r.n(S),E=r("584466"),M=r("136515"),j=r("450562"),N=r("873183"),P=r("659596"),B=r("825955"),I=r("808549"),L=r("120454"),F=r("268935"),z=r("408487"),R=r("851954"),X=r.n(R),Z=r("479886"),W=r.n(Z),{Text:V}=P.ZT,H=e=>{var t,r,{className:n,data:o,readonly:i,isActive:s,hiddenActionMenu:a,enablePublishPPE:l,onClick:u,onPublishPPE:c,onResetToCommit:d,onShowCommit:p,hideCommitId:h}=e,f=a?null:(0,C.jsx)(P.v2,{className:"min-w-[96px] mb-2px flex-shrink-0",trigger:"hover",stopPropagation:!0,position:"bottomRight",render:(0,C.jsxs)(P.v2.SubMenu,{mode:"menu",children:[(0,C.jsx)(P.v2.Item,{onClick:(e,t)=>{t.stopPropagation(),null==p||p(o)},children:O.o.t("bmv_view_version")}),(0,C.jsx)(P.v2.Item,{onClick:(e,t)=>{t.stopPropagation(),null==d||d(o)},children:O.o.t("bmv_load_to_draft")}),l?(0,C.jsx)(P.v2.Item,{onClick:(e,t)=>{t.stopPropagation(),null==c||c(o)},children:O.o.t("bmv_pre_release_to_lane")}):null]}),children:(0,C.jsx)(P.hU,{color:"secondary",iconSize:"small",icon:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(N.NsR,{className:"rotate-90"})})})}),m=(0,A.useMemo)(()=>o.create_time?W()(o.create_time).format("YYYY-MM-DD HH:mm:ss"):"",[o]);return(0,C.jsxs)("div",{className:T()("commit-item",s&&"active","p-2 rounded-mini",s&&"coz-mg-hglt",!i&&!s&&"hover:coz-mg-secondary",!i&&"cursor-pointer",n),onClick:()=>null==u?void 0:u(o),children:[(0,C.jsxs)("div",{className:"mb-2",children:[o.type===z.lcl.SubmitOperate&&(0,C.jsx)(P.Vp,{size:"small",children:O.o.t("workflow_publish_multibranch_submitted_title")}),o.type===z.lcl.PubPPEOperate&&(0,C.jsx)(P.Vp,{size:"small",color:o.offline?"primary":"green",children:o.env}),o.type===z.lcl.PublishOperate&&(0,C.jsx)(P.Vp,{size:"small",color:o.offline?"primary":"green",children:X().valid(o.version)?o.version:O.o.t("bmv_official_version")})]}),!h&&(0,C.jsxs)(P.T,{className:"w-full items-start",vertical:!0,spacing:4,children:[(0,C.jsxs)(V,{ellipsis:{showTooltip:{opts:{content:o.submit_commit_id||o.commit_id}}},children:[(0,C.jsxs)("span",{className:"font-bold mr-2",children:[O.o.t("bmv_submit_id"),":"]}),o.submit_commit_id||o.commit_id]}),o.type!==z.lcl.SubmitOperate&&o.offline&&o.update_time?(0,C.jsxs)(V,{ellipsis:{showTooltip:{opts:{content:W()(o.update_time).format("YYYY-MM-DD HH:mm")}}},children:[(0,C.jsxs)("span",{className:"font-bold mr-2",children:[O.o.t("bmv_offline_time"),":"]}),W()(o.update_time).format("YYYY-MM-DD HH:mm")]}):null]}),o.type===z.lcl.PublishOperate&&o.desc?(0,C.jsx)("div",{children:(0,C.jsx)(V,{ellipsis:{rows:4,showTooltip:!0},children:o.desc})}):null,(0,C.jsxs)("div",{className:"flex items-end mt-2",children:[(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{className:"min-w-0 flex items-center mb-1",children:[(0,C.jsx)(P.qE,{className:"mr-2 flex-shrink-0",size:"extra-extra-small",src:null===(t=o.user)||void 0===t?void 0:t.user_avatar,alt:"avatar"}),(0,C.jsx)(V,{ellipsis:!0,fontSize:"12px",children:null===(r=o.user)||void 0===r?void 0:r.user_name})]}),(0,C.jsx)(V,{type:"secondary",fontSize:"12px",children:m})]}),(0,C.jsx)("div",{className:"flex-1"}),f]})]})},U=r("8616"),{Text:q}=P.ZT,Y="current";Object.assign((0,j._Uw)(e=>{var{className:t,spaceId:r,value:n,workflowId:o,readonly:i,type:s,enablePublishPPE:a,showCurrent:l,onItemClick:u,onPublishPPE:c,onResetToCommit:d,onShowCommit:p,onCurrentClick:h,hideCommitId:f}=e,{queryParams:m,updatePageParam:g,list:y,loadingStatus:x,fetchNextPage:b,isFetching:w,hasNextPage:_}=function(e){var t,{spaceId:r,workflowId:n,type:o,pageSize:i=10,enabled:s=!1}=e,[a,l]=(0,A.useState)({space_id:r,workflow_id:n,type:o}),u=(0,A.useMemo)(()=>(0,L._)((0,I._)({},a),{limit:i,last_commit_id:""}),[a,i]),c=(0,A.useCallback)(e=>{l(t=>(0,I._)({},t,e))},[]),d=(0,A.useMemo)(()=>["workflowApi_OperateList",JSON.stringify(u)],[u]);var p=(t=(0,B._)(function*(e){return(yield z.OHc.VersionHistoryList(e)).data}),function(e){return t.apply(this,arguments)}),{data:h,error:f,fetchNextPage:m,hasNextPage:g,isFetching:y,isFetchingNextPage:x,status:b,refetch:w}=(0,F.N)({enabled:!!(r&&n&&s),queryKey:d,queryFn:e=>{var{pageParam:t}=e;return p(t)},initialPageParam:u,getNextPageParam:(e,t,r)=>(null==e?void 0:e.has_more)?(0,L._)((0,I._)({},r),{cursor:e.cursor||""}):null});return{queryParams:a,updatePageParam:c,list:(0,A.useMemo)(()=>{var e=[],t={};return null==h||h.pages.forEach(r=>{var n;null==r||null===(n=r.version_list)||void 0===n||n.forEach(r=>{var n=r.commit_id||"";!t[n]&&e.push(r),t[n]=!0})}),e},[h]),queryError:f,loadingStatus:b,refetch:w,fetchNextPage:m,isFetching:y,isFetchingNextPage:x,hasNextPage:g}}({spaceId:r,workflowId:o,type:s,enabled:!0}),k=(0,A.useRef)(null),D=(0,A.useRef)(null),[S]=(0,E.Z)(D,{root:()=>k.current,threshold:.8});if((0,A.useEffect)(()=>{g({type:s})},[s,g]),(0,M.Z)(()=>{k.current&&k.current.scrollTo({top:0})},[m]),(0,A.useEffect)(()=>{if(!!S&&"success"===x&&!w&&!!_)b()},[S,x,w,_]),"error"===x)return(0,C.jsx)("div",{className:"flex justify-center items-center min-h-[300px] w-full",children:(0,C.jsx)(P.ub,{title:"An error occurred",description:"Please try again later"})});if("pending"===x)return(0,C.jsx)(P.yC,{wrapperClassName:"flex justify-center items-center min-h-[300px] w-full"});if("success"===x&&!y.length&&!l)return(0,C.jsx)("div",{className:"flex justify-center items-center min-h-[300px] w-full",children:(0,C.jsx)(P.ub,{title:O.o.t("query_data_empty"),description:O.o.t("bwc_no_version_record")})});var R=(e,t)=>s===j.lcl.PubPPEOperate?e.offline?"default":"ongoing":0===t?"ongoing":"default";return(0,C.jsxs)("div",{ref:k,className:t,children:[(0,C.jsxs)(P.TY,{children:[l?(0,C.jsx)(P.TY.Item,{className:U.Z["history-item"],type:"warning",dot:n===Y?(0,C.jsx)(N.Ph$,{}):void 0,children:(0,C.jsx)("div",{className:T()("relative top-[-8px] p-2 rounded-mini",n===Y?"coz-mg-hglt":"hover:coz-mg-secondary",!i&&"cursor-pointer"),onClick:()=>null==h?void 0:h(Y),children:(0,C.jsx)(q,{className:"font-bold",children:O.o.t("devops_publish_multibranch_Current")})})}):null,y.map((e,t)=>(0,C.jsx)(P.TY.Item,{className:U.Z["history-item"],type:R(e,t),dot:n===e.commit_id?(0,C.jsx)(N.Ph$,{}):void 0,children:(0,C.jsx)(H,{className:"relative top-[-8px]",data:e,readonly:i,isActive:n===e.commit_id,enablePublishPPE:a,onClick:i?void 0:u,onPublishPPE:c,onResetToCommit:d,onShowCommit:p,hideCommitId:f})},e.commit_id))]}),_?(0,C.jsxs)("div",{className:"flex justify-center py-1",ref:D,children:[(0,C.jsx)(P.yC,{spinning:!0,wrapperClassName:"mr-2"}),(0,C.jsx)("div",{className:"coz-fg-primary",children:O.o.t("Loading")})]}):null]})}),{Item:H});var Q=((n={}).Change="change",n.Select="select",n.Dispose="dispose",n.CompositionStart="compositionStart",n);var G=((o={}).Start="{",o.End="}",o.FullStart="{{",o.FullEnd="}}",o.Separator=".",o.ArrayStart="[",o.ArrayEnd="]",o);var $=((i={}).ObjectKey="object_key",i.ArrayIndex="array_index",i.EndEmpty="end_empty",i);var K=((s={}).Line="paragraph",s.Valid="valid",s.Invalid="invalid",s.SelectedValid="selectedValid",s.SelectedInvalid="selectedInvalid",s),J=r("84840"),ee=e=>{var{className:t,model:r,maxLength:n,disabled:o,isError:i}=e,{visible:s,count:a,max:l}=(0,A.useMemo)(()=>"number"!=typeof r.value.length||"number"!=typeof n?{visible:!1}:{visible:!0,count:r.value.length,max:n},[r.value.length,n]);return o||!s?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)("div",{className:T()(J.Z["expression-editor-counter"],t,{[J.Z["expression-editor-counter-error"]]:i}),children:(0,C.jsxs)("p",{children:[a," / ",l]})})},et={[K.Valid]:{color:"#6675D9"},[K.Invalid]:{color:"inherit"},[K.SelectedValid]:{color:"#6675D9",borderRadius:2,backgroundColor:"var(--light-usage-fill-color-fill-1, rgba(46, 46, 56, 0.08))"},[K.SelectedInvalid]:{color:"inherit",borderRadius:2,backgroundColor:"var(--light-usage-fill-color-fill-1, rgba(46, 46, 56, 0.08))"}},er=e=>{var{type:t}=e.leaf;return(0,C.jsx)("span",(0,L._)((0,I._)({style:t&&et[t]},e.attributes),{children:e.children}))},en=r("566906"),eo=r("205873"),ei=e=>{var{model:t,className:r,placeholder:n,onFocus:o,onBlur:i,readonly:s=!1,dataTestID:a}=e;return(0,C.jsx)("div",{className:r,children:(0,C.jsx)(en.mH,{editor:t.editor,initialValue:t.lines,onChange:e=>{var r;(r=(0,B._)(function*(){t.change(e),t.select(e)}),function(){return r.apply(this,arguments)})()},children:(0,C.jsx)(en.CX,{"data-testid":a,className:T()(eo.Z.slateEditable,"flow-canvas-not-draggable"),"data-flow-editor-selectable":"false",readOnly:s,onFocus:o,onBlur:i,placeholder:n,renderLeaf:er,decorate:t.decorate,onKeyDown:e=>t.keydown(e),onCompositionStart:e=>t.compositionStart(e)})})})},es=r("775699");var ea=((a={}).SetInitialized="set_initialized",a.Refresh="refresh",a.SetParseDataAndEditorPath="set_parse_data_and_editor_path",a.ClearParseDataAndEditorPath="clear_parse_data_and_editor_path",a.SetVariableTree="set_variable_tree",a.SetVisible="set_visible",a.SetAllowVisibleChange="set_allow_visible_change",a.SetHiddenDOM="set_hidden_dom",a.SetRect="set_rect",a.SetSelected="set_selected",a.SetEmptyContent="set_empty_content",a.SetMatchTreeBranch="set_match_tree_branch",a.SearchEffectStart="search_effect_start",a.SearchEffectEnd="search_effect_end",a.FilteredEffectStart="filtered_effect_start",a.FilteredEffectEnd="filtered_effect_end",a),el=(e,t)=>(0,I._)((0,L._)((0,I._)({},e),{version:e.version+1}),t),eu=(e,t)=>{if(t.type===ea.SetInitialized)return el(e,{initialized:!0});if(t.type===ea.Refresh)return el(e,{key:e.key+1});if(t.type===ea.SetParseDataAndEditorPath){var{parseData:r,editorPath:n}=t.payload||{};return el(e,{parseData:r,editorPath:n})}if(t.type===ea.ClearParseDataAndEditorPath)return el(e,{parseData:void 0,editorPath:void 0});if(t.type===ea.SetVariableTree)return el(e,{variableTree:t.payload});if(t.type===ea.SetAllowVisibleChange)return el(e,{allowVisibleChange:t.payload});if(t.type===ea.SetVisible&&e.allowVisibleChange){var o=t.payload;return e.entities.selectorBoxConfig&&(o&&(e.entities.selectorBoxConfig.disabled=!0),!o&&(e.entities.selectorBoxConfig.disabled=!1)),el(e,{visible:o})}return t.type===ea.SetHiddenDOM?el(e,{hiddenDOM:t.payload}):t.type===ea.SetRect?el(e,{rect:t.payload}):t.type===ea.SetSelected?el(e,{selected:t.payload}):t.type===ea.SetEmptyContent?el(e,{emptyContent:t.payload}):t.type===ea.SetMatchTreeBranch?el(e,{matchTreeBranch:t.payload}):t.type===ea.SearchEffectStart?el(e,{renderEffect:(0,L._)((0,I._)({},e.renderEffect),{search:!0})}):t.type===ea.SearchEffectEnd?el(e,{renderEffect:(0,L._)((0,I._)({},e.renderEffect),{search:!1})}):t.type===ea.FilteredEffectStart?el(e,{renderEffect:(0,L._)((0,I._)({},e.renderEffect),{filtered:!0})}):t.type===ea.FilteredEffectEnd?el(e,{renderEffect:(0,L._)((0,I._)({},e.renderEffect),{filtered:!1})}):e},ec=e=>{var[t,r]=(0,A.useReducer)(eu,(0,L._)((0,I._)({},e),{initialized:!1,version:0,key:0,variableTree:[],visible:!0,hiddenDOM:!0,allowVisibleChange:!0,renderEffect:{search:!1,filtered:!1}}));return[t,r]},ed=r("878011"),ep=r("569502");l=y||(y={}),u=e=>{var t,{variables:r,input:n}=e;if(!n.keyPath)return{name:n.name};var o=n.keyPath.shift(),i=n.keyPath,s=r.filter(e=>e.nodeId===o);return(i.reduce((e,r,n)=>{var o=e.find(e=>e.key===r);return(n===i.length-1&&(t=o),o&&o.children)?o.children:[]},s),t)?{name:n.name,keyPath:n.keyPath,variable:t}:{name:n.name}},l.findAvailableVariables=e=>{var{variables:t,inputs:r}=e;return r.map(e=>{var r,n=u({input:e,variables:t});return(null===(r=e.children)||void 0===r?void 0:r.length)&&(n.children=l.findAvailableVariables({variables:t,inputs:e.children||[]})),n})},c=(e,t)=>e.map(e=>{var r={label:e.name,value:"".concat(t.value,".").concat(e.key),key:"".concat(t.value,".").concat(e.key),variable:e,parent:t};return r.children=c(e.children||[],r),r}),l.createVariableTree=(e,t)=>e.map(e=>{var r,n,o,i=t?"".concat(t.key,".").concat(e.name):e.name,s={label:e.name,value:(null===(r=e.keyPath)||void 0===r?void 0:r.join("."))||i,key:i,keyPath:e.keyPath,variable:e.variable,parent:t};return(null===(n=e.children)||void 0===n?void 0:n.length)?s.children=l.createVariableTree(e.children,s):s.children=c((null===(o=e.variable)||void 0===o?void 0:o.children)||[],s),s}),l.pruning=e=>{var{tree:t,segments:r}=e;if(0===r.length)return t;var n=r[r.length-1].type===$.ArrayIndex?r.slice(0,r.length-2):r.slice(0,r.length-1),o=t;return n.forEach(e=>{if(e.type===$.ObjectKey){var t=o.find(t=>t.label===e.objectKey);o=t&&t.children||[]}}),o},l.concatFullPath=e=>{for(var t,{node:r,segments:n}=e,o=r,i=[];o;)(null===(t=o.variable)||void 0===t?void 0:t.type)===ep.ow.ArrayObject?i.unshift({objectKey:o.label,arrayIndex:0}):i.unshift({objectKey:o.label}),o=o.parent;var s=0;return n.find((e,t)=>{if(e.type!==$.ObjectKey)return!1;var r=i[s];if(s++,r.objectKey!==e.objectKey)return!0;var o=n[t+1];return"number"==typeof r.arrayIndex&&(null==o?void 0:o.type)===$.ArrayIndex&&(r.arrayIndex=o.arrayIndex),!1}),i.map((e,t)=>{var r=t===i.length-1;return"number"!=typeof e.arrayIndex||r?e.objectKey:"".concat(e.objectKey,"[").concat(e.arrayIndex,"]")}).join(".")},l.matchTreeBranch=e=>{var{tree:t,segments:r}=e,n=[],o=t,i=r.find((e,t)=>{var r,i=()=>(n.push(null),!0),s=e=>(n.push(e||null),!1),a=n[n.length-1];if(e.type===$.ArrayIndex&&a&&(!a.variable||!ep.ow.isArrayType(a.variable.type))||(null==a?void 0:null===(r=a.variable)||void 0===r?void 0:r.type)&&ep.ow.isArrayType(a.variable.type)&&e.type!==$.ArrayIndex)return i();if(e.type!==$.ObjectKey)return s();var l=o.find(t=>t.label===e.objectKey);return l?(o=l.children||[],s(l)):i()}),s=n.filter(Boolean),a=r.filter(e=>e.type===$.ObjectKey);if(!i&&a.length===s.length)return s},(d=x||(x={})).tokenOffset=e=>{var{lineContent:t,lineOffset:r}=e,n=t.indexOf(G.End,r);if(t.slice(n,n+2)!==G.FullEnd)return;var o=t.lastIndexOf(G.Start,r-1);if(t.slice(o-1,o+1)===G.FullStart)return{lastStartTokenOffset:o,firstEndTokenOffset:n}},d.extractContent=e=>{var{lineContent:t,lineOffset:r,lastStartTokenOffset:n,firstEndTokenOffset:o}=e,i=t.slice(n+1,o);return{content:i,offset:r-n-1}},d.sliceReachable=e=>{var{content:t,offset:r}=e,n=t.slice(0,r);return{reachable:n,unreachable:t.slice(r,t.length)}},d.splitText=e=>{var t=e.split(G.Separator),r=[];return t.forEach(e=>{if(!e.match(/\[\d+\]/)){r.push(e);return}var t=e.lastIndexOf(G.ArrayStart),n=e.substring(0,t),o=e.substring(t);r.push(n),r.push(o)}),r},d.toSegments=e=>{var t=d.splitText(e),r=[];if(!!t.every((e,n)=>{if(e.startsWith(G.ArrayStart)&&e.endsWith(G.ArrayEnd)){var o=e.slice(1,-1),i=Number(o);if(""===o||Number.isNaN(i))return!1;var s=r[r.length-1];if(!s||s.type!==$.ObjectKey)return!1;r.push({type:$.ArrayIndex,index:n,arrayIndex:i})}else if(n===t.length-1&&""===e)r.push({type:$.EndEmpty,index:n});else{if(!e||!/^[\u4e00-\u9fa5_a-zA-Z0-9]*$/.test(e))return!1;r.push({type:$.ObjectKey,index:n,objectKey:e})}return!0}))return r},(p=b||(b={})).serialize=e=>e.map(e=>ed.NB.string(e)).join("\n"),p.deserialize=e=>e.split("\n").map(e=>({type:K.Line,children:[{text:e||""}]})),p.parse=e=>{var{lineContent:t,lineOffset:r}=e,n=x.tokenOffset(e);if(!n)return;var{lastStartTokenOffset:o,firstEndTokenOffset:i}=n,s=x.extractContent((0,I._)({},e,n));if(!s)return;var{content:a,offset:l}=s,u=x.sliceReachable(s);if(!u)return;var c=x.toSegments(u.reachable),d=x.toSegments(a);if(!!c)return{content:{line:t,inline:a,reachable:u.reachable,unreachable:u.unreachable},offset:{line:r,inline:l,lastStart:o,firstEnd:i},segments:{inline:d,reachable:c}}};var eh=r("202635");(h=w||(w={})).editorSelectHandler=e=>{var{reducer:t,payload:r}=e,[n,o]=t,i=b.parse({lineContent:r.content,lineOffset:r.offset});if(!i){o({type:ea.ClearParseDataAndEditorPath}),o({type:ea.SetVisible,payload:!1}),o({type:ea.SetRect,payload:void 0});return}o({type:ea.SetParseDataAndEditorPath,payload:{parseData:i,editorPath:r.path}}),""===i.content.reachable&&o({type:ea.Refresh});var s=h.computeSelected({model:n.model,parseData:i});o({type:ea.SetSelected,payload:s});var a=h.computeVariableTree({model:n.model,parseData:i});o({type:ea.SetVariableTree,payload:a});var l=y.matchTreeBranch({tree:n.model.variableTree,segments:i.segments.reachable});o({type:ea.SetMatchTreeBranch,payload:l});var u=h.computeEmptyContent({parseData:i,fullVariableTree:n.model.variableTree,variableTree:a,matchTreeBranch:l});o({type:ea.SetEmptyContent,payload:u});var c=h.computeRect(n);if(o({type:ea.SetRect,payload:c}),!c){o({type:ea.ClearParseDataAndEditorPath});return}!n.ref.tree.current&&o({type:ea.SetVisible,payload:!0}),o({type:ea.SearchEffectStart})},h.getFinalScale=e=>e.entities.playgroundConfig?e.entities.playgroundConfig.finalScale:1,h.computeRect=e=>{var t,r=null===(t=e.ref.container.current)||void 0===t?void 0:t.getBoundingClientRect();if(!!e.model.editor.selection&&!!r)try{var n=en.F3.toDOMRange(e.model.editor,e.model.editor.selection).getBoundingClientRect();return{top:(n.top-r.top)/h.getFinalScale(e)+5,left:(n.left-r.left)/h.getFinalScale(e)}}catch(e){return}},h.computeSelected=e=>{var{model:t,parseData:r}=e;if(!(null==r?void 0:r.segments.inline))return;var n=y.matchTreeBranch({tree:t.variableTree,segments:r.segments.inline});if(!!n)return n[n.length-1]},h.computeSearch=e=>{if(!e)return"";var t=e.segments.reachable,r=t[t.length-1].type===$.ArrayIndex?t[t.length-2]:t[t.length-1];return r&&r.type===$.ObjectKey?r.objectKey:""},h.computeVariableTree=e=>{var{model:t,parseData:r}=e;return(null==r?void 0:r.segments.reachable)?y.pruning({tree:t.variableTree,segments:r.segments.reachable}):[]},h.computeEmptyContent=e=>{var{parseData:t,fullVariableTree:r,variableTree:n,matchTreeBranch:o}=e;if(!r||!Array.isArray(r)||0===r.length)return""===t.content.reachable?O.o.t("workflow_variable_refer_no_input"):void 0;if(!n||!Array.isArray(n)||0===n.length){if(""===t.content.inline)return O.o.t("workflow_variable_refer_no_input");if(o&&0!==o.length)return O.o.t("workflow_variable_refer_no_sub_variable")}},h.keyboardSelectedClassName=()=>eh.Z["expression-editor-suggestion-keyboard-selected"],h.setUIOptionSelected=e=>{var t,r;if(!(!(null==e?void 0:null===(t=e.classList)||void 0===t?void 0:t.add)||!(null==e?void 0:null===(r=e.classList)||void 0===r?void 0:r.contains)||e.classList.contains("semi-tree-option-empty")))e.classList.add(h.keyboardSelectedClassName())},h.computeUIOptions=e=>{var t,r,n,o,i,s=null===(i=e.ref.suggestion.current)||void 0===i?void 0:null===(o=i.children)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:null===(r=n.children)||void 0===r?void 0:null===(t=r[1])||void 0===t?void 0:t.children;if(!!s){var a=Array.from(s),l=a.findIndex(e=>e.classList.contains(h.keyboardSelectedClassName()));return{optionList:a,selectedIndex:l,selectedOption:a[l]}}},h.preventVisibleJitter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,[r,n]=e;if(!!r.allowVisibleChange)n({type:ea.SetAllowVisibleChange,payload:!1}),setTimeout(()=>{n({type:ea.SetAllowVisibleChange,payload:!0})},t)},h.clearSelectedUIOption=e=>{var t=h.computeUIOptions(e);(null==t?void 0:t.selectedOption)&&t.selectedOption.classList.remove(h.keyboardSelectedClassName())},h.selectFirstUIOption=e=>{var t,r,n,o=h.computeUIOptions(e);if(!(null==o?void 0:o.optionList))return;if(h.clearSelectedUIOption(e),!!(null==o?void 0:null===(n=o.optionList)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:null===(t=r.classList)||void 0===t?void 0:t.add))h.setUIOptionSelected(o.optionList[0])};var ef=e=>{var[t]=e;return(0,A.useCallback)(e=>{var r,n,o=y.concatFullPath({node:e,segments:null!==(n=null===(r=t.parseData)||void 0===r?void 0:r.segments.reachable)&&void 0!==n?n:[]});if(!!t.parseData&&!!t.editorPath){var i={anchor:{path:t.editorPath,offset:t.parseData.offset.lastStart-1},focus:{path:t.editorPath,offset:t.parseData.offset.firstEnd+2}},s="".concat(G.FullStart).concat(o).concat(G.FullEnd);ed.YR.insertText(t.model.editor,s,{at:i})}},[t])},em=e=>{var[t,r]=e;(0,A.useEffect)(()=>{var e=e=>{var n;if(!(!t.visible||!t.ref.suggestion.current||(null===(n=t.ref.suggestion.current)||void 0===n?void 0:n.contains(e.target))))r({type:ea.SetVisible,payload:!1}),r({type:ea.SetRect,payload:void 0})};window.addEventListener("mousedown",e);var n=()=>{window.removeEventListener("mousedown",e)};return()=>{n()}},[t]),(0,A.useEffect)(()=>{var r=t.model.on(Q.Select,t=>w.editorSelectHandler({reducer:e,payload:t}));return()=>{r()}},[]),(0,A.useEffect)(()=>{var e=t.model.on(Q.CompositionStart,e=>r({type:ea.SetVisible,payload:!1}));return()=>{e()}},[]),(0,A.useEffect)(()=>{if(!t.initialized)r({type:ea.SetVisible,payload:!1})},[]),(0,A.useEffect)(()=>{if(!t.initialized&&!t.visible)r({type:ea.SetHiddenDOM,payload:!1}),r({type:ea.SetInitialized})},[t])},eg=(e,t)=>{var[r,n]=e;(0,A.useEffect)(()=>{var e=e=>{if(!r.visible||!r.ref.suggestion.current||!["ArrowDown","ArrowUp"].includes(e.key))return;var t=w.computeUIOptions(r);if(!t)return;var{optionList:n,selectedIndex:o}=t;if(1!==n.length){e.preventDefault();var i=o;"ArrowDown"===e.key?i=-1===o||o===n.length-1?0:o+1:"ArrowUp"===e.key&&(i=o<=0?n.length-1:o-1);var s=n[i];-1!==o&&n[o].classList.remove(w.keyboardSelectedClassName()),w.setUIOptionSelected(s),s.scrollIntoView({behavior:"smooth",block:"nearest"})}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r]),(0,A.useEffect)(()=>{var o=o=>{if(!r.visible||!r.ref.suggestion.current||"Enter"!==o.key)return;var i,s,a,l,u,c,d=w.computeUIOptions(r);if(!(null==d?void 0:d.selectedOption))return;var{selectedOption:p}=d,h=p.getAttribute("data-key");if(!h)return;var f=null===(l=r.ref.tree.current)||void 0===l?void 0:null===(a=l.state)||void 0===a?void 0:null===(s=a.keyEntities)||void 0===s?void 0:null===(i=s[h])||void 0===i?void 0:i.data;if(!f)return;if(o.preventDefault(),n({type:ea.SetVisible,payload:!1}),t(f),!!(null===(u=f.variable)||void 0===u?void 0:u.children)&&(null===(c=f.variable)||void 0===c?void 0:c.children.length)!==0){var{selection:m}=r.model.editor;m&&ed.e6.isCollapsed(m)&&ed.YR.move(r.model.editor,{distance:2,reverse:!0}),w.preventVisibleJitter(e)}};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[r]),(0,A.useEffect)(()=>{var e=e=>{if(!!r.visible&&!!r.ref.suggestion.current&&"Escape"===e.key)e.preventDefault(),n({type:ea.SetVisible,payload:!1})};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r]),(0,A.useEffect)(()=>{w.selectFirstUIOption(r)},[r])},ev=e=>{var[t,r]=e;(0,A.useEffect)(()=>{if(!!t.renderEffect.search&&!!t.parseData){r({type:ea.SearchEffectEnd});var e,n=w.computeSearch(t.parseData);if(null===(e=t.ref.tree.current)||void 0===e||e.search(n),!n&&t.matchTreeBranch){r({type:ea.SetVisible,payload:!0});return}r({type:ea.FilteredEffectStart})}},[t]),(0,A.useEffect)(()=>{if(!!t.renderEffect.filtered){r({type:ea.FilteredEffectEnd});var e,n=Array.from((null===(e=t.ref.tree.current)||void 0===e?void 0:e.state.filteredKeys)||[]);if(!t.emptyContent&&0===n.length){r({type:ea.SetVisible,payload:!1});return}r({type:ea.SetVisible,payload:!0})}},[t])},ey=r("62257"),ex=r("732562");(f=_||(_={})).findPatterns=e=>{for(var t,r=[],n=/{{(.*?)}}/g;null!==(t=n.exec(e));){var o=t.index,i=n.lastIndex,s=t[1];r.push({start:o,end:i,content:s})}return r},m=e=>{var{pattern:t,tree:r}=e,n=x.toSegments(t.content);return n?n[n.length-1].type===$.EndEmpty?{start:t.start,end:t.end,valid:!1,message:"empty with empty"}:y.matchTreeBranch({tree:r,segments:n})?{start:t.start,end:t.end,valid:!0}:{start:t.start,end:t.end,valid:!1,message:"no match variable path"}:{start:t.start,end:t.end,valid:!1,message:"invalid variable path"}},f.lineTextValidate=e=>{var{lineText:t,tree:r}=e;return f.findPatterns(t).map(e=>m({pattern:e,tree:r}))},f.validate=e=>{var{lines:t,tree:r}=e;return t.map(e=>ed.NB.string(e)).map((e,t)=>f.lineTextValidate({lineText:e,tree:r})).flat()};class eb{setVariableTree(e){this.innerVariableTree=e}get variableTree(){return this.innerVariableTree}get lines(){return this.innerLines}get value(){return this.innerValue}setValue(e){if(e!==this.innerValue)this.innerValue=e,this.innerLines=b.deserialize(e),this.syncEditorValue()}setFocus(e){if(this.innerFocus!==e)this.innerFocus=e,e?this.select(this.lines):""!==this.innerValue&&0!==this.editor.children.length&&ed.YR.select(this.editor,ed.ML.start(this.editor,[]))}on(e,t){return this.emitter.on(e,t),()=>{this.emitter.off(e,t)}}change(e){if(!!this.editor.operations.some(e=>"set_selection"!==e.type))this.innerLines=e,this.innerValue=b.serialize(e),this.emitter.emit(Q.Change,{lines:e,value:this.innerValue})}select(e){var{selection:t}=this.editor;if(!t||!ed.e6.isCollapsed(t))return;if(t.anchor.offset!==t.focus.offset||t.anchor.path[0]!==t.focus.path[0]||t.anchor.path[1]!==t.focus.path[1]){this.emitter.emit(Q.Select,{content:"",offset:-1});return}var r=t.anchor.offset,n=t.anchor.path[0],o=t.anchor.path[1],i=e[n];if(!i)return;var s=i.children[o],a=null==s?void 0:s.text;if("string"==typeof a)this.emitter.emit(Q.Select,{content:a,offset:r,path:t.anchor.path})}keydown(e){if(e.key===G.Start&&(e.preventDefault(),ed.YR.insertText(this.editor,G.FullStart+G.FullEnd),ed.YR.move(this.editor,{distance:2,reverse:!0}),setTimeout(()=>{this.select(this.innerLines)},0)),e.ctrlKey||e.metaKey){if("a"===e.key){e.preventDefault(),ed.YR.select(this.editor,{anchor:ed.ML.start(this.editor,[]),focus:ed.ML.end(this.editor,[])});}return}}compositionStart(e){this.emitter.emit(Q.CompositionStart,{event:e})}get decorate(){var e=this;return t=>{var[r,n]=t,o=[];if(!ed.xv.isText(r))return o;var i=_.lineTextValidate({lineText:r.text,tree:e.innerVariableTree});if(i.forEach(e=>{var{start:t,end:r,valid:i}=e,s={anchor:{path:n,offset:t},focus:{path:n,offset:r}};i?o.push((0,I._)({type:K.Valid},s)):o.push((0,I._)({type:K.Invalid},s))}),!this.innerFocus)return o;var s=e.isValidateSelectPath([r,n]),a=i.find(e=>e.valid&&e.start===(null==s?void 0:s.start)&&e.end===(null==s?void 0:s.end));return s&&a?o.push({type:K.SelectedValid,anchor:{path:n,offset:s.start},focus:{path:n,offset:s.end}}):s&&!a&&o.push({type:K.SelectedInvalid,anchor:{path:n,offset:s.start},focus:{path:n,offset:s.end}}),o}}syncEditorValue(){this.editor.children.forEach((e,t)=>{ed.YR.removeNodes(this.editor,{at:[t]})}),this.lines.forEach((e,t)=>{ed.YR.insertNodes(this.editor,e,{at:[this.editor.children.length]})})}isValidateSelectPath(e){var[t,r]=e;if(!ed.xv.isText(t))return;var{selection:n}=this.editor;if(!n)return;var o=n.anchor.offset,i=n.anchor.path[0],s=n.anchor.path[1];if(i!==r[0]||s!==r[1])return;var a=t.text,l=b.parse({lineContent:a,lineOffset:o});if(!!l)return{start:l.offset.lastStart-1,end:l.offset.firstEnd+2,valid:!0}}constructor(e){this.emitter=new ex.Z,this.editor=(0,en.BU)((0,ey.VC)((0,ed.Jh)())),this.innerValue=e,this.innerLines=b.deserialize(e)}}var ew=r("473980"),e_=r("689951"),ek=r("891128"),eC=e=>{var t=e||{},{onClose:r}=t,n=(0,ew._)(t,["onClose"]),[o,{setTrue:i,setFalse:s}]=(0,e_.Z)(!1),a=()=>{null==r||r(),s()};return{node:o?(0,C.jsx)(ek.ZP,(0,I._)({visible:!0,onClose:a},n)):null,close:a,open:i}};r("731870");var eA=r("242505"),eO=r("606947"),eD=r("458620"),eS=r("298203"),eT=r("727914"),eE=r("178385"),eM=r("382534");var ej=((g={})[g.Success=0]="Success",g[g.NoFile=1]="NoFile",g[g.UploadFail=2]="UploadFail",g[g.UploadTimeout=3]="UploadTimeout",g[g.GetUrlFail=4]="GetUrlFail",g[g.ValidateError=5]="ValidateError",g[g.MaxSizeError=6]="MaxSizeError",g[g.SuffixError=7]="SuffixError",g[g.MaxWidthError=8]="MaxWidthError",g[g.MaxHeightError=9]="MaxHeightError",g[g.MinWidthError=10]="MinWidthError",g[g.MinHeightError=11]="MinHeightError",g[g.AspectRatioError=12]="AspectRatioError",g),eN=class e{select(e){var t=this;return(0,B._)(function*(){if(!e)throw new eT.sH("normal_error","选择文件为空");t.reset(),t.file=e,t.displayUrl=URL.createObjectURL(t.file),yield t.validate().catch(()=>{t.validateResult={isSuccess:!1,errNo:5,msg:O.o.t("imageflow_upload_error")}})})()}upload(){var e=this;return(0,B._)(function*(){if(!e.file||!(null===(t=e.validateResult)||void 0===t?void 0:t.isSuccess)||e.isUploading)return;e.isUploading=!0,e.taskId+=1;var t,r,n=e.taskId;if("api"===e.mode)r=yield e.uploadByApi(e.file);else if("uploader"===e.mode)r=yield e.uploadByUploader(e.file);else throw new eT.sH("normal_error","ImageUploader mode error");if(n===e.taskId)e.uploadResult=r,e.isUploading=!1})()}uploadByUploader(e){return new Promise(t=>{var r,n=this.timeout&&setTimeout(()=>t({isSuccess:!1,errNo:3,msg:O.o.t("imageflow_upload_error7")}),this.timeout);(r=(0,B._)(function*(){var r=yield(0,eS.fr)({biz:"workflow",file:e,fileType:"image"}).then(e=>{if(!e)throw new eT.sH("normal_error","no uri");return e}).catch(()=>(t({isSuccess:!1,errNo:2,msg:O.o.t("imageflow_upload_error")}),""));if(!!r){var n=yield z.OHc.SignImageURL({uri:r},{__disableErrorToast:!0}).catch(()=>null),o=(null==n?void 0:n.url)||"";o?t({isSuccess:!0,errNo:0,uri:r,url:o}):t({isSuccess:!1,errNo:4,msg:O.o.t("imageflow_upload_error")})}}),function(){return r.apply(this,arguments)})().finally(()=>{clearTimeout(n)})})}uploadByApi(e){return new Promise(t=>{var r,n=this.timeout&&setTimeout(()=>t({isSuccess:!1,errNo:3,msg:O.o.t("imageflow_upload_error7")}),this.timeout);(r=(0,B._)(function*(){var r=yield(function(e){return new Promise((t,r)=>{var n=new FileReader;n.onload=e=>{var n,o=null===(n=e.target)||void 0===n?void 0:n.result;if(!o||"string"!=typeof o){r(new eT.sH(eD.b.parmasValidation,"file read fail"));return}t(o.replace(/^.*?,/,""))},n.readAsDataURL(e)})})(e).catch(()=>"");if(!r){t({isSuccess:!1,errNo:2,msg:O.o.t("imageflow_upload_error")});return}yield eM.nA.UploadFile({file_head:{file_type:eP(e.name),biz_type:eE.ym.BIZ_BOT_WORKFLOW},data:r}).then(e=>{var r,n;t({isSuccess:!0,errNo:0,uri:(null===(r=e.data)||void 0===r?void 0:r.upload_uri)||"",url:(null===(n=e.data)||void 0===n?void 0:n.upload_url)||""})}).catch(()=>{t({isSuccess:!1,errNo:2,msg:O.o.t("imageflow_upload_error")})})}),function(){return r.apply(this,arguments)})().finally(()=>{clearTimeout(n)})})}reset(){this.file=void 0,this.displayUrl&&(URL.revokeObjectURL(this.displayUrl),this.displayUrl=void 0),this.isUploading=!1,this.uploadResult=void 0,this.validateResult=void 0,this.taskId+=1}validate(){var e=this;return(0,B._)(function*(){if(!!e.file&&!!e.displayUrl){var t=e.rules||{};if(t.maxSize&&e.file.size>t.maxSize){e.validateResult={isSuccess:!1,errNo:6,msg:O.o.t("imageflow_upload_exceed",{size:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var r=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,r)).toFixed(t))).concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r])}(t.maxSize)})};return}if(Array.isArray(t.suffix)&&t.suffix.length>0){var r=eP(e.file.name);if(!t.suffix.includes(r)){e.validateResult={isSuccess:!1,errNo:7,msg:O.o.t("imageflow_upload_error_type",{type:"".concat(t.suffix.filter(Boolean).join("/"))})};return}}var{width:n,height:o}=yield function(e){return new Promise((t,r)=>{var n=new window.Image;n.onload=()=>t({width:n.naturalWidth,height:n.naturalHeight}),n.onerror=e=>r(e),n.src=e})}(e.displayUrl);if(!n||!o){e.validateResult={isSuccess:!1,errNo:5,msg:O.o.t("imageflow_upload_error6")};return}if(t.maxWidth&&n>t.maxWidth){e.validateResult={isSuccess:!1,errNo:8,msg:O.o.t("imageflow_upload_error5",{value:"".concat(t.maxWidth,"px")})};return}if(t.maxHeight&&o>t.maxHeight){e.validateResult={isSuccess:!1,errNo:9,msg:O.o.t("imageflow_upload_error4",{value:"".concat(t.maxHeight,"px")})};return}if(t.minWidth&&n<t.minWidth){e.validateResult={isSuccess:!1,errNo:10,msg:O.o.t("imageflow_upload_error3",{value:"".concat(t.minWidth,"px")})};return}if(t.minHeight&&o<t.minHeight){e.validateResult={isSuccess:!1,errNo:11,msg:O.o.t("imageflow_upload_error2",{value:"".concat(t.minHeight,"px")})};return}if(t.aspectRatio&&n/o-t.aspectRatio>Number.MIN_VALUE){e.validateResult={isSuccess:!1,errNo:12,msg:O.o.t("imageflow_upload_error1")};return}e.validateResult={isSuccess:!0,errNo:0,msg:"success"}}})()}constructor(e){var t,r,n;this.taskId=0,this.mode="uploader",this.isUploading=!1,this.rules=null!==(t=null==e?void 0:e.rules)&&void 0!==t?t:this.rules,this.mode=null!==(r=null==e?void 0:e.mode)&&void 0!==r?r:this.mode,this.timeout=null!==(n=null==e?void 0:e.timeout)&&void 0!==n?n:this.timeout}};function eP(e){var t=e.lastIndexOf(".");return e.slice(t+1).toLowerCase()}var eB=Object.create(null);function eI(e){var t,{rules:r,mode:n,timeout:o}=e||{},i=(0,A.useRef)(new eN({rules:r,mode:n,timeout:o})),[s,a]=(0,A.useState)(!1),[l,u]=(0,A.useState)(!1),[c,d]=(0,A.useState)(""),[p,h]=(0,A.useState)(""),[f,m]=(0,A.useState)("");(0,eO.Z)(()=>{var e;null===(e=i.current)||void 0===e||e.reset()}),(0,A.useEffect)(()=>{i.current.rules=r,i.current.mode=null!=n?n:i.current.mode},[r,n]);var g=(0,A.useCallback)(function(e){var t,{url:r,uri:n,fileName:o}=e,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0!==n&&d(n),void 0!==r&&h(r),void 0!==o&&m(o),!s&&(h(null!=r?r:""),d(null!=n?n:""),m(null!=o?o:"")),!o&&(n&&eB[n]?m(eB[n]):!n&&m("")),(void 0!==n||!s)&&(a(!1),u(!1),null===(t=i.current)||void 0===t||t.reset())},[]);var y=(0,A.useCallback)((t=(0,B._)(function*(e){if(yield i.current.select(e),!(null===(t=i.current.validateResult)||void 0===t?void 0:t.isSuccess))return P.FN.error((null===(r=i.current.validateResult)||void 0===r?void 0:r.msg)||"图片不符合要求"),i.current.validateResult;u(!1),a(!0),h(i.current.displayUrl||""),m(e.name||""),yield i.current.upload(),a(!1);var t,r,{uploadResult:n}=i.current;if(!!n)return u(!n.isSuccess),n.isSuccess?(P.FN.success(O.o.t("file_upload_success")),d(n.uri),eB[n.url]="".concat(e.name)):P.FN.error(n.msg),n}),function(e){return t.apply(this,arguments)}),[]),x=(0,A.useCallback)((0,B._)(function*(){if(!(null===(e=i.current)||void 0===e?void 0:e.file)||!(null===(r=i.current)||void 0===r?void 0:null===(t=r.validateResult)||void 0===t?void 0:t.isSuccess))return P.FN.error(O.o.t("imageflow_upload_action")),{isSuccess:!1,errNo:ej.NoFile,msg:"请选择文件"};a(!0),u(!1),yield i.current.upload(),a(!1);var e,t,r,n=i.current.uploadResult||{isSuccess:!1,errNo:ej.UploadFail,msg:"无上传结果"};return u(!n.isSuccess),n.isSuccess?(P.FN.success(O.o.t("file_upload_success")),d(n.uri),eB[n.url]=i.current.file.name):P.FN.error(n.msg),n}),[]);return{uri:c,url:p,fileName:f,loading:s,isError:l,uploadImg:y,clearImg:(0,A.useCallback)(()=>{var e;d(""),h(""),m(""),a(!1),u(!1),null===(e=i.current)||void 0===e||e.reset()},[]),retryUploadImg:x,setImgValue:g}}function eL(e){return"number"==typeof e&&!isNaN(e)}r("657868");var eF=e=>{var t,r,n,o,{options:i=[],value:s,defaultValue:a,minWidth:l=0,maxWidth:u=1/0,minHeight:c=0,maxHeight:d=1/0,onChange:p,readonly:h,selectClassName:f="",layoutStyle:m="horizontal"}=e,g=null!==(r=null!==(t=null==s?void 0:s.width)&&void 0!==t?t:null==a?void 0:a.width)&&void 0!==r?r:0,y=null!==(o=null!==(n=null==s?void 0:s.height)&&void 0!==n?n:null==a?void 0:a.height)&&void 0!==o?o:0,[x,b]=(0,A.useState)([]),[w,_]=(0,A.useState)(),k=e=>({width:Number(e.split("x")[0]),height:Number(e.split("x")[1])}),D=e=>"".concat(e.width,"x").concat(e.height);return(0,A.useEffect)(()=>{var e,t=D({width:g,height:y}),r=i.map(e=>(0,L._)((0,I._)({},e),{originValue:e.value,value:D(e.value)})),n=r.find(e=>e.value===t);!n&&r.push({label:O.o.t("customize_key_1"),value:"custom"}),_(null!==(e=null==n?void 0:n.value)&&void 0!==e?e:"custom"),b(r)},[g,y,i]),(0,C.jsxs)("div",{className:"flex flex-wrap gap-[12px]",children:[(0,C.jsx)(P.Ph,{onChange:e=>{if("custom"!==e)p(k(e))},disabled:h,className:"".concat(f," ").concat("horizontal"===m?"":"w-full"),value:w,optionList:x,size:"small"}),(0,C.jsx)("div",{className:"flex-1 flex items-center",children:(0,C.jsx)(P.k7,{size:"small",prefix:O.o.t("imageflow_canvas_width"),hideButtons:!0,onNumberChange:e=>{if(!isNaN(e))p({width:Number(e),height:y})},onBlur:e=>{""===e.target.value||eL(l)&&Number(e.target.value)<l?p({width:null!=l?l:0,height:y}):Number(e.target.value)>u&&p({width:u,height:y})},value:g,disabled:h,min:l,max:u,className:"flex-1"})}),(0,C.jsx)("div",{className:"flex-1 flex items-center",children:(0,C.jsx)(P.k7,{prefix:O.o.t("imageflow_canvas_height"),size:"small",hideButtons:!0,onNumberChange:e=>{if(!isNaN(e))p({height:Number(e),width:g})},onBlur:e=>{""===e.target.value||eL(c)&&Number(e.target.value)<c?p({width:g,height:null!=c?c:0}):eL(d)&&Number(e.target.value)>d&&p({width:g,height:d})},value:y,disabled:h,min:c,max:d,className:"flex-1"})})]})},ez=e=>{var{text:t="",rows:r=1,className:n,tooltipPosition:o}=e;return(0,C.jsx)(P.ZT.Paragraph,{ellipsis:{rows:r,showTooltip:{type:"tooltip",opts:{style:{width:"100%",wordBreak:"break-word"},position:o}}},className:n,children:t})},eR=r("887874"),eX=r("740835"),eZ=r("734083");function eW(e){var t=(0,A.useRef)(e);return t.current=e,t}function eV(e,t){try{return JSON.parse(JSON.stringify(e,function(e,r){return t.includes(e)?null:r}))}catch(t){return e}}function eH(e){var[t,r]=(0,A.useState)(e),n=(0,A.useRef)(e);return(0,A.useLayoutEffect)(()=>{!(0,eZ.J)(eV(e,["parent"]),eV(n.current,["parent"]))&&(r(e),n.current=e)},[e]),t}function eU(){return Math.floor(2e6*Math.random()).toString(36)}function eq(e){var t=x.toSegments(e);if(!t)return"";var r=t[t.length-1].type===$.ArrayIndex?t[t.length-2]:t[t.length-1];return r&&r.type===$.ObjectKey?r.objectKey:""}var eY=r("642199"),eQ=r("249294"),eG=r("919658"),e$=r("347278"),eK="api.skip-selection-change",eJ=e$.Z["expression-editor-suggestion-keyboard-selected"],e0=e=>{if(!e)return;var t=e.querySelectorAll(".semi-tree-option-list .semi-tree-option");if(0!==t.length){var r=[...t],n=r.findIndex(e=>e.classList.contains(eJ));return{elements:r,selectedIndex:n,selectedElement:r[n]}}};function e1(e,t){var r=e[t];if(!!r)e.forEach(e=>{e.classList.contains(eJ)&&e.classList.remove(eJ)}),r.classList.add(eJ),r.scrollIntoView({behavior:"smooth",block:"nearest"})}function e2(e,t,r){if(!e)return;var n,o,{from:i,to:s,textBefore:a}=r,l=function(e,t){var r,n=null!==(r=x.toSegments(t))&&void 0!==r?r:[];return y.concatFullPath({node:e,segments:n})}(t,a);if(!!l)e.replaceTextByRange({from:i,to:s,text:l,cursorOffset:(null===(o=(n=t).variable)||void 0===o?void 0:o.children)&&0!==n.variable.children.length?0:2,userEvent:eK})}var e4=r("562312");function e5(e){return!e||!Array.isArray(e)||0===e.length}function e6(e,t){var r=eW(t);(0,A.useEffect)(()=>{if(!!e)return document.addEventListener("keydown",t,!1),()=>{document.removeEventListener("keydown",t,!1)};function t(e){var t=r.current[e.key];"function"==typeof t&&t(e)}},[e])}function e3(e){var{visible:t,content:r}=e;return(0,C.jsx)("div",{className:e$.Z["expression-editor-suggestion-empty"],style:{display:t?"block":"none"},children:(0,C.jsx)("p",{children:r})})}var e8=(0,A.forwardRef)(function(e,t){var{visible:r,className:n,children:o}=e;return(0,C.jsx)("div",{className:T()(n,e$.Z["expression-editor-suggestion"]),style:{display:r?"block":"none"},ref:t,children:o})}),e9={Renderer:function(e){var t,r,{value:n,variableTree:o,className:i,readonly:s,placeholder:a,dataTestID:l,onChange:u}=e,c=(0,A.useRef)(null),d=eW(o),p=eH(o);var h=(t=c,(0,A.useMemo)(()=>[{type:"character",triggerCharacter:"{",handler(e){var r,{from:n,to:o}=e;return null===(r=t.current)||void 0===r||r.replaceTextByRange({from:n,to:o,text:"{{}}",cursorOffset:-2}),!0}}],[]));var f=(r=d,(0,A.useMemo)(()=>[(0,eY.ut)({}),eQ.tk.baseTheme({"& .cm-line":{padding:0},"& .cm-placeholder":{color:"inherit",opacity:.333},"& .cm-content":{wordBreak:"break-all"}}),[eY.Cj.whole.of((e,t)=>{var n,o,i,s,a;if(!!r.current){if("Interpolation"===e.node.type.name&&(null===(n=e.node.firstChild)||void 0===n?void 0:n.type.name)==="{{"&&(null===(o=e.node.lastChild)||void 0===o?void 0:o.type.name)==="}}"){;return(i=t.sliceDoc(e.node.firstChild.to,e.node.lastChild.from),s=r.current,(a=x.toSegments(i))&&a[a.length-1].type!==$.EndEmpty&&y.matchTreeBranch({tree:s,segments:a}))?{type:"className",className:"cm-decoration-interpolation-valid"}:{type:"className",className:"cm-decoration-interpolation-invalid"}}}}),eQ.tk.baseTheme({"& .cm-decoration-interpolation-valid":{color:"#6675D9",caretColor:"#6675D9"}})],[eY.Cj.fromCursor.of((e,t)=>{var{anchor:r}=t.selection.main;if("Interpolation"===e.node.type.name&&e.node.firstChild&&e.node.lastChild&&r>=e.node.firstChild.to&&r<=e.node.lastChild.from)return{type:"background",className:"cm-decoration-interpolation-active",from:e.node.firstChild.from,to:e.node.lastChild.to}}),eQ.tk.baseTheme({"& .cm-decoration-interpolation-active":{borderRadius:"2px",backgroundColor:"var(--light-usage-fill-color-fill-1, rgba(46, 46, 56, 0.08))"}})]],[])),m=(0,A.useMemo)(()=>({class:"".concat(null!=i?i:""," flow-canvas-not-draggable"),"data-testid":null!=l?l:"","data-flow-editor-selectable":"false"}),[i,l]),g=(0,A.useCallback)(e=>{"function"==typeof u&&u(e.value)},[u]);return(0,A.useEffect)(()=>{var e=c.current;if(!!e)e.updateWholeDecorations()},[p]),(0,A.useEffect)(()=>{var e=c.current;if(!!e)"string"==typeof n&&n!==e.getValue()&&e.setValue(n)},[n]),(0,C.jsx)(eR.Th,{plugins:eX.Z,defaultValue:null!=n?n:"",options:{fontSize:14,inputRules:h,readOnly:s,placeholder:a,contentAttributes:m},onFocus:function(){var e=c.current;if(!!e)e.updateWholeDecorations()},onChange:g,extensions:f,didMount:e=>c.current=e})},Popover:function(e){var t,r,n,o,i,s,a,l,u,c,d,p,h,f,m,g,b,w,_,k,D,S,T,{getPopupContainer:E,variableTree:M,className:j,onVisibilityChange:N}=e,P=eH(M),B=(0,A.useRef)(null),I=(0,A.useRef)(null),L=eW(N),[F,z]=(0,A.useState)(""),R=(0,eR.jE)(),X=eW(R),Z=function(e){var[t,r]=(0,A.useState)(),n=eW(t);return(0,A.useEffect)(()=>{if(!!e){var t=e.$view;return e.$on("selectionChange",i),e.$on("focus",s),()=>{e.$off("selectionChange",i),e.$off("focus",s)}}function o(e){if(null==e?void 0:e.transactions.some(e=>e.isUserEvent(eK))){r(void 0);return}var o,i,{from:s,to:a,anchor:l,head:u}=t.state.selection.main;if(o={from:s,to:a,anchor:l,head:u},i=n.current,(!!o||!!i)&&(!o||!i||o.anchor!==i.anchor||o.head!==i.head||o.from!==i.from||o.to!==i.to))r({from:s,to:a,anchor:l,head:u})}function i(e){o(e.update)}function s(){o()}},[e]),t}(R),W=function(e){var[t,r]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{if(!!e)return e.$on("focus",t),e.$on("blur",n),()=>{e.$off("focus",t),e.$off("blur",n)};function t(){r(!0)}function n(){r(!1)}},[e]),t}(R);var V=(t=R,r=null==Z?void 0:Z.anchor,(0,A.useMemo)(()=>{if(!!t&&void 0!==r)return function(e,t){var r=(0,e4.qz)(e.state).cursorAt(t);do if("Interpolation"===r.node.type.name&&r.node.firstChild&&r.node.lastChild&&t>=r.node.firstChild.to&&t<=r.node.lastChild.from){var n=e.state.sliceDoc(r.node.firstChild.to,r.node.lastChild.from),o=t-r.node.firstChild.to;return{from:r.node.firstChild.to,to:r.node.lastChild.from,text:n,offset:o,textBefore:n.slice(0,o)}}while(r.parent())}(t.$view,r)},[t,r]));var H=(n=R,o=P,i=V,(0,A.useMemo)(()=>{if(!n||!i)return[];var e=x.toSegments(i.textBefore);return e?y.pruning({tree:o,segments:e}):[]},[n,o,i]));var U=(s=V,a=H,(0,A.useMemo)(()=>{if(!a)return[];if(!s)return a;var e=eq(s.textBefore);return a.filter(t=>t.label.startsWith(e))},[s,a]));var q=(l=P,u=H,c=V,(0,A.useMemo)(()=>{if(!!c){if(e5(l))return""===c.textBefore?O.o.t("workflow_variable_refer_no_input"):void 0;if(e5(u)){if(""===c.text)return O.o.t("workflow_variable_refer_no_input");var e=x.toSegments(c.textBefore);if(!e)return;var t=y.matchTreeBranch({tree:null!=l?l:[],segments:e});if(t&&0!==t.length)return O.o.t("workflow_variable_refer_no_sub_variable")}}},[l,u,c]));d=function(e){var[t,r]=(0,A.useState)("");return(0,A.useEffect)(()=>{r(eU())},[e]),t}(U),p=B,h=V,f=()=>{var e=e0(I.current);if(!!e){var{elements:t}=e;e1(t,0)}},m=eW(h),(0,A.useEffect)(()=>{if(p.current&&m.current){var e=eq(m.current.textBefore);p.current.search(e),f()}},[d,h]);var Y=(g=null==V?void 0:V.text,b=P,(0,A.useMemo)(()=>{if(!g)return;var e=x.toSegments(g);if(!e)return;var t=y.matchTreeBranch({tree:b,segments:e});if(!!t)return t[t.length-1]},[g,b])),Q=(0,A.useCallback)((e,t,r)=>{if(!!R&&!!V)e2(R,r,V)},[R,V]),G=W&&(!!V&&U.length>0||!!q),[$,K]=(0,A.useState)(!1);(0,A.useEffect)(()=>{K(!0)},[Z]);var J=G&&$;var{prev:ee,next:et,apply:er}=(w=R,_=V,k=I,D=B,S=eW(w),T=eW(_),(0,A.useMemo)(()=>({prev:function(){var e=e0(k.current);if(!e)return;var{elements:t,selectedIndex:r}=e;if(1!==t.length){var n=r-1<0?t.length-1:r-1;e1(t,n)}},next:function(){var e=e0(k.current);if(!!e){var{elements:t,selectedIndex:r}=e,n=r+1>=t.length?0:r+1;e1(t,n)}},apply:function(){if(!T.current)return;var e,t,r,n,o=e0(k.current);if(!o)return;var{selectedElement:i}=o,s=null==i?void 0:i.getAttribute("data-key");if(!s)return;var a=null===(n=D.current)||void 0===n?void 0:null===(r=n.state)||void 0===r?void 0:null===(t=r.keyEntities)||void 0===t?void 0:null===(e=t[s])||void 0===e?void 0:e.data;if(!!a)e2(S.current,a,T.current)}}),[]));return e6(J,{ArrowUp:ee,ArrowDown:et,Enter:er}),e6(J,{Escape(){K(!1)}}),(0,A.useEffect)(()=>{var e,t;!0===J?null===(e=X.current)||void 0===e||e.disableKeybindings(["ArrowUp","ArrowDown","Enter"]):null===(t=X.current)||void 0===t||t.disableKeybindings([])},[J]),(0,A.useEffect)(()=>{"function"==typeof L.current&&L.current(J)},[J]),(0,C.jsx)(es.J2,{trigger:"custom",visible:J,keepDOM:!0,rePosKey:F,getPopupContainer:E,content:(0,C.jsxs)("div",{onMouseDown:e=>e.preventDefault(),style:{display:J?"block":"none"},"data-expression-popover":!0,children:[(0,C.jsx)(e3,{visible:!!q,content:q}),(0,C.jsx)(e8,{ref:I,visible:!q,className:j,children:(0,C.jsx)(es.mp,{className:e$.Z["expression-editor-suggestion-tree"],showFilteredOnly:!0,filterTreeNode:!0,onChangeWithObject:!0,ref:B,treeData:H,searchRender:!1,value:Y,emptyContent:null,onSelect:Q})})]}),children:(0,C.jsx)(eG.Vj,{side:eY.m6.Anchor,onChange:()=>z(eU())})})},EditorProvider:eR.KU},e7=r("189284"),te=r("529223"),tt=r("909776"),tr=e=>{if(!!e)return{product_draft_status:void 0!==e.product_draft_status?parseInt(e.product_draft_status||"0"):j.Lo5.Default,external_flow_info:e.external_flow_info,schema_type:void 0!==e.schema_type?parseInt(e.schema_type||"0"):j.XQ3.DAG,plugin_id:e.plugin_id,icon_uri:e.icon_uri,url:e.url}},tn=e=>{var t=tr(e.biz_extend);return{workflow_id:e.res_id,url:null==t?void 0:t.url,icon_uri:null==t?void 0:t.icon_uri,name:e.name,desc:e.desc,schema_type:null==t?void 0:t.schema_type,external_flow_info:null==t?void 0:t.external_flow_info,space_id:e.space_id}},to=r("724847"),ti=r("707107"),ts=e=>{var{spaceId:t="",refreshPage:r}=e,[n,o]=(0,A.useState)(j.wz8.Workflow),i=(0,to.LA)({onPublishSuccess:()=>{null==r||r()},fromSpace:!0,flowMode:n});return{actionHandler:e=>{o(e.res_type===tt.b0.Imageflow?j.wz8.Imageflow:j.wz8.Workflow),i.setSpace(t),i.showModal({type:to.AK.WORKFLOW_INFO,product:{meta_info:{entity_id:e.res_id,name:e.name}},source:ti.MU.WORKFLOW_PERSONAL_LIST})},publishModal:i.ModalComponent}},ta=e=>{var t,r,n,o,{spaceId:i,userId:s,refreshPage:a}=e,[l,u]=(0,A.useState)(!1),[c,d]=(0,A.useState)();var p=(t=(0,B._)(function*(e){if(!e.res_id||!i)throw new eT.sH("normal_error","miss workflowId or spaceID");D.E7.info({message:"workflow_list_delete_row",meta:{workflowId:e.res_id}});var t,r=j.KN6.CanDelete;r=(yield j.OHc.GetDeleteStrategy({space_id:i,workflow_id:e.res_id})).data;var n=[j.KN6.CanDelete,j.KN6.RejectProductDraft].includes(r);var o=(t=(0,B._)(function*(t){var r=(null==t?void 0:t.needDeleteBlockwise)?j.sL0.BlockwiseDelete:j.sL0.BlockwiseUnbind;if(!e.res_id||!i)throw new eT.sH("normal_error","miss workflowId or spaceID");try{yield j.OHc.DeleteWorkflow({space_id:i,workflow_id:e.res_id,action:r}),P.FN.success({content:O.o.t("workflow_add_delete_success"),showClose:!1}),D.E7.info({message:"workflow_list_delete_row_success"}),yield(0,D.Dc)(300),null==a||a()}catch(e){D.E7.error({message:"workflow_list_delete_row_fail",error:e}),P.FN.error({content:O.o.t("workflow_add_delete_fail"),showClose:!1})}}),function(e){return t.apply(this,arguments)});return{canDelete:n,deleteType:r,handleDelete:n?o:void 0}}),function(e){return t.apply(this,arguments)});var h=(r=(0,B._)(function*(e){var t=e.creator_id===s,r=yield p(e),n=O.o.t("delete_title");r.deleteType===j.KN6.UnListProduct&&(n=O.o.t("workflowstore_unable_to_delete_workflow"));var o=O.o.t("library_delete_desc");r.deleteType===j.KN6.UnListProduct&&(o=t?O.o.t("workflowstore_the_workflow_has_been"):O.o.t("workflowstore_delete_permission"));var i=r.canDelete?O.o.t("confirm"):O.o.t("workflowstore_remove_wf");r.deleteType===j.KN6.UnListProduct&&!t&&(i="");var a=O.o.t("cancel");r.deleteType===j.KN6.UnListProduct&&!t&&(a=O.o.t("confirm")),d({title:n,desc:o,cancelText:a,okText:i,okHandle:()=>{if(r.canDelete){var n;null==r||null===(n=r.handleDelete)||void 0===n||n.call(r,{needDeleteBlockwise:!1})}else r.deleteType===j.KN6.UnListProduct&&t&&window.open("/store/".concat(e.res_type===tt.b0.Workflow?"workflow":"imageflow","/").concat(e.res_id,"?entity_id=true"),"_blank")}}),u(!0)}),function(e){return r.apply(this,arguments)});return{deleteModal:(0,C.jsx)(P.u_,{maskClosable:!1,centered:!0,visible:l,title:null!==(n=null==c?void 0:c.title)&&void 0!==n?n:"",onOk:()=>{u(!1),null==c||c.okHandle()},onCancel:()=>{u(!1)},closeOnEsc:!0,cancelText:null==c?void 0:c.cancelText,okText:null==c?void 0:c.okText,okButtonColor:"red",children:(0,C.jsx)("div",{className:"coz-common-content",children:null!==(o=null==c?void 0:c.desc)&&void 0!==o?o:""})}),actionHandler:h}},tl=r("157728"),tu=e=>{var t,{spaceId:r}=e,n=(0,tl.useNavigate)();return{actionHandler:(t=(0,B._)(function*(e){if(!e.res_id||!r)throw new eT.sH("normal_error","miss workflowId or spaceID");D.E7.info({message:"workflow_list_copy_row",meta:{workflowId:e.res_id}});try{var t=!1,{data:o}=yield j.OHc.CopyWorkflow({space_id:r,workflow_id:e.res_id});if(t=!(null==o?void 0:o.workflow_id)){P.FN.error(O.o.t("workflow_detail_toast_createcopy_failed")),D.E7.error({message:"workflow_list_copy_row_fail",error:new eT.sH("normal_error","result no workflow")});return}P.FN.success({content:e.res_type===tt.b0.Imageflow?O.o.t("imageflow_detail_toast_createcopy_succeed"):O.o.t("workflow_detail_toast_createcopy_succeed"),showClose:!1}),D.E7.info({message:"workflow_list_copy_row_success",meta:{workflowId:e.res_id}}),yield(0,D.Dc)(300),n("/work_flow?workflow_id=".concat(o.workflow_id,"&space_id=").concat(r))}catch(e){D.E7.error({message:"workflow_list_copy_row_fail",error:e}),P.FN.error(O.o.t("workflow_detail_toast_createcopy_failed"))}}),function(e){return t.apply(this,arguments)})}},tc=r("567282"),td=e=>{var t,r,n,{spaceId:o,refreshPage:i}=e;var s=(t=(0,B._)(function*(e,t){yield j.OHc.UpdateWorkflowMeta({space_id:o,workflow_id:t,flow_mode:e}),P.FN.success(O.o.t("wf_chatflow_123",{Chatflow:O.o.t(e===tc.wz.ChatFlow?"wf_chatflow_76":"Workflow")})),yield new Promise(e=>setTimeout(e,300)),null==i||i()}),function(e,r){return t.apply(this,arguments)});var a=(r=(0,B._)(function*(e){var t;return s(tc.wz.Workflow,null!==(t=e.res_id)&&void 0!==t?t:"")}),function(e){return r.apply(this,arguments)});return{switchToWorkflow:a,switchToChatflow:(n=(0,B._)(function*(e){var t;return s(tc.wz.ChatFlow,null!==(t=e.res_id)&&void 0!==t?t:"")}),function(e){return n.apply(this,arguments)})}},{ActionKey:tp}=te,th=e=>{var t,[r]=(0,e7.V)(),{userId:n,onEditWorkflowInfo:o,getCommonActions:i}=e,{actionHandler:s,deleteModal:a}=ta(e),{actionHandler:l}=tu(e),{actionHandler:u,publishModal:c}=ts(e),{switchToChatflow:d,switchToWorkflow:p}=td({spaceId:null!==(t=e.spaceId)&&void 0!==t?t:"",refreshPage:e.refreshPage}),h={[tp.Copy]:l,[tp.Delete]:s,[tp.Edit]:e=>{o(tn(e))},[tp.SwitchToFuncflow]:p,[tp.SwitchToChatflow]:d},{enablePublishEntry:f}=(0,to.lR)();return{renderWorkflowResourceActions:e=>{var t,o=tr(e.biz_extend),s=null==o?void 0:o.product_draft_status,a=e.res_type===tt.b0.Imageflow,{actions:l}=e,c=null==l?void 0:l.find(e=>e.key===tp.Delete),d=null==l?void 0:l.find(e=>e.key===tp.Copy),p=null==l?void 0:l.find(e=>e.key===tp.Edit),m=null==l?void 0:l.find(e=>e.key===tp.SwitchToChatflow),g=null==l?void 0:l.find(e=>e.key===tp.SwitchToFuncflow),y=e.creator_id===n,x=[{hide:!p,disabled:(null==p?void 0:p.enable)===!1,actionKey:"edit",actionText:O.o.t("Edit"),handler:()=>{var t;return null==h?void 0:null===(t=h[tp.Edit])||void 0===t?void 0:t.call(h,e)}},{hide:!m,disabled:(null==m?void 0:m.enable)===!1,actionKey:"switchChatflow",actionText:O.o.t("wf_chatflow_121",{flowMode:O.o.t("wf_chatflow_76")}),handler:()=>{var t;return null==h?void 0:null===(t=h[tp.SwitchToChatflow])||void 0===t?void 0:t.call(h,e)}},{hide:!g,disabled:(null==g?void 0:g.enable)===!1,actionKey:"switchWorkflow",actionText:O.o.t("wf_chatflow_121",{flowMode:O.o.t("Workflow")}),handler:()=>{var t;return null==h?void 0:null===(t=h[tp.SwitchToFuncflow])||void 0===t?void 0:t.call(h,e)}},...null!==(t=null==i?void 0:i(e))&&void 0!==t?t:[],{hide:!f||!r["bot.community.store_imageflow"]&&a||!y||(null==o?void 0:o.plugin_id)==="0",actionKey:"publishWorkflowProduct",actionText:s===j.Lo5.Default?O.o.t("workflowstore_submit"):O.o.t("workflowstore_submit_update"),handler:()=>{null==u||u(e)}}];return(0,C.jsx)(P.iA.TableAction,{deleteProps:{hide:!c,disabled:(null==c?void 0:c.enable)===!1,disableConfirm:!0,handler:()=>{var t;return null===(t=h[tp.Delete])||void 0===t?void 0:t.call(h,e)}},copyProps:{hide:!d,disabled:(null==d?void 0:d.enable)===!1,handler:()=>{var t;return null===(t=h[tp.Copy])||void 0===t?void 0:t.call(h,e)}},actionList:x})},modals:[a,c]}},tf=e=>{var t=(0,tl.useNavigate)(),r=t=>{D.E7.info({message:"workflow_list_edit_row",meta:{workflowId:t}}),n(t,e)},n=(e,r)=>{if(!!e&&!!r)D.E7.info({message:"workflow_list_navigate_to_detail",meta:{workflowId:e}}),t("/work_flow?workflow_id=".concat(e,"&space_id=").concat(r))};return{handleWorkflowResourceClick:e=>{D.E7.info({message:"workflow_list_click_row"}),r(null==e?void 0:e.res_id)},goWorkflowDetail:n}},tm=e=>{var{from:t=ek.wL.SpaceWorkflowList,bindBizType:r,bindBizId:n,refreshPage:o,spaceId:i,goWorkflowDetail:s,projectId:a,onCreateSuccess:l,hiddenTemplateEntry:u,nameValidators:c}=e,[d,p]=(0,A.useState)(),[h,f]=(0,A.useState)("add"),[m,g]=(0,A.useState)(j.wz8.Workflow),[y,{setTrue:x,setFalse:b}]=(0,e_.Z)(!1),[w]=(0,e7.V)(),_=()=>{f("update"),D.E7.info({message:"workflow_list_open_create_modal"}),x()},S=(0,A.useMemo)(()=>E||w["bot.community.store_imageflow"]?{productCategory:"all",isSpaceWorkflow:!1,dataSourceType:ek.ye.Product}:{workflowTag:1,isSpaceWorkflow:!1,dataSource:ek.ye.Workflow},[w,m]),{node:T}=eC({from:t,flowMode:m,dupText:O.o.t("Copy"),hiddenCreate:!0,hiddenSpaceList:!0,initState:S,projectId:a,onAdd:()=>{null==o||o()},onDupSuccess:e=>{window.open("/work_flow?space_id=".concat(i,"&workflow_id=").concat(e.workflow_id,"&from=dupSuccess"))}}),E=(0,A.useMemo)(()=>(0,j.ikd)(m),[m]);return{openCreateModal:e=>{f("add"),g(e||j.wz8.Workflow),D.E7.info({message:"workflow_list_open_create_modal"}),x()},handleEditWorkflow:e=>{p(e),g(e.flow_mode||j.wz8.Workflow),_()},workflowModal:T,createWorkflowModal:(0,C.jsx)(k.d,{initConfirmDisabled:!0,mode:h,flowMode:m,projectId:a,visible:y,onCancel:b,bindBizType:r,bindBizId:n,workFlow:"update"===h?d:void 0,getLatestWorkflowJson:void 0,customTitleRender:void 0,onSuccess:e=>{var{workflowId:t}=e;if(b(),!t)throw new eT.sH("[Workflow] create failed","create workflow failed, no workflow id");if(l&&"add"===h){l({workflowId:t});return}if("update"===h){null==o||o();return}setTimeout(()=>{null==s||s(t,i)},500)},spaceID:i,nameValidators:c})}},tg=e=>{var{spaceId:t,userId:r,getCommonActions:n}=e,{handleWorkflowResourceClick:o,goWorkflowDetail:i}=tf(t),{openCreateModal:s,workflowModal:a,createWorkflowModal:l,handleEditWorkflow:u}=tm((0,L._)((0,I._)({},e),{goWorkflowDetail:i})),{renderWorkflowResourceActions:c,modals:d}=th((0,L._)((0,I._)({},e),{userId:r,onEditWorkflowInfo:u,getCommonActions:n}));return{workflowResourceModals:[l,a,...d],openCreateModal:s,handleWorkflowResourceClick:o,renderWorkflowResourceActions:c}};r("184827"),r("649213");var tv=r("527021"),ty=r("735114"),tx=r("214942"),tb=e=>{var{voice:t,onDelete:r,disabled:n}=e,{isPlaying:o,togglePlayPause:i}=(0,to.xm)(null==t?void 0:t.preview_audio);return t?(0,C.jsxs)("div",{style:{backgroundColor:"var(--coz-mg-card-hovered)",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",height:"44px",border:"1px solid var(--coz-stroke-primary)",padding:"6px",borderRadius:"var(--coze-8)",cursor:"pointer"},children:[(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,C.jsx)(P.qE,{shape:"square",size:"small",src:t.icon_url}),(0,C.jsx)("span",{style:{marginLeft:"8px",marginRight:"2px"},children:t.voice_name}),o?(0,C.jsx)(P.hU,{theme:"borderless",disabled:n,onClick:i,size:"small",color:"secondary",icon:(0,C.jsx)(N.T0r,{color:"#4E40E5"})}):(0,C.jsx)(P.hU,{theme:"borderless",disabled:n,onClick:i,size:"small",color:"secondary",icon:(0,C.jsx)(N.JE7,{color:"#4E40E5"})})]}),(0,C.jsx)(P.hU,{disabled:n,onClick:r,size:"small",color:"secondary",icon:(0,C.jsx)(N.dVD,{})})]}):null},tw=e=>{var[t,r]=(0,A.useState)(null),{loading:n}=(0,ty.Z)(()=>e?eM.lv.APIMGetVoice({voice_ids:[e]}).then(e=>{var t,n,o,i,s=null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(t=n.voices)||void 0===t?void 0:t[0];return r(null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(o=i.voices)||void 0===o?void 0:o[0]),s}).catch(()=>(r(null),null)):Promise.resolve(null).then(()=>(r(null),null)),{refreshDeps:[e]});return{voice:t,setVoice:r,loading:n}},t_=e=>{var{value:t,onChange:r,disabled:n}=e,[o,i]=(0,A.useState)(t),s=(0,tx.rY)(e=>e.space.id)||"",{voice:a,setVoice:l}=tw(o);(0,A.useEffect)(()=>{i(t)},[t]);var{open:u,modal:c}=(0,to.PF)({spaceId:s,onSelectVoice:e=>{l(e),null==r||r(e.voice_id)}});return(0,C.jsxs)(C.Fragment,{children:[(null==a?void 0:a.voice_id)?(0,C.jsx)(tb,{disabled:n,voice:a,onDelete:()=>{l(null),null==r||r(void 0)}}):(0,C.jsx)(P.zx,{disabled:n,style:{width:"100%",fontWeight:"500"},size:"small",icon:(0,C.jsx)(N.PwN,{}),color:"primary",onClick:u,children:O.o.t("workflow_variable_select_voice")}),c]})}},891052:function(e,t,r){"use strict";r.d(t,{w:function(){return o}});var n,o=((n={}).WorkflowAddNode="workflow_addNode",n.BotSkills="bot_skills",n.BotSkillsDouyin="bot_skills_douyin_ide",n.BotMultiSkills="bot_multi_skills",n.BotTrigger="bot_trigger",n.BotShortcut="bot_shortcut",n.SpaceWorkflowList="space_workflow_list",n.WorkflowAgent="workflow_agent",n.SocialSceneHost="social_scene_host",n.ProjectImportLibrary="project_import_library",n.ProjectWorkflowAddNode="project_workflow_addNode",n.ProjectAddWorkflowResource="project_add_workflow_resource",n)},104313:function(e,t,r){"use strict";r.d(t,{Dc:()=>s,pJ:()=>h,E7:()=>a,mk:()=>i}),r("479886");var n,o=r("297158"),i=()=>{if(void 0===n){var{userAgent:e}=navigator,t=/iPad/.test(e),r=e.includes("Macintosh")&&"ontouchstart"in document.documentElement;n=t||r}return n},s=e=>new Promise(t=>{setTimeout(t,e)}),a=o.E7.createReporterWithPreset({namespace:"workflow"}),l=r("174558"),u=r.n(l),c=r("336205"),d={"zh-CN":"zh_CN",zh:"zh-CN",zh_TW:"zh_TW","en-US":"en",en:"en","ja-JP":"ja",ja:"ja","ko-KR":"ko",ko:"ko","fr-FR":"fr",fr:"fr","de-DE":"de",de:"de","it-IT":"it",it:"it","es-ES":"es",es:"es"},p=e=>{var t=null==e?void 0:e.split(" ");if((null==t?void 0:t.length)!==6)return!1;try{var r=u().toString(e,{locale:d["zh-CN"],throwExceptionOnParseError:!0});if(r.includes("null")||r.includes("undefined"))return!1;return!0}catch(e){return!1}},h=(e,t)=>{if(!e)return"";var r,n=c.o.getLanguages();return p(e)?u().toString(e,{locale:null!==(r=d[n[0]])&&void 0!==r?r:d["zh-CN"],use24HourTimeFormat:!0}):null!=t?t:c.o.t("workflow_trigger_param_unvalid_cron",{},"参数为非法 cron 表达式")}},419034:function(e,t,r){"use strict";r.d(t,{d:function(){return D}});var n=r(825955),o=r(808549),i=r(120454),s=r(151064),a=r(455069),l=r(345420),u=r(408487),c=r(450562),d=r(75117),p=r(458620),h=r(297158),f=r(336205),m=r(378925),g=r(873183),y=r(659596),x=r(214942),b=r(775699),w=r(727914),_=r(178385),k=r(308418),C=["702095075","702095081"],{Checkbox:A}=b.l0,O=e=>{if(!!e)return[{url:e.url||"",uid:e.icon_uri||""}]};function D(e){var t,r,D,S,T,{flowMode:E=u.wz8.Workflow,mode:M,bindBizId:j,bindBizType:N,projectId:P,visible:B,workFlow:I,initConfirmDisabled:L=!1,customTitleRender:F,onSuccess:z,onCancel:R,nameValidators:X=[]}=e,Z=(0,a.useRef)(null),[W,V]=(0,a.useState)(L),[H,U]=(0,a.useState)(),q=(0,m.Pc)(),Y=null!==(T=null!==(S=null==q?void 0:q.locale)&&void 0!==S?S:navigator.language)&&void 0!==T?T:"en-US";var Q=(t=(0,n._)(function*(){var e,t=null===(e=Z.current)||void 0===e?void 0:e.formApi;return yield null==t?void 0:t.validate(["name"]),null==t?void 0:t.getValues()}),function(){return t.apply(this,arguments)}),G=()=>{h.E7.info({message:"workflow_info_modal_cancel",namespace:"workflow"}),U(void 0),null==R||R()},$=e=>{if(C.includes(e.code||"")){V(!0),U(e.msg);return}throw G(),e};var K=(r=(0,n._)(function*(){var e,t=null==I?void 0:I.workflow_id;if(h.E7.info({message:"workflow_info_modal_confirm_update",namespace:"workflow",meta:{workflowId:t}}),!t){var r=f.o.t("workflow_list_create_modal_workflow_id_empty");throw new w.sH(p.b.parmasValidation,r)}var n=yield Q(),o={workflow_id:t,icon_uri:(null==n?void 0:null===(e=n.icon_uri)||void 0===e?void 0:e[0].uid)||"",name:null==n?void 0:n.name,desc:(null==n?void 0:n.target)?n.target:"",space_id:I.space_id||"",ignore_status_transfer:!0,schema_type:(null==n?void 0:n.schema_type)||(null==I?void 0:I.schema_type)};try{yield u.OHc.UpdateWorkflowMeta(o),h.E7.info({message:"workflow_info_modal_update_success",namespace:"workflow"}),y.FN.success({content:f.o.t("workflow_list_update_success"),showClose:!1}),yield null==z?void 0:z({workflowId:t,flowMode:E})}catch(e){h.E7.error({message:"workflow_info_modal_update_fail",namespace:"workflow",error:e}),$(e)}}),function(){return r.apply(this,arguments)});var J=(D=(0,n._)(function*(){h.E7.info({message:"workflow_info_modal_confirm_create",namespace:"workflow"});var e=yield Q();try{var t,r,n,s=(0,i._)((0,o._)({},e),{space_id:x.rY.getState().getSpaceId(),name:(null==e?void 0:e.name)||"",desc:(null==e?void 0:e.target)||"",icon_uri:(null==e?void 0:null===(r=e.icon_uri)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.uid)||"",flow_mode:E,bind_biz_id:j,bind_biz_type:N,project_id:P,create_conversation:P?null==e?void 0:e.create_conversation:void 0}),a=yield u.OHc.CreateWorkflow(s,{headers:{"x-locale":Y}}),l=E===u.wz8.Imageflow?f.o.t("imageflow_create_toast_success"):E===u.wz8.ChatFlow?f.o.t("wf_chatflow_95"):f.o.t("workflow_list_create_success");y.FN.success({content:l,showClose:!1}),yield null==z?void 0:z({workflowId:null===(n=a.data)||void 0===n?void 0:n.workflow_id,flowMode:E}),h.E7.info({message:"workflow_info_modal_create_success",namespace:"workflow"})}catch(e){h.E7.error({message:"workflow_info_modal_create_fail",namespace:"workflow",error:e}),$(e)}}),function(){return D.apply(this,arguments)}),ee=(0,a.useMemo)(()=>{var e=function(e,t){switch(t){case u.wz8.Imageflow:return"add"===e?f.o.t("imageflow_create"):f.o.t("imageflow_edit");case u.wz8.Workflow:return"add"===e?f.o.t("workflow_list_create_modal_title"):f.o.t("workflow_list_edit_modal_title");case u.wz8.ChatFlow:return"add"===e?f.o.t("wf_chatflow_81"):f.o.t("wf_chatflow_84");default:return"add"===e?f.o.t("workflow_list_create_modal_title"):f.o.t("workflow_list_edit_modal_title")}}(M,E);return F&&(0,l.Z)(F)?F(e):e},[M,E,F]),et=(0,a.useMemo)(()=>E===u.wz8.Imageflow?{nameLabel:f.o.t("imageflow_create_name"),namePlaceholder:f.o.t("imageflow_create_name_placeholder"),descLabel:f.o.t("imageflow_create_description"),descPlaceholder:f.o.t("imageflow_create_description_placeholder"),nameRequiredLabel:f.o.t("imageflow_create_name_placeholder"),nameFormatRuleLabel:f.o.t("imageflow_create_name_wrong_format"),descRequiredLabel:f.o.t("imageflow_create_description_placeholder")}:E===u.wz8.ChatFlow?{nameLabel:f.o.t("wf_chatflow_85"),namePlaceholder:f.o.t("wf_chatflow_91"),descLabel:f.o.t("wf_chatflow_86"),descPlaceholder:f.o.t("wf_chatflow_92"),nameRequiredLabel:f.o.t("wf_chatflow_93"),nameFormatRuleLabel:f.o.t("wf_chatflow_94"),descRequiredLabel:f.o.t("wf_chatflow_122")}:{nameLabel:f.o.t("workflow_list_create_modal_name_label"),namePlaceholder:f.o.t("workflow_list_create_modal_name_placeholder"),descLabel:f.o.t("workflow_list_create_modal_description_label"),descPlaceholder:f.o.t("workflow_list_create_modal_description_placeholder"),nameRequiredLabel:f.o.t("workflow_list_create_modal_name_rule_required"),nameFormatRuleLabel:f.o.t("workflow_list_create_modal_name_rule_reg"),descRequiredLabel:f.o.t("workflow_list_create_modal_description_rule_required")},[E]),er=(0,a.useMemo)(()=>{switch(E){case u.wz8.Imageflow:return _.Tu.Imageflow;case u.wz8.Workflow:return _.Tu.Workflow;case u.wz8.ChatFlow:return _.Tu.ChatFlow;default:return _.Tu.Workflow}},[E]);return(0,s.jsx)(b.M5,{type:"action-small",keepDOM:!1,icon:null,visible:B,onCancel:G,title:ee,footer:(0,s.jsxs)(y.T,{children:[(0,s.jsx)(y.zx,{className:"min-w-[96px]",color:"primary",onClick:G,"data-testid":"workflow.list.create.cancel",children:f.o.t("workflow_list_create_modal_footer_cancel")}),(0,s.jsx)(y.fl,{className:"min-w-[96px]",color:"hgltplus",disabled:W,onClick:"add"===M?J:K,"data-testid":"workflow.list.create.submit",children:f.o.t("workflow_list_create_modal_footer_confirm")})]}),children:(0,s.jsxs)(b.l0,{ref:Z,showValidateIcon:!1,className:k.Z["upload-form"],onValueChange:e=>{var{name:t,target:r}=e;U(void 0),V(!(null==t?void 0:t.trim())||!(null==r?void 0:r.trim()))},children:[(0,s.jsx)(d.s,{noLabel:!0,fieldClassName:k.Z["upload-field"],field:"icon_uri",initValue:O(I),iconType:er,fileBizType:_.ym.BIZ_BOT_WORKFLOW}),(0,s.jsx)(b.P6,{stopValidateWithError:!0,className:k.Z["textarea-single-line"],field:"name",placeholder:et.namePlaceholder,label:et.nameLabel,initValue:null==I?void 0:I.name,rows:1,maxCount:c.hhB,maxLength:c.hhB,rules:[{required:!0,message:et.nameRequiredLabel},{validator(e,t){if(!c.Pz_.test(t)){var r;return new w.sH(p.b.formValidation,null!==(r=et.nameFormatRuleLabel)&&void 0!==r?r:"")}return!0}},...X],"data-testid":"workflow.list.create.name.input"}),"add"===M&&P&&E===u.wz8.ChatFlow?(0,s.jsxs)(A,{fieldClassName:k.Z["conversation-field"],noLabel:!0,initValue:!0,field:"create_conversation",children:[(0,s.jsx)(b.ZT.Text,{className:"coz-fg-primary",children:f.o.t("wf_chatflow_87")}),(0,s.jsx)(y.u,{position:"top",theme:"dark",style:{width:278},content:f.o.t("wf_chatflow_82"),children:(0,s.jsx)(g.L03,{className:"text-[16px] ml-1.5 coz-fg-dim"})})]}):null,(0,s.jsx)(b.P6,{field:"target",className:k.Z["textarea-multi-line"],label:et.descLabel,placeholder:et.descPlaceholder,initValue:null==I?void 0:I.desc,maxCount:600,maxLength:600,rules:[{required:!0,message:et.descRequiredLabel}],"data-testid":"workflow.list.create.desc.input"}),"string"==typeof H?(0,s.jsx)(b.l0.ErrorMessage,{error:H}):null]})})}},649213:function(e,t,r){"use strict";r.d(t,{u:function(){return k}});var n=r(825955),o=r(151064),i=r(157728),s=r(455069),a=r(156133),l=r(724847),u=r(408487),c=r(336205),d=r(727914),p=r(117140),h=r(178385),f=r(382534),m=r(659596),g=r(242505),y=r(398420),x=r(518175),b=r(104313),w=["788664021","788664024"],{Text:_}=m.ZT;function k(e){var t,r,k,C,{data:A,workFlowList:O,copyProductHandle:D,onWorkFlowListChange:S,onAdd:T,onRemove:E,onItemClick:M,onDupSuccess:j,onDelete:N,handleDeleteWorkflow:P,isProfessionalTemplate:B}=e,I=(0,s.useContext)(g.Z),{bot_id:L}=(0,i.useParams)(),F=(0,i.useNavigate)(),z=(0,l.WC)(e=>(0,l.nz)(null==e?void 0:e.rightsInfo));(0,s.useEffect)(()=>{l.WC.getState().getRights()},[]);function R(){return(R=(0,n._)(function*(e){return(0,y.D)(null==I?void 0:I.modalState)?function(e){return X.apply(this,arguments)}(e):Z(e)})).apply(this,arguments)}function X(){return(X=(0,n._)(function*(e){if(!e.spaceId||!e.workflowId)throw new d.sH("normal_error","getProjectWorkflow: empty id");var t,r=null!==(t=(yield u.OHc.GetWorkflowDetail({space_id:e.spaceId,workflow_ids:[e.workflowId]},{__disableErrorToast:!0})).data)&&void 0!==t?t:[];if(!(null==r?void 0:r.length))throw m.FN.error(c.o.t("workflow_add_list_added_id_empty")),new d.sH("normal_error","project workflow list no item");return r.at(0)})).apply(this,arguments)}function Z(e){return W.apply(this,arguments)}function W(){return(W=(0,n._)(function*(e){if(!e.spaceId||!e.workflowId||!e.pluginId)throw new d.sH("normal_error","getWorkflowItemByPluginId: empty id");var t,r,n,o,i,s,a=null!==(o=null===(t=(yield f.Js.GetPlaygroundPluginList({space_id:e.spaceId,page:1,size:1,plugin_ids:[e.pluginId||""],plugin_types:[e.isImageflow?h.zV.IMAGEFLOW:h.zV.WORKFLOW]},{__disableErrorToast:!0})).data)||void 0===t?void 0:t.plugin_list)&&void 0!==o?o:[];if(!(null==a?void 0:a.length))throw m.FN.error(c.o.t(e.isImageflow?"imageflow_add_toast_error":"workflow_add_list_added_id_empty")),new d.sH("normal_error","plugin_list no item");var l=a.at(0);return{workflow_id:e.workflowId||"",plugin_id:e.pluginId||"",name:(null==l?void 0:l.name)||"",desc:(null==l?void 0:l.desc_for_human)||"",parameters:null!==(i=null==l?void 0:null===(n=l.plugin_apis)||void 0===n?void 0:null===(r=n.at(0))||void 0===r?void 0:r.parameters)&&void 0!==i?i:[],plugin_icon:(null==l?void 0:l.plugin_icon)||"",version_name:null==l?void 0:l.version_name,flow_mode:(null==l?void 0:l.plugin_type)===h.zV.IMAGEFLOW?u.wz8.Imageflow:null!==(s=e.flowMode)&&void 0!==s?s:u.wz8.Workflow}})).apply(this,arguments)}function V(e){return(null==I?void 0:I.modalState.dataSourceType)===x.ye.Workflow}var H=(t=(0,n._)(function*(){if(!(!I||V(A))){if(B&&!z){F("/sign/oauth?redirect=".concat(encodeURIComponent("/store/bot"),"&platform=volcano&page_from=coze_pro_sign_in"));return}b.E7.info({message:"workflow_modal: dupProduct"});var e="",t="";try{var r=yield D(A,I.spaceId);e=r.pluginId,t=r.workflowId}catch(e){w.includes(null==e?void 0:e.code)?m.FN.error(e.message):(m.FN.error(c.o.t("copy_failed")),b.E7.error({message:"dupProduct: copyProductHandle error",error:e}));return}yield(0,b.Dc)(100);try{var n,i=yield Z({spaceId:I.spaceId,workflowId:t,pluginId:e,isImageflow:(null==A?void 0:null===(n=A.meta_info)||void 0===n?void 0:n.entity_type)===p._J.ImageflowTemplateV2});null==S||S([...null!=O?O:[],i]),null==T||T(i,{isDup:!0,spaceId:I.spaceId}),j?j(i):m.FN.success({content:(0,o.jsxs)(m.T,{spacing:6,children:[(0,o.jsx)(_,{children:c.o.t("workflowstore_workflow_copy_successful")}),(0,o.jsx)(m.zx,{color:"primary",onClick:()=>{window.open("/work_flow?space_id=".concat(I.spaceId,"&workflow_id=").concat(i.workflow_id,"&from=dupSuccess"))},children:c.o.t("workflowstore_continue_editing")})]})})}catch(e){m.FN.error(c.o.t("workflow_add_list_added_fail")),b.E7.error({message:"dupProduct: getWorkflowItemByPluginId error",error:e})}}}),function(){return t.apply(this,arguments)});var U=(r=(0,n._)(function*(){if(!!I&&!!V(A)){b.E7.info({message:"workflow_modal: dupWorkflowTpl"});var e="",t="";try{var r,n,i,s,a=yield u.OHc.CopyWkTemplateApi({workflow_ids:[A.workflow_id||""],target_space_id:I.spaceId},{__disableErrorToast:!0});t=(null===(r=a.data[null!==(i=A.workflow_id)&&void 0!==i?i:""])||void 0===r?void 0:r.workflow_id)||"",e=(null===(n=a.data[null!==(s=A.workflow_id)&&void 0!==s?s:""])||void 0===n?void 0:n.plugin_id)||"0"}catch(e){m.FN.error(c.o.t("copy_failed")),b.E7.error({message:"dupWorkflowTpl: CopyWkTemplateApi error",error:e});return}if(!t||"0"===e){m.FN.error(c.o.t("copy_failed")),b.E7.error({message:"dupWorkflowTpl: CopyWkTemplateApi error",error:new d.sH("normal_error","CopyWkTemplateApi: plugin_id is ".concat(e,", workflow_id is ").concat(t))});return}yield(0,b.Dc)(100);try{var l,p=yield Z({spaceId:I.spaceId,workflowId:t,pluginId:e,isImageflow:I.flowMode===u.wz8.Imageflow,flowMode:A.flow_mode}),h=null!==(l=null==A?void 0:A.flow_mode)&&void 0!==l?l:null==I?void 0:I.flowMode;void 0!==h&&(p.flow_mode=h),null==S||S([...null!=O?O:[],p]),null==T||T(p,{isDup:!0,spaceId:I.spaceId}),j?j(p):m.FN.success({content:(0,o.jsxs)(m.T,{spacing:6,children:[(0,o.jsx)(_,{children:c.o.t("workflowstore_workflow_copy_successful")}),(0,o.jsx)(m.zx,{color:"primary",onClick:()=>{window.open("/work_flow?space_id=".concat(I.spaceId,"&workflow_id=").concat(p.workflow_id))},children:c.o.t("workflowstore_continue_editing")})]})})}catch(e){m.FN.error(e.message||c.o.t("workflow_add_list_added_fail")),b.E7.error({message:"dupWorkflowTpl: getWorkflowItemByPluginId error",error:e})}}}),function(){return r.apply(this,arguments)});var q=(k=(0,n._)(function*(){if(!I||!V(A))return!1;b.E7.info({message:"workflow_modal: addWorkflow"});try{var e=yield function(e){return R.apply(this,arguments)}({spaceId:I.spaceId,workflowId:A.workflow_id,pluginId:A.plugin_id,isImageflow:(null==A?void 0:A.flow_mode)===u.wz8.Imageflow,flowMode:null==A?void 0:A.flow_mode});void 0!==(null==A?void 0:A.flow_mode)&&(e.flow_mode=null==A?void 0:A.flow_mode),null==S||S([...null!=O?O:[],e]);var t=yield null==T?void 0:T(e,{isDup:!1,spaceId:I.spaceId});if((0,a.Z)(t))return t;return!0}catch(e){return m.FN.error(e.message||c.o.t("workflow_add_list_added_fail")),b.E7.error({message:"addWorkflow: getWorkflowItemByPluginId error",error:e}),!1}}),function(){return k.apply(this,arguments)});var Y=(C=(0,n._)(function*(){if(!V(A)||!P)return;b.E7.info({message:"workflow_modal: deleteWorkflow"});var e,t=yield null==P?void 0:P(A);if((null==t?void 0:t.canDelete)&&(yield null==t?void 0:null===(e=t.handleDelete)||void 0===e?void 0:e.call(t)),!O)return;var r=O.find(e=>e.workflow_id===A.workflow_id);if(!!r)null==N||N(r),null==S||S(O.filter(e=>e.workflow_id!==A.workflow_id))}),function(){return C.apply(this,arguments)});return{dupWorkflowTpl:U,dupProduct:H,addWorkflow:q,removeWorkflow:()=>{if(!O||!V(A))return;b.E7.info({message:"workflow_modal: removeWorkflow"});var e=O.find(e=>e.workflow_id===A.workflow_id);if(!!e)null==E||E(e),null==S||S(O.filter(e=>e.workflow_id!==A.workflow_id))},deleteWorkflow:Y,itemClick:()=>{if(!!I){if(b.E7.info({message:"workflow_modal: itemClick"}),M){var e,t,r,n,o,i=M({item:A,type:I.modalState.dataSourceType},I.getModalState(I));if(!i||i.handled)return}if(V(A)){;n=null!==(t=(e=A).workflow_id)&&void 0!==t?t:"",o=new URLSearchParams,L&&o.append("bot_id",L),o.append("space_id",null!==(r=null==I?void 0:I.spaceId)&&void 0!==r?r:""),o.append("workflow_id",n),window.open("/work_flow?".concat(o.toString()),"_blank")}else window.open("/template/workflow/".concat(A.meta_info.id,"?entity_id=").concat(p._J.WorkflowTemplateV2),"_blank")}}}}},184827:function(e,t,r){"use strict";r.d(t,{e:function(){return p}});var n=r(825955),o=r(808549),i=r(120454),s=r(455069),a=r(268935),l=r(707107),u=r(727914),c=r(117140),d=r(382534);function p(){var e,t,{pageSize:r=12,enabled:p=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[h,f]=(0,s.useState)(),[m,g]=(0,s.useState)(c.ER.Heat),[y,x]=(0,s.useState)(),[b,w]=(0,s.useState)(),_=(0,s.useMemo)(()=>({entity_types:[c._J.WorkflowTemplateV2,c._J.ImageflowTemplateV2],page_num:1,page_size:r,category_id:y,sort_type:m,source:b,keyword:h}),[h,m,y,b]),k=(0,s.useMemo)(()=>["workflow_product",JSON.stringify(_)],[_]);var C=(e=(0,n._)(function*(e){return(yield d.yF.PublicGetProductList(e)).data}),function(t){return e.apply(this,arguments)}),{data:A,error:O,fetchNextPage:D,hasNextPage:S,isFetching:T,isFetchingNextPage:E,status:M,refetch:j}=(0,a.N)({enabled:p,queryKey:k,queryFn:e=>{var{pageParam:t}=e;return C(t)},initialPageParam:_,getNextPageParam:(e,t,r)=>{var n;return(null==e?void 0:e.has_more)?(0,i._)((0,o._)({},r),{page_num:(null!==(n=r.page_num)&&void 0!==n?n:1)+1}):null}}),N=(0,s.useMemo)(()=>{var e=[],t={};return null==A||A.pages.forEach(r=>{var n;null==r||null===(n=r.products)||void 0===n||n.forEach(r=>{if(!!r.meta_info.id)!t[r.meta_info.id]&&e.push(r),t[r.meta_info.id]=!0})}),e},[A]);return{updatePageParam:e=>{if("category_id"in e&&x(e.category_id),"sort_type"in e){var t;g(null!==(t=e.sort_type)&&void 0!==t?t:c.ER.Newest)}"keyword"in e&&f(e.keyword),"source"in e&&w(e.source)},workflowProductList:N,queryError:O,loadingStatus:M,refetch:j,fetchNextPage:D,isFetching:T,isFetchingNextPage:E,hasNextPage:S,copyProduct:(t=(0,n._)(function*(e,t){if(!(null==e?void 0:null===(r=e.meta_info)||void 0===r?void 0:r.id))throw new u.sH("normal_error","no productId");var r,n,s,a,p,h,f,m,g,y,x=yield d.yF.PublicDuplicateProduct({product_id:null==e?void 0:null===(n=e.meta_info)||void 0===n?void 0:n.id,space_id:t,entity_type:e.meta_info.entity_type},{__disableErrorToast:!0}),b=null===(s=x.data)||void 0===s?void 0:s.new_entity_id,w=null===(a=x.data)||void 0===a?void 0:a.new_plugin_id;if(!b||!w)throw new u.sH("normal_error","copyProduct fail, no new_entity_id");return(0,l.Gg)(l.Kg.template_action_front,(0,i._)((0,o._)({template_id:null!==(m=e.meta_info.id)&&void 0!==m?m:"",template_name:null!==(g=e.meta_info.name)&&void 0!==g?g:"",template_type:e.meta_info.entity_type===c._J.WorkflowTemplateV2?"workflow":"imageflow",template_tag_professional:e.meta_info.is_professional?"professional":"basic",entity_id:null!==(y=e.meta_info.entity_id)&&void 0!==y?y:""},(null==e?void 0:null===(p=e.meta_info)||void 0===p?void 0:p.is_free)?{template_tag_prize:"free"}:{template_tag_prize:"paid",template_prize_detail:Number(null==e?void 0:null===(f=e.meta_info)||void 0===f?void 0:null===(h=f.price)||void 0===h?void 0:h.amount)||0}),{action:"duplicate",after_id:b})),{workflowId:b,pluginId:w}}),function(e,r){return t.apply(this,arguments)})}}},891128:function(e,t,r){"use strict";r.d(t,{BD:()=>h.BD,ZP:()=>tt,Do:()=>Q.D,md:()=>te,ye:()=>h.ye,sD:()=>L,wL:()=>p.w});var n,o=r("473980"),i=r("151064"),s=r("455069"),a=r("252237"),l=r.n(a),u=r("408487"),c=r("336205"),d=r("775699"),p=r("891052"),h=r("518175"),f=r("808549"),m=r("120454"),g=r("550540"),y=r("527116"),x=r("450562"),b=r("707107"),w=r("214942"),_=r("727914"),k=r("286518"),C=r("242505"),A=r("998600"),O=r("824113"),D=r("117140");function S(){var e=(0,s.useContext)(C.Z),{run:t,cancel:r}=(0,A.Z)(e=>{e.length>100?u(e.substring(0,100)):u(e)},{wait:300});if(!e)return null;var{dataSourceType:n,query:o,isSpaceWorkflow:a,sortType:l}=e.modalState,u=t=>{var r={query:null!=t?t:""};n===h.ye.Workflow&&(r.workflowTag=a?0:1,r.sortType=void 0),n===h.ye.Product&&(!t&&l===D.ER.Relative&&(r.sortType=D.ER.Heat),t&&!e.modalState.query&&(r.sortType=r.sortType=D.ER.Relative)),e.updateModalState(r)};return(0,i.jsx)(O.yO,{tabIndex:-1,value:o,placeholder:c.o.t("workflow_add_search_placeholder"),"data-testid":"workflow.modal.search",onSearch:e=>{e?t(e):(r(),u(""))}})}var T=r("825955"),E=r("672496"),M=r("873183"),j=r("189284");r("382534");var N=r("592476"),P=(0,s.forwardRef)((e,t)=>{var r,{from:n,hiddenSpaceList:o,hiddenExplore:a,hiddenLibrary:d,hiddenWorkflowCategories:f=[]}=e,m=(0,s.useContext)(C.Z),[g]=(0,j.V)();var y=(r=(0,T._)(function*(){var e,t;if(a)return{type:"WorkFlowTemplateTag",data:[]};if(g["bot.community.store_imageflow"]||(0,x.ikd)((null==m?void 0:m.flowMode)||u.wz8.Workflow))return{type:"PublicGetProductCategoryList",data:[]};return{type:"WorkFlowTemplateTag",data:null!==(t=null===(e=(yield x.OHc.WorkFlowTemplateTag({flow_mode:null==m?void 0:m.flowMode})).data)||void 0===e?void 0:e.tags)&&void 0!==t?t:[]}}),function(){return r.apply(this,arguments)}),b=(0,s.useMemo)(()=>(null==m?void 0:m.modalState)?m.modalState.dataSourceType===h.ye.Product?m.modalState.productCategory:m.modalState.workflowTag:"",[null==m?void 0:m.modalState]),w=(0,s.useMemo)(()=>{var e=["workflow-modal-side"];return e.push("flowMode-".concat(null==m?void 0:m.flowMode)),e},[m]),{data:_}=(0,E.a)({enabled:!!m,queryKey:w,queryFn:y});(0,s.useImperativeHandle)(t,()=>({getCurrent:()=>null==_?void 0:_.data.find(e=>e.type===b)}));var k=e=>{null==m||m.updateModalState({isSpaceWorkflow:e!==h.BD.Example,workflowCategory:e,workflowTag:0,query:"",dataSourceType:h.ye.Workflow,productCategory:e,sortType:void 0})},A=(0,s.useMemo)(()=>{var e=d?[]:[{title:c.o.t("project_resource_modal_library_resources",{resource:c.o.t("library_resource_type_workflow")}),icon:(0,i.jsx)(M.Iqn,{className:N.Z["tool-tag-list-cell-icon"]}),testId:"workflow.modal.search.option.library",category:h.BD.Library}];return n===p.w.ProjectWorkflowAddNode&&e.push({title:c.o.t("project_resource_modal_project_resources",{resource:c.o.t("library_resource_type_workflow")}),icon:(0,i.jsx)(M.Iqn,{className:N.Z["tool-tag-list-cell-icon"]}),testId:"workflow.modal.search.option.project",category:h.BD.Project}),e.push({title:c.o.t("workflow_add_example"),icon:(0,i.jsx)(M.Iqn,{className:N.Z["tool-tag-list-cell-icon"]}),testId:"workflow.modal.search.option.example",category:h.BD.Example}),e.filter(e=>!f.includes(e.category))},[n,d,f,g]);return m?(0,i.jsx)("div",{className:"tool-tag-list ".concat(N.Z["tool-tag-list"]),children:!o&&(0,i.jsx)("div",{children:A.map(e=>{var t=(null==m?void 0:m.modalState.workflowCategory)===e.category;return(0,i.jsxs)("div",{"data-testid":e.testId,className:l()(N.Z["tool-tag-list-cell"],{[N.Z.active]:t}),onClick:()=>k(e.category),children:[e.icon,e.title]},e.testId)})})}):null});P.displayName="WorkflowFilter";var B=r("567282"),I=r("659596");var L=((n={}).Title="title",n.NavigationMy="navigation_my",n.NavigationTeam="navigation_team",n.NavigationExplore="navigation_explore",n.TabAll="tab_all",n.TabMine="tab_mine",n.ListEmptyTitle="list_empty_title",n.CreatedListEmptyTitle="created_list_empty_title",n.CreatedListEmptyDescription="created_list_empty_description",n.NavigationCreate="navigation_create",n.ListError="list_error",n.ListItemRemove="list_item_remove",n.ListItemRemoveConfirmTitle="list_item_remove_confirm_title",n.ListItemRemoveConfirmDescription="list_item_remove_confirm_description",n),F={[u.wz8.Workflow]:{title:"workflow_add_title",navigation_my:"workflow_add_navigation_my",navigation_team:"workflow_add_navigation_team",navigation_explore:"workflow_add_navigation_explore",tab_all:"workflow_add_created_tab_all",tab_mine:"workflow_add_created_tab_mine",list_empty_title:"workflow_add_list_empty_title",created_list_empty_title:"workflow_add_created_list_empty_title",created_list_empty_description:"workflow_add_created_list_empty_description",navigation_create:"workflow_add_create_library",list_error:"workflow_add_list_added_id_empty",list_item_remove:"workflow_add_list_remove",list_item_remove_confirm_title:"workflow_add_remove_confirm_title",list_item_remove_confirm_description:"workflow_add_remove_confirm_content"},[u.wz8.Imageflow]:{title:"imageflow_add",navigation_my:"workflow_add_navigation_my",navigation_team:"imageflow_workspace2",navigation_explore:"imageflow_explore",tab_all:"workflow_add_created_tab_all",tab_mine:"workflow_add_created_tab_mine",list_empty_title:"imageflow_detail_no_search_result",created_list_empty_title:"imageflow_title",created_list_empty_description:"imageflow_title_description",navigation_create:"imageflow_create",list_error:"imageflow_add_toast_error",list_item_remove:"workflow_add_list_remove",list_item_remove_confirm_title:"workflow_add_remove_confirm_title",list_item_remove_confirm_description:"workflow_add_remove_confirm_content"},[u.wz8.SceneFlow]:{title:"scene_workflow_popup_title",navigation_my:"workflow_add_navigation_my",navigation_team:"workflow_add_navigation_team",navigation_explore:"workflow_add_navigation_explore",tab_all:"workflow_add_created_tab_all",tab_mine:"workflow_add_created_tab_mine",list_empty_title:"scene_workflow_popup_search_empty",created_list_empty_title:"scene_workflow_popup_list_empty",created_list_empty_description:"",navigation_create:"workflow_add_navigation_create",list_error:"workflow_add_list_added_id_empty",list_item_remove:{key:"scene_workflow_delete_workflow_button",options:{source:c.o.t("scene_mkpl_search_title")}},list_item_remove_confirm_title:{key:"scene_workflow_delete_workflow_popup_title",options:{source:c.o.t("scene_mkpl_search_title")}},list_item_remove_confirm_description:{key:"scene_workflow_delete_workflow_popup_subtitle",options:{source:c.o.t("scene_mkpl_search_title")}}}};function z(){var e,t=(0,s.useContext)(C.Z),r=null!==(e=null==t?void 0:t.flowMode)&&void 0!==e?e:u.wz8.Workflow;return{i18nText:e=>{var n,o,i,s=(null==t?void 0:null===(n=t.i18nMap)||void 0===n?void 0:n[e])||(null===(o=F[r])||void 0===o?void 0:o[e])||(null===(i=F[u.wz8.Workflow])||void 0===i?void 0:i[e]),a="string"==typeof s?s:s.key;return c.o.t(a||"",null==s?void 0:s.options)},ModalI18nKey:L}}var R=r("419034"),X=r("104313"),Z=r("527021"),W=e=>{var t,r,{className:n,onCreateSuccess:o,nameValidators:a,from:l}=e,u=(0,s.useContext)(C.Z),{i18nText:d,ModalI18nKey:h}=z(),f=(0,Z.d)(),[m,g]=(0,s.useState)(null!==(r=null==u?void 0:u.flowMode)&&void 0!==r?r:B.wz.Workflow);if(!u)return null;var{createModalVisible:y,setCreateModalVisible:x,bindBizType:b}=u;return b===B.k5.DouYinBot||p.w.WorkflowAgent,c.o.t("workflow_add_navigation_create"),M.eTH,c.o.t("wf_chatflow_81"),M.TLD,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I.zx,{className:n,color:"hgltplus",onClick:()=>{l===p.w.WorkflowAgent?g(B.wz.ChatFlow):g(B.wz.Workflow),x(!0)},children:l===p.w.WorkflowAgent?c.o.t("wf_chatflow_81"):c.o.t("workflow_add_navigation_create")}),(0,i.jsx)(R.d,{initConfirmDisabled:!0,mode:"add",flowMode:m,bindBizType:u.bindBizType,bindBizId:u.bindBizId,projectId:u.projectId,visible:y,onCancel:()=>x(!1),onSuccess:(t=(0,T._)(function*(e){var t,{workflowId:r,flowMode:n}=e;if(x(!1),!r)throw new _.sH("[Workflow] create failed","create workflow failed, no workflow id");yield(0,X.Dc)(500),o?null==o||o({spaceId:u.spaceId,workflowId:r,flowMode:n||B.wz.Workflow}):f({workflowId:r,spaceId:null!==(t=u.spaceId)&&void 0!==t?t:""})}),function(e){return t.apply(this,arguments)}),nameValidators:a})]})},V=(0,s.forwardRef)((e,t)=>{var r=(0,s.useContext)(C.Z),{hiddenCreate:n,hiddenExplore:o,from:a}=e,l=S();return r?(0,i.jsxs)(d.yh,{style:{paddingTop:16},children:[(0,i.jsxs)(d.yh.Header,{children:[l,!n&&(0,i.jsx)(W,{className:"!mt-6 w-full",onCreateSuccess:e.onCreateSuccess,nameValidators:e.nameValidators,from:a})]}),(0,i.jsx)(d.yh.Content,{children:(0,i.jsx)(P,{ref:t,from:e.from,hiddenExplore:o,hiddenSpaceList:e.hiddenSpaceList,hiddenLibrary:e.hiddenLibrary,hiddenWorkflowCategories:e.hiddenWorkflowCategories})})]}):null});V.displayName="WorkflowModalSider";var H=r("442078");c.o.t("workflow_list_scope_all"),c.o.t("workflow_list_scope_mine");var U=[{label:c.o.t("workflow_list_status_all"),value:h.aJ},{label:c.o.t("workflow_list_status_published"),value:u.VBX.HadPublished},{label:c.o.t("workflow_list_status_unpublished"),value:u.VBX.UnPublished}];c.o.t("workflow_list_sort_create_time"),u.d$J.CreateTime,c.o.t("workflow_list_sort_edit_time"),u.d$J.UpdateTime;var q=e=>e?U:U.filter(e=>e.value!==h.aJ),Y=e=>{var t,r=(0,s.useContext)(C.Z),n=S();if(!r)return null;var{updateModalState:o,flowMode:a}=r,{status:l}=r.modalState,{filterOptionShowAll:u=!1}=e,d=c.o.t(null===(t=F[a])||void 0===t?void 0:t[L.Title]);return(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsxs)("div",{className:"flex items-center w-full justify-between mt-[-4px]",children:[(0,i.jsxs)("div",{className:"flex items-center gap-[24px]",children:[(0,i.jsx)("div",{className:H.Z.titleForAvatar,children:d}),(0,i.jsx)(I.Ph,{insetLabel:c.o.t("publish_list_header_status"),showClear:!1,value:l,optionList:q(u),onChange:e=>{o({status:e})}})]}),(0,i.jsxs)("div",{className:"flex items-center gap-[12px] mr-[12px]",children:[(0,i.jsx)("div",{className:"w-[208px]",children:n}),(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(W,{onCreateSuccess:e.onCreateSuccess,nameValidators:e.nameValidators})})]})]}),(0,i.jsx)(I.jL,{type:"info",className:"mt-[16px] pt-[7px] pb-[7px] rounded-lg",description:c.o.t("dy_avatar_add_workflow_limit"),closeIcon:null})]})},Q=r("398420"),G=[{label:c.o.t("Popular",{},"最受欢迎"),value:D.ER.Heat},{label:c.o.t("mkpl_published",{},"最近发布"),value:D.ER.Newest}],$=[{label:c.o.t("store_search_rank_default",{},"相关性"),value:D.ER.Relative}].concat(G),K=()=>{var e=(0,s.useContext)(C.Z),{updateModalState:t}=e,{query:r,sortType:n}=(null==e?void 0:e.modalState)||{};return(0,i.jsx)(d.Cj,{label:c.o.t("Sort"),value:n,optionList:r?$:G,onChange:e=>{t({sortType:e})}})},J=r("954552"),ee=e=>e?U:U.filter(e=>e.value!==h.aJ),et=[{label:c.o.t("filter_all"),value:B.wz.All},{label:c.o.t("library_resource_type_workflow"),value:B.wz.Workflow},{label:c.o.t("wf_chatflow_76"),value:B.wz.ChatFlow}].filter(e=>e.value!==B.wz.ChatFlow&&!0),er=e=>{var t=(0,s.useContext)(C.Z),{i18nText:r,ModalI18nKey:n}=z(),o=(0,s.useMemo)(()=>t?[{label:r(n.TabAll),value:h.gp.All},{label:r(n.TabMine),value:h.gp.Mine}]:[],[]);if(!t)return null;var{spaceType:a,updateModalState:l,modalState:u}=t,{dataSourceType:p,isSpaceWorkflow:f,status:m,creator:g,listFlowMode:y,workflowCategory:x}=t.modalState,{hideSider:b,hiddenCreate:w,filterOptionShowAll:_=!1,hideCreatorSelect:A=!1,hiddenListFlowModeFilter:O=!1}=e,D=x===h.BD.Example,S=(0,Q.D)(u);return(0,i.jsxs)("div",{className:"".concat(J.Z.header," ").concat(b?"w-full justify-between":""),children:[(f||D)&&p===h.ye.Workflow?(0,i.jsxs)(i.Fragment,{children:[O?null:(0,i.jsx)(d.Cj,{label:c.o.t("Type"),showClear:!1,value:y,optionList:et,onChange:e=>{l({listFlowMode:e})}}),S||D?null:(0,i.jsx)(d.Cj,{label:c.o.t("publish_list_header_status"),showClear:!1,value:m,optionList:ee(_),onChange:e=>{l({status:e})}}),a===k.Sn.Team&&!A&&!D&&(0,i.jsx)(d.Cj,{label:c.o.t("Creator"),showClear:!1,value:g,onChange:e=>{l({creator:e})},optionList:o})]}):null,b?(0,i.jsx)("div",{className:"flex items-center mr-[-24px]",children:!w&&(0,i.jsx)(W,{className:"ml-12px",onCreateSuccess:e.onCreateSuccess,nameValidators:e.nameValidators})}):null,p===h.ye.Product?(0,i.jsx)(K,{}):null]})},en=r("664319"),eo=r("998262"),ei=r("584466"),es=r("136515"),ea=r("569502"),el=r("364676");function eu(e){var{theme:t,components:r,className:n}=e,o="light"===t?r.light:r.dark;return(0,i.jsx)("div",{className:n,children:o})}function ec(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{opacity:"0.2",children:[(0,i.jsx)("mask",{id:"mask0_4513_102601",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"576",height:"288",children:(0,i.jsx)("rect",{width:"576",height:"288",fill:"url(#paint0_linear_4513_102601)"})}),(0,i.jsxs)("g",{mask:"url(#mask0_4513_102601)",children:[(0,i.jsx)("mask",{id:"mask1_4513_102601",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"576",height:"288",children:(0,i.jsx)("rect",{width:"576",height:"288",fill:"url(#paint1_linear_4513_102601)"})}),(0,i.jsxs)("g",{mask:"url(#mask1_4513_102601)",children:[(0,i.jsx)("rect",{width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",width:"48",height:"48",fill:"url(#paint2_linear_4513_102601)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"48",width:"48",height:"48",fill:"url(#paint3_linear_4513_102601)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"96",width:"48",height:"48",fill:"url(#paint4_linear_4513_102601)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"192",width:"48",height:"48",fill:"url(#paint5_linear_4513_102601)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"240",width:"48",height:"48",fill:"url(#paint6_linear_4513_102601)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"240",width:"48",height:"48",stroke:"#3C445C"})]})]})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_4513_102601",x1:"576",y1:"144",x2:"-3.75509e-06",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#D9D9D9",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"0.500048",stopColor:"#D9D9D9"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#D9D9D9",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4513_102601",x1:"288",y1:"0",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#D9D9D9",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"0.493585",stopColor:"#D9D9D9"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#D9D9D9",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_4513_102601",x1:"72",y1:"0",x2:"72",y2:"48",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_4513_102601",x1:"216",y1:"48",x2:"216",y2:"96",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint4_linear_4513_102601",x1:"360",y1:"96",x2:"360",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint5_linear_4513_102601",x1:"264",y1:"192",x2:"264",y2:"240",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint6_linear_4513_102601",x1:"504",y1:"240",x2:"504",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]})]})]})}function ed(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{opacity:"0.4",children:[(0,i.jsx)("mask",{id:"mask0_4513_103145",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"576",height:"288",children:(0,i.jsx)("rect",{width:"576",height:"288",fill:"url(#paint0_linear_4513_103145)"})}),(0,i.jsxs)("g",{mask:"url(#mask0_4513_103145)",children:[(0,i.jsx)("mask",{id:"mask1_4513_103145",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"576",height:"288",children:(0,i.jsx)("rect",{width:"576",height:"288",fill:"url(#paint1_linear_4513_103145)"})}),(0,i.jsxs)("g",{mask:"url(#mask1_4513_103145)",children:[(0,i.jsx)("rect",{width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",width:"48",height:"48",fill:"url(#paint2_linear_4513_103145)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"48",width:"48",height:"48",fill:"url(#paint3_linear_4513_103145)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"48",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"96",width:"48",height:"48",fill:"url(#paint4_linear_4513_103145)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"96",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"144",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"192",width:"48",height:"48",fill:"url(#paint5_linear_4513_103145)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"192",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"48",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"96",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"144",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"192",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"240",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"288",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"336",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"384",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"432",y:"240",width:"48",height:"48",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"480",y:"240",width:"48",height:"48",fill:"url(#paint6_linear_4513_103145)",stroke:"#3C445C"}),(0,i.jsx)("rect",{x:"528",y:"240",width:"48",height:"48",stroke:"#3C445C"})]})]})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_4513_103145",x1:"576",y1:"144",x2:"-3.75509e-06",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#D9D9D9",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"0.500048",stopColor:"#D9D9D9"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#D9D9D9",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4513_103145",x1:"288",y1:"0",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#D9D9D9",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"0.493585",stopColor:"#D9D9D9"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#D9D9D9",stopOpacity:"0"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_4513_103145",x1:"72",y1:"0",x2:"72",y2:"48",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_4513_103145",x1:"216",y1:"48",x2:"216",y2:"96",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint4_linear_4513_103145",x1:"360",y1:"96",x2:"360",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint5_linear_4513_103145",x1:"264",y1:"192",x2:"264",y2:"240",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]}),(0,i.jsxs)("linearGradient",{id:"paint6_linear_4513_103145",x1:"504",y1:"240",x2:"504",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3C445C",stopOpacity:"0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#3C445C"})]})]})]})}var ep=r("60378");function eh(e){var{theme:t}=e;return(0,i.jsx)(eu,{className:ep.Z["search-no-mask"],theme:t,components:{dark:(0,i.jsx)(ed,{}),light:(0,i.jsx)(ec,{})}})}function ef(e){return(0,i.jsxs)("svg",{width:"280",height:"184",viewBox:"0 0 280 184",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{y:"148",width:"280",height:"14",rx:"7",fill:"#1C2333"}),(0,i.jsx)("rect",{y:"170",width:"192",height:"14",rx:"7",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"200",y:"170",width:"80",height:"14",rx:"7",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"135",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"135",rx:"7.5",stroke:"url(#paint0_linear_116_6085)"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_116_6085)",children:[(0,i.jsx)("path",{d:"M16 28.8C16 24.3196 16 22.0794 16.8719 20.3681C17.6389 18.8628 18.8628 17.6389 20.3681 16.8719C22.0794 16 24.3196 16 28.8 16H251.2C255.68 16 257.921 16 259.632 16.8719C261.137 17.6389 262.361 18.8628 263.128 20.3681C264 22.0794 264 24.3196 264 28.8V51.2C264 55.6804 264 57.9206 263.128 59.6319C262.361 61.1372 261.137 62.3611 259.632 63.1281C257.921 64 255.68 64 251.2 64H28.8C24.3196 64 22.0794 64 20.3681 63.1281C18.8628 62.3611 17.6389 61.1372 16.8719 59.6319C16 57.9206 16 55.6804 16 51.2V28.8Z",fill:"url(#paint1_linear_116_6085)"}),(0,i.jsx)("path",{d:"M16.1 28.8C16.1 26.5581 16.1001 24.8828 16.2087 23.5538C16.3171 22.2259 16.5335 21.2527 16.961 20.4135C17.7184 18.927 18.927 17.7184 20.4135 16.961C21.2527 16.5335 22.2259 16.3171 23.5538 16.2087C24.8828 16.1001 26.5581 16.1 28.8 16.1H251.2C253.442 16.1 255.117 16.1001 256.446 16.2087C257.774 16.3171 258.747 16.5335 259.587 16.961C261.073 17.7184 262.282 18.927 263.039 20.4135C263.467 21.2527 263.683 22.2259 263.791 23.5538C263.9 24.8828 263.9 26.5581 263.9 28.8V51.2C263.9 53.4419 263.9 55.1172 263.791 56.4462C263.683 57.7741 263.467 58.7473 263.039 59.5865C262.282 61.073 261.073 62.2816 259.587 63.039C258.747 63.4665 257.774 63.6828 256.446 63.7913C255.117 63.8999 253.442 63.9 251.2 63.9H28.8C26.5581 63.9 24.8828 63.8999 23.5538 63.7913C22.2259 63.6828 21.2527 63.4665 20.4135 63.039C18.927 62.2816 17.7184 61.073 16.961 59.5865C16.5335 58.7473 16.3171 57.7741 16.2087 56.4462C16.1001 55.1172 16.1 53.4419 16.1 51.2V28.8Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_116_6085",x:"7.42857",y:"10.2857",width:"265.143",height:"65.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_116_6085"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_116_6085",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_116_6085",x1:"140",y1:"0",x2:"140",y2:"136",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_116_6085",x1:"140",y1:"16",x2:"140",y2:"64",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3D8DF3"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function em(e){return(0,i.jsxs)("svg",{width:"280",height:"184",viewBox:"0 0 280 184",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{y:"148",width:"280",height:"14",rx:"7",fill:"white"}),(0,i.jsx)("rect",{y:"170",width:"192",height:"14",rx:"7",fill:"white"}),(0,i.jsx)("rect",{x:"200",y:"170",width:"80",height:"14",rx:"7",fill:"white"}),(0,i.jsx)("rect",{width:"280",height:"136",rx:"8",fill:"white"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"135",rx:"7.5",stroke:"url(#paint0_linear_4434_146978)",strokeOpacity:"0.24"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_4434_146978)",children:[(0,i.jsx)("path",{d:"M16 28.8C16 24.3196 16 22.0794 16.8719 20.3681C17.6389 18.8628 18.8628 17.6389 20.3681 16.8719C22.0794 16 24.3196 16 28.8 16H251.2C255.68 16 257.921 16 259.632 16.8719C261.137 17.6389 262.361 18.8628 263.128 20.3681C264 22.0794 264 24.3196 264 28.8V51.2C264 55.6804 264 57.9206 263.128 59.6319C262.361 61.1372 261.137 62.3611 259.632 63.1281C257.921 64 255.68 64 251.2 64H28.8C24.3196 64 22.0794 64 20.3681 63.1281C18.8628 62.3611 17.6389 61.1372 16.8719 59.6319C16 57.9206 16 55.6804 16 51.2V28.8Z",fill:"url(#paint1_linear_4434_146978)"}),(0,i.jsx)("path",{d:"M16.1 28.8C16.1 26.5581 16.1001 24.8828 16.2087 23.5538C16.3171 22.2259 16.5335 21.2527 16.961 20.4135C17.7184 18.927 18.927 17.7184 20.4135 16.961C21.2527 16.5335 22.2259 16.3171 23.5538 16.2087C24.8828 16.1001 26.5581 16.1 28.8 16.1H251.2C253.442 16.1 255.117 16.1001 256.446 16.2087C257.774 16.3171 258.747 16.5335 259.587 16.961C261.073 17.7184 262.282 18.927 263.039 20.4135C263.467 21.2527 263.683 22.2259 263.791 23.5538C263.9 24.8828 263.9 26.5581 263.9 28.8V51.2C263.9 53.4419 263.9 55.1172 263.791 56.4462C263.683 57.7741 263.467 58.7473 263.039 59.5865C262.282 61.073 261.073 62.2816 259.587 63.039C258.747 63.4665 257.774 63.6828 256.446 63.7913C255.117 63.8999 253.442 63.9 251.2 63.9H28.8C26.5581 63.9 24.8828 63.8999 23.5538 63.7913C22.2259 63.6828 21.2527 63.4665 20.4135 63.039C18.927 62.2816 17.7184 61.073 16.961 59.5865C16.5335 58.7473 16.3171 57.7741 16.2087 56.4462C16.1001 55.1172 16.1 53.4419 16.1 51.2V28.8Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_4434_146978",x:"7.42857",y:"10.2857",width:"265.143",height:"65.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4434_146978"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4434_146978",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4434_146978",x1:"140",y1:"0",x2:"140",y2:"136",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4434_146978",x1:"140",y1:"16",x2:"140",y2:"64",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3D8DF3"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function eg(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(ef,{}),light:(0,i.jsx)(em,{})}})}function ev(e){return(0,i.jsxs)("svg",{width:"178",height:"66",viewBox:"0 0 178 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"0.261719",y:"0.61499",width:"177.474",height:"64.6513",rx:"5.07069",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"0.578637",y:"0.931908",width:"176.84",height:"64.0175",rx:"4.75377",stroke:"#060709",strokeOpacity:"0.1",strokeWidth:"0.633837"}),(0,i.jsx)("rect",{x:"10.4023",y:"12.0239",width:"65.919",height:"8.87371",rx:"4.43686",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"10.4023",y:"25.9683",width:"111.555",height:"8.87371",rx:"4.43686",fill:"#2B3245"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_3854_22323)",children:[(0,i.jsx)("path",{d:"M129.564 23.4331C129.564 16.4319 135.24 10.7563 142.241 10.7563H154.918C161.919 10.7563 167.595 16.4319 167.595 23.4331C167.595 30.4342 161.919 36.1098 154.918 36.1098H142.241C135.24 36.1098 129.564 30.4342 129.564 23.4331Z",fill:"url(#paint0_linear_3854_22323)"}),(0,i.jsx)("path",{d:"M129.628 23.4331C129.628 16.4669 135.275 10.8197 142.241 10.8197H154.918C161.884 10.8197 167.531 16.4669 167.531 23.4331C167.531 30.3992 161.884 36.0464 154.918 36.0464H142.241C135.275 36.0464 129.628 30.3992 129.628 23.4331Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.126767"})]}),(0,i.jsx)("rect",{x:"10.4023",y:"46.2512",width:"157.191",height:"8.87371",rx:"4.43686",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_3854_22323",x:"124.132",y:"7.13442",width:"48.8951",height:"36.2193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"1.81096"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"2.71644"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3854_22323"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3854_22323",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_3854_22323",x1:"148.58",y1:"10.7563",x2:"148.58",y2:"36.1098",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]})]})]})}function ey(e){return(0,i.jsxs)("svg",{width:"178",height:"66",viewBox:"0 0 178 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"0.261719",y:"0.61499",width:"177.474",height:"64.6513",rx:"5.07069",fill:"white"}),(0,i.jsx)("rect",{x:"0.578637",y:"0.931908",width:"176.84",height:"64.0175",rx:"4.75377",stroke:"#060709",strokeOpacity:"0.1",strokeWidth:"0.633837"}),(0,i.jsx)("rect",{x:"10.4023",y:"12.0239",width:"65.919",height:"8.87371",rx:"4.43686",fill:"#060709",fillOpacity:"0.3"}),(0,i.jsx)("rect",{x:"10.4023",y:"25.9683",width:"111.555",height:"8.87371",rx:"4.43686",fill:"#060709",fillOpacity:"0.3"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_3854_22323)",children:[(0,i.jsx)("path",{d:"M129.564 23.4331C129.564 16.4319 135.24 10.7563 142.241 10.7563H154.918C161.919 10.7563 167.595 16.4319 167.595 23.4331C167.595 30.4342 161.919 36.1098 154.918 36.1098H142.241C135.24 36.1098 129.564 30.4342 129.564 23.4331Z",fill:"url(#paint0_linear_3854_22323)"}),(0,i.jsx)("path",{d:"M129.628 23.4331C129.628 16.4669 135.275 10.8197 142.241 10.8197H154.918C161.884 10.8197 167.531 16.4669 167.531 23.4331C167.531 30.3992 161.884 36.0464 154.918 36.0464H142.241C135.275 36.0464 129.628 30.3992 129.628 23.4331Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.126767"})]}),(0,i.jsx)("rect",{x:"10.4023",y:"46.2512",width:"157.191",height:"8.87371",rx:"4.43686",fill:"#060709",fillOpacity:"0.3"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_3854_22323",x:"124.132",y:"7.13442",width:"48.8951",height:"36.2193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"1.81096"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"2.71644"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_3854_22323"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_3854_22323",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_3854_22323",x1:"148.58",y1:"10.7563",x2:"148.58",y2:"36.1098",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]})]})]})}function ex(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(ev,{}),light:(0,i.jsx)(ey,{})}})}function eb(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"208.5",y:"88.5",width:"159",height:"199",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"208.5",y:"88.5",width:"159",height:"199",rx:"7.5",stroke:"url(#paint0_linear_4453_179036)"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_4453_179036)",children:[(0,i.jsx)("path",{d:"M248 116.8C248 112.32 248 110.079 248.872 108.368C249.639 106.863 250.863 105.639 252.368 104.872C254.079 104 256.32 104 260.8 104H315.2C319.68 104 321.921 104 323.632 104.872C325.137 105.639 326.361 106.863 327.128 108.368C328 110.079 328 112.32 328 116.8V187.2C328 191.68 328 193.921 327.128 195.632C326.361 197.137 325.137 198.361 323.632 199.128C321.921 200 319.68 200 315.2 200H260.8C256.32 200 254.079 200 252.368 199.128C250.863 198.361 249.639 197.137 248.872 195.632C248 193.921 248 191.68 248 187.2V116.8Z",fill:"url(#paint1_linear_4453_179036)"}),(0,i.jsx)("path",{d:"M248.1 116.8C248.1 114.558 248.1 112.883 248.209 111.554C248.317 110.226 248.533 109.253 248.961 108.413C249.718 106.927 250.927 105.718 252.413 104.961C253.253 104.533 254.226 104.317 255.554 104.209C256.883 104.1 258.558 104.1 260.8 104.1H315.2C317.442 104.1 319.117 104.1 320.446 104.209C321.774 104.317 322.747 104.533 323.587 104.961C325.073 105.718 326.282 106.927 327.039 108.413C327.467 109.253 327.683 110.226 327.791 111.554C327.9 112.883 327.9 114.558 327.9 116.8V187.2C327.9 189.442 327.9 191.117 327.791 192.446C327.683 193.774 327.467 194.747 327.039 195.587C326.282 197.073 325.073 198.282 323.587 199.039C322.747 199.467 321.774 199.683 320.446 199.791C319.117 199.9 317.442 199.9 315.2 199.9H260.8C258.558 199.9 256.883 199.9 255.554 199.791C254.226 199.683 253.253 199.467 252.413 199.039C250.927 198.282 249.718 197.073 248.961 195.587C248.533 194.747 248.317 193.774 248.209 192.446C248.1 191.117 248.1 189.442 248.1 187.2V116.8Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{x:"248",y:"226",width:"80",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"224",y:"248",width:"128",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_4453_179036",x:"239.429",y:"98.2857",width:"97.1429",height:"113.143",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4453_179036"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4453_179036",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4453_179036",x1:"288",y1:"88",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4453_179036",x1:"288",y1:"104",x2:"288",y2:"200",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]})]})]})}function ew(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"208",y:"88",width:"160",height:"200",rx:"8",fill:"white"}),(0,i.jsx)("rect",{x:"208.5",y:"88.5",width:"159",height:"199",rx:"7.5",stroke:"url(#paint0_linear_6466_153347)",strokeOpacity:"0.24"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_6466_153347)",children:[(0,i.jsx)("path",{d:"M248 116.8C248 112.32 248 110.079 248.872 108.368C249.639 106.863 250.863 105.639 252.368 104.872C254.079 104 256.32 104 260.8 104H315.2C319.68 104 321.921 104 323.632 104.872C325.137 105.639 326.361 106.863 327.128 108.368C328 110.079 328 112.32 328 116.8V187.2C328 191.68 328 193.921 327.128 195.632C326.361 197.137 325.137 198.361 323.632 199.128C321.921 200 319.68 200 315.2 200H260.8C256.32 200 254.079 200 252.368 199.128C250.863 198.361 249.639 197.137 248.872 195.632C248 193.921 248 191.68 248 187.2V116.8Z",fill:"url(#paint1_linear_6466_153347)"}),(0,i.jsx)("path",{d:"M315.2 199.9H260.8C258.558 199.9 256.883 199.9 255.554 199.791C254.226 199.683 253.253 199.467 252.413 199.039C250.927 198.282 249.718 197.073 248.961 195.587C248.533 194.747 248.317 193.774 248.209 192.446C248.1 191.117 248.1 189.442 248.1 187.2V116.8C248.1 114.558 248.1 112.883 248.209 111.554C248.317 110.226 248.533 109.253 248.961 108.413C249.718 106.927 250.927 105.718 252.413 104.961C253.253 104.533 254.226 104.317 255.554 104.209C256.883 104.1 258.558 104.1 260.8 104.1H315.2C317.442 104.1 319.117 104.1 320.446 104.209C321.774 104.317 322.747 104.533 323.587 104.961C325.073 105.718 326.282 106.927 327.039 108.413C327.467 109.253 327.683 110.226 327.791 111.554C327.9 112.883 327.9 114.558 327.9 116.8V187.2C327.9 189.442 327.9 191.117 327.791 192.446C327.683 193.774 327.467 194.747 327.039 195.587C326.282 197.073 325.073 198.282 323.587 199.039C322.747 199.467 321.774 199.683 320.446 199.791C319.117 199.9 317.442 199.9 315.2 199.9Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{opacity:"0.12",x:"244",y:"226",width:"88",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"224",y:"248",width:"128",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_6466_153347",x:"239.429",y:"98.2857",width:"97.1429",height:"113.143",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6466_153347"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6466_153347",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_6466_153347",x1:"288",y1:"88",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_6466_153347",x1:"288",y1:"104",x2:"288",y2:"200",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]})]})]})}function e_(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(eb,{}),light:(0,i.jsx)(ew,{})}})}function ek(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"148.5",y:"136.5",width:"279",height:"151",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"148.5",y:"136.5",width:"279",height:"151",rx:"7.5",stroke:"url(#paint0_linear_7238_218933)"}),(0,i.jsx)("rect",{x:"164",y:"152",width:"104",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"164",y:"174",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"164",y:"196",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"164",y:"226",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_7238_218933)",children:[(0,i.jsx)("path",{d:"M164 262.4C164 260.16 164 259.04 164.436 258.184C164.819 257.431 165.431 256.819 166.184 256.436C167.04 256 168.16 256 170.4 256H173.6C175.84 256 176.96 256 177.816 256.436C178.569 256.819 179.181 257.431 179.564 258.184C180 259.04 180 260.16 180 262.4V265.6C180 267.84 180 268.96 179.564 269.816C179.181 270.569 178.569 271.181 177.816 271.564C176.96 272 175.84 272 173.6 272H170.4C168.16 272 167.04 272 166.184 271.564C165.431 271.181 164.819 270.569 164.436 269.816C164 268.96 164 267.84 164 265.6V262.4Z",fill:"url(#paint1_linear_7238_218933)"}),(0,i.jsx)("path",{d:"M170.4 272.5H173.6H173.623C174.724 272.5 175.581 272.5 176.268 272.444C176.966 272.387 177.533 272.269 178.043 272.01C178.89 271.578 179.578 270.89 180.01 270.043C180.269 269.533 180.387 268.966 180.444 268.268C180.5 267.581 180.5 266.724 180.5 265.623V265.6V262.4V262.377C180.5 261.276 180.5 260.419 180.444 259.732C180.387 259.034 180.269 258.467 180.01 257.957C179.578 257.11 178.89 256.422 178.043 255.99C177.533 255.731 176.966 255.613 176.268 255.556C175.581 255.5 174.724 255.5 173.623 255.5H173.6H170.4H170.377C169.276 255.5 168.419 255.5 167.732 255.556C167.034 255.613 166.467 255.731 165.957 255.99C165.11 256.422 164.422 257.11 163.99 257.957C163.731 258.467 163.613 259.034 163.556 259.732C163.5 260.419 163.5 261.276 163.5 262.377V262.4V265.6V265.623C163.5 266.724 163.5 267.581 163.556 268.268C163.613 268.966 163.731 269.533 163.99 270.043C164.422 270.89 165.11 271.578 165.957 272.01C166.467 272.269 167.034 272.387 167.732 272.444C168.419 272.5 169.276 272.5 170.377 272.5H170.4Z",stroke:"white"})]}),(0,i.jsxs)("g",{filter:"url(#filter1_d_7238_218933)",children:[(0,i.jsx)("path",{d:"M176 262.4C176 260.16 176 259.04 176.436 258.184C176.819 257.431 177.431 256.819 178.184 256.436C179.04 256 180.16 256 182.4 256H185.6C187.84 256 188.96 256 189.816 256.436C190.569 256.819 191.181 257.431 191.564 258.184C192 259.04 192 260.16 192 262.4V265.6C192 267.84 192 268.96 191.564 269.816C191.181 270.569 190.569 271.181 189.816 271.564C188.96 272 187.84 272 185.6 272H182.4C180.16 272 179.04 272 178.184 271.564C177.431 271.181 176.819 270.569 176.436 269.816C176 268.96 176 267.84 176 265.6V262.4Z",fill:"url(#paint2_linear_7238_218933)"}),(0,i.jsx)("path",{d:"M182.4 272.5H185.6H185.623C186.724 272.5 187.581 272.5 188.268 272.444C188.966 272.387 189.533 272.269 190.043 272.01C190.89 271.578 191.578 270.89 192.01 270.043C192.269 269.533 192.387 268.966 192.444 268.268C192.5 267.581 192.5 266.724 192.5 265.623V265.6V262.4V262.377C192.5 261.276 192.5 260.419 192.444 259.732C192.387 259.034 192.269 258.467 192.01 257.957C191.578 257.11 190.89 256.422 190.043 255.99C189.533 255.731 188.966 255.613 188.268 255.556C187.581 255.5 186.724 255.5 185.623 255.5H185.6H182.4H182.377C181.276 255.5 180.419 255.5 179.732 255.556C179.034 255.613 178.467 255.731 177.957 255.99C177.11 256.422 176.422 257.11 175.99 257.957C175.731 258.467 175.613 259.034 175.556 259.732C175.5 260.419 175.5 261.276 175.5 262.377V262.4V265.6V265.623C175.5 266.724 175.5 267.581 175.556 268.268C175.613 268.966 175.731 269.533 175.99 270.043C176.422 270.89 177.11 271.578 177.957 272.01C178.467 272.269 179.034 272.387 179.732 272.444C180.419 272.5 181.276 272.5 182.377 272.5H182.4Z",stroke:"white"})]}),(0,i.jsxs)("g",{filter:"url(#filter2_d_7238_218933)",children:[(0,i.jsx)("path",{d:"M188 262.4C188 260.16 188 259.04 188.436 258.184C188.819 257.431 189.431 256.819 190.184 256.436C191.04 256 192.16 256 194.4 256H197.6C199.84 256 200.96 256 201.816 256.436C202.569 256.819 203.181 257.431 203.564 258.184C204 259.04 204 260.16 204 262.4V265.6C204 267.84 204 268.96 203.564 269.816C203.181 270.569 202.569 271.181 201.816 271.564C200.96 272 199.84 272 197.6 272H194.4C192.16 272 191.04 272 190.184 271.564C189.431 271.181 188.819 270.569 188.436 269.816C188 268.96 188 267.84 188 265.6V262.4Z",fill:"url(#paint3_linear_7238_218933)"}),(0,i.jsx)("path",{d:"M194.4 272.5H197.6H197.623C198.724 272.5 199.581 272.5 200.268 272.444C200.966 272.387 201.533 272.269 202.043 272.01C202.89 271.578 203.578 270.89 204.01 270.043C204.269 269.533 204.387 268.966 204.444 268.268C204.5 267.581 204.5 266.724 204.5 265.623V265.6V262.4V262.377C204.5 261.276 204.5 260.419 204.444 259.732C204.387 259.034 204.269 258.467 204.01 257.957C203.578 257.11 202.89 256.422 202.043 255.99C201.533 255.731 200.966 255.613 200.268 255.556C199.581 255.5 198.724 255.5 197.623 255.5H197.6H194.4H194.377C193.276 255.5 192.419 255.5 191.732 255.556C191.034 255.613 190.467 255.731 189.957 255.99C189.11 256.422 188.422 257.11 187.99 257.957C187.731 258.467 187.613 259.034 187.556 259.732C187.5 260.419 187.5 261.276 187.5 262.377V262.4V265.6V265.623C187.5 266.724 187.5 267.581 187.556 268.268C187.613 268.966 187.731 269.533 187.99 270.043C188.422 270.89 189.11 271.578 189.957 272.01C190.467 272.269 191.034 272.387 191.732 272.444C192.419 272.5 193.276 272.5 194.377 272.5H194.4Z",stroke:"white"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_7238_218933",x:"154.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_218933"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_218933",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter1_d_7238_218933",x:"166.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_218933"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_218933",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter2_d_7238_218933",x:"178.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_218933"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_218933",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_7238_218933",x1:"288",y1:"136",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_7238_218933",x1:"172",y1:"256",x2:"172",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_7238_218933",x1:"184",y1:"256",x2:"184",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_7238_218933",x1:"196",y1:"256",x2:"196",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function eC(e){return(0,i.jsxs)("svg",{width:"576",height:"288",viewBox:"0 0 576 288",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"148",y:"136",width:"280",height:"152",rx:"8",fill:"#F9F9F9"}),(0,i.jsx)("rect",{x:"148.5",y:"136.5",width:"279",height:"151",rx:"7.5",stroke:"url(#paint0_linear_7238_190934)",strokeOpacity:"0.24"}),(0,i.jsx)("rect",{opacity:"0.12",x:"164",y:"152",width:"104",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"164",y:"174",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"164",y:"196",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"164",y:"226",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_7238_190934)",children:[(0,i.jsx)("path",{d:"M164 262.4C164 260.16 164 259.04 164.436 258.184C164.819 257.431 165.431 256.819 166.184 256.436C167.04 256 168.16 256 170.4 256H173.6C175.84 256 176.96 256 177.816 256.436C178.569 256.819 179.181 257.431 179.564 258.184C180 259.04 180 260.16 180 262.4V265.6C180 267.84 180 268.96 179.564 269.816C179.181 270.569 178.569 271.181 177.816 271.564C176.96 272 175.84 272 173.6 272H170.4C168.16 272 167.04 272 166.184 271.564C165.431 271.181 164.819 270.569 164.436 269.816C164 268.96 164 267.84 164 265.6V262.4Z",fill:"url(#paint1_linear_7238_190934)"}),(0,i.jsx)("path",{d:"M170.4 272.5H173.6H173.623C174.724 272.5 175.581 272.5 176.268 272.444C176.966 272.387 177.533 272.269 178.043 272.01C178.89 271.578 179.578 270.89 180.01 270.043C180.269 269.533 180.387 268.966 180.444 268.268C180.5 267.581 180.5 266.724 180.5 265.623V265.6V262.4V262.377C180.5 261.276 180.5 260.419 180.444 259.732C180.387 259.034 180.269 258.467 180.01 257.957C179.578 257.11 178.89 256.422 178.043 255.99C177.533 255.731 176.966 255.613 176.268 255.556C175.581 255.5 174.724 255.5 173.623 255.5H173.6H170.4H170.377C169.276 255.5 168.419 255.5 167.732 255.556C167.034 255.613 166.467 255.731 165.957 255.99C165.11 256.422 164.422 257.11 163.99 257.957C163.731 258.467 163.613 259.034 163.556 259.732C163.5 260.419 163.5 261.276 163.5 262.377V262.4V265.6V265.623C163.5 266.724 163.5 267.581 163.556 268.268C163.613 268.966 163.731 269.533 163.99 270.043C164.422 270.89 165.11 271.578 165.957 272.01C166.467 272.269 167.034 272.387 167.732 272.444C168.419 272.5 169.276 272.5 170.377 272.5H170.4Z",stroke:"white"})]}),(0,i.jsxs)("g",{filter:"url(#filter1_d_7238_190934)",children:[(0,i.jsx)("path",{d:"M176 262.4C176 260.16 176 259.04 176.436 258.184C176.819 257.431 177.431 256.819 178.184 256.436C179.04 256 180.16 256 182.4 256H185.6C187.84 256 188.96 256 189.816 256.436C190.569 256.819 191.181 257.431 191.564 258.184C192 259.04 192 260.16 192 262.4V265.6C192 267.84 192 268.96 191.564 269.816C191.181 270.569 190.569 271.181 189.816 271.564C188.96 272 187.84 272 185.6 272H182.4C180.16 272 179.04 272 178.184 271.564C177.431 271.181 176.819 270.569 176.436 269.816C176 268.96 176 267.84 176 265.6V262.4Z",fill:"url(#paint2_linear_7238_190934)"}),(0,i.jsx)("path",{d:"M182.4 272.5H185.6H185.623C186.724 272.5 187.581 272.5 188.268 272.444C188.966 272.387 189.533 272.269 190.043 272.01C190.89 271.578 191.578 270.89 192.01 270.043C192.269 269.533 192.387 268.966 192.444 268.268C192.5 267.581 192.5 266.724 192.5 265.623V265.6V262.4V262.377C192.5 261.276 192.5 260.419 192.444 259.732C192.387 259.034 192.269 258.467 192.01 257.957C191.578 257.11 190.89 256.422 190.043 255.99C189.533 255.731 188.966 255.613 188.268 255.556C187.581 255.5 186.724 255.5 185.623 255.5H185.6H182.4H182.377C181.276 255.5 180.419 255.5 179.732 255.556C179.034 255.613 178.467 255.731 177.957 255.99C177.11 256.422 176.422 257.11 175.99 257.957C175.731 258.467 175.613 259.034 175.556 259.732C175.5 260.419 175.5 261.276 175.5 262.377V262.4V265.6V265.623C175.5 266.724 175.5 267.581 175.556 268.268C175.613 268.966 175.731 269.533 175.99 270.043C176.422 270.89 177.11 271.578 177.957 272.01C178.467 272.269 179.034 272.387 179.732 272.444C180.419 272.5 181.276 272.5 182.377 272.5H182.4Z",stroke:"white"})]}),(0,i.jsxs)("g",{filter:"url(#filter2_d_7238_190934)",children:[(0,i.jsx)("path",{d:"M188 262.4C188 260.16 188 259.04 188.436 258.184C188.819 257.431 189.431 256.819 190.184 256.436C191.04 256 192.16 256 194.4 256H197.6C199.84 256 200.96 256 201.816 256.436C202.569 256.819 203.181 257.431 203.564 258.184C204 259.04 204 260.16 204 262.4V265.6C204 267.84 204 268.96 203.564 269.816C203.181 270.569 202.569 271.181 201.816 271.564C200.96 272 199.84 272 197.6 272H194.4C192.16 272 191.04 272 190.184 271.564C189.431 271.181 188.819 270.569 188.436 269.816C188 268.96 188 267.84 188 265.6V262.4Z",fill:"url(#paint3_linear_7238_190934)"}),(0,i.jsx)("path",{d:"M194.4 272.5H197.6H197.623C198.724 272.5 199.581 272.5 200.268 272.444C200.966 272.387 201.533 272.269 202.043 272.01C202.89 271.578 203.578 270.89 204.01 270.043C204.269 269.533 204.387 268.966 204.444 268.268C204.5 267.581 204.5 266.724 204.5 265.623V265.6V262.4V262.377C204.5 261.276 204.5 260.419 204.444 259.732C204.387 259.034 204.269 258.467 204.01 257.957C203.578 257.11 202.89 256.422 202.043 255.99C201.533 255.731 200.966 255.613 200.268 255.556C199.581 255.5 198.724 255.5 197.623 255.5H197.6H194.4H194.377C193.276 255.5 192.419 255.5 191.732 255.556C191.034 255.613 190.467 255.731 189.957 255.99C189.11 256.422 188.422 257.11 187.99 257.957C187.731 258.467 187.613 259.034 187.556 259.732C187.5 260.419 187.5 261.276 187.5 262.377V262.4V265.6V265.623C187.5 266.724 187.5 267.581 187.556 268.268C187.613 268.966 187.731 269.533 187.99 270.043C188.422 270.89 189.11 271.578 189.957 272.01C190.467 272.269 191.034 272.387 191.732 272.444C192.419 272.5 193.276 272.5 194.377 272.5H194.4Z",stroke:"white"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_7238_190934",x:"154.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_190934"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_190934",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter1_d_7238_190934",x:"166.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_190934"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_190934",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter2_d_7238_190934",x:"178.429",y:"249.286",width:"35.1429",height:"35.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7238_190934"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_7238_190934",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_7238_190934",x1:"288",y1:"136",x2:"288",y2:"288",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_7238_190934",x1:"172",y1:"256",x2:"172",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_7238_190934",x1:"184",y1:"256",x2:"184",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_7238_190934",x1:"196",y1:"256",x2:"196",y2:"272",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function eA(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(ek,{}),light:(0,i.jsx)(eC,{})}})}function eO(e){return(0,i.jsxs)("svg",{width:"360",height:"248",viewBox:"0 0 360 248",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"80.5",y:"0.5",width:"279",height:"71",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"80.5",y:"0.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint0_linear_116_6085)"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_116_6085)",children:[(0,i.jsx)("path",{d:"M96 28.8C96 24.3196 96 22.0794 96.8719 20.3681C97.6389 18.8628 98.8628 17.6389 100.368 16.8719C102.079 16 104.32 16 108.8 16H123.2C127.68 16 129.921 16 131.632 16.8719C133.137 17.6389 134.361 18.8628 135.128 20.3681C136 22.0794 136 24.3196 136 28.8V43.2C136 47.6804 136 49.9206 135.128 51.6319C134.361 53.1372 133.137 54.3611 131.632 55.1281C129.921 56 127.68 56 123.2 56H108.8C104.32 56 102.079 56 100.368 55.1281C98.8628 54.3611 97.6389 53.1372 96.8719 51.6319C96 49.9206 96 47.6804 96 43.2V28.8Z",fill:"url(#paint1_linear_116_6085)"}),(0,i.jsx)("path",{d:"M96.1 28.8C96.1 26.5581 96.1001 24.8828 96.2087 23.5538C96.3171 22.2259 96.5335 21.2527 96.961 20.4135C97.7184 18.927 98.927 17.7184 100.413 16.961C101.253 16.5335 102.226 16.3171 103.554 16.2087C104.883 16.1001 106.558 16.1 108.8 16.1H123.2C125.442 16.1 127.117 16.1001 128.446 16.2087C129.774 16.3171 130.747 16.5335 131.587 16.961C133.073 17.7184 134.282 18.927 135.039 20.4135C135.467 21.2527 135.683 22.2259 135.791 23.5538C135.9 24.8828 135.9 26.5581 135.9 28.8V43.2C135.9 45.4419 135.9 47.1172 135.791 48.4462C135.683 49.7741 135.467 50.7473 135.039 51.5865C134.282 53.073 133.073 54.2816 131.587 55.039C130.747 55.4665 129.774 55.6828 128.446 55.7913C127.117 55.8999 125.442 55.9 123.2 55.9H108.8C106.558 55.9 104.883 55.8999 103.554 55.7913C102.226 55.6828 101.253 55.4665 100.413 55.039C98.927 54.2816 97.7184 53.073 96.961 51.5865C96.5335 50.7473 96.3171 49.7741 96.2087 48.4462C96.1001 47.1172 96.1 45.4419 96.1 43.2V28.8Z",stroke:"black",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{x:"148",y:"18",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"148",y:"40",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"0.5",y:"88.5",width:"279",height:"71",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"0.5",y:"88.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint2_linear_116_6085)"}),(0,i.jsxs)("g",{filter:"url(#filter1_d_116_6085)",children:[(0,i.jsx)("path",{d:"M16 116.8C16 112.32 16 110.079 16.8719 108.368C17.6389 106.863 18.8628 105.639 20.3681 104.872C22.0794 104 24.3196 104 28.8 104H43.2C47.6804 104 49.9206 104 51.6319 104.872C53.1372 105.639 54.3611 106.863 55.1281 108.368C56 110.079 56 112.32 56 116.8V131.2C56 135.68 56 137.921 55.1281 139.632C54.3611 141.137 53.1372 142.361 51.6319 143.128C49.9206 144 47.6804 144 43.2 144H28.8C24.3196 144 22.0794 144 20.3681 143.128C18.8628 142.361 17.6389 141.137 16.8719 139.632C16 137.921 16 135.68 16 131.2V116.8Z",fill:"url(#paint3_linear_116_6085)"}),(0,i.jsx)("path",{d:"M16.1 116.8C16.1 114.558 16.1001 112.883 16.2087 111.554C16.3171 110.226 16.5335 109.253 16.961 108.413C17.7184 106.927 18.927 105.718 20.4135 104.961C21.2527 104.533 22.2259 104.317 23.5538 104.209C24.8828 104.1 26.5581 104.1 28.8 104.1H43.2C45.4419 104.1 47.1172 104.1 48.4462 104.209C49.7741 104.317 50.7473 104.533 51.5865 104.961C53.073 105.718 54.2816 106.927 55.039 108.413C55.4665 109.253 55.6828 110.226 55.7913 111.554C55.8999 112.883 55.9 114.558 55.9 116.8V131.2C55.9 133.442 55.8999 135.117 55.7913 136.446C55.6828 137.774 55.4665 138.747 55.039 139.587C54.2816 141.073 53.073 142.282 51.5865 143.039C50.7473 143.467 49.7741 143.683 48.4462 143.791C47.1172 143.9 45.4419 143.9 43.2 143.9H28.8C26.5581 143.9 24.8828 143.9 23.5538 143.791C22.2259 143.683 21.2527 143.467 20.4135 143.039C18.927 142.282 17.7184 141.073 16.961 139.587C16.5335 138.747 16.3171 137.774 16.2087 136.446C16.1001 135.117 16.1 133.442 16.1 131.2V116.8Z",stroke:"black",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{x:"68",y:"106",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"68",y:"128",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"80.5",y:"176.5",width:"279",height:"71",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"80.5",y:"176.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint4_linear_116_6085)"}),(0,i.jsxs)("g",{filter:"url(#filter2_d_116_6085)",children:[(0,i.jsx)("path",{d:"M96 204.8C96 200.32 96 198.079 96.8719 196.368C97.6389 194.863 98.8628 193.639 100.368 192.872C102.079 192 104.32 192 108.8 192H123.2C127.68 192 129.921 192 131.632 192.872C133.137 193.639 134.361 194.863 135.128 196.368C136 198.079 136 200.32 136 204.8V219.2C136 223.68 136 225.921 135.128 227.632C134.361 229.137 133.137 230.361 131.632 231.128C129.921 232 127.68 232 123.2 232H108.8C104.32 232 102.079 232 100.368 231.128C98.8628 230.361 97.6389 229.137 96.8719 227.632C96 225.921 96 223.68 96 219.2V204.8Z",fill:"url(#paint5_linear_116_6085)"}),(0,i.jsx)("path",{d:"M96.1 204.8C96.1 202.558 96.1001 200.883 96.2087 199.554C96.3171 198.226 96.5335 197.253 96.961 196.413C97.7184 194.927 98.927 193.718 100.413 192.961C101.253 192.533 102.226 192.317 103.554 192.209C104.883 192.1 106.558 192.1 108.8 192.1H123.2C125.442 192.1 127.117 192.1 128.446 192.209C129.774 192.317 130.747 192.533 131.587 192.961C133.073 193.718 134.282 194.927 135.039 196.413C135.467 197.253 135.683 198.226 135.791 199.554C135.9 200.883 135.9 202.558 135.9 204.8V219.2C135.9 221.442 135.9 223.117 135.791 224.446C135.683 225.774 135.467 226.747 135.039 227.587C134.282 229.073 133.073 230.282 131.587 231.039C130.747 231.467 129.774 231.683 128.446 231.791C127.117 231.9 125.442 231.9 123.2 231.9H108.8C106.558 231.9 104.883 231.9 103.554 231.791C102.226 231.683 101.253 231.467 100.413 231.039C98.927 230.282 97.7184 229.073 96.961 227.587C96.5335 226.747 96.3171 225.774 96.2087 224.446C96.1001 223.117 96.1 221.442 96.1 219.2V204.8Z",stroke:"black",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{x:"148",y:"193",width:"120",height:"16",rx:"8",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"148",y:"217",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_116_6085",x:"87.4286",y:"10.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_116_6085"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_116_6085",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter1_d_116_6085",x:"7.42857",y:"98.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,i.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_116_6085"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_116_6085",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter2_d_116_6085",x:"87.4286",y:"186.286",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_116_6085"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_116_6085",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_116_6085",x1:"220",y1:"0",x2:"220",y2:"72",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_116_6085",x1:"116",y1:"16",x2:"116",y2:"56",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_116_6085",x1:"140",y1:"88",x2:"140",y2:"160",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_116_6085",x1:"36",y1:"104",x2:"36",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]}),(0,i.jsxs)("linearGradient",{id:"paint4_linear_116_6085",x1:"220",y1:"176",x2:"220",y2:"248",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint5_linear_116_6085",x1:"116",y1:"192",x2:"116",y2:"232",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3D8DF3"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function eD(e){return(0,i.jsxs)("svg",{width:"360",height:"248",viewBox:"0 0 360 248",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"80",width:"280",height:"72",rx:"8",fill:"white"}),(0,i.jsx)("rect",{x:"80.5",y:"0.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint0_linear_4434_146978)",stopOpacity:"0.24"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_4434_146978)",children:[(0,i.jsx)("path",{d:"M96 28.8C96 24.3196 96 22.0794 96.8719 20.3681C97.6389 18.8628 98.8628 17.6389 100.368 16.8719C102.079 16 104.32 16 108.8 16H123.2C127.68 16 129.921 16 131.632 16.8719C133.137 17.6389 134.361 18.8628 135.128 20.3681C136 22.0794 136 24.3196 136 28.8V43.2C136 47.6804 136 49.9206 135.128 51.6319C134.361 53.1372 133.137 54.3611 131.632 55.1281C129.921 56 127.68 56 123.2 56H108.8C104.32 56 102.079 56 100.368 55.1281C98.8628 54.3611 97.6389 53.1372 96.8719 51.6319C96 49.9206 96 47.6804 96 43.2V28.8Z",fill:"url(#paint1_linear_4434_146978)"}),(0,i.jsx)("path",{d:"M96.1 28.8C96.1 26.5581 96.1001 24.8828 96.2087 23.5538C96.3171 22.2259 96.5335 21.2527 96.961 20.4135C97.7184 18.927 98.927 17.7184 100.413 16.961C101.253 16.5335 102.226 16.3171 103.554 16.2087C104.883 16.1001 106.558 16.1 108.8 16.1H123.2C125.442 16.1 127.117 16.1001 128.446 16.2087C129.774 16.3171 130.747 16.5335 131.587 16.961C133.073 17.7184 134.282 18.927 135.039 20.4135C135.467 21.2527 135.683 22.2259 135.791 23.5538C135.9 24.8828 135.9 26.5581 135.9 28.8V43.2C135.9 45.4419 135.9 47.1172 135.791 48.4462C135.683 49.7741 135.467 50.7473 135.039 51.5865C134.282 53.073 133.073 54.2816 131.587 55.039C130.747 55.4665 129.774 55.6828 128.446 55.7913C127.117 55.8999 125.442 55.9 123.2 55.9H108.8C106.558 55.9 104.883 55.8999 103.554 55.7913C102.226 55.6828 101.253 55.4665 100.413 55.039C98.927 54.2816 97.7184 53.073 96.961 51.5865C96.5335 50.7473 96.3171 49.7741 96.2087 48.4462C96.1001 47.1172 96.1 45.4419 96.1 43.2V28.8Z",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{opacity:"0.12",x:"148",y:"18",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"148",y:"40",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{y:"88",width:"280",height:"72",rx:"8",fill:"white"}),(0,i.jsx)("rect",{x:"0.5",y:"88.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint2_linear_4434_146978)",stopOpacity:"0.24"}),(0,i.jsxs)("g",{filter:"url(#filter1_d_4434_146978)",children:[(0,i.jsx)("path",{d:"M16 116.8C16 112.32 16 110.079 16.8719 108.368C17.6389 106.863 18.8628 105.639 20.3681 104.872C22.0794 104 24.3196 104 28.8 104H43.2C47.6804 104 49.9206 104 51.6319 104.872C53.1372 105.639 54.3611 106.863 55.1281 108.368C56 110.079 56 112.32 56 116.8V131.2C56 135.68 56 137.921 55.1281 139.632C54.3611 141.137 53.1372 142.361 51.6319 143.128C49.9206 144 47.6804 144 43.2 144H28.8C24.3196 144 22.0794 144 20.3681 143.128C18.8628 142.361 17.6389 141.137 16.8719 139.632C16 137.921 16 135.68 16 131.2V116.8Z",fill:"url(#paint3_linear_4434_146978)"}),(0,i.jsx)("path",{d:"M16.1 116.8C16.1 114.558 16.1001 112.883 16.2087 111.554C16.3171 110.226 16.5335 109.253 16.961 108.413C17.7184 106.927 18.927 105.718 20.4135 104.961C21.2527 104.533 22.2259 104.317 23.5538 104.209C24.8828 104.1 26.5581 104.1 28.8 104.1H43.2C45.4419 104.1 47.1172 104.1 48.4462 104.209C49.7741 104.317 50.7473 104.533 51.5865 104.961C53.073 105.718 54.2816 106.927 55.039 108.413C55.4665 109.253 55.6828 110.226 55.7913 111.554C55.8999 112.883 55.9 114.558 55.9 116.8V131.2C55.9 133.442 55.8999 135.117 55.7913 136.446C55.6828 137.774 55.4665 138.747 55.039 139.587C54.2816 141.073 53.073 142.282 51.5865 143.039C50.7473 143.467 49.7741 143.683 48.4462 143.791C47.1172 143.9 45.4419 143.9 43.2 143.9H28.8C26.5581 143.9 24.8828 143.9 23.5538 143.791C22.2259 143.683 21.2527 143.467 20.4135 143.039C18.927 142.282 17.7184 141.073 16.961 139.587C16.5335 138.747 16.3171 137.774 16.2087 136.446C16.1001 135.117 16.1 133.442 16.1 131.2V116.8Z",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{opacity:"0.12",x:"68",y:"106",width:"120",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"68",y:"128",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"80",y:"176",width:"280",height:"72",rx:"8",fill:"white"}),(0,i.jsx)("rect",{x:"80.5",y:"176.5",width:"279",height:"71",rx:"7.5",stroke:"url(#paint4_linear_4434_146978)",stopOpacity:"0.24"}),(0,i.jsxs)("g",{filter:"url(#filter2_d_4434_146978)",children:[(0,i.jsx)("path",{d:"M96 204.8C96 200.32 96 198.079 96.8719 196.368C97.6389 194.863 98.8628 193.639 100.368 192.872C102.079 192 104.32 192 108.8 192H123.2C127.68 192 129.921 192 131.632 192.872C133.137 193.639 134.361 194.863 135.128 196.368C136 198.079 136 200.32 136 204.8V219.2C136 223.68 136 225.921 135.128 227.632C134.361 229.137 133.137 230.361 131.632 231.128C129.921 232 127.68 232 123.2 232H108.8C104.32 232 102.079 232 100.368 231.128C98.8628 230.361 97.6389 229.137 96.8719 227.632C96 225.921 96 223.68 96 219.2V204.8Z",fill:"url(#paint5_linear_4434_146978)"}),(0,i.jsx)("path",{d:"M96.1 204.8C96.1 202.558 96.1001 200.883 96.2087 199.554C96.3171 198.226 96.5335 197.253 96.961 196.413C97.7184 194.927 98.927 193.718 100.413 192.961C101.253 192.533 102.226 192.317 103.554 192.209C104.883 192.1 106.558 192.1 108.8 192.1H123.2C125.442 192.1 127.117 192.1 128.446 192.209C129.774 192.317 130.747 192.533 131.587 192.961C133.073 193.718 134.282 194.927 135.039 196.413C135.467 197.253 135.683 198.226 135.791 199.554C135.9 200.883 135.9 202.558 135.9 204.8V219.2C135.9 221.442 135.9 223.117 135.791 224.446C135.683 225.774 135.467 226.747 135.039 227.587C134.282 229.073 133.073 230.282 131.587 231.039C130.747 231.467 129.774 231.683 128.446 231.791C127.117 231.9 125.442 231.9 123.2 231.9H108.8C106.558 231.9 104.883 231.9 103.554 231.791C102.226 231.683 101.253 231.467 100.413 231.039C98.927 230.282 97.7184 229.073 96.961 227.587C96.5335 226.747 96.3171 225.774 96.2087 224.446C96.1001 223.117 96.1 221.442 96.1 219.2V204.8Z",stopOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{opacity:"0.12",x:"148",y:"193",width:"120",height:"16",rx:"8",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"148",y:"217",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_4434_146978",x:"87.4286",y:"10.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4434_146978"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4434_146978",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter1_d_4434_146978",x:"7.42857",y:"98.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,i.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4434_146978"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4434_146978",result:"shape"})]}),(0,i.jsxs)("filter",{id:"filter2_d_4434_146978",x:"87.4286",y:"186.286",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4434_146978"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4434_146978",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4434_146978",x1:"220",y1:"0",x2:"220",y2:"72",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#EBEBED"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#CFDBD7",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4434_146978",x1:"116",y1:"16",x2:"116",y2:"56",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_4434_146978",x1:"140",y1:"88",x2:"140",y2:"160",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#EBEBED"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#CFDBD7",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint3_linear_4434_146978",x1:"36",y1:"104",x2:"36",y2:"144",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FAC818"})]}),(0,i.jsxs)("linearGradient",{id:"paint4_linear_4434_146978",x1:"220",y1:"176",x2:"220",y2:"248",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#EBEBED"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#CFDBD7",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint5_linear_4434_146978",x1:"116",y1:"192",x2:"116",y2:"232",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#3D8DF3"}),(0,i.jsx)("stop",{offset:"0.0001",stopColor:"#5CBCB0"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#133BFE"})]})]})]})}function eS(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(eO,{}),light:(0,i.jsx)(eD,{})}})}function eT(e){return(0,i.jsxs)("svg",{width:"280",height:"102",viewBox:"0 0 280 102",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"101",rx:"7.5",fill:"#1C2333"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"101",rx:"7.5",stroke:"url(#paint0_linear_4513_103137)"}),(0,i.jsx)("rect",{x:"16",y:"18",width:"104",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{x:"16",y:"40",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_4513_103137)",children:[(0,i.jsx)("path",{d:"M224 22.4C224 20.1598 224 19.0397 224.436 18.184C224.819 17.4314 225.431 16.8195 226.184 16.436C227.04 16 228.16 16 230.4 16H257.6C259.84 16 260.96 16 261.816 16.436C262.569 16.8195 263.181 17.4314 263.564 18.184C264 19.0397 264 20.1598 264 22.4V49.6C264 51.8402 264 52.9603 263.564 53.816C263.181 54.5686 262.569 55.1805 261.816 55.564C260.96 56 259.84 56 257.6 56H230.4C228.16 56 227.04 56 226.184 55.564C225.431 55.1805 224.819 54.5686 224.436 53.816C224 52.9603 224 51.8402 224 49.6V22.4Z",fill:"url(#paint1_linear_4513_103137)"}),(0,i.jsx)("path",{d:"M224.1 22.4C224.1 21.2782 224.1 20.4429 224.154 19.781C224.208 19.1201 224.315 18.6408 224.525 18.2294C224.899 17.4956 225.496 16.899 226.229 16.5251C226.641 16.3155 227.12 16.2082 227.781 16.1542C228.443 16.1001 229.278 16.1 230.4 16.1H257.6C258.722 16.1 259.557 16.1001 260.219 16.1542C260.88 16.2082 261.359 16.3155 261.771 16.5251C262.504 16.899 263.101 17.4956 263.475 18.2294C263.685 18.6408 263.792 19.1201 263.846 19.781C263.9 20.4429 263.9 21.2782 263.9 22.4V49.6C263.9 50.7218 263.9 51.5571 263.846 52.219C263.792 52.8799 263.685 53.3592 263.475 53.7706C263.101 54.5044 262.504 55.101 261.771 55.4749C261.359 55.6845 260.88 55.7918 260.219 55.8458C259.557 55.8999 258.722 55.9 257.6 55.9H230.4C229.278 55.9 228.443 55.8999 227.781 55.8458C227.12 55.7918 226.641 55.6845 226.229 55.4749C225.496 55.101 224.899 54.5044 224.525 53.7706C224.315 53.3592 224.208 52.8799 224.154 52.219C224.1 51.5571 224.1 50.7218 224.1 49.6V22.4Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{x:"16",y:"72",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_4513_103137",x:"215.429",y:"10.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4513_103137"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4513_103137",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4513_103137",x1:"140",y1:"0",x2:"140",y2:"102",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4513_103137",x1:"244",y1:"16",x2:"244",y2:"56",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]})]})]})}function eE(e){return(0,i.jsxs)("svg",{width:"280",height:"102",viewBox:"0 0 280 102",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"280",height:"102",rx:"8",fill:"#F9F9F9"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"279",height:"101",rx:"7.5",stroke:"url(#paint0_linear_4513_102766)",strokeOpacity:"0.24"}),(0,i.jsx)("rect",{opacity:"0.12",x:"16",y:"18",width:"104",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsx)("rect",{opacity:"0.12",x:"16",y:"40",width:"196",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("g",{filter:"url(#filter0_d_4513_102766)",children:[(0,i.jsx)("path",{d:"M224 22.4C224 20.1598 224 19.0397 224.436 18.184C224.819 17.4314 225.431 16.8195 226.184 16.436C227.04 16 228.16 16 230.4 16H257.6C259.84 16 260.96 16 261.816 16.436C262.569 16.8195 263.181 17.4314 263.564 18.184C264 19.0397 264 20.1598 264 22.4V49.6C264 51.8402 264 52.9603 263.564 53.816C263.181 54.5686 262.569 55.1805 261.816 55.564C260.96 56 259.84 56 257.6 56H230.4C228.16 56 227.04 56 226.184 55.564C225.431 55.1805 224.819 54.5686 224.436 53.816C224 52.9603 224 51.8402 224 49.6V22.4Z",fill:"url(#paint1_linear_4513_102766)"}),(0,i.jsx)("path",{d:"M224.1 22.4C224.1 21.2782 224.1 20.4429 224.154 19.781C224.208 19.1201 224.315 18.6408 224.525 18.2294C224.899 17.4956 225.496 16.899 226.229 16.5251C226.641 16.3155 227.12 16.2082 227.781 16.1542C228.443 16.1001 229.278 16.1 230.4 16.1H257.6C258.722 16.1 259.557 16.1001 260.219 16.1542C260.88 16.2082 261.359 16.3155 261.771 16.5251C262.504 16.899 263.101 17.4956 263.475 18.2294C263.685 18.6408 263.792 19.1201 263.846 19.781C263.9 20.4429 263.9 21.2782 263.9 22.4V49.6C263.9 50.7218 263.9 51.5571 263.846 52.219C263.792 52.8799 263.685 53.3592 263.475 53.7706C263.101 54.5044 262.504 55.101 261.771 55.4749C261.359 55.6845 260.88 55.7918 260.219 55.8458C259.557 55.8999 258.722 55.9 257.6 55.9H230.4C229.278 55.9 228.443 55.8999 227.781 55.8458C227.12 55.7918 226.641 55.6845 226.229 55.4749C225.496 55.101 224.899 54.5044 224.525 53.7706C224.315 53.3592 224.208 52.8799 224.154 52.219C224.1 51.5571 224.1 50.7218 224.1 49.6V22.4Z",stroke:"black",strokeOpacity:"0.08",strokeWidth:"0.2"})]}),(0,i.jsx)("rect",{opacity:"0.12",x:"16",y:"72",width:"248",height:"14",rx:"7",fill:"#2B3245"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("filter",{id:"filter0_d_4513_102766",x:"215.429",y:"10.2857",width:"57.1429",height:"57.1429",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"2.85714"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.28571"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4513_102766"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4513_102766",result:"shape"})]}),(0,i.jsxs)("linearGradient",{id:"paint0_linear_4513_102766",x1:"140",y1:"0",x2:"140",y2:"102",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#38415A"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2B3245",stopOpacity:"0.4"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_4513_102766",x1:"244",y1:"16",x2:"244",y2:"56",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#F45D68"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FFCA00"})]})]})]})}function eM(e){var{theme:t}=e;return(0,i.jsx)(eu,{theme:t,components:{dark:(0,i.jsx)(eT,{}),light:(0,i.jsx)(eE,{})}})}var ej=r("50558"),eN=(e,t)=>{switch(e){case"bot":return(0,i.jsx)(eM,{theme:t});case"common":return(0,i.jsx)(eS,{theme:t});case"widget":return(0,i.jsx)(eg,{theme:t});case"social":return(0,i.jsx)(e_,{theme:t});case"recommend":return(0,i.jsx)(eA,{theme:t});case"social-scene-flow":return(0,i.jsx)(ex,{theme:t});default:return null}};function eP(e){var{type:t,theme:r,position:n}=e;return(0,i.jsx)("div",{className:l()(ej.Z["search-no-card"],{"items-start":"top"===n,"items-center":"center"===n,"items-end":"bottom"===n}),children:(0,i.jsx)("div",{className:ej.Z["".concat(t,"-no-card")],children:eN(t,r)})})}var eB=r("431169");function eI(e){var{title:t,description:r="",className:n,type:o,button:s,notFound:a="",isNotFound:u=!0,cardPosition:c="bottom",cardClassName:d,textClassName:p}=e,{theme:h}=(0,I.Fg)();return(0,i.jsxs)("div",{className:l()(eB.Z["search-no-result"],n),children:[(0,i.jsxs)("div",{className:l()(eB.Z["search-no-wrapper"],d),children:[(0,i.jsx)(eh,{theme:h}),(0,i.jsx)(eP,{theme:h,position:c,type:o})]}),(0,i.jsxs)("div",{className:l()(eB.Z["search-no-tips"],p),children:[(0,i.jsx)("div",{className:l()(eB.Z["search-no-title"],"coz-fg-plus text-center font-normal"),children:""!==a?a:t}),(0,i.jsx)("div",{className:l()(eB.Z["search-no-desc"],"coz-fg-dim text-center font-normal",{hidden:u}),children:r}),(0,i.jsx)("div",{children:!u&&s})]})]})}var eL=r("731870"),eF=r("184827"),ez=r("155440"),eR=r("479886"),eX=r("178385"),eZ=e=>{var{data:t,onImport:r}=e,n=(null==t?void 0:t.plugin_id)&&(null==t?void 0:t.plugin_id)!=="0",o=(0,i.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,i.jsx)(I.zx,{disabled:!n,color:"primary","data-testid":"workflow.modal.add",onClick:e=>{e.stopPropagation(),(null==t?void 0:t.workflow_id)&&(null==r||r({workflow_id:t.workflow_id,name:t.name||""}))},children:c.o.t("project_resource_modal_copy_to_project")})});return n?o:(0,i.jsx)(I.u,{position:"top",content:c.o.t("project_toast_only_published_resources_can_be_imported"),children:o})},eW=r("649213"),eV=r("189454"),{Paragraph:eH,Text:eU}=I.ZT,eq=e=>{var{type:t,format:r,assist_type:n}=e,o="";return t&&(o=t===u.n$I.String&&r===u.vGB.ImageUrl?"Image":t===u.n$I.String&&n?ea.Tg[n]:ea.fw[t]),o},eY=e=>{var{children:t,items:r}=e;return(0,i.jsx)(d.J2,{stopPropagation:!0,position:"top",spacing:0,content:(0,i.jsx)("div",{className:eV.Z.popover,children:r.map((e,t)=>(0,i.jsxs)("div",{className:eV.Z.item,children:[(0,i.jsxs)("div",{className:eV.Z.header,children:[(0,i.jsx)(eU,{ellipsis:{showTooltip:{opts:{content:e.name||"",position:"top",style:{wordBreak:"break-word"}}}},children:(0,i.jsx)("span",{className:eV.Z.name,children:e.name||"-"})}),(0,i.jsx)("span",{className:eV.Z.type,children:e.type||"-"}),!!e.required&&(0,i.jsx)("span",{className:eV.Z.required,children:c.o.t("workflow_add_parameter_required")})]}),(0,i.jsx)("div",{className:eV.Z.footer,children:(0,i.jsx)(eH,{ellipsis:{rows:2,showTooltip:{opts:{content:e.desc||"",position:"top",style:{wordBreak:"break-word"}}}},children:(0,i.jsx)("span",{className:eV.Z.footer,children:e.desc||"-"})})})]},"item".concat(t)))}),children:t})},eQ=e=>{var t,r,n,o,a,u,c,p,{data:g,style:y,className:x}=e,b=(0,s.useContext)(C.Z);var w=(p=0,(null==b?void 0:b.modalState.dataSourceType)===h.ye.Workflow)?(null===(c=g.start_node)||void 0===c?void 0:null===(u=c.node_param)||void 0===u?void 0:null===(a=u.input_parameters)||void 0===a?void 0:a.map(e=>{var t=eq(e);return{name:e.name,desc:e.desc,required:e.required,type:t}}))||[]:(null==g?void 0:null===(o=g.workflow_extra)||void 0===o?void 0:null===(n=o.start_node)||void 0===n?void 0:null===(r=n.node_param)||void 0===r?void 0:null===(t=r.input_parameters)||void 0===t?void 0:t.map(e=>{var t=eq((0,m._)((0,f._)({},e),{type:e.input_type}));return{name:e.name,desc:e.desc,required:e.is_required,type:t}}))||[];return(0,i.jsx)("div",{className:l()(eV.Z.container,x),style:y,children:(0,i.jsx)("div",{className:eV.Z.wrapper,children:(0,i.jsx)(d.Dj,{items:w,overflowRenderer:e=>{var t=e.slice(-1*e.length);return t.length?(0,i.jsx)(eY,{items:w,children:(0,i.jsx)("div",{children:(0,i.jsxs)(I.Vp,{style:{flex:"0 0 auto"},size:"mini",color:"primary",children:["+",t.length]})})}):null},visibleItemRenderer:e=>(0,i.jsx)(eY,{items:w,children:(0,i.jsx)("div",{style:{marginRight:8},children:(0,i.jsx)(I.Vp,{size:"mini",color:"primary",children:e.name})})})})})})},eG=r("297158"),e$=e=>{var{className:t,onDelete:r}=e,[n,o]=(0,s.useState)(!1),a=()=>o(!1);return(0,i.jsx)("div",{className:t,onClick:e=>e.stopPropagation(),children:(0,i.jsx)(I.gn,{visible:n,title:c.o.t("scene_workflow_popup_delete_confirm_title"),content:c.o.t("scene_workflow_popup_delete_confirm_subtitle"),okText:c.o.t("shortcut_modal_confirm"),cancelText:c.o.t("shortcut_modal_cancel"),trigger:"click",position:"bottomRight",onConfirm:()=>new Promise((e,t)=>{null==r||r().then(()=>{a(),e(!0)}).catch(e=>{eG.kg.error({error:e,eventName:"delete workflow error"}),t(e)})}),onCancel:a,okButtonColor:"red",children:(0,i.jsx)(I.hU,{icon:(0,i.jsx)(M.dVD,{}),type:"primary",onClick:e=>{e.stopPropagation(),o(!0)}})})})},eK=r("689951"),eJ=r("374864"),e0=e=>{var[t,{setFalse:r,setTrue:n}]=(0,eK.Z)(!1),{i18nText:o,ModalI18nKey:s}=z();return(0,i.jsx)(I.zx,(0,m._)((0,f._)({},e),{color:t?"red":"primary",className:l()({[eJ.Z.button]:!0,[eJ.Z.moreLevel]:!0}),onMouseEnter:()=>{n()},onMouseLeave:()=>{r()},"data-testid":"workflow.modal.button.added",children:t?o(s.ListItemRemove):c.o.t("workflow_add_list_added")}))},e1=r("230119"),e2=e=>{var{data:t,style:r,isAdded:n,onAdd:o,onRemove:a,className:u,from:h,workflowNodes:f,loading:m}=e,{plugin_id:g}=t||{},y=h===p.w.WorkflowAddNode||h===p.w.ProjectWorkflowAddNode,x=(0,s.useContext)(C.Z),b=(0,Q.D)(null==x?void 0:x.modalState),w="0"!==g||b,_=h===p.w.SocialSceneHost,[k,A]=(0,s.useState)((f||[]).length),O=h===p.w.WorkflowAgent,D=(0,s.useMemo)(()=>{var e;return null==t?void 0:null===(e=t.check_result)||void 0===e?void 0:e.find(e=>e.type===B.gf.BotAgent)},[t]),{i18nText:S,ModalI18nKey:E}=z();return(0,i.jsx)("div",{className:l()(e1.Z.container,u),style:r,onClick:e=>e.stopPropagation(),children:(()=>{if(O&&D&&!D.is_pass)return(0,i.jsx)(d.u,{position:"top",className:e1.Z.not_publish_tooltip,content:(0,i.jsx)("span",{className:e1.Z.content,children:D.reason}),children:(0,i.jsx)(I.fl,{disabled:!0,color:"primary",className:e1.Z.button,"data-testid":"workflow.modal.add",children:c.o.t("workflow_add_list_add")})});if(n)return(0,i.jsx)(d.gn,{title:S(E.ListItemRemoveConfirmTitle),content:S(E.ListItemRemoveConfirmDescription),okType:"danger",position:"topRight",onConfirm:a,zIndex:9999,okText:c.o.t("neutral_age_gate_confirm",{},"Confirm"),cancelText:c.o.t("workflow_240218_17",{},"Cancel"),children:(0,i.jsx)("div",{children:(0,i.jsx)(e0,{})})});if(!w){var e="workflow_add_not_allow_before_publish";return y?e="wf_node_add_wf_modal_tip_must_publish_to_add":_&&(e="scene_workflow_popup_add_forbidden"),(0,i.jsx)(d.u,{position:"top",className:e1.Z.not_publish_tooltip,content:(0,i.jsx)("span",{className:e1.Z.content,children:c.o.t(e)}),children:(0,i.jsx)(I.fl,{disabled:!0,color:"primary",className:e1.Z.button,"data-testid":"workflow.modal.add",children:c.o.t("workflow_add_list_add")})})}return n?null:(0,i.jsxs)(I.fl,{onClick:(0,T._)(function*(){(yield null==o?void 0:o())&&A(e=>e+1)}),color:"primary",className:e1.Z.button,"data-testid":"workflow.modal.add",children:[c.o.t("workflow_add_list_add"),y&&0!==k?(0,i.jsx)("span",{className:e1.Z.workflow_count_span,children:k}):null]})})()})},e4=r("744420"),{Text:e5}=I.ZT,e6=e=>(0,eR.unix)(Number(e)).format("YYYY-MM-DD"),e3=[],e8=e=>{var t,{data:r,workFlowList:n=e3,from:o,workflowNodes:a,dupText:g,itemShowDelete:y}=e,x=(0,s.useContext)(C.Z),b=null==r?void 0:null===(t=r.meta_info)||void 0===t?void 0:t.is_professional,{dupWorkflowTpl:w,addWorkflow:_,removeWorkflow:k,deleteWorkflow:A,itemClick:O}=(0,eW.u)((0,m._)((0,f._)({},e),{isProfessionalTemplate:b}));if(!x)return null;var D={unpublished:{label:c.o.t("workflow_add_status_unpublished"),icon:(0,i.jsx)(M.gO2,{className:"coz-fg-dim text-xs"})},published:{label:c.o.t("workflow_add_status_published"),icon:(0,i.jsx)(M.nAC,{className:"text-xs coz-fg-hglt-green"})}},{orderBy:S,spaceType:E}=x,{creator:j,status:N,isSpaceWorkflow:P,workflowCategory:L}=x.modalState,F=E===eX.Sn.Team;function z(e){return(null==x?void 0:x.modalState.dataSourceType)===h.ye.Workflow}var R=z(r)?r.plugin_id:"",X=!(0,ez.Z)(R)&&P?D["0"===R?"unpublished":"published"]:void 0;return(0,i.jsxs)("div",{className:e4.Z.container,onClick:()=>{O()},children:[(0,i.jsx)("div",{className:e4.Z.left,children:(0,i.jsx)("div",{className:e4.Z.icon,children:(0,i.jsx)(d.Ee,{preview:!1,src:z(r)?r.url:r.meta_info.icon_url})})}),(0,i.jsxs)("div",{className:e4.Z.center,children:[(0,i.jsx)("div",{className:e4.Z.header,children:(0,i.jsxs)("div",{className:e4.Z.title_wrapper,children:[(0,i.jsx)(e5,{ellipsis:{showTooltip:!0},className:e4.Z.title,children:z(r)?r.name:r.meta_info.name}),(0,Q.D)(null==x?void 0:x.modalState)||L===h.BD.Example?null:X?(0,i.jsxs)("div",{className:l()(e4.Z.status),children:[X.icon,(0,i.jsx)("span",{className:e4.Z.text,children:X.label})]}):null]})}),(0,i.jsx)("div",{className:e4.Z.content,children:(0,i.jsx)(e5,{ellipsis:{showTooltip:{opts:{style:{maxWidth:600,wordBreak:"break-word"}}}},className:e4.Z.desc,children:(z(r)?r.desc:r.meta_info.description)||""})}),(0,i.jsxs)("div",{className:e4.Z.footer,children:[(0,i.jsx)(eQ,{data:r}),(()=>{if(!z(r)){var e,t,n,s,a,l="".concat(c.o.t("workflow_add_list_updated")," ").concat(e6(r.meta_info.listed_at));return(0,i.jsxs)("div",{className:e4.Z.info,children:[(0,i.jsxs)("div",{className:e4.Z.creator,children:[(0,i.jsx)(d.qE,{className:e4.Z["creator-avatar"],src:null===(e=r.meta_info.user_info)||void 0===e?void 0:e.avatar_url}),(0,i.jsx)(e5,{ellipsis:{showTooltip:!0},className:e4.Z["creator-name"],children:null!==(a=null===(t=r.meta_info.user_info)||void 0===t?void 0:t.name)&&void 0!==a?a:c.o.t("workflow_add_list_unknown")}),(0,i.jsx)("span",{className:e4.Z.symbol,children:"|"})]}),(0,i.jsx)("span",{className:e4.Z.date,children:l}),(Number(null==r?void 0:null===(n=r.workflow_extra)||void 0===n?void 0:n.duplicate_count)||0)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:e4.Z.symbol,children:"|"}),(0,i.jsxs)(e5,{className:e4.Z.date,children:[Number(null==r?void 0:null===(s=r.workflow_extra)||void 0===s?void 0:s.duplicate_count)||0," ",c.o.t("workflowstore_card_duplicate")]})]}):null]})}if(P||L===h.BD.Example){var f,m,g,y=j!==h.gp.Mine&&F||o===p.w.ProjectImportLibrary,x=S===u.d$J.CreateTime?"".concat(c.o.t("workflow_add_list_created")," ").concat(e6(r.create_time)):N===u.VBX.HadPublished?"".concat(c.o.t("workflow_add_list_publised")," ").concat(e6(r.update_time)):"".concat(c.o.t("workflow_add_list_updated")," ").concat(e6(r.update_time));return(0,i.jsxs)("div",{className:e4.Z.info,children:[y?(0,i.jsxs)("div",{className:e4.Z.creator,children:[(0,i.jsx)(d.qE,{className:e4.Z["creator-avatar"],src:null===(f=r.creator)||void 0===f?void 0:f.avatar_url}),(0,i.jsx)(e5,{ellipsis:{showTooltip:!0},className:e4.Z["creator-name"],children:null!==(g=null===(m=r.creator)||void 0===m?void 0:m.name)&&void 0!==g?g:c.o.t("workflow_add_list_unknown")}),(0,i.jsx)("span",{className:e4.Z.symbol,children:"|"})]}):null,(0,i.jsx)("span",{className:e4.Z.date,children:x})]})}return P?null:(0,i.jsxs)("div",{className:e4.Z.creator,children:[(0,i.jsx)(d.Ee,{preview:!1,src:r.template_author_picture_url,className:e4.Z.avatar}),(0,i.jsx)(e5,{ellipsis:{showTooltip:!0},className:e4.Z.name,children:r.template_author_name||"-"})]})})()]})]}),(0,i.jsx)("div",{className:e4.Z.right,children:(0,i.jsx)("div",{className:e4.Z.buttons,children:(()=>{if(L===h.BD.Example&&z(r)){var t,s,l=null==r?void 0:null===(s=r.check_result)||void 0===s?void 0:s.find(e=>e.type===B.gf.BotAgent);var u=(0,i.jsx)(I.fl,{color:"primary","data-testid":"workflow.modal.add",disabled:l&&!(null==l?void 0:l.is_pass),onClick:(t=(0,T._)(function*(e){e.stopPropagation(),yield w()}),function(e){return t.apply(this,arguments)}),children:g||c.o.t("workflowstore_duplicate_and_add")});return l&&!l.is_pass&&l.reason?(0,i.jsx)(d.u,{content:l.reason,children:u}):u}return o===p.w.ProjectImportLibrary?(0,i.jsx)(eZ,{data:r,onImport:e.onImport}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e2,{isAdded:n.some(e=>e.workflow_id===(null==r?void 0:r.workflow_id)),workflowNodes:a,from:o,data:r,onAdd:()=>_(),onRemove:()=>{k()}}),y?(0,i.jsx)(e$,{className:"ml-[4px]",onDelete:A}):null]})})()})})]})},e9=r("934910"),e7=e=>{var t,r,{excludedWorkflowIds:n,from:o,projectId:a}=e,l=(0,s.useContext)(C.Z),{i18nText:m,ModalI18nKey:g}=z(),{updatePageParam:y,isFetching:b,workflowList:w,fetchNextPage:_,loadingStatus:k,refetch:A,hasNextPage:O,handleDelete:S}=(0,eL.S)({pageSize:10,enabled:(null==l?void 0:l.modalState.dataSourceType)===h.ye.Workflow,from:o,fetchWorkflowListApi:(null==l?void 0:null===(r=l.modalState)||void 0===r?void 0:r.workflowCategory)!==h.BD.Example?x.OHc.GetWorkFlowList.bind(x.OHc):x.OHc.GetExampleWorkFlowList.bind(x.OHc)}),{workflowProductList:T,updatePageParam:E,fetchNextPage:j,isFetching:N,loadingStatus:P,hasNextPage:B,copyProduct:L}=(0,eF.e)({pageSize:10,enabled:(null==l?void 0:l.modalState.dataSourceType)===h.ye.Product});(0,s.useEffect)(()=>{if(!!l){var{modalState:e,flowMode:t}=l;if(e.dataSourceType===h.ye.Workflow){var r,n,o=(0,Q.D)(e);!e.isSpaceWorkflow&&(r=e.query?1:e.workflowTag),e.workflowCategory===h.BD.Example?(r=u.Vp9.All,n=u.uql.GuanFang):n=e.isSpaceWorkflow?u.uql.User:u.uql.GuanFang;var i=void 0;e.isSpaceWorkflow&&(i=e.status===h.aJ||o?void 0:e.status),y({space_id:l.spaceId,flow_mode:e.listFlowMode,name:e.query,order_by:e.isSpaceWorkflow?l.orderBy:void 0,status:i,type:n,project_id:(0,Q.D)(e)?a:void 0,login_user_create:e.isSpaceWorkflow?e.creator===h.gp.Mine:void 0,tags:r,bind_biz_type:l.bindBizType,bind_biz_id:l.bindBizId})}else"recommend"===e.productCategory?E({keyword:e.query,sort_type:e.sortType,category_id:void 0,source:D.QJ.Recommend,entity_type:(0,x.ikd)(t)?D._J.WorkflowTemplateV2:D._J.ImageflowTemplateV2}):"all"===e.productCategory?E({keyword:e.query,sort_type:e.sortType,category_id:void 0,source:void 0,entity_type:(0,x.ikd)(t)?D._J.WorkflowTemplateV2:D._J.ImageflowTemplateV2}):E({keyword:e.query,sort_type:e.sortType,category_id:e.productCategory,source:void 0,entity_type:(0,x.ikd)(t)?D._J.WorkflowTemplateV2:D._J.ImageflowTemplateV2})}},[l]);var{nodes:F}=(0,el.I)((0,en.N)(e=>({nodes:e.nodes}))),R=(0,s.useMemo)(()=>{var e=F.filter(e=>e.type===ea.ny.SubWorkflow);return(0,eo.Z)(e,e=>{var t,r;return null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(t=r.inputs)||void 0===t?void 0:t.workflowId})},[F]),X=(0,s.useMemo)(()=>n?w.filter(e=>!n.includes(e.workflow_id||"")):w,[n,w]),Z=(0,s.useRef)(null),W=(0,s.useRef)(null),[V]=(0,ei.Z)(W,{root:()=>Z.current,threshold:.8});if((0,es.Z)(()=>{Z.current&&Z.current.scrollTo({top:0})},[null==l?void 0:l.modalState]),(0,s.useEffect)(()=>{if(!!V)if(Y===h.ye.Workflow){if("success"!==k||b||!O)return;_()}else{if("success"!==P||N||!B)return;j()}},[V,k,b,O,P,N,B]),(0,s.useEffect)(()=>{if(!!(null==l?void 0:l.modalState.isSpaceWorkflow)){var e=()=>{"visible"===document.visibilityState&&A()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}},[null==l?void 0:l.modalState.isSpaceWorkflow,A]),!l)return null;function H(e){return(null==l?void 0:l.modalState.dataSourceType)===h.ye.Workflow}var{modalState:U,flowMode:q}=l,{dataSourceType:Y}=l.modalState,G=Y===h.ye.Workflow?k:P,$=Y===h.ye.Workflow?O:B,K=Y===h.ye.Workflow?X:T,J=o===p.w.WorkflowAgent;return(0,i.jsx)(d.vy,{children:(0,i.jsx)(I.yC,{spinning:"pending"===G,wrapperClassName:e9.Z.spin,style:{height:"100%",width:"100%"},children:(0,i.jsxs)("div",{className:"".concat(e9.Z["workflow-content"]," new-workflow-modal-content"),ref:Z,children:["pending"!==G&&K.length>0&&(0,i.jsxs)(d.vy.Content,{style:{minHeight:"100%",paddingBottom:J?"60px":0},children:[(0,i.jsx)(i.Fragment,{children:K.map(t=>{var r;return(0,i.jsx)(e8,(0,f._)({data:t,itemShowDelete:(null==l?void 0:l.bindBizType)===u.k5N.DouYinBot,workflowNodes:H(t)&&null!==(r=R[t.workflow_id||""])&&void 0!==r?r:[],handleDeleteWorkflow:S,copyProductHandle:L},e),H(t)?t.workflow_id:t.meta_info.entity_id)})}),$?(0,i.jsx)("div",{ref:W,children:(0,i.jsxs)("div",{className:e9.Z["loading-more"],children:[(0,i.jsx)(M.j2n,{className:"animate-spin coz-fg-dim mr-[4px]"}),(0,i.jsx)("div",{children:c.o.t("Loading")})]})}):null]}),"success"===G&&0===K.length&&(t=!!U.query,q===u.wz8.SceneFlow?(0,i.jsx)(eI,{title:m(g.CreatedListEmptyTitle),type:"social-scene-flow",isNotFound:t,notFound:t?m(g.ListEmptyTitle):""}):(0,i.jsx)(d.YZ,{isNotFound:t,notFound:{title:m(g.ListEmptyTitle)},empty:{title:m(g.CreatedListEmptyTitle),description:m(g.CreatedListEmptyDescription)}}))]})})})},te=e=>{var{flowMode:t=u.wz8.Workflow,initState:r,hideSider:n=!1,bindBizId:o,bindBizType:a,projectId:l,i18nMap:d,from:A}=e,{space_type:O,id:D}=(0,w.rY)(e=>e.space),S=(0,s.useRef)(null),[T,E]=(0,s.useState)({status:null!==(q=null==r?void 0:r.status)&&void 0!==q?q:u.VBX.HadPublished,dataSourceType:null!==(Q=null==r?void 0:r.dataSourceType)&&void 0!==Q?Q:h.ye.Workflow,creator:null!==(G=null==r?void 0:r.creator)&&void 0!==G?G:h.gp.All,workflowTag:null!==($=null==r?void 0:r.workflowTag)&&void 0!==$?$:0,productCategory:null!==(K=null==r?void 0:r.productCategory)&&void 0!==K?K:"",query:null!==(J=null==r?void 0:r.query)&&void 0!==J?J:"",isSpaceWorkflow:null===(ee=null==r?void 0:r.isSpaceWorkflow)||void 0===ee||ee,workflowCategory:A===p.w.ProjectWorkflowAddNode?h.BD.Project:h.BD.Library,listFlowMode:null!==(et=null==r?void 0:r.listFlowMode)&&void 0!==et?et:u.wz8.All}),M=(0,s.useCallback)(e=>{E((0,f._)({},T,e))},[T]),[j,N]=(0,s.useState)(u.d$J.UpdateTime),[P,B]=(0,s.useState)(!1);(0,g.Z)(()=>{var t,n,o,i,s,a,l,c;E({status:null!==(t=null==r?void 0:r.status)&&void 0!==t?t:u.VBX.HadPublished,dataSourceType:null!==(n=null==r?void 0:r.dataSourceType)&&void 0!==n?n:h.ye.Workflow,creator:null!==(o=null==r?void 0:r.creator)&&void 0!==o?o:h.gp.All,workflowTag:null!==(i=null==r?void 0:r.workflowTag)&&void 0!==i?i:0,productCategory:null!==(s=null==r?void 0:r.productCategory)&&void 0!==s?s:"",query:null!==(a=null==r?void 0:r.query)&&void 0!==a?a:"",isSpaceWorkflow:null===(l=null==r?void 0:r.isSpaceWorkflow)||void 0===l||l,workflowCategory:A===p.w.ProjectWorkflowAddNode?h.BD.Project:h.BD.Library,listFlowMode:null!==(c=null==r?void 0:r.listFlowMode)&&void 0!==c?c:u.wz8.All}),X.E7.info({message:"useWorkflowModalParts mounted",meta:{from:e.from}})});var I={spaceId:null!=D?D:"",spaceType:null!=O?O:k.Sn.Team,bindBizId:o,bindBizType:a,projectId:l,flowMode:t,modalState:T,updateModalState:M,orderBy:j,setOrderBy:N,createModalVisible:P,setCreateModalVisible:B,getModalState:e=>(0,f._)({},e.modalState),i18nMap:d};if(!O||!D)return X.E7.errorEvent({eventName:"workflow_modal_in_bot_no_spaceId",error:new _.sH("normal_error","no spaceId")}),{sider:null,content:null,filter:null};var z=a===u.k5N.DouYinBot,R=n||z,Z=R?null:(0,i.jsx)(y.aH,{client:u.fB_,children:(0,i.jsx)(C.Z.Provider,{value:I,children:(0,i.jsx)(V,(0,f._)({ref:S},e))})}),W=(0,i.jsx)(y.aH,{client:u.fB_,children:(0,i.jsx)(C.Z.Provider,{value:I,children:(0,i.jsx)(e7,(0,m._)((0,f._)({},e),{onDupSuccess:r=>{if(!!e.onDupSuccess){if(T.dataSourceType===h.ye.Product){var n,o,i,s=null!==(i=({[p.w.SpaceWorkflowList]:b.JN.template,[p.w.WorkflowAddNode]:b.JN.flowIde,[p.w.BotSkills]:b.JN.botIde,[p.w.BotMultiSkills]:b.JN.botIde,[p.w.BotTrigger]:b.JN.botIde,[p.w.BotShortcut]:b.JN.botIde,[p.w.WorkflowAgent]:b.JN.botIde})[e.from||""])&&void 0!==i?i:b.JN.botIde;(0,b.Gg)(b.Kg.flow_duplicate_click,{store_type:(0,x.ikd)(t)?b.Pv.workflow:b.Pv.imageflow,resource:s,category_name:(null===(o=S.current)||void 0===o?void 0:null===(n=o.getCurrent())||void 0===n?void 0:n.name)||"",duplicate_type:e.from===p.w.BotSkills?b.OX.toBot:b.OX.toWorkspace})}e.onDupSuccess(r)}}}))})}),U=(0,i.jsx)(y.aH,{client:u.fB_,children:(0,i.jsx)(C.Z.Provider,{value:I,children:z?(0,i.jsx)(Y,(0,f._)({},e)):(0,i.jsx)(er,(0,f._)({},e))})});if(R&&!z){var q,Q,G,$,K,J,ee,et,en,eo=c.o.t(null===(en=F[t])||void 0===en?void 0:en[L.Title]);U=(0,i.jsxs)("div",{className:"flex flex-col items-start flex-grow flex-shrink-0",children:[(0,i.jsx)("div",{className:H.Z.title,children:eo}),U]})}return{sider:Z,filter:U,content:W}},tt=e=>{var t,r,{className:n,visible:s,onClose:a}=e,p=(0,o._)(e,["className","visible","onClose"]),{sider:h,filter:f,content:m}=te(p),g=null!==(r=p.flowMode)&&void 0!==r?r:u.wz8.Workflow,y=p.bindBizType===u.k5N.DouYinBot;return(0,i.jsx)(d.FS,{visible:s,onCancel:a,siderWrapperClassName:p.hideSider||y?"hidden":"",header:c.o.t(null===(t=F[g])||void 0===t?void 0:t[L.Title]),className:l()(H.Z["workflow-modal"],n,"new-workflow-modal",y?H.Z["douyin-workflow-modal"]:""),sider:h,filter:f,content:m})}},518175:function(e,t,r){"use strict";r.d(t,{BD:function(){return u},aJ:function(){return l},gp:function(){return s},ye:function(){return a}});var n,o,i,s=((n={}).All="1",n.Mine="2",n);var a=((o={}).Workflow="workflow",o.Product="product",o),l="all";var u=((i={}).Project="project",i.Library="library",i.Example="example",i)},398420:function(e,t,r){"use strict";r.d(t,{D:function(){return o}});var n=r(518175),o=e=>(null==e?void 0:e.workflowCategory)===n.BD.Project},242505:function(e,t,r){"use strict";var n=r(455069).createContext(null);t.Z=n},719894:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(886842),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},366714:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(723956),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},196163:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(145888),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},927070:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(733922),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},172742:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(269382),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},468163:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(825778),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},170992:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(408063),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},153796:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(557048),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},398778:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(934971),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},881305:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(634283),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},150838:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(981625),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},982997:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(574371),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},298188:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(212404),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},625218:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(821049),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},207265:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(76894),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},872457:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(890590),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},784636:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(339502),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},651242:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(489478),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},121022:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(146689),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},546410:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(122631),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},261008:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(869340),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},420666:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(295652),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},918966:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(617260),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},772650:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(876504),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},565922:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(339629),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},384174:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(88634),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},273768:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(181806),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},825926:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(54781),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},105452:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(136965),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},210208:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(716998),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},151359:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(903687),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},391757:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(264622),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},928589:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(238205),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},658665:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(112425),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},606526:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(191552),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},777432:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(694898),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},125915:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(408582),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},826256:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(53785),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},175706:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(686203),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},873688:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(116954),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},955751:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(528857),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},367275:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(898720),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},573049:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(790822),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},50558:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(552113),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},431169:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(666462),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},60378:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(290028),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},274038:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(542749),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},347278:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(602053),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},84840:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(323043),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},205873:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(928239),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},202635:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(498356),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},414616:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(283681),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},657868:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(866328),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},8616:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(130462),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},308418:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(971522),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},374864:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(172835),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},230119:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(179798),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},744420:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(989127),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},189454:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(189450),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},934910:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(640327),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},954552:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(584139),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},442078:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(766537),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},592476:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(839418),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),t.Z=m.Z&&m.Z.locals?m.Z.locals:void 0},700003:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(477654),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},747555:function(e,t,r){"use strict";var n=r(407821),o=r.n(n),i=r(472772),s=r.n(i),a=r(395245),l=r.n(a),u=r(297998),c=r.n(u),d=r(646576),p=r.n(d),h=r(606121),f=r.n(h),m=r(743154),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=l().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=p(),o()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},68344:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAbFBMVEUAAAA+kxJXwCFVvSBWwCBXwCBYvyBQvyBXwCFYvyBXwCFSuB5WwSBXwCE9kRL///+r35Dq9+OW2HRsyD2B0FjV78eg3IL0+/F2zEtsyDxixC+2453A56yL1Gbf89XL67mr4JBBmRRUvB9LqxqcizZ4AAAADXRSTlMAf9+Az78gEN5g73BfHkHUEQAAAXtJREFUWMPszLsRQEAABUB/g3nXA/rvUSxxm7stYLt/WMc5n4aRnmVITeklqj8pMm2BSKZJIpkiEUwWwWQRTBbBZBFMFsFkEUwWyRRwyhRwF5gCrhOmAJpi7ld1QER2iEyLWtSiFj3s1F2OhCAQBOATdMqG5kdEnfufcgt75nngcTdLoik68EXahN8B7bbz3UKw5oXI+IRqnwVT0IZNJBcAmse2hBEDoyL7gjANBSL2KjDZFVcOHTQIlX0RSjifdPDRxhhQGiFci9BNwscFbwxpQqyvQQZoD+McgFcPVhVVYUuQnAkcvUWHvKqIFdpWII5mhzIBzb/IIck4JqAYHfIgJ5Ik7xEReyAWru9QH0vup62V00AoQ/2XqzgUC75DhtITlAdg2HoZOzi/j4RS35DkCUheALSOoEwlyycmFh0iPdXsGt8hevLY/sY18g/9bNSgYWQQKznmsGAxiJkcg3iwDfowkW4OB3nDPpjmsOEasGEhxRhWZnaGEQEAhXqzlPyyOgUAAAAASUVORK5CYII="},623159:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAbFBMVEUAAAC5KHrfWKXdVaLfWKTfWKTfUJ/fWKXgWKbfV6XfWKTYUJ/cWKXfWKW4KHn////zwN3ngrv76vTjbbD99frhYqv31ejvq9LtoczrlsfxttfpjMLld7b54O/1y+O+L3/OQ5Lrl8baUp/CNIQABM2HAAAADXRSTlMAf9+AzyAQv1/vvnBgSmwi0AAAAV9JREFUWMPszLsRQEAABUDObwxPCwz99yiWsLnbArb5h7Gb8qp09AwlX7ZWopLvSKY1EMnUSyRTJILJIpgsgskimCyCySKYLILJIpkCLpkCjg2miB2miBOmmONRLRCRGSJToxrVqEY3+3SSwjAMQwH0BOJbg4dmgt7/krU/yT7OqoX+hW0MekgJ/npoUx9bVu2rapYe100Y3qreghrK2CqSiAJVehKigzxABLg3WsEq4oCzbj/rGzvDDKSwLImthCUoIbDN1xQ0EIexblEsvCkEzWwG8ogd7344sOUIQusAFWkKkgpOwrYSlEuJMa/PQTmwcbK91gMLIUVzHDIHicH5+xi2ohLlhfUR5DDvKVgJVYTJI6ghCQcshDLQLiiN3IYMen6wPCAp8Atifu/1/6HPRg0aNQiHQezkmMOCxSBmcgziwDbow0S6OUzkDftgmsPKgB1wsJBiDBczG8OIAAC6P7F3PFnTnAAAAABJRU5ErkJggg=="},249869:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAeCAYAAACBkybCAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATWSURBVHgB1Vg5cxs3FAawF5cKddCaSSZSIRUs3KhJ4SqF/3sKF0kRFWqUiVnYmWhsHTyXS+wC/r4FVqJo8RBVmHozJHaBhwW+dwJPiu9J7e/v72qtG2VZJny31iqxBSSlLJRSOgiC6WAw6KFLPxqf408ajcYv2HyIiSUmTtEa9Fvx40lSqPgFxpiYHc1m8+vt7W3vnmGGmUB+RWsnk8kd2qnYXgrSNN0FKGy5cdPr9W6rTj8YeiACQK7RFGK7yRZFMUmSJIQ77MIdJugrKl84PDxMaVoeSCleCY3H4z7dAeZ2wHflO1v0D/GKgHgyCAYZNJPiWVVgYHsJo4R4hQQw9b6jkP8+9C6MWLDNY4B9A5Vq/D6NRqP+PA8c8g2aYz5DONd5nn8Sa1Cr1WrC/ilZQYE+9e2dnR06e/QUT7/fL7E/0W63E4IJPdOTJhZFUQdYO2U1Srz2JI7ji+l02p3lwXjnYZY6Ql8K57wUK2gyMUdSurlFYSiA89lxrHWqtXnLZwgyy7LRh7lPmPtVxRKi1KQMq4UA6NJa2XUjYWeWT6no2PHIrrXFpVu44onEC4gagSG9rd/zfPwXmmwR/1IwDHtus8GN1qNLrccXlA62jU22Us/GSJiyn+PUhpRqUA0gF4gNyZmf/e2hJ7jAX3/ZnHDZIEwvM8bSB1rebxA5nLQbDb0rZdrEGMB4VPAbhnjy8x02MRYb0MHBQTQe5+8oJL7TKrQedlfNWwoGIbuHDX4uS3uED549+A2dXHqpOeVyYYy/qw8V3iQzsQENh8MOzDR169irohit9D2xCgwJ0v0bWrmWMqojFUyHZzc1YHRzfWWbLc0RYLS106vpdL1oNk8MJgBywmeablFk5+vOXQmG5MKs21ySNN/DrMI8V38KMaDk0zhO33PhyWT4QbyAlJIw07D2ReQQcSXmTsZL54stotpHakIAOPH5ay1aSzP8YFGotl+wCgBRVJ4ieGoX2aygtqJopwrZjYb6jPvGRs5PDePWgcAjq/XQnqH5Q6yhoZVg6oTorjWzi9qTx4cGG6GvApPnpjOfWNchAkEuqUw1jpu/0zepLRwkOwhGF6vmPyNpyi4AwRllUb8/TqQ86phzaMg7/vOTJiIXT+30w0wpc+/4NDdcUX5eNf8ZSXN8wUCAo4d2Y8FHn0g/VlCkKDiudXbukqaNXpI0cR35Xyl7Vb8bo84oXLEpGCZJ9yHTot/4pOiddFDnEK8pm1J6judlSbMmADp3J45qhQjCPRObgmHShHRu+CEmRJcUXUaeYdO1qTGRPvBU5rZR0pz9Nta/NzcGBfjiySJmXptNGIZtVj6A/Lt7P47nV0rFAbQUwJQQBQKY1ujfWR5j9BelEuaJmDwA24X5/SNmTrSLCDdfCRMCaHkTBOYG643m1s/CMMhQx+iTBz5synJ6N8OC7YdNnBoG1dkD5nHKG9tTd4ltp729vQTm2Ia//leZGaSe15ef10a4MtfpJa/AQE0TX4uKxesiBTPcgTJYnTEVGFw97+gzMLd98VB+2nrC5e0nFgURNb/yvd54VYeChnbxS8HEnLHNlRoWAdusymCfLAAO2bmwPOurNaWvDWxTeZaXv4hlYzg+gdxHNrlgYgvnIaow9L8ffrr2NW9Dd4BZMX8RxKPQ/w1kzbb4xk2e5AAAAABJRU5ErkJggg=="},497013:function(e,t,r){"use strict";e.exports=r.p+"static/image/insert-blank-slot-guide-cn.c3118879.png"},384313:function(e,t,r){"use strict";e.exports=r.p+"static/image/insert-blank-slot-guide-en.3ab331a5.png"},736351:function(e,t,r){"use strict";e.exports=r.p+"static/image/key-example.59a92fee.png"},40009:function(e,t,r){"use strict";e.exports=r.p+"static/image/key-example.59a92fee.png"},75991:function(e,t,r){"use strict";e.exports=r.p+"static/image/tips-template-cn.5f0790d9.png"},951003:function(e,t,r){"use strict";e.exports=r.p+"static/image/tips-template-en.07b81dd1.png"},589653:function(e,t,r){"use strict";r.d(t,{j:function(){return d}});var n,o,i,s=r(893134),a=r(642427),l=r(562590),u=r(609540),c=r(244789),d=new(n=new WeakMap,o=new WeakMap,i=new WeakMap,class extends u.l{onSubscribe(){!(0,s._)(this,o)&&this.setEventListener((0,s._)(this,i))}onUnsubscribe(){var e;!this.hasListeners()&&(null===(e=(0,s._)(this,o))||void 0===e||e.call(this),(0,l._)(this,o,void 0))}setEventListener(e){var t;(0,l._)(this,i,e),null===(t=(0,s._)(this,o))||void 0===t||t.call(this),(0,l._)(this,o,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){(0,s._)(this,n)!==e&&((0,l._)(this,n,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return"boolean"==typeof(0,s._)(this,n)?(0,s._)(this,n):(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)!=="hidden"}constructor(){super(),(0,a._)(this,n,{writable:!0,value:void 0}),(0,a._)(this,o,{writable:!0,value:void 0}),(0,a._)(this,i,{writable:!0,value:void 0}),(0,l._)(this,i,e=>{if(!c.sk&&window.addEventListener){var t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}})},973100:function(e,t,r){"use strict";r.d(t,{Gm:function(){return i},Qy:function(){return l},ZF:function(){return u}});var n=r(825955),o=r(244789);function i(e){return{onFetch:(t,r)=>{var i,l=(i=(0,n._)(function*(){var r=t.options,i=null===(w=t.fetchOptions)||void 0===w?void 0:null===(b=w.meta)||void 0===b?void 0:null===(x=b.fetchMore)||void 0===x?void 0:x.direction,l=(null===(_=t.state.data)||void 0===_?void 0:_.pages)||[],u=(null===(k=t.state.data)||void 0===k?void 0:k.pageParams)||[],c=!1,d=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},p=t.options.queryFn||(()=>Promise.reject(Error("Missing queryFn: '".concat(t.options.queryHash,"'"))));var h=(y=(0,n._)(function*(e,r,n){if(c)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);var i={queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta};d(i);var s=yield p(i),{maxPages:a}=t.options,l=n?o.Ht:o.VX;return{pages:l(e.pages,s,a),pageParams:l(e.pageParams,r,a)}}),function(e,t,r){return y.apply(this,arguments)});if(i&&l.length){var f="backward"===i,m={pages:l,pageParams:u},g=(f?a:s)(r,m);C=yield h(m,g,f)}else{C=yield h({pages:[],pageParams:[]},null!==(A=u[0])&&void 0!==A?A:r.initialPageParam);for(var y,x,b,w,_,k,C,A,O=null!=e?e:l.length,D=1;D<O;D++){var S=s(r,C);C=yield h(C,S)}}return C}),function(){return i.apply(this,arguments)});t.options.persister?t.fetchFn=()=>{var e,n;return null===(e=(n=t.options).persister)||void 0===e?void 0:e.call(n,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function s(e,t){var{pages:r,pageParams:n}=t,o=r.length-1;return e.getNextPageParam(r[o],r,n[o],n)}function a(e,t){var r,{pages:n,pageParams:o}=t;return null===(r=e.getPreviousPageParam)||void 0===r?void 0:r.call(e,n[0],n,o[0],o)}function l(e,t){return!!t&&null!=s(e,t)}function u(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)}},461716:function(e,t,r){"use strict";r.d(t,{R:function(){return _},m:function(){return w}});var n,o,i,s,a,l,u=r(825955),c=r(893134),d=r(642427),p=r(562590),h=r(655461),f=r(808217),m=r(808549),g=r(120454),y=r(607919),x=r(8542),b=r(739244),w=(n=new WeakMap,o=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakSet,l=class extends x.F{setOptions(e){this.options=(0,m._)({},(0,c._)(this,o),e),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){!(0,c._)(this,n).includes(e)&&((0,c._)(this,n).push(e),this.clearGcTimeout(),(0,c._)(this,i).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){(0,p._)(this,n,(0,c._)(this,n).filter(t=>t!==e)),this.scheduleGc(),(0,c._)(this,i).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){!(0,c._)(this,n).length&&("pending"===this.state.status?this.scheduleGc():(0,c._)(this,i).remove(this))}continue(){var e,t;return null!==(t=null===(e=(0,c._)(this,s))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}execute(e){var t=this;return(0,u._)(function*(){var r="pending"===t.state.status;try{if(!r){(0,h._)(t,a,k).call(t,{type:"pending",variables:e}),yield null===(T=(E=(0,c._)(t,i).config).onMutate)||void 0===T?void 0:T.call(E,e,t);var n,o,l,u,d,f,m,g,y,x,w,_,C,A,O,D,S,T,E,M,j,N=yield null===(M=(j=t.options).onMutate)||void 0===M?void 0:M.call(j,e);N!==t.state.context&&(0,h._)(t,a,k).call(t,{type:"pending",context:N,variables:e})}var P=yield((0,p._)(t,s,(0,b.Mz)({fn:()=>t.options.mutationFn?t.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,r)=>{(0,h._)(t,a,k).call(t,{type:"failed",failureCount:e,error:r})},onPause:()=>{(0,h._)(t,a,k).call(t,{type:"pause"})},onContinue:()=>{(0,h._)(t,a,k).call(t,{type:"continue"})},retry:null!==(y=t.options.retry)&&void 0!==y?y:0,retryDelay:t.options.retryDelay,networkMode:t.options.networkMode})),(0,c._)(t,s).promise);return yield null===(x=(w=(0,c._)(t,i).config).onSuccess)||void 0===x?void 0:x.call(w,P,e,t.state.context,t),yield null===(_=(C=t.options).onSuccess)||void 0===_?void 0:_.call(C,P,e,t.state.context),yield null===(A=(O=(0,c._)(t,i).config).onSettled)||void 0===A?void 0:A.call(O,P,null,t.state.variables,t.state.context,t),yield null===(D=(S=t.options).onSettled)||void 0===D?void 0:D.call(S,P,null,e,t.state.context),(0,h._)(t,a,k).call(t,{type:"success",data:P}),P}catch(r){try{throw yield null===(n=(o=(0,c._)(t,i).config).onError)||void 0===n?void 0:n.call(o,r,e,t.state.context,t),yield null===(l=(u=t.options).onError)||void 0===l?void 0:l.call(u,r,e,t.state.context),yield null===(d=(f=(0,c._)(t,i).config).onSettled)||void 0===d?void 0:d.call(f,void 0,r,t.state.variables,t.state.context,t),yield null===(m=(g=t.options).onSettled)||void 0===m?void 0:m.call(g,void 0,r,e,t.state.context),r}finally{(0,h._)(t,a,k).call(t,{type:"error",error:r})}}})()}constructor(e){super(),(0,f._)(this,a),(0,d._)(this,n,{writable:!0,value:void 0}),(0,d._)(this,o,{writable:!0,value:void 0}),(0,d._)(this,i,{writable:!0,value:void 0}),(0,d._)(this,s,{writable:!0,value:void 0}),this.mutationId=e.mutationId,(0,p._)(this,o,e.defaultOptions),(0,p._)(this,i,e.mutationCache),(0,p._)(this,n,[]),this.state=e.state||_(),this.setOptions(e.options),this.scheduleGc()}});function _(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function k(e){this.state=(t=>{switch(e.type){case"failed":return(0,g._)((0,m._)({},t),{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,g._)((0,m._)({},t),{isPaused:!0});case"continue":return(0,g._)((0,m._)({},t),{isPaused:!1});case"pending":return(0,g._)((0,m._)({},t),{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,b.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return(0,g._)((0,m._)({},t),{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,g._)((0,m._)({},t),{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),y.V.batch(()=>{(0,c._)(this,n).forEach(t=>{t.onMutationUpdate(e)}),(0,c._)(this,i).notify({mutation:this,type:"updated",action:e})})}},607919:function(e,t,r){"use strict";r.d(t,{V:function(){return c}});var n,o,i,s,a,l,u=r(244789);var c=(n=[],o=0,i=e=>{e()},s=e=>{e()},a=e=>{o?n.push(e):(0,u.A4)(()=>{i(e)})},l=()=>{var e=n;n=[],e.length&&(0,u.A4)(()=>{s(()=>{e.forEach(e=>{i(e)})})})},{batch:e=>{var t;o++;try{t=e()}finally{!--o&&l()}return t},batchCalls:e=>function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];a(()=>{e(...r)})},schedule:a,setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{s=e}})},333245:function(e,t,r){"use strict";r.d(t,{N:function(){return d}});var n,o,i,s=r(893134),a=r(642427),l=r(562590),u=r(609540),c=r(244789),d=new(n=new WeakMap,o=new WeakMap,i=new WeakMap,class extends u.l{onSubscribe(){!(0,s._)(this,o)&&this.setEventListener((0,s._)(this,i))}onUnsubscribe(){var e;!this.hasListeners()&&(null===(e=(0,s._)(this,o))||void 0===e||e.call(this),(0,l._)(this,o,void 0))}setEventListener(e){var t;(0,l._)(this,i,e),null===(t=(0,s._)(this,o))||void 0===t||t.call(this),(0,l._)(this,o,e(this.setOnline.bind(this)))}setOnline(e){(0,s._)(this,n)!==e&&((0,l._)(this,n,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return(0,s._)(this,n)}constructor(){super(),(0,a._)(this,n,{writable:!0,value:void 0}),(0,a._)(this,o,{writable:!0,value:void 0}),(0,a._)(this,i,{writable:!0,value:void 0}),(0,l._)(this,n,!0),(0,l._)(this,i,e=>{if(!c.sk&&window.addEventListener){var t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}})}})},178621:function(e,t,r){"use strict";r.d(t,{S:()=>G});var n,o,i,s,a,l,u,c,d,p,h,f,m,g,y,x,b,w,_,k,C,A,O,D=r("893134"),S=r("642427"),T=r("562590"),E=r("339072");function M(e,t){var r=(0,E._)(e,t,"update");return function(e,t){if(t.set){if(!t.get)throw TypeError("attempted to read set only private field");return!("__destrWrapper"in t)&&(t.__destrWrapper={set value(v){t.set.call(e,v)},get value(){return t.get.call(e)}}),t.__destrWrapper}if(!t.writable)throw TypeError("attempted to set read only private field");return t}(e,r)}var j=r("808549"),N=r("120454"),P=r("244789"),B=r("655461"),I=r("808217"),L=r("607919"),F=r("739244"),z=r("8542"),R=(n=new WeakMap,o=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakSet,p=new WeakSet,h=class extends z.F{get meta(){return this.options.meta}optionalRemove(){!(0,D._)(this,l).length&&"idle"===this.state.fetchStatus&&(0,D._)(this,i).remove(this)}setData(e,t){var r=(0,P.oE)(this.state.data,e,this.options);return(0,B._)(this,p,Z).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){(0,B._)(this,p,Z).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r=(0,D._)(this,s);return null===(t=(0,D._)(this,a))||void 0===t||t.cancel(e),r?r.then(P.ZT).catch(P.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState((0,D._)(this,n))}isActive(){return(0,D._)(this,l).some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||(0,D._)(this,l).some(e=>e.getCurrentResult().isStale)}isStaleByTime(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,P.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e,t=(0,D._)(this,l).find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null===(e=(0,D._)(this,a))||void 0===e||e.continue()}onOnline(){var e,t=(0,D._)(this,l).find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null===(e=(0,D._)(this,a))||void 0===e||e.continue()}addObserver(e){!(0,D._)(this,l).includes(e)&&((0,D._)(this,l).push(e),this.clearGcTimeout(),(0,D._)(this,i).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){(0,D._)(this,l).includes(e)&&((0,T._)(this,l,(0,D._)(this,l).filter(t=>t!==e)),!(0,D._)(this,l).length&&((0,D._)(this,a)&&((0,D._)(this,c)?(0,D._)(this,a).cancel({revert:!0}):(0,D._)(this,a).cancelRetry()),this.scheduleGc()),(0,D._)(this,i).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return(0,D._)(this,l).length}invalidate(){!this.state.isInvalidated&&(0,B._)(this,p,Z).call(this,{type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if((0,D._)(this,s))return null===(u=(0,D._)(this,a))||void 0===u||u.continueRetry(),(0,D._)(this,s)}if(e&&(0,B._)(this,d,X).call(this,e),!this.options.queryFn){var r,n,u,h,f=(0,D._)(this,l).find(e=>e.options.queryFn);f&&(0,B._)(this,d,X).call(this,f.options)}var m=new AbortController,g={queryKey:this.queryKey,meta:this.meta},y=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>((0,T._)(this,c,!0),m.signal)})};y(g);var x={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?((0,T._)(this,c,!1),this.options.persister)?this.options.persister(this.options.queryFn,g,this):this.options.queryFn(g):Promise.reject(Error("Missing queryFn: '".concat(this.options.queryHash,"'")))};y(x),null===(r=this.options.behavior)||void 0===r||r.onFetch(x,this),(0,T._)(this,o,this.state),("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(n=x.fetchOptions)||void 0===n?void 0:n.meta))&&(0,B._)(this,p,Z).call(this,{type:"fetch",meta:null===(h=x.fetchOptions)||void 0===h?void 0:h.meta});var b=e=>{if(!((0,F.DV)(e)&&e.silent)&&(0,B._)(this,p,Z).call(this,{type:"error",error:e}),!(0,F.DV)(e)){var t,r,n,o;null===(t=(r=(0,D._)(this,i).config).onError)||void 0===t||t.call(r,e,this),null===(n=(o=(0,D._)(this,i).config).onSettled)||void 0===n||n.call(o,this.state.data,e,this)}!this.isFetchingOptimistic&&this.scheduleGc(),this.isFetchingOptimistic=!1};return(0,T._)(this,a,(0,F.Mz)({fn:x.fetchFn,abort:m.abort.bind(m),onSuccess:e=>{var t,r,n,o;if(void 0===e){b(Error("".concat(this.queryHash," data is undefined")));return}this.setData(e),null===(t=(r=(0,D._)(this,i).config).onSuccess)||void 0===t||t.call(r,e,this),null===(n=(o=(0,D._)(this,i).config).onSettled)||void 0===n||n.call(o,e,this.state.error,this),!this.isFetchingOptimistic&&this.scheduleGc(),this.isFetchingOptimistic=!1},onError:b,onFail:(e,t)=>{(0,B._)(this,p,Z).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{(0,B._)(this,p,Z).call(this,{type:"pause"})},onContinue:()=>{(0,B._)(this,p,Z).call(this,{type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode})),(0,T._)(this,s,(0,D._)(this,a).promise),(0,D._)(this,s)}constructor(e){super(),(0,I._)(this,d),(0,I._)(this,p),(0,S._)(this,n,{writable:!0,value:void 0}),(0,S._)(this,o,{writable:!0,value:void 0}),(0,S._)(this,i,{writable:!0,value:void 0}),(0,S._)(this,s,{writable:!0,value:void 0}),(0,S._)(this,a,{writable:!0,value:void 0}),(0,S._)(this,l,{writable:!0,value:void 0}),(0,S._)(this,u,{writable:!0,value:void 0}),(0,S._)(this,c,{writable:!0,value:void 0}),(0,T._)(this,c,!1),(0,T._)(this,u,e.defaultOptions),(0,B._)(this,d,X).call(this,e.options),(0,T._)(this,l,[]),(0,T._)(this,i,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,(0,T._)(this,n,e.state||function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=(0,D._)(this,n),this.scheduleGc()}});function X(e){this.options=(0,j._)({},(0,D._)(this,u),e),this.updateGcTime(this.options.gcTime)}function Z(e){this.state=(t=>{switch(e.type){case"failed":return(0,N._)((0,j._)({},t),{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,N._)((0,j._)({},t),{fetchStatus:"paused"});case"continue":return(0,N._)((0,j._)({},t),{fetchStatus:"fetching"});case"fetch":return(0,j._)((0,N._)((0,j._)({},t),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!==(r=e.meta)&&void 0!==r?r:null,fetchStatus:(0,F.Kw)(this.options.networkMode)?"fetching":"paused"}),!t.dataUpdatedAt&&{error:null,status:"pending"});case"success":return(0,j._)((0,N._)((0,j._)({},t),{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(n=e.dataUpdatedAt)&&void 0!==n?n:Date.now(),error:null,isInvalidated:!1,status:"success"}),!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":var r,n,i=e.error;if((0,F.DV)(i)&&i.revert&&(0,D._)(this,o))return(0,N._)((0,j._)({},(0,D._)(this,o)),{fetchStatus:"idle"});return(0,N._)((0,j._)({},t),{error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"});case"invalidate":return(0,N._)((0,j._)({},t),{isInvalidated:!0});case"setState":return(0,j._)({},t,e.state)}})(this.state),L.V.batch(()=>{(0,D._)(this,l).forEach(e=>{e.onQueryUpdate()}),(0,D._)(this,i).notify({query:this,type:"updated",action:e})})}var W=r("609540"),V=(f=new WeakMap,class extends W.l{build(e,t,r){var n,o=t.queryKey,i=null!==(n=t.queryHash)&&void 0!==n?n:(0,P.Rm)(o,t),s=this.get(i);return!s&&(s=new R({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){!(0,D._)(this,f).has(e.queryHash)&&((0,D._)(this,f).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){var t=(0,D._)(this,f).get(e.queryHash);t&&(e.destroy(),t===e&&(0,D._)(this,f).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){L.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return(0,D._)(this,f).get(e)}getAll(){return[...(0,D._)(this,f).values()]}find(e){var t=(0,j._)({exact:!0},e);return this.getAll().find(e=>(0,P._x)(t,e))}findAll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,P._x)(e,t)):t}notify(e){L.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){L.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){L.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}constructor(e={}){super(),(0,S._)(this,f,{writable:!0,value:void 0}),this.config=e,(0,T._)(this,f,new Map)}}),H=r("461716"),U=(m=new WeakMap,g=new WeakMap,y=new WeakMap,class extends W.l{build(e,t,r){var n=new H.m({mutationCache:this,mutationId:++M(this,g).value,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){(0,D._)(this,m).push(e),this.notify({type:"added",mutation:e})}remove(e){(0,T._)(this,m,(0,D._)(this,m).filter(t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){L.V.batch(()=>{(0,D._)(this,m).forEach(e=>{this.remove(e)})})}getAll(){return(0,D._)(this,m)}find(e){var t=(0,j._)({exact:!0},e);return(0,D._)(this,m).find(e=>(0,P.X7)(t,e))}findAll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,D._)(this,m).filter(t=>(0,P.X7)(e,t))}notify(e){L.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){var e;return(0,T._)(this,y,(null!==(e=(0,D._)(this,y))&&void 0!==e?e:Promise.resolve()).then(()=>{var e=(0,D._)(this,m).filter(e=>e.state.isPaused);return L.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(P.ZT)),Promise.resolve()))}).then(()=>{(0,T._)(this,y,void 0)})),(0,D._)(this,y)}constructor(e={}){super(),(0,S._)(this,m,{writable:!0,value:void 0}),(0,S._)(this,g,{writable:!0,value:void 0}),(0,S._)(this,y,{writable:!0,value:void 0}),this.config=e,(0,T._)(this,m,[]),(0,T._)(this,g,0)}}),q=r("589653"),Y=r("333245"),Q=r("973100"),G=(x=new WeakMap,b=new WeakMap,w=new WeakMap,_=new WeakMap,k=new WeakMap,C=new WeakMap,A=new WeakMap,O=new WeakMap,class{mount(){M(this,C).value++,1===(0,D._)(this,C)&&((0,T._)(this,A,q.j.subscribe(()=>{q.j.isFocused()&&(this.resumePausedMutations(),(0,D._)(this,x).onFocus())})),(0,T._)(this,O,Y.N.subscribe(()=>{Y.N.isOnline()&&(this.resumePausedMutations(),(0,D._)(this,x).onOnline())})))}unmount(){var e,t;M(this,C).value--,0===(0,D._)(this,C)&&(null===(e=(0,D._)(this,A))||void 0===e||e.call(this),(0,T._)(this,A,void 0),null===(t=(0,D._)(this,O))||void 0===t||t.call(this),(0,T._)(this,O,void 0))}isFetching(e){return(0,D._)(this,x).findAll((0,N._)((0,j._)({},e),{fetchStatus:"fetching"})).length}isMutating(e){return(0,D._)(this,b).findAll((0,N._)((0,j._)({},e),{status:"pending"})).length}getQueryData(e){var t;return null===(t=(0,D._)(this,x).find({queryKey:e}))||void 0===t?void 0:t.state.data}ensureQueryData(e){var t=this.getQueryData(e.queryKey);return void 0!==t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(e=>{var{queryKey:t,state:r}=e;return[t,r.data]})}setQueryData(e,t,r){var n=(0,D._)(this,x).find({queryKey:e}),o=null==n?void 0:n.state.data,i=(0,P.SE)(t,o);if(void 0!==i){var s=this.defaultQueryOptions({queryKey:e});return(0,D._)(this,x).build(this,s).setData(i,(0,N._)((0,j._)({},r),{manual:!0}))}}setQueriesData(e,t,r){return L.V.batch(()=>this.getQueryCache().findAll(e).map(e=>{var{queryKey:n}=e;return[n,this.setQueryData(n,t,r)]}))}getQueryState(e){var t;return null===(t=(0,D._)(this,x).find({queryKey:e}))||void 0===t?void 0:t.state}removeQueries(e){var t=(0,D._)(this,x);L.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){var r=(0,D._)(this,x),n=(0,j._)({type:"active"},e);return L.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,j._)({revert:!0},t);return Promise.all(L.V.batch(()=>(0,D._)(this,x).findAll(e).map(e=>e.cancel(r)))).then(P.ZT).catch(P.ZT)}invalidateQueries(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L.V.batch(()=>{if((0,D._)(this,x).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();var r,n,o=(0,N._)((0,j._)({},e),{type:null!==(n=null!==(r=e.refetchType)&&void 0!==r?r:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(o,t)})}refetchQueries(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=(0,N._)((0,j._)({},r),{cancelRefetch:null===(e=null==r?void 0:r.cancelRefetch)||void 0===e||e});return Promise.all(L.V.batch(()=>(0,D._)(this,x).findAll(t).filter(e=>!e.isDisabled()).map(e=>{var t=e.fetch(void 0,n);return!n.throwOnError&&(t=t.catch(P.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(P.ZT)}fetchQuery(e){var t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);var r=(0,D._)(this,x).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(P.ZT).catch(P.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,Q.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(P.ZT).catch(P.ZT)}resumePausedMutations(){return(0,D._)(this,b).resumePausedMutations()}getQueryCache(){return(0,D._)(this,x)}getMutationCache(){return(0,D._)(this,b)}getDefaultOptions(){return(0,D._)(this,w)}setDefaultOptions(e){(0,T._)(this,w,e)}setQueryDefaults(e,t){(0,D._)(this,_).set((0,P.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){var t=[...(0,D._)(this,_).values()],r={};return t.forEach(t=>{(0,P.to)(e,t.queryKey)&&(r=(0,j._)({},r,t.defaultOptions))}),r}setMutationDefaults(e,t){(0,D._)(this,k).set((0,P.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){var t=[...(0,D._)(this,k).values()],r={};return t.forEach(t=>{(0,P.to)(e,t.mutationKey)&&(r=(0,j._)({},r,t.defaultOptions))}),r}defaultQueryOptions(e){if(null==e?void 0:e._defaulted)return e;var t=(0,N._)((0,j._)({},(0,D._)(this,w).queries,(null==e?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),e),{_defaulted:!0});return!t.queryHash&&(t.queryHash=(0,P.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),void 0===t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:(0,N._)((0,j._)({},(0,D._)(this,w).mutations,(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),e),{_defaulted:!0})}clear(){(0,D._)(this,x).clear(),(0,D._)(this,b).clear()}constructor(e={}){(0,S._)(this,x,{writable:!0,value:void 0}),(0,S._)(this,b,{writable:!0,value:void 0}),(0,S._)(this,w,{writable:!0,value:void 0}),(0,S._)(this,_,{writable:!0,value:void 0}),(0,S._)(this,k,{writable:!0,value:void 0}),(0,S._)(this,C,{writable:!0,value:void 0}),(0,S._)(this,A,{writable:!0,value:void 0}),(0,S._)(this,O,{writable:!0,value:void 0}),(0,T._)(this,x,e.queryCache||new V),(0,T._)(this,b,e.mutationCache||new U),(0,T._)(this,w,e.defaultOptions||{}),(0,T._)(this,_,new Map),(0,T._)(this,k,new Map),(0,T._)(this,C,0)}})},106574:function(e,t,r){"use strict";r.d(t,{z:function(){return Z}});var n,o,i,s,a,l,u,c,d,p,h,f,m,g,y,x,b,w,_,k,C,A,O,D,S=r(893134),T=r(642427),E=r(562590),M=r(655461),j=r(808217),N=r(825251),P=r(70131),B=r(808549),I=r(120454),L=r(244789),F=r(607919),z=r(589653),R=r(609540),X=r(739244),Z=(n=new WeakMap,o=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakSet,x=new WeakSet,b=new WeakSet,w=new WeakSet,_=new WeakSet,k=new WeakSet,C=new WeakSet,A=new WeakSet,O=new WeakSet,D=class extends R.l{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,S._)(this,o).addObserver(this),W((0,S._)(this,o),this.options)?(0,M._)(this,y,q).call(this):this.updateResult(),(0,M._)(this,_,$).call(this))}onUnsubscribe(){!this.hasListeners()&&this.destroy()}shouldFetchOnReconnect(){return V((0,S._)(this,o),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return V((0,S._)(this,o),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,M._)(this,k,K).call(this),(0,M._)(this,C,J).call(this),(0,S._)(this,o).removeObserver(this)}setOptions(e,t){var r=this.options,i=(0,S._)(this,o);if(this.options=(0,S._)(this,n).defaultQueryOptions(e),!(0,L.VS)(r,this.options)&&(0,S._)(this,n).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,S._)(this,o),observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");!this.options.queryKey&&(this.options.queryKey=r.queryKey),(0,M._)(this,A,ee).call(this);var s=this.hasListeners();s&&H((0,S._)(this,o),i,this.options,r)&&(0,M._)(this,y,q).call(this),this.updateResult(t),s&&((0,S._)(this,o)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&(0,M._)(this,x,Y).call(this);var a=(0,M._)(this,b,Q).call(this);s&&((0,S._)(this,o)!==i||this.options.enabled!==r.enabled||a!==(0,S._)(this,m))&&(0,M._)(this,w,G).call(this,a)}getOptimisticResult(e){var t=(0,S._)(this,n).getQueryCache().build((0,S._)(this,n),e),r=this.createResult(t,e);return function(e,t){return!(0,L.VS)(e.getCurrentResult(),t)&&!0}(this,r)&&((0,E._)(this,s,r),(0,E._)(this,l,this.options),(0,E._)(this,a,(0,S._)(this,o).state)),r}getCurrentResult(){return(0,S._)(this,s)}trackResult(e){var t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>((0,S._)(this,g).add(r),e[r])})}),t}getCurrentQuery(){return(0,S._)(this,o)}refetch(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,N._)({},(0,P._)(e));return this.fetch((0,B._)({},t))}fetchOptimistic(e){var t=(0,S._)(this,n).defaultQueryOptions(e),r=(0,S._)(this,n).getQueryCache().build((0,S._)(this,n),t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return(0,M._)(this,y,q).call(this,(0,I._)((0,B._)({},e),{cancelRefetch:null===(t=e.cancelRefetch)||void 0===t||t})).then(()=>(this.updateResult(),(0,S._)(this,s)))}createResult(e,t){var r,n,h,f=(0,S._)(this,o),m=this.options,g=(0,S._)(this,s),y=(0,S._)(this,a),x=(0,S._)(this,l),b=e!==f?e.state:(0,S._)(this,i),{state:w}=e,{error:_,errorUpdatedAt:k,fetchStatus:C,status:A}=w,O=!1;if(t._optimisticResults){var D=this.hasListeners(),T=!D&&W(e,t),M=D&&H(e,f,t,m);(T||M)&&(C=(0,X.Kw)(e.options.networkMode)?"fetching":"paused",!w.dataUpdatedAt&&(A="pending")),"isRestoring"===t._optimisticResults&&(C="idle")}if(t.select&&void 0!==w.data){if(g&&w.data===(null==y?void 0:y.data)&&t.select===(0,S._)(this,c))r=(0,S._)(this,d);else try{(0,E._)(this,c,t.select),r=t.select(w.data),r=(0,L.oE)(null==g?void 0:g.data,r,t),(0,E._)(this,d,r),(0,E._)(this,u,null)}catch(e){(0,E._)(this,u,e)}}else r=w.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===A){if((null==g?void 0:g.isPlaceholderData)&&t.placeholderData===(null==x?void 0:x.placeholderData))n=g.data;else if(n="function"==typeof t.placeholderData?t.placeholderData(null===(h=(0,S._)(this,p))||void 0===h?void 0:h.state.data,(0,S._)(this,p)):t.placeholderData,t.select&&void 0!==n)try{n=t.select(n),(0,E._)(this,u,null)}catch(e){(0,E._)(this,u,e)}void 0!==n&&(A="success",r=(0,L.oE)(null==g?void 0:g.data,n,t),O=!0)}(0,S._)(this,u)&&(_=(0,S._)(this,u),r=(0,S._)(this,d),k=Date.now(),A="error");var j="fetching"===C,N="pending"===A,P="error"===A,B=N&&j;return{status:A,fetchStatus:C,isPending:N,isSuccess:"success"===A,isError:P,isInitialLoading:B,isLoading:B,data:r,dataUpdatedAt:w.dataUpdatedAt,error:_,errorUpdatedAt:k,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdateCount:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>b.dataUpdateCount||w.errorUpdateCount>b.errorUpdateCount,isFetching:j,isRefetching:j&&!N,isLoadingError:P&&0===w.dataUpdatedAt,isPaused:"paused"===C,isPlaceholderData:O,isRefetchError:P&&0!==w.dataUpdatedAt,isStale:U(e,t),refetch:this.refetch}}updateResult(e){var t=(0,S._)(this,s),r=this.createResult((0,S._)(this,o),this.options);if((0,E._)(this,a,(0,S._)(this,o).state),(0,E._)(this,l,this.options),void 0!==(0,S._)(this,a).data&&(0,E._)(this,p,(0,S._)(this,o)),!(0,L.VS)(r,t)){(0,E._)(this,s,r);var n={};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;var{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!(0,S._)(this,g).size)return!0;var n=new Set(null!=r?r:(0,S._)(this,g));return this.options.throwOnError&&n.add("error"),Object.keys((0,S._)(this,s)).some(e=>(0,S._)(this,s)[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),(0,M._)(this,O,et).call(this,(0,B._)({},n,e))}}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,M._)(this,_,$).call(this)}constructor(e,t){super(),(0,j._)(this,y),(0,j._)(this,x),(0,j._)(this,b),(0,j._)(this,w),(0,j._)(this,_),(0,j._)(this,k),(0,j._)(this,C),(0,j._)(this,A),(0,j._)(this,O),(0,T._)(this,n,{writable:!0,value:void 0}),(0,T._)(this,o,{writable:!0,value:void 0}),(0,T._)(this,i,{writable:!0,value:void 0}),(0,T._)(this,s,{writable:!0,value:void 0}),(0,T._)(this,a,{writable:!0,value:void 0}),(0,T._)(this,l,{writable:!0,value:void 0}),(0,T._)(this,u,{writable:!0,value:void 0}),(0,T._)(this,c,{writable:!0,value:void 0}),(0,T._)(this,d,{writable:!0,value:void 0}),(0,T._)(this,p,{writable:!0,value:void 0}),(0,T._)(this,h,{writable:!0,value:void 0}),(0,T._)(this,f,{writable:!0,value:void 0}),(0,T._)(this,m,{writable:!0,value:void 0}),(0,T._)(this,g,{writable:!0,value:void 0}),(0,E._)(this,o,void 0),(0,E._)(this,i,void 0),(0,E._)(this,s,void 0),(0,E._)(this,g,new Set),(0,E._)(this,n,e),this.options=t,(0,E._)(this,u,null),this.bindMethods(),this.setOptions(t)}});function W(e,t){var r,n;return r=e,!1!==(n=t).enabled&&!r.state.dataUpdatedAt&&!("error"===r.state.status&&!1===n.retryOnMount)||e.state.dataUpdatedAt>0&&V(e,t,t.refetchOnMount)}function V(e,t,r){if(!1!==t.enabled){var n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&U(e,t)}return!1}function H(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&U(e,r)}function U(e,t){return e.isStaleByTime(t.staleTime)}function q(e){(0,M._)(this,A,ee).call(this);var t=(0,S._)(this,o).fetch(this.options,e);return!(null==e?void 0:e.throwOnError)&&(t=t.catch(L.ZT)),t}function Y(){if((0,M._)(this,k,K).call(this),!L.sk&&!(0,S._)(this,s).isStale&&!!(0,L.PN)(this.options.staleTime)){var e=(0,L.Kp)((0,S._)(this,s).dataUpdatedAt,this.options.staleTime);(0,E._)(this,h,setTimeout(()=>{!(0,S._)(this,s).isStale&&this.updateResult()},e+1))}}function Q(){var e;return null!==(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval((0,S._)(this,o)):this.options.refetchInterval)&&void 0!==e&&e}function G(e){if((0,M._)(this,C,J).call(this),(0,E._)(this,m,e),!L.sk&&!1!==this.options.enabled&&!!(0,L.PN)((0,S._)(this,m))&&0!==(0,S._)(this,m))(0,E._)(this,f,setInterval(()=>{(this.options.refetchIntervalInBackground||z.j.isFocused())&&(0,M._)(this,y,q).call(this)},(0,S._)(this,m)))}function $(){(0,M._)(this,x,Y).call(this),(0,M._)(this,w,G).call(this,(0,M._)(this,b,Q).call(this))}function K(){(0,S._)(this,h)&&(clearTimeout((0,S._)(this,h)),(0,E._)(this,h,void 0))}function J(){(0,S._)(this,f)&&(clearInterval((0,S._)(this,f)),(0,E._)(this,f,void 0))}function ee(){var e=(0,S._)(this,n).getQueryCache().build((0,S._)(this,n),this.options);if(e!==(0,S._)(this,o)){var t=(0,S._)(this,o);(0,E._)(this,o,e),(0,E._)(this,i,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}}function et(e){F.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e((0,S._)(this,s))}),(0,S._)(this,n).getQueryCache().notify({query:(0,S._)(this,o),type:"observerResultsUpdated"})})}},8542:function(e,t,r){"use strict";r.d(t,{F:function(){return l}});var n,o=r(893134),i=r(642427),s=r(562590),a=r(244789),l=(n=new WeakMap,class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,a.PN)(this.gcTime)&&(0,s._)(this,n,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!=e?e:a.sk?1/0:3e5)}clearGcTimeout(){(0,o._)(this,n)&&(clearTimeout((0,o._)(this,n)),(0,s._)(this,n,void 0))}constructor(){(0,i._)(this,n,{writable:!0,value:void 0})}})},739244:function(e,t,r){"use strict";r.d(t,{DV:function(){return u},Kw:function(){return a},Mz:function(){return c}});var n=r(589653),o=r(333245),i=r(244789);function s(e){return Math.min(1e3*Math.pow(2,e),3e4)}function a(e){return(null!=e?e:"online")!=="online"||o.N.isOnline()}var l=class{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function u(e){return e instanceof l}function c(e){var t,r,u,c=!1,d=0,p=!1,h=new Promise((e,t)=>{r=e,u=t}),f=()=>!n.j.isFocused()||"always"!==e.networkMode&&!o.N.isOnline(),m=n=>{if(!p){var o;p=!0,null===(o=e.onSuccess)||void 0===o||o.call(e,n),null==t||t(),r(n)}},g=r=>{if(!p){var n;p=!0,null===(n=e.onError)||void 0===n||n.call(e,r),null==t||t(),u(r)}},y=()=>new Promise(r=>{var n;t=e=>{var t=p||!f();return t&&r(e),t},null===(n=e.onPause)||void 0===n||n.call(e)}).then(()=>{if(t=void 0,!p){var r;null===(r=e.onContinue)||void 0===r||r.call(e)}}),x=()=>{var t;if(!p){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(!p){var r,n,o,a=null!==(n=e.retry)&&void 0!==n?n:i.sk?0:3,l=null!==(o=e.retryDelay)&&void 0!==o?o:s,u="function"==typeof l?l(d,t):l,h=!0===a||"number"==typeof a&&d<a||"function"==typeof a&&a(d,t);if(c||!h){g(t);return}d++,null===(r=e.onFail)||void 0===r||r.call(e,d,t),(0,i._v)(u).then(()=>{if(f())return y()}).then(()=>{c?g(t):x()})}})}};return a(e.networkMode)?x():y().then(x),{promise:h,cancel:t=>{if(!p){var r;g(new l(t)),null===(r=e.abort)||void 0===r||r.call(e)}},continue:()=>(null==t?void 0:t())?h:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},609540:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=class{subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}}},244789:function(e,t,r){"use strict";r.d(t,{A4:function(){return x},Ht:function(){return _},Kp:function(){return a},PN:function(){return s},Rm:function(){return c},SE:function(){return i},VS:function(){return h},VX:function(){return w},X7:function(){return u},Ym:function(){return d},ZT:function(){return o},_v:function(){return y},_x:function(){return l},oE:function(){return b},sk:function(){return n},to:function(){return p}});var n="undefined"==typeof window||"Deno"in window;function o(){}function i(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){var{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==c(s,t.options))return!1}else if(!p(t.queryKey,s))return!1}if("all"!==r){var l=t.isActive();if("active"===r&&!l||"inactive"===r&&l)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(void 0===o||o===t.state.fetchStatus)&&(!i||!!i(t))&&!0}function u(e,t){var{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(d(t.options.mutationKey)!==d(i))return!1}else if(!p(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&(!o||!!o(t))&&!0}function c(e,t){return((null==t?void 0:t.queryKeyHashFn)||d)(e)}function d(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function h(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function f(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!g(e))return!1;var t=e.constructor;if(void 0===t)return!0;var r=t.prototype;return!!(g(r)&&r.hasOwnProperty("isPrototypeOf"))||!1}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function x(e){y(0).then(e)}function b(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;var n=f(t)&&f(r);if(n||m(t)&&m(r)){for(var o=n?t.length:Object.keys(t).length,i=n?r:Object.keys(r),s=i.length,a=n?[]:{},l=0,u=0;u<s;u++){var c=n?u:i[u];a[c]=e(t[c],r[c]),a[c]===t[c]&&l++}return o===s&&l===o?t:a}return r}(e,t):t}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[...e,t];return r&&n.length>r?n.slice(1):n}function _(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}},527116:function(e,t,r){"use strict";r.d(t,{NL:function(){return i},aH:function(){return s}});var n=r(455069),o=n.createContext(void 0),i=e=>{var t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{var{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),n.createElement(o.Provider,{value:t},r)}},106334:function(e,t,r){"use strict";r.d(t,{r:()=>x});var n,o=r("455069"),i=r("607919");var s=o.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),a=()=>o.useContext(s),l=r("527116"),u=o.createContext(!1),c=()=>o.useContext(u);u.Provider;var d=r("379298"),p=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},h=e=>{o.useEffect(()=>{e.clearReset()},[e])},f=e=>{var{result:t,errorResetBoundary:r,throwOnError:n,query:o}=e;return t.isError&&!r.isReset()&&!t.isFetching&&(0,d.L)(n,[t.error,o])},m=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},g=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,y=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function x(e,t,r){var n=(0,l.NL)(r),s=c(),u=a(),d=n.defaultQueryOptions(e);d._optimisticResults=s?"isRestoring":"optimistic",m(d),p(d,u),h(u);var[x]=o.useState(()=>new t(n,d)),b=x.getOptimisticResult(d);if(o.useSyncExternalStore(o.useCallback(e=>{var t=s?()=>void 0:x.subscribe(i.V.batchCalls(e));return x.updateResult(),t},[x,s]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),o.useEffect(()=>{x.setOptions(d,{listeners:!1})},[d,x]),g(d,b))throw x.setOptions(d,{listeners:!1}),y(d,x,u);if(f({result:b,errorResetBoundary:u,throwOnError:d.throwOnError,query:x.getCurrentQuery()}))throw b.error;return d.notifyOnChangeProps?b:x.trackResult(b)}},268935:function(e,t,r){"use strict";r.d(t,{N:()=>u});var n=r("808549"),o=r("120454"),i=r("106574"),s=r("973100"),a=class extends i.z{bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions((0,o._)((0,n._)({},e),{behavior:(0,s.Gm)()}),t)}getOptimisticResult(e){return e.behavior=(0,s.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch((0,o._)((0,n._)({},e),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch((0,o._)((0,n._)({},e),{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var r,i,a,l,{state:u}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:p}=c,h=d&&(null===(i=u.fetchMeta)||void 0===i?void 0:null===(r=i.fetchMore)||void 0===r?void 0:r.direction)==="forward",f=d&&(null===(l=u.fetchMeta)||void 0===l?void 0:null===(a=l.fetchMore)||void 0===a?void 0:a.direction)==="backward";return(0,o._)((0,n._)({},c),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.Qy)(t,u.data),hasPreviousPage:(0,s.ZF)(t,u.data),isFetchingNextPage:h,isFetchingPreviousPage:f,isRefetching:p&&!h&&!f})}constructor(e,t){super(e,t)}},l=r("106334");function u(e,t){return(0,l.r)(e,a,t)}},672496:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(106574),o=r(106334);function i(e,t){return(0,o.r)(e,n.z,t)}},379298:function(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}r.d(t,{L:function(){return n}})},789716:function(e,t,r){"use strict";r(151064),r(455069)},915100:function(e,t,r){"use strict";r(151064),r(455069)},318281:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTYzXzY4MzE0KSI+CiAgICAgICAgPG1hc2sgaWQ9Im1hc2swXzExNjNfNjgzMTQiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTYgMEgwVjE2SDE2VjBaIiBmaWxsPSJ3aGl0ZSIvPgogICAgICAgIDwvbWFzaz4KICAgICAgICA8ZyBtYXNrPSJ1cmwoI21hc2swXzExNjNfNjgzMTQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDQuMTUwNzhDMC45NDE4OTUgMi4zNzg5NyAyLjM3ODI0IDAuOTQyNjI3IDQuMTUwMDUgMC45NDI2MjdDNS45MjE4NyAwLjk0MjYyNyA3LjM1ODIxIDIuMzc4OTcgNy4zNTgyMSA0LjE1MDc4VjYuMDc1NjhDNy4zNTgyMSA2Ljc4NDQgNi43ODM2NyA3LjM1ODk0IDYuMDc0OTQgNy4zNTg5NEg0LjE1MDA1QzIuMzc4MjQgNy4zNTg5NCAwLjk0MTg5NSA1LjkyMjYgMC45NDE4OTUgNC4xNTA3OFoiIGZpbGw9IiMxRDFDMjMiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDExLjg1MDNDMC45NDE4OTUgMTAuMDc4NCAyLjM3ODI0IDguNjQyMDkgNC4xNTAwNSA4LjY0MjA5SDYuMDc0OTRDNi43ODM2NyA4LjY0MjA5IDcuMzU4MjEgOS4yMTY2MyA3LjM1ODIxIDkuOTI1MzVWMTEuODUwM0M3LjM1ODIxIDEzLjYyMjEgNS45MjE4NyAxNS4wNTg0IDQuMTUwMDUgMTUuMDU4NEMyLjM3ODI0IDE1LjA1ODQgMC45NDE4OTUgMTMuNjIyMSAwLjk0MTg5NSAxMS44NTAzWiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOS45MjQ2MiA4LjY0MjA5QzkuMjE1OSA4LjY0MjA5IDguNjQxMzYgOS4yMTY2MyA4LjY0MTM2IDkuOTI1MzVWMTEuODUwM0M4LjY0MTM2IDEzLjYyMjEgMTAuMDc3NyAxNS4wNTg0IDExLjg0OTUgMTUuMDU4NEMxMy42MjEzIDE1LjA1ODQgMTUuMDU3NyAxMy42MjIxIDE1LjA1NzcgMTEuODUwM0MxNS4wNTc3IDEwLjA3ODQgMTMuNjIxMyA4LjY0MjA5IDExLjg0OTUgOC42NDIwOUg5LjkyNDYyWiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOC42NDE2IDQuMTUwNTRDOC42NDE2IDIuMzc4NzIgMTAuMDc3OSAwLjk0MjM4MyAxMS44NDk4IDAuOTQyMzgzQzEzLjYyMTYgMC45NDIzODMgMTUuMDU3OSAyLjM3ODcyIDE1LjA1NzkgNC4xNTA1NEMxNS4wNTc5IDUuOTIyMzUgMTMuNjIxNiA3LjM1ODcgMTEuODQ5OCA3LjM1ODdIOS45MjQ4NkM5LjIxNjE0IDcuMzU4NyA4LjY0MTYgNi43ODQxNiA4LjY0MTYgNi4wNzU0M1Y0LjE1MDU0WiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTE2M182ODMxNCI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgo8L3N2Zz4K"},656927:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTYzXzY4MTk5KSI+CiAgICAgICAgPG1hc2sgaWQ9Im1hc2swXzExNjNfNjgxOTkiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTYgMEgwVjE2SDE2VjBaIiBmaWxsPSJ3aGl0ZSIvPgogICAgICAgIDwvbWFzaz4KICAgICAgICA8ZyBtYXNrPSJ1cmwoI21hc2swXzExNjNfNjgxOTkpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDQuMTUwNzhDMC45NDE4OTUgMi4zNzg5NyAyLjM3ODI0IDAuOTQyNjI3IDQuMTUwMDUgMC45NDI2MjdDNS45MjE4NyAwLjk0MjYyNyA3LjM1ODIxIDIuMzc4OTcgNy4zNTgyMSA0LjE1MDc4VjYuMDc1NjhDNy4zNTgyMSA2Ljc4NDQgNi43ODM2NyA3LjM1ODk0IDYuMDc0OTQgNy4zNTg5NEg0LjE1MDA1QzIuMzc4MjQgNy4zNTg5NCAwLjk0MTg5NSA1LjkyMjYgMC45NDE4OTUgNC4xNTA3OFoiIGZpbGw9IiM0RDUzRTgiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDExLjg1MDNDMC45NDE4OTUgMTAuMDc4NCAyLjM3ODI0IDguNjQyMDkgNC4xNTAwNSA4LjY0MjA5SDYuMDc0OTRDNi43ODM2NyA4LjY0MjA5IDcuMzU4MjEgOS4yMTY2MyA3LjM1ODIxIDkuOTI1MzVWMTEuODUwM0M3LjM1ODIxIDEzLjYyMjEgNS45MjE4NyAxNS4wNTg0IDQuMTUwMDUgMTUuMDU4NEMyLjM3ODI0IDE1LjA1ODQgMC45NDE4OTUgMTMuNjIyMSAwLjk0MTg5NSAxMS44NTAzWiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOS45MjQ2MiA4LjY0MjA5QzkuMjE1OSA4LjY0MjA5IDguNjQxMzYgOS4yMTY2MyA4LjY0MTM2IDkuOTI1MzVWMTEuODUwM0M4LjY0MTM2IDEzLjYyMjEgMTAuMDc3NyAxNS4wNTg0IDExLjg0OTUgMTUuMDU4NEMxMy42MjEzIDE1LjA1ODQgMTUuMDU3NyAxMy42MjIxIDE1LjA1NzcgMTEuODUwM0MxNS4wNTc3IDEwLjA3ODQgMTMuNjIxMyA4LjY0MjA5IDExLjg0OTUgOC42NDIwOUg5LjkyNDYyWiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOC42NDE2IDQuMTUwNTRDOC42NDE2IDIuMzc4NzIgMTAuMDc3OSAwLjk0MjM4MyAxMS44NDk4IDAuOTQyMzgzQzEzLjYyMTYgMC45NDIzODMgMTUuMDU3OSAyLjM3ODcyIDE1LjA1NzkgNC4xNTA1NEMxNS4wNTc5IDUuOTIyMzUgMTMuNjIxNiA3LjM1ODcgMTEuODQ5OCA3LjM1ODdIOS45MjQ4NkM5LjIxNjE0IDcuMzU4NyA4LjY0MTYgNi43ODQxNiA4LjY0MTYgNi4wNzU0M1Y0LjE1MDU0WiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTE2M182ODE5OSI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgo8L3N2Zz4K"},351564:function(e,t,r){"use strict";r(151064),r(455069)},698226:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbXBvbmVudCAyIj4KPGcgaWQ9IlVuaW9uIj4KPHBhdGggZD0iTTExLjczNzcgNS4wODg3NVYxMC4zMjQ2QzExLjczNzcgMTAuNDIxMiAxMS42NTk0IDEwLjQ5OTYgMTEuNTYyNyAxMC40OTk2SDguMzk5MjVMOC4zOTg1OSAxMC40OTk2SDMuNDEwMjNDMy4yNTQzMyAxMC40OTk2IDMuMTc2MjUgMTAuMzExMSAzLjI4NjQ5IDEwLjIwMDhMNS43ODA2NyA3LjcwNjY3QzUuODQ5MDEgNy42MzgzMyA1Ljk1OTgyIDcuNjM4MzMgNi4wMjgxNiA3LjcwNjY3TDcuMzYyNzIgOS4wNDEyNEwxMS40MzkgNC45NjVDMTEuNTQ5MiA0Ljg1NDc2IDExLjczNzcgNC45MzI4NCAxMS43Mzc3IDUuMDg4NzVaIiBmaWxsPSIjNEU0MEU1Ii8+CjxwYXRoIGQ9Ik00LjczNzc5IDUuODMyOTNDNS4zODIxMyA1LjgzMjkzIDUuOTA0NDYgNS4zMTA1OSA1LjkwNDQ2IDQuNjY2MjZDNS45MDQ0NiA0LjAyMTkzIDUuMzgyMTMgMy40OTk1OSA0LjczNzc5IDMuNDk5NTlDNC4wOTM0NiAzLjQ5OTU5IDMuNTcxMTMgNC4wMjE5MyAzLjU3MTEzIDQuNjY2MjZDMy41NzExMyA1LjMxMDU5IDQuMDkzNDYgNS44MzI5MyA0LjczNzc5IDUuODMyOTNaIiBmaWxsPSIjNEU0MEU1Ii8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMS4yMzc3OSAyLjMzMjkzQzEuMjM3NzkgMS42OTEyNiAxLjc2Mjc5IDEuMTY2MjYgMi40MDQ0NiAxLjE2NjI2SDEyLjkwNDVDMTMuNTQ2MSAxLjE2NjI2IDE0LjA3MTEgMS42OTEyNiAxNC4wNzExIDIuMzMyOTNWMTEuNjY2M0MxNC4wNzExIDEyLjMwNzkgMTMuNTQ2MSAxMi44MzI5IDEyLjkwNDUgMTIuODMyOUgyLjQwNDQ2QzEuNzYyNzkgMTIuODMyOSAxLjIzNzc5IDEyLjMwNzkgMS4yMzc3OSAxMS42NjYzVjIuMzMyOTNaTTEyLjkwNDUgMi4zMzI5M0gyLjQwNDQ2VjExLjY2NjNIMTIuOTA0NVYyLjMzMjkzWiIgZmlsbD0iIzRFNDBFNSIvPgo8L2c+CjwvZz4KPC9zdmc+Cg=="},724971:function(e,t,r){"use strict";r(151064),r(455069),t.Z=r.p+"static/svg/imageflow.32d803fe.svg"},86609:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbXBvbmVudCAyIj4KPHBhdGggaWQ9IlVuaW9uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYuOTA1OTggMC42OTYxNDRDNy4zNjkxMSAwLjQyODc1OSA3LjkzOTcgMC40Mjg3NTkgOC40MDI4MiAwLjY5NjE0NEwxMi43MzkzIDMuMTk5ODNDMTMuMjAyNSAzLjQ2NzIyIDEzLjQ4NzggMy45NjEzNiAxMy40ODc4IDQuNDk2MTNWOS41MDM1MUMxMy40ODc4IDEwLjAzODMgMTMuMjAyNSAxMC41MzI0IDEyLjczOTMgMTAuNzk5OEw4LjQwMjgyIDEzLjMwMzVDNy45Mzk3IDEzLjU3MDkgNy4zNjkxIDEzLjU3MDkgNi45MDU5OCAxMy4zMDM1TDIuNTY5NDYgMTAuNzk5OEMyLjEwNjM0IDEwLjUzMjQgMS44MjEwNCAxMC4wMzgzIDEuODIxMDQgOS41MDM1MVY0LjQ5NjEzQzEuODIxMDQgMy45NjEzNiAyLjEwNjM0IDMuNDY3MjIgMi41Njk0NiAzLjE5OTgzTDYuOTA1OTggMC42OTYxNDRaTTExLjkwNjMgNC4wNjYwNEw3LjgxOTQ5IDEuNzA2NTFDNy43MTczMyAxLjY0NzUzIDcuNTkxNDcgMS42NDc1MyA3LjQ4OTMxIDEuNzA2NTFMMy40MDA0MyA0LjA2NzIyTDcuNjUyMzUgNi41MjIwN0wxMS45MDYzIDQuMDY2MDRaTTIuOTg3NzEgNS4xNzYwOVY5LjUwMzUxQzIuOTg3NzEgOS42MjE0NyAzLjA1MDY0IDkuNzMwNDcgMy4xNTI4IDkuNzg5NDVMNy4wNjkwMSAxMi4wNTA1VjcuNTMyNDNMMi45ODc3MSA1LjE3NjA5Wk04LjIzNTY4IDEyLjA1MjhMMTIuMTU2IDkuNzg5NDVDMTIuMjU4MiA5LjczMDQ3IDEyLjMyMTEgOS42MjE0NyAxMi4zMjExIDkuNTAzNTFWNS4xNzM3Mkw4LjIzNTY4IDcuNTMyNDNWMTIuMDUyOFoiIGZpbGw9IiM0RTQwRTUiLz4KPC9nPgo8L3N2Zz4K"},184561:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbXBvbmVudCAyIj4KPHBhdGggaWQ9IlVuaW9uIiBkPSJNMS44MjEwNCAyLjMzMzQyQzEuODIxMDQgMS42ODkwOCAyLjM0MzM4IDEuMTY2NzUgMi45ODc3MSAxLjE2Njc1SDEyLjMyMUMxMi45NjU0IDEuMTY2NzUgMTMuNDg3NyAxLjY4OTA4IDEzLjQ4NzcgMi4zMzM0MVYxMS42NjY3QzEzLjQ4NzcgMTIuMzExMSAxMi45NjU0IDEyLjgzMzQgMTIuMzIxIDEyLjgzMzRIMi45ODc3MUMyLjM0MzM4IDEyLjgzMzQgMS44MjEwNCAxMi4zMTExIDEuODIxMDQgMTEuNjY2N1YyLjMzMzQyWk02LjE5NjA1IDIuMzMzNDFWNC42NjY3NUwxMi4zMjEgNC42NjY3NVYyLjMzMzQxSDYuMTk2MDVaTTYuMTk2MDUgNS44MzM0MVY4LjE2Njc1TDEyLjMyMSA4LjE2Njc1VjUuODMzNDJMNi4xOTYwNSA1LjgzMzQxWk01LjAyOTM4IDguMTY2NzVWNS44MzM0MUgyLjk4NzcxVjguMTY2NzVINS4wMjkzOFpNMi45ODc3MSA5LjMzMzQyVjExLjY2NjdINS4wMjkzOFY5LjMzMzQySDIuOTg3NzFaTTYuMTk2MDUgOS4zMzM0MlYxMS42NjY3SDEyLjMyMVY5LjMzMzQySDYuMTk2MDVaTTUuMDI5MzggMi4zMzM0MUgyLjk4NzcxVjQuNjY2NzVMNS4wMjkzOCA0LjY2Njc1VjIuMzMzNDFaIiBmaWxsPSIjNEU0MEU1Ii8+CjwvZz4KPC9zdmc+Cg=="},94238:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbXBvbmVudCAyIj4KPGcgaWQ9IlVuaW9uIj4KPHBhdGggZD0iTTQuNzM3NjMgNC45NTg1QzQuNzM3NjMgNC42MzYzMyA0Ljk5ODggNC4zNzUxNiA1LjMyMDk2IDQuMzc1MTZINy42NTQzQzcuOTc2NDYgNC4zNzUxNiA4LjIzNzYzIDQuNjM2MzMgOC4yMzc2MyA0Ljk1ODVDOC4yMzc2MyA1LjI4MDY2IDcuOTc2NDYgNS41NDE4MyA3LjY1NDMgNS41NDE4M0g1LjMyMDk2QzQuOTk4OCA1LjU0MTgzIDQuNzM3NjMgNS4yODA2NiA0LjczNzYzIDQuOTU4NVoiIGZpbGw9IiM0RTQwRTUiLz4KPHBhdGggZD0iTTQuNzM3NjMgNy4yOTE4M0M0LjczNzYzIDYuOTY5NjYgNC45OTg4IDYuNzA4NSA1LjMyMDk2IDYuNzA4NUg5Ljk4NzYzQzEwLjMwOTggNi43MDg1IDEwLjU3MSA2Ljk2OTY2IDEwLjU3MSA3LjI5MTgzQzEwLjU3MSA3LjYxNCAxMC4zMDk4IDcuODc1MTYgOS45ODc2MyA3Ljg3NTE2SDUuMzIwOTZDNC45OTg4IDcuODc1MTYgNC43Mzc2MyA3LjYxNCA0LjczNzYzIDcuMjkxODNaIiBmaWxsPSIjNEU0MEU1Ii8+CjxwYXRoIGQ9Ik00LjczNzYzIDkuNjI1MTZDNC43Mzc2MyA5LjMwMyA0Ljk5ODggOS4wNDE4MyA1LjMyMDk2IDkuMDQxODNIOS45ODc2M0MxMC4zMDk4IDkuMDQxODMgMTAuNTcxIDkuMzAzIDEwLjU3MSA5LjYyNTE2QzEwLjU3MSA5Ljk0NzMzIDEwLjMwOTggMTAuMjA4NSA5Ljk4NzYzIDEwLjIwODVINS4zMjA5NkM0Ljk5ODggMTAuMjA4NSA0LjczNzYzIDkuOTQ3MzMgNC43Mzc2MyA5LjYyNTE2WiIgZmlsbD0iIzRFNDBFNSIvPgo8cGF0aCBkPSJNMi40MDQzIDEuNzUwMTZDMi40MDQzIDEuMTA1ODMgMi45MjY2MyAwLjU4MzQ5NiAzLjU3MDk2IDAuNTgzNDk2SDExLjczNzZDMTIuMzgyIDAuNTgzNDk2IDEyLjkwNDMgMS4xMDU4MyAxMi45MDQzIDEuNzUwMTZWMTIuMjUwMkMxMi45MDQzIDEyLjg5NDUgMTIuMzgyIDEzLjQxNjggMTEuNzM3NiAxMy40MTY4SDMuNTcwOTZDMi45MjY2MyAxMy40MTY4IDIuNDA0MyAxMi44OTQ1IDIuNDA0MyAxMi4yNTAyVjEuNzUwMTZaTTMuNTcwOTYgMS43NTAxNlYxMi4yNTAySDExLjczNzZWMS43NTAxNkgzLjU3MDk2WiIgZmlsbD0iIzRFNDBFNSIvPgo8L2c+CjwvZz4KPC9zdmc+Cg=="},182418:function(e,t,r){"use strict";r(151064),r(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbXBvbmVudCAyIj4KPHBhdGggaWQ9IlVuaW9uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkuMDY1MDUgNS4zODA4N0M5LjI3ODQ2IDUuNjU2MTUgOS42MTIzNSA1LjgzMzMzIDkuOTg3NjMgNS44MzMzM0gxMi42MTI2QzEzLjI1NyA1LjgzMzMzIDEzLjc3OTMgNS4zMTEgMTMuNzc5MyA0LjY2NjY3VjIuMDQxNjdDMTMuNzc5MyAxLjM5NzMzIDEzLjI1NyAwLjg3NSAxMi42MTI2IDAuODc1SDkuOTg3NjNDOS4zNDMzIDAuODc1IDguODIwOTYgMS4zOTczMyA4LjgyMDk2IDIuMDQxNjdWNC4xOTI2OUw4LjgwNjkxIDQuMTY5ODVMNi40ODc2MyA1LjU5NzFWNS4yNUM2LjQ4NzYzIDQuNjA1NjcgNS45NjUzIDQuMDgzMzMgNS4zMjA5NiA0LjA4MzMzTDIuNjk1OTYgNC4wODMzM0MyLjA1MTYzIDQuMDgzMzMgMS41MjkzIDQuNjA1NjcgMS41MjkzIDUuMjVWOC43NUMxLjUyOTMgOS4zOTQzMyAyLjA1MTYzIDkuOTE2NjcgMi42OTU5NiA5LjkxNjY3SDUuMzIwOTZDNS45NjUzIDkuOTE2NjcgNi40ODc2MyA5LjM5NDMzIDYuNDg3NjMgOC43NVY4LjM2MDM1TDguODIwOTYgOS43Mjg1OVYxMS45NTgzQzguODIwOTYgMTIuNjAyNyA5LjM0MzMgMTMuMTI1IDkuOTg3NjMgMTMuMTI1SDEyLjYxMjZDMTMuMjU3IDEzLjEyNSAxMy43NzkzIDEyLjYwMjcgMTMuNzc5MyAxMS45NTgzVjkuMzMzMzNDMTMuNzc5MyA4LjY4OSAxMy4yNTcgOC4xNjY2NyAxMi42MTI2IDguMTY2NjdIOS45ODc2M0M5LjY0Mzc1IDguMTY2NjcgOS4zMzQ2MyA4LjMxNTQ0IDkuMTIxMTEgOC41NTIxNEw2LjQ4NzYzIDcuMDA3ODlWNi45NjY5N0w5LjA2NTA1IDUuMzgwODdaTTkuOTg3NjMgMi4wNDE2N1Y0LjY2NjY3SDEyLjYxMjZWMi4wNDE2N0g5Ljk4NzYzWk05Ljk4NzYzIDkuMzMzMzNWMTEuOTU4M0gxMi42MTI2VjkuMzMzMzNIOS45ODc2M1pNMi42OTU5NiA4Ljc1TDIuNjk1OTYgNS4yNUw1LjMyMDk2IDUuMjVMNS4zMjA5NiA4Ljc1SDIuNjk1OTZaIiBmaWxsPSIjNEU0MEU1Ii8+CjwvZz4KPC9zdmc+Cg=="},376756:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".editor-container-JPBTxq{height:100%;position:relative}.editor-VinOIJ{background-color:#fff;border:1px solid rgba(29,28,35,.12);border-radius:8px;height:100%;padding:0}.editor-VinOIJ .monaco-editor .scroll-decoration{box-shadow:unset}",""]),s.locals={"editor-container":"editor-container-JPBTxq",editorContainer:"editor-container-JPBTxq",editor:"editor-VinOIJ"},t.Z=s},886842:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".tools-content-OB0OIO .tools-table-thead-lG1cuz{padding-bottom:6px}.tools-content-OB0OIO .tools-table-thead-lG1cuz th{padding:var(--spacing-spacing-button-default-padding-top,6px)0 var(--spacing-tight,8px)0}.api-table-hDo4Ky{table-layout:fixed;border-collapse:collapse;width:100%;height:32px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6));word-wrap:break-word;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky thead th{color:var(--light-color-grey-grey-4,var(--light-color-grey-grey-4,#888d92));text-align:left;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky .auto-add-api-v0eSOQ{animation:6s linear .3s flash-ZWtqgF}.api-table-hDo4Ky .auto-add-api-v0eSOQ td:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.api-table-hDo4Ky .auto-add-api-v0eSOQ td:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}@keyframes flash-ZWtqgF{10%{background:rgba(180,186,246,.24)}20%{background:unset}30%{background:rgba(180,186,246,.24)}40%{background:unset}50%{background:rgba(180,186,246,.24)}95%{background:rgba(180,186,246,.24)}}.api-table-hDo4Ky .api-row-vtmRng{border-bottom:1px solid transparent}.api-table-hDo4Ky .api-row-vtmRng.border-top-k5HZVG{position:relative}.api-table-hDo4Ky .api-row-vtmRng.border-top-k5HZVG td{margin-top:4px}.api-table-hDo4Ky .api-row-vtmRng td{padding:2px 4px;overflow:hidden}.api-table-hDo4Ky .api-row-name-pLvzuD{vertical-align:middle}.api-table-hDo4Ky .api-row-vtmRng .semi-tag-grey-light{background:var(--light-color-white-white,#fff);border-radius:var(--spacing-spacing-button-default-padding-top,6px);height:20px}.api-table-hDo4Ky .api-row-vtmRng .semi-tag-content{justify-content:space-between;align-items:center}.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .api-plugin-name-sftYSV,.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .api-name-text-v1lKgk,.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .icon-disabled-zQuw5s{cursor:default;opacity:.2}.api-table-hDo4Ky .api-plugin-Xzc2x9{align-items:center;height:24px;padding-right:10px;display:flex}.api-table-hDo4Ky .api-plugin-image-q3MKlM{flex-shrink:0;margin-right:8px;display:flex}.api-table-hDo4Ky .api-plugin-image-q3MKlM>img{width:16px;height:16px}.api-table-hDo4Ky .api-plugin-Xzc2x9 .semi-image-status{background-color:rgba(255,255,255,0)!important}.api-table-hDo4Ky .api-plugin-name-sftYSV{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));font-size:12px;font-weight:400;line-height:22px}.api-table-hDo4Ky .api-plugin-icon-IkNRY6{margin-left:4px}.api-table-hDo4Ky .api-method-_f0yBm{text-align:center;justify-content:space-between;width:100%;height:100%}.api-table-hDo4Ky .api-method-_f0yBm span{color:var(--light-color-grey-grey-5,#6b6b75)}.api-table-hDo4Ky .api-method-_f0yBm .icon-config-oDTfyg{cursor:pointer;color:#6b6d75}.api-table-hDo4Ky .api-method-read-U4Qzcq{justify-content:flex-end}.api-table-hDo4Ky .api-name-_z_RkX{align-items:center;padding:2px 10px 2px 0;display:flex}.api-table-hDo4Ky .api-name-text-v1lKgk{color:rgba(29,28,35,.8);margin-right:4px;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky .api-name-_z_RkX .semi-tag-grey-light{background:#fff!important}.api-table-hDo4Ky .api-name-_z_RkX .api-divider-thzjVw{border-color:var(--light-color-brand-brand-2,#b3c4ff);height:12px}.api-table-hDo4Ky .api-name-_z_RkX .copy-inFmtX{cursor:copy}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54{cursor:pointer;border-radius:4px;padding:1px}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54>svg{width:14px;height:14px}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54>svg>path{fill:#6b6d75}.api-table-hDo4Ky .api-name-publish-SHk4Ty{flex-shrink:0;margin-left:4px}.plugin-modal-6oD3Dc{height:100%}.plugin-modal-6oD3Dc .plugin-filter-Yw4UEO{background:#ebedf0;flex-direction:column;flex-shrink:0;width:218px;display:flex}.plugin-modal-6oD3Dc .semi-modal-content{padding:0}.plugin-modal-6oD3Dc .semi-spin-children{height:100%}.plugin-collapse-zXm41X .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-collapse-zXm41X .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-zXm41X .semi-collapse{padding:16px 0 12px}.plugin-collapse-zXm41X .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.default-text-J_l53k{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));font-size:14px;font-style:normal;font-weight:400;line-height:22px}.hide-button-model-wrap-4CAPdR .ml20-GyL_g6{margin-left:20px}.hide-button-model-wrap-4CAPdR .h56-N8krlF{height:56px}.hide-button-model-wrap-4CAPdR .search-input-rLgsh2{z-index:9;background:#fff;width:100%;position:absolute;top:20px}.plugin-func-collapse-RbX2Mj .plugin-api-desc-TNPfPJ{cursor:pointer;width:200px!important}.icon-button-16-XrhRgG{cursor:pointer}.icon-button-16-XrhRgG:hover{border-radius:4px}.icon-button-16-XrhRgG .semi-button.semi-button-size-small{height:16px;padding:1px!important}.icon-button-16-XrhRgG .semi-button.semi-button-size-small svg{color:rgba(var(--coze-fg-2),var(--coze-fg-2-alpha))}.tip-text-W8fX9T{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));font-size:14px;font-style:normal;font-weight:400;line-height:22px}",""]),s.locals={"tools-content":"tools-content-OB0OIO",toolsContent:"tools-content-OB0OIO","tools-table-thead":"tools-table-thead-lG1cuz",toolsTableThead:"tools-table-thead-lG1cuz","api-table":"api-table-hDo4Ky",apiTable:"api-table-hDo4Ky","auto-add-api":"auto-add-api-v0eSOQ",autoAddApi:"auto-add-api-v0eSOQ",flash:"flash-ZWtqgF","api-row":"api-row-vtmRng",apiRow:"api-row-vtmRng","border-top":"border-top-k5HZVG",borderTop:"border-top-k5HZVG","api-row-name":"api-row-name-pLvzuD",apiRowName:"api-row-name-pLvzuD","api-disable":"api-disable-Q3w9tP",apiDisable:"api-disable-Q3w9tP","api-plugin-name":"api-plugin-name-sftYSV",apiPluginName:"api-plugin-name-sftYSV","api-name-text":"api-name-text-v1lKgk",apiNameText:"api-name-text-v1lKgk","icon-disabled":"icon-disabled-zQuw5s",iconDisabled:"icon-disabled-zQuw5s","api-plugin":"api-plugin-Xzc2x9",apiPlugin:"api-plugin-Xzc2x9","api-plugin-image":"api-plugin-image-q3MKlM",apiPluginImage:"api-plugin-image-q3MKlM","api-plugin-icon":"api-plugin-icon-IkNRY6",apiPluginIcon:"api-plugin-icon-IkNRY6","api-method":"api-method-_f0yBm",apiMethod:"api-method-_f0yBm","icon-config":"icon-config-oDTfyg",iconConfig:"icon-config-oDTfyg","api-method-read":"api-method-read-U4Qzcq",apiMethodRead:"api-method-read-U4Qzcq","api-name":"api-name-_z_RkX",apiName:"api-name-_z_RkX","api-divider":"api-divider-thzjVw",apiDivider:"api-divider-thzjVw",copy:"copy-inFmtX","icon-tips":"icon-tips-HPtj54",iconTips:"icon-tips-HPtj54","api-name-publish":"api-name-publish-SHk4Ty",apiNamePublish:"api-name-publish-SHk4Ty","plugin-modal":"plugin-modal-6oD3Dc",pluginModal:"plugin-modal-6oD3Dc","plugin-filter":"plugin-filter-Yw4UEO",pluginFilter:"plugin-filter-Yw4UEO","plugin-collapse":"plugin-collapse-zXm41X",pluginCollapse:"plugin-collapse-zXm41X","default-text":"default-text-J_l53k",defaultText:"default-text-J_l53k","hide-button-model-wrap":"hide-button-model-wrap-4CAPdR",hideButtonModelWrap:"hide-button-model-wrap-4CAPdR",ml20:"ml20-GyL_g6",h56:"h56-N8krlF","search-input":"search-input-rLgsh2",searchInput:"search-input-rLgsh2","plugin-func-collapse":"plugin-func-collapse-RbX2Mj",pluginFuncCollapse:"plugin-func-collapse-RbX2Mj","plugin-api-desc":"plugin-api-desc-TNPfPJ",pluginApiDesc:"plugin-api-desc-TNPfPJ","icon-button-16":"icon-button-16-XrhRgG",iconButton16:"icon-button-16-XrhRgG","tip-text":"tip-text-W8fX9T",tipText:"tip-text-W8fX9T"},t.Z=s},723956:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.plugin-item-FwQeSk{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-FwQeSk:not(:last-child){border-bottom:1px solid var(--light-usage-border-color-border,rgba(28,31,35,.08));position:relative}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy{flex:1}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-name-Olqj31{width:100%}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-name-Olqj31 .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .semi-typography{font-size:12px;line-height:16px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6))!important}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P{align-items:center;margin-top:12px;display:flex}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t{max-width:500px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t .tag-item-b1U_AV{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;min-width:fit-content;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));border-radius:6px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t>:not(:first-child){margin-left:16px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-desc-bTlexK{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-FwQeSk .plugin-api-method-EvpVl0{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.plugin-panel-header-ArofdQ{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-ArofdQ .creator-icon-xME_ap{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-ArofdQ .creator-icon-xME_ap img{width:14px;height:14px}.plugin-panel-header-ArofdQ .creator-time-r8uHBp{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-ArofdQ .header-icon-eWt001{flex-shrink:0;display:flex}.plugin-panel-header-ArofdQ .header-icon-eWt001 img{background:#fff;width:36px;height:36px}.plugin-panel-header-ArofdQ .header-main-KVlawq{flex:1;width:0;min-width:0;margin:0 16px;overflow:hidden}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ{align-items:center;width:100%;display:flex}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important;word-wrap:break-word!important}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .market-link-icon-yyoixo{display:none}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-desc-EPDX9d{width:100%}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-desc-EPDX9d .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important;word-wrap:break-word!important}.plugin-panel-header-ArofdQ .header-info-pfScaU{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-ArofdQ .header-info-pfScaU .semi-divider-vertical{height:10px;color:var(--light-usage-border-color-border-1,rgba(28,29,35,.12))}.plugin-content-qImN53{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-content-qImN53 .loading-more-J5k4Tv{text-align:center}.plugin-content-qImN53 .plugin-content-filter-uz52Km{padding:0 36px 0 22px;display:flex}.plugin-content-qImN53 .plugin-content-filter-uz52Km .plugin-content-sort-BDKyTB{width:150px}.plugin-content-qImN53 .plugin-content-filter-uz52Km .bot-tag-juvr_j{align-items:center;display:flex}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-content{padding:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));background-color:transparent}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab:last-child:before{content:"";background-color:var(--light-usage-border-color-border,rgba(28,29,35,.12));width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ{width:100%}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-item{border:none;position:relative}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-bottom:1px solid transparent;border-radius:8px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:active{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05))}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header-icon{width:auto;height:24px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,47,56,.09));border-radius:5px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover .market-link-icon-yyoixo{display:block}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .item-container-i_kVWw{padding:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA{cursor:pointer;padding:4px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA>svg{width:16px;height:16px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA>svg>path{fill:rgba(28,29,35,.35)}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border:none;border-radius:8px;margin-bottom:8px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM .semi-collapse-header:hover{background:0 0}.plugin-content-qImN53 .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-collapse-kxFSRQ .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-content-qImN53 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-kxFSRQ .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-qImN53 .semi-collapse{padding:16px 0 12px}.plugin-collapse-kxFSRQ .semi-collapse{padding:16px 0 12px}.plugin-content-qImN53 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-kxFSRQ .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}button.operator-btn-rIrDvc{width:98px}button.operator-btn-rIrDvc.added-R3NBAb{color:var(--light-usage-primary-color-primary-disabled,#b4baf6);background:var(--light-usage-bg-color-bg-0,#fff);border:1px solid var(--light-usage-disabled-color-disabled-border,#f0f0f5)}button.operator-btn-rIrDvc.addedMouseIn-Yaxg0j{color:var(--light-color-red-red-5,#ff441e);border:1px solid var(--light-usage-border-color-border-1,rgba(29,28,35,.12));background:#fff}.workflow_count_span-NSz4Ui{color:#fff;vertical-align:1px;background-color:#4d53e8;border-radius:8px;width:16px;height:16px;margin-left:6px;font-size:10px;line-height:17px;display:inline-block}.store-plugin-tools-HGdj8Q{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:8px;font-size:12px;display:flex}.plugin-total-qxkVUp{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:4px;margin-bottom:4px;font-size:12px}',""]),s.locals={"plugin-item":"plugin-item-FwQeSk",pluginItem:"plugin-item-FwQeSk","plugin-api-main":"plugin-api-main-Q1OKzy",pluginApiMain:"plugin-api-main-Q1OKzy","plugin-api-name":"plugin-api-name-Olqj31",pluginApiName:"plugin-api-name-Olqj31","plugin-api-desc":"plugin-api-desc-ZNaHYY",pluginApiDesc:"plugin-api-desc-ZNaHYY","api-params":"api-params-ktYz8P",apiParams:"api-params-ktYz8P","params-tags":"params-tags-AAxf2t",paramsTags:"params-tags-AAxf2t","tag-item":"tag-item-b1U_AV",tagItem:"tag-item-b1U_AV","params-desc":"params-desc-bTlexK",paramsDesc:"params-desc-bTlexK","plugin-api-method":"plugin-api-method-EvpVl0",pluginApiMethod:"plugin-api-method-EvpVl0","plugin-panel-header":"plugin-panel-header-ArofdQ",pluginPanelHeader:"plugin-panel-header-ArofdQ","creator-icon":"creator-icon-xME_ap",creatorIcon:"creator-icon-xME_ap","creator-time":"creator-time-r8uHBp",creatorTime:"creator-time-r8uHBp","header-icon":"header-icon-eWt001",headerIcon:"header-icon-eWt001","header-main":"header-main-KVlawq",headerMain:"header-main-KVlawq","header-name":"header-name-aF7eJZ",headerName:"header-name-aF7eJZ","market-link-icon":"market-link-icon-yyoixo",marketLinkIcon:"market-link-icon-yyoixo","header-desc":"header-desc-EPDX9d",headerDesc:"header-desc-EPDX9d","header-info":"header-info-pfScaU",headerInfo:"header-info-pfScaU","plugin-content":"plugin-content-qImN53",pluginContent:"plugin-content-qImN53","loading-more":"loading-more-J5k4Tv",loadingMore:"loading-more-J5k4Tv","plugin-content-filter":"plugin-content-filter-uz52Km",pluginContentFilter:"plugin-content-filter-uz52Km","plugin-content-sort":"plugin-content-sort-BDKyTB",pluginContentSort:"plugin-content-sort-BDKyTB","bot-tag":"bot-tag-juvr_j",botTag:"bot-tag-juvr_j","plugin-collapse":"plugin-collapse-kxFSRQ",pluginCollapse:"plugin-collapse-kxFSRQ","item-container":"item-container-i_kVWw",itemContainer:"item-container-i_kVWw","collapse-icon":"collapse-icon-WR8ElA",collapseIcon:"collapse-icon-WR8ElA",activePanel:"activePanel-c1HRUM","operator-btn":"operator-btn-rIrDvc",operatorBtn:"operator-btn-rIrDvc",added:"added-R3NBAb",addedMouseIn:"addedMouseIn-Yaxg0j",workflow_count_span:"workflow_count_span-NSz4Ui",workflowCountSpan:"workflow_count_span-NSz4Ui","store-plugin-tools":"store-plugin-tools-HGdj8Q",storePluginTools:"store-plugin-tools-HGdj8Q","plugin-total":"plugin-total-qxkVUp",pluginTotal:"plugin-total-qxkVUp"},t.Z=s},145888:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,"button.addbtn-Dh_IjM{width:100%;margin-top:24px}",""]),s.locals={addbtn:"addbtn-Dh_IjM"},t.Z=s},733922:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".card-cEf7kW{cursor:pointer;border-radius:8px;min-width:248px;height:172px;transition:box-shadow .4s;position:relative;background-color:#fff!important}.card-cEf7kW:hover{box-shadow:0 4px 20px rgba(31,35,41,.04),0 4px 10px rgba(31,35,41,.04),0 2px 5px rgba(31,35,41,.04)}.card-favorite-not-publish-CpUexa{cursor:not-allowed;background-color:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05))!important}.add-card-eLL6Mr{background-color:#fff;border-radius:8px}.add-card-inner-mGFOD7{flex-direction:column;justify-content:center;display:flex}.name-wrap-JWcTVt{align-items:center;width:100%;height:40px;padding:16px 16px 0;display:flex}.avatar-MMzMTH{border-radius:50%px;flex-shrink:0;width:24px;height:24px}.name-werKxX{color:#000;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 156px);font-size:14px;font-weight:600;line-height:24px;position:absolute;top:16px;left:48px;overflow:hidden}.extra-B5QMoB{margin-left:auto}.card-content-fcztr4{flex-direction:column;height:calc(100% - 40px);padding:16px;display:flex}.description-eqqWSL{color:#494c4f;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.recent-modify-OcNKV_{color:rgba(28,31,35,.6);margin-top:8px;font-size:12px;line-height:16px}.creator-poTttd{width:-moz-fit-content;color:#346ef8;background:rgba(51,112,255,.1);width:fit-content;padding:4px;font-size:12px;line-height:16px;border:none!important;border-radius:3px!important}.upload-form-_Ox7kM{flex-direction:column;gap:16px;display:flex}.upload-form-_Ox7kM .upload-field-zwcU3y{padding-top:0}.upload-form-_Ox7kM .upload-field-zwcU3y .semi-form-field-help-text{justify-content:center}.upload-form-_Ox7kM .textarea-single-line-Fv_c56 .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-_Ox7kM .textarea-multi-line-ObpPEU{margin-bottom:16px}.upload-form-_Ox7kM .textarea-multi-line-ObpPEU .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-_Ox7kM .footer-draft-kIIt0s{color:var(--coz-fg-secondary);align-items:flex-start;padding-top:16px;font-size:12px;line-height:16px}.upload-form-_Ox7kM .footer-draft-kIIt0s .link-AMw16h{color:var(--coz-fg-hglt);font-weight:400}.upload-form-_Ox7kM .footer-draft-kIIt0s .semi-icon{margin-top:2px}.upload-form-_Ox7kM .semi-form-field{padding:0}.upload-form-_Ox7kM input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-form-item-PcPEfI .semi-form-field-label-text{display:none}.collect-num-KX8YJ3{width:12px;height:12px;margin-right:4px}.collect-num-KX8YJ3 svg{width:12px;height:12px}.user-info-FmzOmC{margin-top:auto}.extinfo-eucJ87{max-width:338px;font-size:12px}.extinfo-eucJ87 .extinfo-title-xsdpc6{font-weight:700}.extinfo-eucJ87 .extinfo-text-MoLv7h{color:rgba(28,31,35,.6)}.extinfo-eucJ87 .extinfo-ex-wm_x72{color:rgba(28,31,35,.6);border:1px solid rgba(28,31,35,.08);margin-top:4px;padding:6px 10px}.upload-avatar-QSakK6{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-e1eBqg .semi-form-field-label-with-extra{padding-right:0}.header-list-e1eBqg .semi-form-field-label-extra{flex:1}.header-list-e1eBqg .header-list-extra-bBzd1w{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-e1eBqg .header-list-box-Rx7h7O{border:1px solid var(--coz-stroke-primary);border-radius:8px;max-height:348px;overflow:auto}.header-list-e1eBqg .header-list-box-Rx7h7O .header-row-_1E6pz{border-bottom:1px solid var(--coz-stroke-primary)}.header-list-e1eBqg .header-list-box-Rx7h7O .header-col-content-RSXwtW{color:var(--coz-fg-secondary);padding:6px 8px;font-size:12px;font-weight:500;line-height:16px}.header-list-e1eBqg .header-list-box-Rx7h7O .col-content-mAoZ8y{padding:12px 8px}.error-msg-box-vITOR_{position:relative;top:-24px}.error-msg-box-vITOR_ .error-msg-DQ2SbM{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-vITOR_ .error-msg-DQ2SbM .link-AMw16h{color:#4d53e8;font-weight:400}.creation-method-dX4xNs{flex-direction:column;justify-content:space-between;gap:4px;padding:0!important;display:flex!important}.creation-method-dX4xNs .semi-radio{background-color:var(--coz-mg-card);border:solid 1px var(--coz-stroke-plus);border-radius:8px;padding:8px 12px}.creation-method-dX4xNs .semi-radio:hover{background-color:var(--coz-mg-secondary-hovered)}.creation-method-dX4xNs .semi-radio:active{background-color:var(--coz-mg-secondary-pressed)}.creation-method-dX4xNs .semi-radio-inner{display:none}.creation-method-dX4xNs .semi-radio-addon{line-height:20px}.creation-method-dX4xNs .semi-radio-checked{background:var(--coz-mg-hglt);border:1px solid var(--coz-stroke-hglt)}.creation-method-dX4xNs .semi-radio-checked:hover{background-color:var(--coz-mg-hglt-hovered)}.creation-method-dX4xNs .semi-radio-checked:active{background-color:var(--coz-mg-hglt-pressed)}.code-runtime-list-edmuFe .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.bot-code-edit-title-action-zw3fJ5{justify-content:space-between;align-items:center;width:100%;display:flex}",""]),s.locals={card:"card-cEf7kW","card-favorite-not-publish":"card-favorite-not-publish-CpUexa",cardFavoriteNotPublish:"card-favorite-not-publish-CpUexa","add-card":"add-card-eLL6Mr",addCard:"add-card-eLL6Mr","add-card-inner":"add-card-inner-mGFOD7",addCardInner:"add-card-inner-mGFOD7","name-wrap":"name-wrap-JWcTVt",nameWrap:"name-wrap-JWcTVt",avatar:"avatar-MMzMTH",name:"name-werKxX",extra:"extra-B5QMoB","card-content":"card-content-fcztr4",cardContent:"card-content-fcztr4",description:"description-eqqWSL","recent-modify":"recent-modify-OcNKV_",recentModify:"recent-modify-OcNKV_",creator:"creator-poTttd","upload-form":"upload-form-_Ox7kM",uploadForm:"upload-form-_Ox7kM","upload-field":"upload-field-zwcU3y",uploadField:"upload-field-zwcU3y","textarea-single-line":"textarea-single-line-Fv_c56",textareaSingleLine:"textarea-single-line-Fv_c56","textarea-multi-line":"textarea-multi-line-ObpPEU",textareaMultiLine:"textarea-multi-line-ObpPEU","footer-draft":"footer-draft-kIIt0s",footerDraft:"footer-draft-kIIt0s",link:"link-AMw16h","upload-form-item":"upload-form-item-PcPEfI",uploadFormItem:"upload-form-item-PcPEfI","collect-num":"collect-num-KX8YJ3",collectNum:"collect-num-KX8YJ3","user-info":"user-info-FmzOmC",userInfo:"user-info-FmzOmC",extinfo:"extinfo-eucJ87","extinfo-title":"extinfo-title-xsdpc6",extinfoTitle:"extinfo-title-xsdpc6","extinfo-text":"extinfo-text-MoLv7h",extinfoText:"extinfo-text-MoLv7h","extinfo-ex":"extinfo-ex-wm_x72",extinfoEx:"extinfo-ex-wm_x72","upload-avatar":"upload-avatar-QSakK6",uploadAvatar:"upload-avatar-QSakK6","header-list":"header-list-e1eBqg",headerList:"header-list-e1eBqg","header-list-extra":"header-list-extra-bBzd1w",headerListExtra:"header-list-extra-bBzd1w","header-list-box":"header-list-box-Rx7h7O",headerListBox:"header-list-box-Rx7h7O","header-row":"header-row-_1E6pz",headerRow:"header-row-_1E6pz","header-col-content":"header-col-content-RSXwtW",headerColContent:"header-col-content-RSXwtW","col-content":"col-content-mAoZ8y",colContent:"col-content-mAoZ8y","error-msg-box":"error-msg-box-vITOR_",errorMsgBox:"error-msg-box-vITOR_","error-msg":"error-msg-DQ2SbM",errorMsg:"error-msg-DQ2SbM","creation-method":"creation-method-dX4xNs",creationMethod:"creation-method-dX4xNs","code-runtime-list":"code-runtime-list-edmuFe",codeRuntimeList:"code-runtime-list-edmuFe","bot-code-edit-title-action":"bot-code-edit-title-action-zw3fJ5",botCodeEditTitleAction:"bot-code-edit-title-action-zw3fJ5"},t.Z=s},269382:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".actions-kJ4zxd{margin-right:20px}",""]),s.locals={actions:"actions-kJ4zxd"},t.Z=s},825778:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".upload-file-area-RgfErZ .semi-upload-file-list{width:100%;margin-top:0;margin-bottom:0}.upload-file-area-RgfErZ .semi-upload-file-list .semi-upload-file-list-main{margin-bottom:0}.upload-file-area-RgfErZ .semi-upload-drag-area{border:1px dashed var(--semi-color-border);background-color:#fff;height:380px}.upload-file-area-RgfErZ .semi-upload-drag-area-tips{font-weight:400}.upload-file-area-RgfErZ .semi-upload-drag-area-legal{border:1px dashed var(--semi-color-primary)}.upload-file-area-RgfErZ a{color:#4d53e8;text-decoration:none}.drag-area-disabled-qQY4yU .semi-upload-drag-area{display:none}.upload-file-item-mI8hhx{background:#fff;border:1px solid rgba(29,28,35,.08);border-radius:8px;align-items:center;width:100%;padding:16px 20px;display:flex}.upload-file-item-mI8hhx .file-icon-rTaDDz{align-items:center;width:24px;height:24px;margin-right:16px;font-size:24px;display:flex}.upload-file-item-mI8hhx .file-icon-rTaDDz img{width:24px;height:24px}.upload-file-item-mI8hhx .text-MYEMhe{flex:1;margin-right:16px}.upload-file-item-mI8hhx .upload-text-S7bQ85{color:rgba(29,28,35,.35)}.upload-file-item-mI8hhx .progress-oHNxHU{align-items:center;width:160px;padding:0 16px;display:flex}.upload-file-item-mI8hhx .delete-icon-fXYlWK{font-size:16px}.text-area-QFnA26,.text-area-QFnA26:hover{background-color:#fff}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar{background:0 0;width:8px;height:4px}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-thumb{background:rgba(29,28,35,.3);border-radius:6px}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-thumb:hover{background:rgba(29,28,35,.6)}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-corner{display:none}.disabled-dg6A77{opacity:.5}",""]),s.locals={"upload-file-area":"upload-file-area-RgfErZ",uploadFileArea:"upload-file-area-RgfErZ","drag-area-disabled":"drag-area-disabled-qQY4yU",dragAreaDisabled:"drag-area-disabled-qQY4yU","upload-file-item":"upload-file-item-mI8hhx",uploadFileItem:"upload-file-item-mI8hhx","file-icon":"file-icon-rTaDDz",fileIcon:"file-icon-rTaDDz",text:"text-MYEMhe","upload-text":"upload-text-S7bQ85",uploadText:"upload-text-S7bQ85",progress:"progress-oHNxHU","delete-icon":"delete-icon-fXYlWK",deleteIcon:"delete-icon-fXYlWK","text-area":"text-area-QFnA26",textArea:"text-area-QFnA26",disabled:"disabled-dg6A77"},t.Z=s},408063:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".radio-group-PJCJKX .semi-radio{width:136px}.radio-group-PJCJKX .semi-radio-content{width:128px}.radio-group-PJCJKX .semi-radio-addon-buttonRadio{border-radius:4px}.error-msg-OhQPMl{width:100%;height:22px;margin-top:8px}.error-msg-OhQPMl .semi-typography{color:#ff5656}.import-modal-LWI3bH .semi-modal-content{min-height:646px}",""]),s.locals={"radio-group":"radio-group-PJCJKX",radioGroup:"radio-group-PJCJKX","error-msg":"error-msg-OhQPMl",errorMsg:"error-msg-OhQPMl","import-modal":"import-modal-LWI3bH",importModal:"import-modal-LWI3bH"},t.Z=s},557048:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".upload-form-YWA1zs .upload-field-sHiBAo{padding-top:0}.upload-form-YWA1zs .upload-field-sHiBAo .semi-form-field-help-text{justify-content:center}.upload-form-YWA1zs .textarea-single-line-gYxhxa .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-YWA1zs .textarea-multi-line-KxWqn8{margin-bottom:16px}.upload-form-YWA1zs .textarea-multi-line-KxWqn8 .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-YWA1zs .footer-draft-zPW_iF{color:#000;align-items:flex-start;padding-top:16px;font-size:14px;line-height:22px}.upload-form-YWA1zs .footer-draft-zPW_iF .link-uSaqIC{color:#4d53e8;font-weight:400}.upload-form-YWA1zs .footer-draft-zPW_iF .semi-icon{margin-top:2px}.upload-form-YWA1zs input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-avatar-vVvWni{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-j3Yo8Y .semi-form-field-label-with-extra{padding-right:0}.header-list-j3Yo8Y .semi-form-field-label-extra{flex:1}.header-list-j3Yo8Y .header-list-extra-GXGJQO{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-j3Yo8Y .herder-list-box-EGgMD0{border:1px solid rgba(29,28,35,.12);border-radius:8px;max-height:348px;padding:0 16px;overflow:auto}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .herder-list-cotent-B7XhSB{padding:12px 0}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .header-row-FonqCn{border-bottom:1px solid rgba(29,28,35,.12)}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .header-col-content-q7Saks{padding:12px 0;line-height:16px}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .col-content-N9oEMh{text-align:center;padding:12px 0}.error-msg-box-Z65QEO{position:relative;top:-24px}.error-msg-box-Z65QEO .error-msg-cQSmkf{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-Z65QEO .error-msg-cQSmkf .link-uSaqIC{color:#4d53e8;font-weight:400}",""]),s.locals={"upload-form":"upload-form-YWA1zs",uploadForm:"upload-form-YWA1zs","upload-field":"upload-field-sHiBAo",uploadField:"upload-field-sHiBAo","textarea-single-line":"textarea-single-line-gYxhxa",textareaSingleLine:"textarea-single-line-gYxhxa","textarea-multi-line":"textarea-multi-line-KxWqn8",textareaMultiLine:"textarea-multi-line-KxWqn8","footer-draft":"footer-draft-zPW_iF",footerDraft:"footer-draft-zPW_iF",link:"link-uSaqIC","upload-avatar":"upload-avatar-vVvWni",uploadAvatar:"upload-avatar-vVvWni","header-list":"header-list-j3Yo8Y",headerList:"header-list-j3Yo8Y","header-list-extra":"header-list-extra-GXGJQO",headerListExtra:"header-list-extra-GXGJQO","herder-list-box":"herder-list-box-EGgMD0",herderListBox:"herder-list-box-EGgMD0","herder-list-cotent":"herder-list-cotent-B7XhSB",herderListCotent:"herder-list-cotent-B7XhSB","header-row":"header-row-FonqCn",headerRow:"header-row-FonqCn","header-col-content":"header-col-content-q7Saks",headerColContent:"header-col-content-q7Saks","col-content":"col-content-N9oEMh",colContent:"col-content-N9oEMh","error-msg-box":"error-msg-box-Z65QEO",errorMsgBox:"error-msg-box-Z65QEO","error-msg":"error-msg-cQSmkf",errorMsg:"error-msg-cQSmkf"},t.Z=s},934971:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".wrapper-c0zLZm{flex:auto;justify-content:flex-end;align-items:center;padding-right:20px;display:flex}.tip-HC9m48{color:rgba(29,28,35,.35);margin-right:12px;font-size:14px}",""]),s.locals={wrapper:"wrapper-c0zLZm",tip:"tip-HC9m48"},t.Z=s},634283:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".plugin-modal-filter-s7_Ah7{gap:12px;display:flex}",""]),s.locals={"plugin-modal-filter":"plugin-modal-filter-s7_Ah7",pluginModalFilter:"plugin-modal-filter-s7_Ah7"},t.Z=s},981625:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".tool-tag-list-HmFsfo{white-space:nowrap;flex:1 0;padding-top:16px;overflow:auto}.tool-tag-list-label-iUkVKF{height:40px;color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-bottom:8px;padding:0 12px;font-size:12px;font-weight:600;line-height:40px}.tool-tag-list-cell-AoRqjh{cursor:pointer;color:#1d1c23;border-radius:3px;align-items:center;height:44px;margin-bottom:4px;padding:0 10px 0 12px;font-size:14px;line-height:44px;display:flex;position:relative}.tool-tag-list-cell-icon-_M5iNW{flex-shrink:0;margin-right:8px;display:flex}.tool-tag-list-cell-icon-_M5iNW>svg{width:24px;height:24px}.tool-tag-list-cell-icon-_M5iNW>svg>path{fill:#1d1c23}.tool-tag-list-cell-icon-_M5iNW>img{width:24px;height:24px;padding:4px}.tool-tag-list-cell-AoRqjh .tool-tag-list-cell-icon-_M5iNW{display:flex}.tool-tag-list-cell-favorite-JBCqJP>svg{width:16px;height:16px}.tool-tag-list-cell-favorite-JBCqJP>svg>path{fill:#1d1c23}.tool-tag-list-cell-favorite-JBCqJP svg{margin:4px}.tool-tag-list-cell-divider-FUuyRn{background:rgba(28,29,35,.12);width:calc(100% - 24px);margin:12px}.tool-tag-list-cell-AoRqjh:hover{color:var(--light-usage-text-color-text-0,#1c1f23);background:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05));border-radius:8px}.tool-tag-list-cell-AoRqjh.active-n4ZanX{color:var(--light-usage-text-color-text-0,#1c1d23);background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-radius:8px;font-size:14px;font-weight:600}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW>svg{width:24px;height:24px}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW>svg>path{fill:#4d53e8}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW.tool-tag-list-cell-favorite-JBCqJP>svg{width:16px;height:16px}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW.tool-tag-list-cell-favorite-JBCqJP>svg>path{fill:#4d53e8}",""]),s.locals={"tool-tag-list":"tool-tag-list-HmFsfo",toolTagList:"tool-tag-list-HmFsfo","tool-tag-list-label":"tool-tag-list-label-iUkVKF",toolTagListLabel:"tool-tag-list-label-iUkVKF","tool-tag-list-cell":"tool-tag-list-cell-AoRqjh",toolTagListCell:"tool-tag-list-cell-AoRqjh","tool-tag-list-cell-icon":"tool-tag-list-cell-icon-_M5iNW",toolTagListCellIcon:"tool-tag-list-cell-icon-_M5iNW","tool-tag-list-cell-favorite":"tool-tag-list-cell-favorite-JBCqJP",toolTagListCellFavorite:"tool-tag-list-cell-favorite-JBCqJP","tool-tag-list-cell-divider":"tool-tag-list-cell-divider-FUuyRn",toolTagListCellDivider:"tool-tag-list-cell-divider-FUuyRn",active:"active-n4ZanX"},t.Z=s},574371:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.plugin-item-oAKbCp{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-oAKbCp:not(:last-child){border-bottom:1px solid var(--light-usage-border-color-border,rgba(28,31,35,.08));position:relative}.plugin-item-oAKbCp .plugin-api-main-dqrzsD{flex:1}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-name-UqDrOT{width:100%}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-name-UqDrOT .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .semi-typography{font-size:12px;line-height:16px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6))!important}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er{align-items:center;margin-top:12px;display:flex}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g{max-width:500px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g .tag-item-xE8Wbi{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;min-width:fit-content;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));border-radius:6px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g>:not(:first-child){margin-left:16px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-desc-rg8UB2{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-oAKbCp .plugin-api-method-lX8Z_U{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.plugin-panel-header-mv2ZLY{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-mv2ZLY .creator-icon-pVxZFO{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-mv2ZLY .creator-icon-pVxZFO img{width:14px;height:14px}.plugin-panel-header-mv2ZLY .creator-time-lo0IYg{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-mv2ZLY .header-icon-Z6h2PO{flex-shrink:0;display:flex}.plugin-panel-header-mv2ZLY .header-icon-Z6h2PO img{background:#fff;width:36px;height:36px}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE{flex:1;width:0;min-width:0;margin:0 16px;overflow:hidden}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI{align-items:center;width:100%;display:flex}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important;word-wrap:break-word!important}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .market-link-icon-NyqBWN{display:none}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-desc-Bo7Quf{width:100%}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-desc-Bo7Quf .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important;word-wrap:break-word!important}.plugin-panel-header-mv2ZLY .header-info-hUmN8f{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-mv2ZLY .header-info-hUmN8f .semi-divider-vertical{height:10px;color:var(--light-usage-border-color-border-1,rgba(28,29,35,.12))}.plugin-content-k4cLzr{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-content-k4cLzr .loading-more-DwK2kU{text-align:center}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7{padding:0 36px 0 22px;display:flex}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .plugin-content-sort-eeGYYL{width:150px}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .bot-tag-LVyima{align-items:center;display:flex}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-content{padding:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));background-color:transparent}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab:last-child:before{content:"";background-color:var(--light-usage-border-color-border,rgba(28,29,35,.12));width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3{width:100%}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-item{border:none;position:relative}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-bottom:1px solid transparent;border-radius:8px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:active{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05))}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header-icon{width:auto;height:24px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,47,56,.09));border-radius:5px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover .market-link-icon-NyqBWN{display:block}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .item-container-e3jOtt{padding:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI{cursor:pointer;padding:4px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI>svg{width:16px;height:16px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI>svg>path{fill:rgba(28,29,35,.35)}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border:none;border-radius:8px;margin-bottom:8px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR .semi-collapse-header:hover{background:0 0}.plugin-content-k4cLzr .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-collapse-H4GSo3 .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-content-k4cLzr .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-H4GSo3 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-k4cLzr .semi-collapse{padding:16px 0 12px}.plugin-collapse-H4GSo3 .semi-collapse{padding:16px 0 12px}.plugin-content-k4cLzr .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-H4GSo3 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}button.operator-btn-rd7LZ6{width:98px}button.operator-btn-rd7LZ6.added-XXtmGq{color:var(--light-usage-primary-color-primary-disabled,#b4baf6);background:var(--light-usage-bg-color-bg-0,#fff);border:1px solid var(--light-usage-disabled-color-disabled-border,#f0f0f5)}button.operator-btn-rd7LZ6.addedMouseIn-aXZEwa{color:var(--light-color-red-red-5,#ff441e);border:1px solid var(--light-usage-border-color-border-1,rgba(29,28,35,.12));background:#fff}.workflow_count_span-GLM8aY{color:#fff;vertical-align:1px;background-color:#4d53e8;border-radius:8px;width:16px;height:16px;margin-left:6px;font-size:10px;line-height:17px;display:inline-block}.store-plugin-tools-B7v_eG{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:8px;font-size:12px;display:flex}.plugin-total-RxZGQd{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:4px;margin-bottom:4px;font-size:12px}',""]),s.locals={"plugin-item":"plugin-item-oAKbCp",pluginItem:"plugin-item-oAKbCp","plugin-api-main":"plugin-api-main-dqrzsD",pluginApiMain:"plugin-api-main-dqrzsD","plugin-api-name":"plugin-api-name-UqDrOT",pluginApiName:"plugin-api-name-UqDrOT","plugin-api-desc":"plugin-api-desc-WAgX9z",pluginApiDesc:"plugin-api-desc-WAgX9z","api-params":"api-params-zMQ6Er",apiParams:"api-params-zMQ6Er","params-tags":"params-tags-qZvh1g",paramsTags:"params-tags-qZvh1g","tag-item":"tag-item-xE8Wbi",tagItem:"tag-item-xE8Wbi","params-desc":"params-desc-rg8UB2",paramsDesc:"params-desc-rg8UB2","plugin-api-method":"plugin-api-method-lX8Z_U",pluginApiMethod:"plugin-api-method-lX8Z_U","plugin-panel-header":"plugin-panel-header-mv2ZLY",pluginPanelHeader:"plugin-panel-header-mv2ZLY","creator-icon":"creator-icon-pVxZFO",creatorIcon:"creator-icon-pVxZFO","creator-time":"creator-time-lo0IYg",creatorTime:"creator-time-lo0IYg","header-icon":"header-icon-Z6h2PO",headerIcon:"header-icon-Z6h2PO","header-main":"header-main-Jrw_pE",headerMain:"header-main-Jrw_pE","header-name":"header-name-eQELxI",headerName:"header-name-eQELxI","market-link-icon":"market-link-icon-NyqBWN",marketLinkIcon:"market-link-icon-NyqBWN","header-desc":"header-desc-Bo7Quf",headerDesc:"header-desc-Bo7Quf","header-info":"header-info-hUmN8f",headerInfo:"header-info-hUmN8f","plugin-content":"plugin-content-k4cLzr",pluginContent:"plugin-content-k4cLzr","loading-more":"loading-more-DwK2kU",loadingMore:"loading-more-DwK2kU","plugin-content-filter":"plugin-content-filter-_kuCb7",pluginContentFilter:"plugin-content-filter-_kuCb7","plugin-content-sort":"plugin-content-sort-eeGYYL",pluginContentSort:"plugin-content-sort-eeGYYL","bot-tag":"bot-tag-LVyima",botTag:"bot-tag-LVyima","plugin-collapse":"plugin-collapse-H4GSo3",pluginCollapse:"plugin-collapse-H4GSo3","item-container":"item-container-e3jOtt",itemContainer:"item-container-e3jOtt","collapse-icon":"collapse-icon-SNulcI",collapseIcon:"collapse-icon-SNulcI",activePanel:"activePanel-hTMlwR","operator-btn":"operator-btn-rd7LZ6",operatorBtn:"operator-btn-rd7LZ6",added:"added-XXtmGq",addedMouseIn:"addedMouseIn-aXZEwa",workflow_count_span:"workflow_count_span-GLM8aY",workflowCountSpan:"workflow_count_span-GLM8aY","store-plugin-tools":"store-plugin-tools-B7v_eG",storePluginTools:"store-plugin-tools-B7v_eG","plugin-total":"plugin-total-RxZGQd",pluginTotal:"plugin-total-RxZGQd"},t.Z=s},212404:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.plugin-perf-statics-PCIJS_{gap:8px;display:flex}.plugin-perf-statics-PCIJS_ .statics-metrics-EFyEv0{align-items:center;gap:4px;display:flex}.plugin-perf-statics-PCIJS_ .statics-metrics-EFyEv0:not(:last-child):after{content:"";background-color:currentColor;width:1px;height:8px;margin-left:8px;margin-right:6px;display:block}',""]),s.locals={"plugin-perf-statics":"plugin-perf-statics-PCIJS_",pluginPerfStatics:"plugin-perf-statics-PCIJS_","statics-metrics":"statics-metrics-EFyEv0",staticsMetrics:"statics-metrics-EFyEv0"},t.Z=s},821049:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".prompt-configurator-modal-uOLEr5 .semi-modal-header{align-items:center}",""]),s.locals={"prompt-configurator-modal":"prompt-configurator-modal-uOLEr5",promptConfiguratorModal:"prompt-configurator-modal-uOLEr5"},t.Z=s},76894:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".card-button-ULgKj1{cursor:pointer;text-align:center;border:1px solid;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));background-color:rgba(var(--coze-bg-1),var(--coze-bg-1-alpha));height:32px;color:rgba(var(--coze-fg-3),var(--coze-fg-3-alpha));border-radius:8px;padding:6px 16px;font-size:14px;font-weight:500;line-height:20px}",""]),s.locals={"card-button":"card-button-ULgKj1",cardButton:"card-button-ULgKj1"},t.Z=s},890590:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".container-orqglg{border:1px solid;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:8px;margin-bottom:20px;padding:16px;position:relative}.container-orqglg:not(.skeleton-L9KNpP):hover{background-color:rgba(var(--coze-bg-3),var(--coze-bg-3-alpha));border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));box-shadow:0 6px 8px rgba(28,31,35,.06)}.container-orqglg:not(.skeleton-L9KNpP):hover.shadow-primary-LnKwQ9{box-shadow:0 6px 8px rgba(0,8,16,.12)}.container-orqglg.skeleton-L9KNpP{cursor:default;border-color:transparent}.container-orqglg .check-n6pq7x{z-index:1;position:absolute;top:16px;right:16px}.width100-mBTC1U{width:100%;overflow:hidden}",""]),s.locals={container:"container-orqglg",skeleton:"skeleton-L9KNpP","shadow-primary":"shadow-primary-LnKwQ9",shadowPrimary:"shadow-primary-LnKwQ9",check:"check-n6pq7x",width100:"width100-mBTC1U"},t.Z=s},339502:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.plugin-xTWad1{margin-bottom:0}.plugin-xTWad1 .plugin-wrapper-Kvdkvq{position:relative}.plugin-xTWad1 .btn-container-dVepz3{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:none;position:absolute;bottom:0;left:0}.plugin-xTWad1 .btn-container-dVepz3.one-column-grid-IDA6oM{grid-template-columns:repeat(1,minmax(0,1fr))}.plugin-xTWad1:hover .btn-container-dVepz3{display:grid}.plugin-xTWad1:hover .description-cP3CQP{visibility:hidden}.plugin-xTWad1 .card-avatar-tPlZkK{border-radius:6px;width:48px;height:48px}.plugin-xTWad1 .card-avatar-tPlZkK:after{content:"";z-index:2;border-style:solid;border-width:1px;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:6px;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute}.plugin-xTWad1 .card-avatar-tPlZkK:before{content:"";z-index:1;background-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:5px;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute;top:1px;left:1px}.plugin-xTWad1 .card-avatar-tPlZkK>img{z-index:2}',""]),s.locals={plugin:"plugin-xTWad1","plugin-wrapper":"plugin-wrapper-Kvdkvq",pluginWrapper:"plugin-wrapper-Kvdkvq","btn-container":"btn-container-dVepz3",btnContainer:"btn-container-dVepz3","one-column-grid":"one-column-grid-IDA6oM",oneColumnGrid:"one-column-grid-IDA6oM",description:"description-cP3CQP","card-avatar":"card-avatar-tPlZkK",cardAvatar:"card-avatar-tPlZkK"},t.Z=s},489478:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".template-QsIUVW{margin-bottom:0}.template-QsIUVW .template-wrapper-ogPHKn{position:relative}.template-QsIUVW .btn-container-vkmxIx{width:100%;display:none;position:absolute;bottom:0;left:0}.template-QsIUVW:hover .btn-container-vkmxIx{display:block}.template-QsIUVW:hover .description-WS94RD{visibility:hidden}",""]),s.locals={template:"template-QsIUVW","template-wrapper":"template-wrapper-ogPHKn",templateWrapper:"template-wrapper-ogPHKn","btn-container":"btn-container-vkmxIx",btnContainer:"btn-container-vkmxIx",description:"description-WS94RD"},t.Z=s},146689:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".more-HdPRWb.coz-tag-mini{padding:0 4px}",""]),s.locals={more:"more-HdPRWb"},t.Z=s},122631:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".favorite-btn-CQZ09Q{color:#1d1c23}.favorite-btn-CQZ09Q .semi-button-content-right{color:#1d1c23;margin-left:4px}.favorite-btn-CQZ09Q.dark-SlWeT4 .un-collected-WPNqWl path{fill:#1d1c23}",""]),s.locals={"favorite-btn":"favorite-btn-CQZ09Q",favoriteBtn:"favorite-btn-CQZ09Q",dark:"dark-SlWeT4","un-collected":"un-collected-WPNqWl",unCollected:"un-collected-WPNqWl"},t.Z=s},869340:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".icon-filled-TJ6Cgp{color:#ffcc12;width:100%}.icon-stroked-fuKtRz{color:rgba(29,28,35,.35);width:100%}.show-ani-fD8sqq{animation-name:ani-x4fURs;animation-duration:.6s}.show-btn-j0jowu.icon-stroked-fuKtRz{width:100%;color:var(--coz-fg-primary)}@keyframes ani-x4fURs{0%{transform:scale(0)}38%{transform:scale(1.11)}64%{transform:scale(.99)}74%,to{transform:scale(1)}}",""]),s.locals={"icon-filled":"icon-filled-TJ6Cgp",iconFilled:"icon-filled-TJ6Cgp","icon-stroked":"icon-stroked-fuKtRz",iconStroked:"icon-stroked-fuKtRz","show-ani":"show-ani-fD8sqq",showAni:"show-ani-fD8sqq",ani:"ani-x4fURs","show-btn":"show-btn-j0jowu",showBtn:"show-btn-j0jowu"},t.Z=s},295652:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".favorite-icon-btn-JkKqYz{justify-content:center;align-items:center;width:100%;height:100%;display:flex}",""]),s.locals={"favorite-icon-btn":"favorite-icon-btn-JkKqYz",favoriteIconBtn:"favorite-icon-btn-JkKqYz"},t.Z=s},617260:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".empty-jMG4bF{height:100%;overflow:visible}.empty-jMG4bF .spin-WsFW5F{width:100%;height:100%;display:block}.empty-jMG4bF .spin-WsFW5F .semi-spin-wrapper{justify-content:center;display:flex;position:absolute}.empty-jMG4bF .spin-WsFW5F .semi-spin-wrapper svg{width:24px;height:24px}.empty-jMG4bF .spin-WsFW5F .semi-tabs-content{padding:0}.empty-jMG4bF .spin-WsFW5F .semi-spin-children{height:100%}.empty-jMG4bF .spin-WsFW5F .loading-text-X8aAql{color:var(--semi-color-text-3,rgba(29,28,35,.35));margin-left:8px;font-size:16px;font-weight:400;line-height:22px}",""]),s.locals={empty:"empty-jMG4bF",spin:"spin-WsFW5F","loading-text":"loading-text-X8aAql",loadingText:"loading-text-X8aAql"},t.Z=s},876504:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".footer-container-vf98Hl{text-align:center;padding:12px 0 28px}.footer-container-vf98Hl *{vertical-align:middle}.footer-container-vf98Hl .loading-fwJj8T,.footer-container-vf98Hl .error-retry-pboaKN{color:var(--semi-color-text-3,rgba(29,28,35,.35));margin-left:10px;line-height:20px}.footer-container-vf98Hl .error-retry-pboaKN{cursor:pointer;color:var(--semi-color-focus-border,#4d53e8)}.footer-container-vf98Hl .semi-spin-middle>.semi-spin-wrapper{height:16px}.footer-container-vf98Hl .semi-spin-middle>.semi-spin-wrapper svg{width:16px;height:16px}.footer-container-vf98Hl .load-more-btn-ZZeGvr{background:#fff;border-radius:40px;font-weight:600}.footer-container-vf98Hl .load-more-btn-ZZeGvr span{color:#1d1c23}.footer-container-vf98Hl .load-more-btn-ZZeGvr:hover{background:#fff;border:none}.footer-container-vf98Hl.responsive-foot-container-MZUjCc{padding:0 0 16px}.footer-container-vf98Hl.responsive-foot-container-MZUjCc .load-more-btn-ZZeGvr{height:40px;padding:16px 24px}",""]),s.locals={"footer-container":"footer-container-vf98Hl",footerContainer:"footer-container-vf98Hl",loading:"loading-fwJj8T","error-retry":"error-retry-pboaKN",errorRetry:"error-retry-pboaKN","load-more-btn":"load-more-btn-ZZeGvr",loadMoreBtn:"load-more-btn-ZZeGvr","responsive-foot-container":"responsive-foot-container-MZUjCc",responsiveFootContainer:"responsive-foot-container-MZUjCc"},t.Z=s},339629:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".height-whole-100-S3_tjJ{height:100%;overflow:visible}",""]),s.locals={"height-whole-100":"height-whole-100-S3_tjJ",heightWhole100:"height-whole-100-S3_tjJ"},t.Z=s},88634:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".official-label-BF1CQ1{z-index:5;justify-content:center;align-items:center;display:flex;position:absolute;bottom:0;right:0;transform:translate(25%,25%)}.official-label-BF1CQ1.default-qFOcIG svg{width:20px;height:20px}.official-label-BF1CQ1.small-gGjycx svg{width:16px;height:16px}.official-label-BF1CQ1.large-XIRzQG svg{width:32px;height:32px}",""]),s.locals={"official-label":"official-label-BF1CQ1",officialLabel:"official-label-BF1CQ1",default:"default-qFOcIG",small:"small-gGjycx",large:"large-XIRzQG"},t.Z=s},181806:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".ui-mouse-pad-selector-kDLKRT{box-sizing:border-box;border:1px solid rgba(29,28,35,.08);border-radius:8px;align-items:center;width:68px;height:32px;padding:8px 12px;display:flex;position:relative}.ui-mouse-pad-selector-icon-lVZT9O{height:20px;margin-right:12px}.ui-mouse-pad-selector-arrow-RArnA7{height:16px;font-size:12px}.ui-mouse-pad-selector-popover-D0JLfD{padding:16px}.ui-mouse-pad-selector-popover-options-SHeD8l{gap:12px;margin-top:12px;display:flex}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-paO29d{box-sizing:border-box;text-align:center;background:var(--coz-mg-card,#fff);border:1px solid var(--coz-stroke-plus,rgba(6,7,9,.15));border-radius:var(--default,8px);width:220px;padding-bottom:20px}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-icon-aTrCzu{padding-top:26px}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-title-aGkF7c{padding-top:8px}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-subTitle-qGEU7m{padding:4px 12px 0}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-icon-selected-xKCG1R{color:#1300dd}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-title-selected-VWyGLg,.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-subTitle-selected-Ml_fxn{color:var(--coz-fg-hglt,#4e40e5)}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-selected-VukgP6{cursor:pointer;background-color:var(--coz-mg-hglt,rgba(186,192,255,.2));border:1px solid var(--coz-stroke-hglt,#4e40e5);border-radius:var(--default,8px)}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-paO29d:hover:not(.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-selected-VukgP6){cursor:pointer;background-color:var(--coz-mg-card-hovered,#fff);border:1px solid var(--coz-stroke-plus,rgba(6,7,9,.15));border-radius:var(--default,8px);box-shadow:0 8px 24px rgba(0,0,0,.16),0 16px 48px rgba(0,0,0,.08)}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-paO29d:active:not(.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-selected-VukgP6){background-color:rgba(46,46,56,.12)}.ui-mouse-pad-selector-popover-D0JLfD .mouse-pad-option-paO29d:last-of-type{padding-top:13px}.ui-mouse-pad-selector-kDLKRT:hover{cursor:pointer;background-color:rgba(46,46,56,.08);border-color:#4d53e8}.ui-mouse-pad-selector-kDLKRT:active,.ui-mouse-pad-selector-kDLKRT:focus{background-color:rgba(46,46,56,.12);border-color:#4d53e8}.ui-mouse-pad-selector-active-XQ4RYq{border-color:#4d53e8}",""]),s.locals={"ui-mouse-pad-selector":"ui-mouse-pad-selector-kDLKRT",uiMousePadSelector:"ui-mouse-pad-selector-kDLKRT","ui-mouse-pad-selector-icon":"ui-mouse-pad-selector-icon-lVZT9O",uiMousePadSelectorIcon:"ui-mouse-pad-selector-icon-lVZT9O","ui-mouse-pad-selector-arrow":"ui-mouse-pad-selector-arrow-RArnA7",uiMousePadSelectorArrow:"ui-mouse-pad-selector-arrow-RArnA7","ui-mouse-pad-selector-popover":"ui-mouse-pad-selector-popover-D0JLfD",uiMousePadSelectorPopover:"ui-mouse-pad-selector-popover-D0JLfD","ui-mouse-pad-selector-popover-options":"ui-mouse-pad-selector-popover-options-SHeD8l",uiMousePadSelectorPopoverOptions:"ui-mouse-pad-selector-popover-options-SHeD8l","mouse-pad-option":"mouse-pad-option-paO29d",mousePadOption:"mouse-pad-option-paO29d","mouse-pad-option-icon":"mouse-pad-option-icon-aTrCzu",mousePadOptionIcon:"mouse-pad-option-icon-aTrCzu","mouse-pad-option-title":"mouse-pad-option-title-aGkF7c",mousePadOptionTitle:"mouse-pad-option-title-aGkF7c","mouse-pad-option-subTitle":"mouse-pad-option-subTitle-qGEU7m",mousePadOptionSubTitle:"mouse-pad-option-subTitle-qGEU7m","mouse-pad-option-icon-selected":"mouse-pad-option-icon-selected-xKCG1R",mousePadOptionIconSelected:"mouse-pad-option-icon-selected-xKCG1R","mouse-pad-option-title-selected":"mouse-pad-option-title-selected-VWyGLg",mousePadOptionTitleSelected:"mouse-pad-option-title-selected-VWyGLg","mouse-pad-option-subTitle-selected":"mouse-pad-option-subTitle-selected-Ml_fxn",mousePadOptionSubTitleSelected:"mouse-pad-option-subTitle-selected-Ml_fxn","mouse-pad-option-selected":"mouse-pad-option-selected-VukgP6",mousePadOptionSelected:"mouse-pad-option-selected-VukgP6","ui-mouse-pad-selector-active":"ui-mouse-pad-selector-active-XQ4RYq",uiMousePadSelectorActive:"ui-mouse-pad-selector-active-XQ4RYq"},t.Z=s},54781:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".guiding-content-nbrS4J{box-sizing:border-box;width:277px;padding:16px}.guiding-content-title-_BysTs{font-weight:600}.guiding-content-desc-q5Ub91{color:rgba(29,28,35,.6);font-size:12px}.guiding-content-button-Vz6qIZ{background-color:#4d53e8;border-radius:8px;width:100%;height:32px}.guiding-content-mouse-option-UnRD0H{align-items:center;margin-top:16px;margin-bottom:16px;display:flex}.guiding-content-mouse-option-icon-ZzY2o_{color:#4d53e8;text-align:center;width:32px;margin-right:4px;transform:scale(.577)translate(-5px)}.guiding-content-pad-option-u1MQ6k{align-items:center;margin-bottom:16px;display:flex}.guiding-content-pad-option-icon-rMge1x{color:#3ec254;text-align:center;width:32px;margin-right:4px;transform:scale(.577)translate(-13px)}",""]),s.locals={"guiding-content":"guiding-content-nbrS4J",guidingContent:"guiding-content-nbrS4J","guiding-content-title":"guiding-content-title-_BysTs",guidingContentTitle:"guiding-content-title-_BysTs","guiding-content-desc":"guiding-content-desc-q5Ub91",guidingContentDesc:"guiding-content-desc-q5Ub91","guiding-content-button":"guiding-content-button-Vz6qIZ",guidingContentButton:"guiding-content-button-Vz6qIZ","guiding-content-mouse-option":"guiding-content-mouse-option-UnRD0H",guidingContentMouseOption:"guiding-content-mouse-option-UnRD0H","guiding-content-mouse-option-icon":"guiding-content-mouse-option-icon-ZzY2o_",guidingContentMouseOptionIcon:"guiding-content-mouse-option-icon-ZzY2o_","guiding-content-pad-option":"guiding-content-pad-option-u1MQ6k",guidingContentPadOption:"guiding-content-pad-option-u1MQ6k","guiding-content-pad-option-icon":"guiding-content-pad-option-icon-rMge1x",guidingContentPadOptionIcon:"guiding-content-pad-option-icon-rMge1x"},t.Z=s},136965:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".progress-wrap-aG7E1c{background:var(--coz-mg-card);border:1px solid var(--coz-stroke-primary);border-radius:var(--default,8px);align-self:stretch;align-items:center;gap:10px;padding:8px 10px;display:flex;overflow:hidden}.progress-wrap-aG7E1c .content-oMctjI{z-index:1}.progress-wrap-aG7E1c .progress-rFtZNC{background:linear-gradient(rgba(148,152,247,.44),rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0}.progress-wrap-aG7E1c .info-HxV9yH .main-text-MMJMjm{color:var(--coz-fg-primary);font-size:14px;line-height:20px}.progress-wrap-aG7E1c .info-HxV9yH .sub-text-fLSQkk{color:var(--coz-fg-secondary);font-size:12px;line-height:16px}.progress-wrap-aG7E1c .info-HxV9yH .desc-perJT2{display:block}.progress-wrap-aG7E1c .info-HxV9yH .tip-desc-zJnp5I{display:none}.progress-wrap-aG7E1c .info-HxV9yH .semi-image{margin-right:0!important}.progress-wrap-aG7E1c:hover .info-HxV9yH .desc-perJT2{display:none}.progress-wrap-aG7E1c:hover .info-HxV9yH .tip-desc-zJnp5I{display:block}.progress-wrap-aG7E1c.processing-failed-Ngh1Ak{border:1px solid var(--coz-stroke-hglt-red)}.progress-wrap-aG7E1c.processing-failed-Ngh1Ak .sub-text-fLSQkk{color:var(--coz-fg-hglt-red)!important}.progress-wrap-aG7E1c.processing-EXtgs8:hover .info-HxV9yH .desc-perJT2{display:block}.progress-wrap-aG7E1c.processing-EXtgs8:hover .info-HxV9yH .tip-desc-zJnp5I{display:none}.progress-wrap-aG7E1c .right-d4B8Yg{z-index:2}.progress-wrap-aG7E1c .percent-_hawuy{color:var(--coz-fg-primary);text-align:right;text-overflow:ellipsis;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.progress-wrap-aG7E1c .actions-iVWvwU{display:none}.progress-wrap-aG7E1c:hover .actions-iVWvwU{display:block}",""]),s.locals={"progress-wrap":"progress-wrap-aG7E1c",progressWrap:"progress-wrap-aG7E1c",content:"content-oMctjI",progress:"progress-rFtZNC",info:"info-HxV9yH","main-text":"main-text-MMJMjm",mainText:"main-text-MMJMjm","sub-text":"sub-text-fLSQkk",subText:"sub-text-fLSQkk",desc:"desc-perJT2","tip-desc":"tip-desc-zJnp5I",tipDesc:"tip-desc-zJnp5I","processing-failed":"processing-failed-Ngh1Ak",processingFailed:"processing-failed-Ngh1Ak",processing:"processing-EXtgs8",right:"right-d4B8Yg",percent:"percent-_hawuy",actions:"actions-iVWvwU"},t.Z=s},716998:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".table-preview-RdOhnY{flex-direction:column;flex:1;display:flex;overflow:hidden}.table-preview-title-j9ZsaQ{height:32px;color:var(--coz-fg-plus);align-items:center;margin-bottom:5px;font-size:14px;font-style:normal;font-weight:600;line-height:20px;display:flex}.table-preview-RdOhnY .semantic-tag-v5UgTT,.table-preview-RdOhnY .column-type-fL_9tS{margin-left:6px}.table-preview-RdOhnY .preview-tips-tVs0lE{color:var(--coz-fg-dim);text-align:left;letter-spacing:0;margin-top:8px;font-size:12px;font-weight:400;line-height:20px}.table-preview-RdOhnY .no-result-auNDcw{flex-direction:column;justify-content:center;align-items:center;width:100%;height:448px;display:flex}.table-preview-RdOhnY .no-result-tips-lC6ADQ{color:var(--coz-fg-plus);margin-top:16px;font-size:16px;font-style:normal;font-weight:600;line-height:22px}.table-preview-content-Pn5Efi{overflow:auto}.table-preview-content-Pn5Efi th{background-color:transparent!important}.table-preview-content-Pn5Efi tr{background-color:transparent!important}.table-preview-content-Pn5Efi .semi-table-wrapper{height:100%;margin-top:0}.table-preview-content-Pn5Efi .semi-table-wrapper .coz-tag{font-weight:400}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list-hover .semi-table-row:hover>.semi-table-row-cell:before{background-color:transparent}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list-hover .semi-table-row:hover>.semi-table-row-cell:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head{color:var(--coz-fg-secondary);font-size:12px;font-weight:500}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row>.semi-table-row-cell{height:56px;text-align:unset}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row>.semi-table-row-cell .semi-typography{color:var(--coz-fg-secondary)}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-container>.semi-table-body{padding-top:0}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row:last-child>.semi-table-row-cell{border-bottom:1px solid var(--coz-stroke-primary)}.table-preview-content-Pn5Efi .semi-table-header{z-index:99;position:-webkit-sticky;position:sticky;overflow-y:hidden!important}.table-preview-content-Pn5Efi .semi-table-colgroup .semi-table-col{min-width:200px}.table-preview-content-Pn5Efi .semi-table-tbody>.semi-table-row>.semi-table-row-cell{min-height:40px;padding:9px 16px!important}.table-preview-content-Pn5Efi .semi-table-tbody .semi-table-row:hover>.semi-table-row-cell{border-bottom:1px solid var(--coz-stroke-primary);background-color:transparent!important;background-image:none!important}.td-title-jJaSXe{align-items:center;display:flex}",""]),s.locals={"table-preview":"table-preview-RdOhnY",tablePreview:"table-preview-RdOhnY","table-preview-title":"table-preview-title-j9ZsaQ",tablePreviewTitle:"table-preview-title-j9ZsaQ","semantic-tag":"semantic-tag-v5UgTT",semanticTag:"semantic-tag-v5UgTT","column-type":"column-type-fL_9tS",columnType:"column-type-fL_9tS","preview-tips":"preview-tips-tVs0lE",previewTips:"preview-tips-tVs0lE","no-result":"no-result-auNDcw",noResult:"no-result-auNDcw","no-result-tips":"no-result-tips-lC6ADQ",noResultTips:"no-result-tips-lC6ADQ","table-preview-content":"table-preview-content-Pn5Efi",tablePreviewContent:"table-preview-content-Pn5Efi","td-title":"td-title-jJaSXe",tdTitle:"td-title-jJaSXe"},t.Z=s},903687:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".table-setting-bar-a5JPpu{width:100%;margin-bottom:30px}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field{flex:1}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field .semi-select{border-radius:8px;width:100%}.table-setting-bar-a5JPpu .semi-form-field-label-text{color:var(--coz-fg-plus);font-size:14px;font-style:normal;font-weight:500;line-height:24px}.table-setting-bar-a5JPpu .semi-form-field-label{align-items:center;height:24px;margin-bottom:4px;display:flex}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field:last-child{margin-right:0;padding-right:0}",""]),s.locals={"table-setting-bar":"table-setting-bar-a5JPpu",tableSettingBar:"table-setting-bar-a5JPpu"},t.Z=s},264622:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".table-structure-wrapper-UotMHC{flex:1;height:100%;overflow:hidden}.structure-wrapper-ALSVya{flex-direction:column;display:flex;overflow:hidden}.drag-table-wWjfw6 .semi-table-container .semi-table-tbody .semi-table-row .semi-table-row-cell:first-child{padding-left:16px!important}.table-structure-XrsiMG{border-radius:8px;overflow:hidden;margin-top:4px!important}.table-structure-XrsiMG .semi-spin{height:100%}.table-structure-XrsiMG .semi-spin-children{height:100%}.table-structure-XrsiMG .semi-table-fixed-header{height:100%}.table-structure-XrsiMG .semi-table-container{height:100%}.table-structure-required-container-UyIP6_{align-items:center;display:flex}.table-structure-col-required-Z1g12T{color:var(--coz-fg-hglt-red);text-overflow:ellipsis;margin-top:4px;font-size:12px;font-style:normal;font-weight:600;line-height:16px}.table-structure-XrsiMG .input-suffix-y7iErZ{margin-right:5px;font-size:12px;display:inline-block}.table-structure-XrsiMG .input-error-msg-d1JQO6{z-index:100;color:var(--coz-fg-hglt-red);margin-top:4px;margin-bottom:-20px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;position:relative}.table-structure-XrsiMG .semantic-radio-TDSa9p{align-items:center;height:100%;padding-left:2px;display:flex;position:relative}.table-structure-XrsiMG .column-item-action-j7uaYU{align-items:center;height:100%;padding-top:3px;padding-left:7px;display:flex}.table-structure-XrsiMG .column-item-action-delete-fypzZy{cursor:pointer;font-size:14px}.table-structure-XrsiMG .column-item-Qnr35T{flex-direction:column;height:100%;display:flex}.table-structure-XrsiMG .column-item-value-ZKkacM{color:var(--coz-fg-secondary);text-overflow:ellipsis;font-size:14px;line-height:32px}.table-structure-XrsiMG .structure-table-drag-icon{opacity:0;position:absolute;left:-16px}.table-structure-XrsiMG .semi-table-row:hover .structure-table-drag-icon{opacity:1}.table-structure-XrsiMG .semi-table-row:focus .structure-table-drag-icon{opacity:1}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head{color:var(--coz-fg-secondary)!important;font-size:12px!important}.table-structure-XrsiMG .semi-table-container .semi-table-body{padding-bottom:12px;height:calc(100% - 39px)!important}.table-structure-XrsiMG .select-error-text{padding-top:0!important}.table-structure-XrsiMG .singleline-select-error-content{height:0}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head:first-child{padding-left:8px}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody>.semi-table-row{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left{background-color:transparent!important}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody{padding:5px 0}.table-structure-XrsiMG .semi-table-tbody .semi-table-row .semi-table-row-cell{border-bottom:0;height:56px!important;padding:12px 8px!important}.table-structure-XrsiMG .semi-table-tbody .semi-table-row .semi-table-row-cell:first-child{border-radius:0!important;padding-left:8px!important;padding-right:28px!important}.table-structure-XrsiMG .semi-table-tbody .semi-table-row:hover{cursor:auto;background:var(--coz-mg-secondary-hovered)}.table-structure-XrsiMG .semi-table-tbody .semi-table-row:hover>.semi-table-row-cell{background:0 0!important;border-bottom:0!important}.table-header-tooltip-Yh0j21{align-items:center;display:flex}.table-structure-bar-title-Naiqz6{height:32px;color:var(--coz-fg-plus);align-items:center;font-size:14px;font-style:normal;font-weight:600;display:flex}.table-structure-bar-title-Naiqz6 .icon-KXcibB{margin-top:3px;margin-left:4px}",""]),s.locals={"table-structure-wrapper":"table-structure-wrapper-UotMHC",tableStructureWrapper:"table-structure-wrapper-UotMHC","structure-wrapper":"structure-wrapper-ALSVya",structureWrapper:"structure-wrapper-ALSVya","drag-table":"drag-table-wWjfw6",dragTable:"drag-table-wWjfw6","table-structure":"table-structure-XrsiMG",tableStructure:"table-structure-XrsiMG","table-structure-required-container":"table-structure-required-container-UyIP6_",tableStructureRequiredContainer:"table-structure-required-container-UyIP6_","table-structure-col-required":"table-structure-col-required-Z1g12T",tableStructureColRequired:"table-structure-col-required-Z1g12T","input-suffix":"input-suffix-y7iErZ",inputSuffix:"input-suffix-y7iErZ","input-error-msg":"input-error-msg-d1JQO6",inputErrorMsg:"input-error-msg-d1JQO6","semantic-radio":"semantic-radio-TDSa9p",semanticRadio:"semantic-radio-TDSa9p","column-item-action":"column-item-action-j7uaYU",columnItemAction:"column-item-action-j7uaYU","column-item-action-delete":"column-item-action-delete-fypzZy",columnItemActionDelete:"column-item-action-delete-fypzZy","column-item":"column-item-Qnr35T",columnItem:"column-item-Qnr35T","column-item-value":"column-item-value-ZKkacM",columnItemValue:"column-item-value-ZKkacM","table-header-tooltip":"table-header-tooltip-Yh0j21",tableHeaderTooltip:"table-header-tooltip-Yh0j21","table-structure-bar-title":"table-structure-bar-title-Naiqz6",tableStructureBarTitle:"table-structure-bar-title-Naiqz6",icon:"icon-KXcibB"},t.Z=s},238205:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".upload-si61kX{width:100%}.upload-si61kX .semi-upload-drag-area{background-color:var(--coz-mg-card);border-radius:8px;height:202px}.upload-si61kX .semi-upload-drag-area:hover{border-radius:var(--default,8px)}.upload-si61kX .semi-upload-drag-area.semi-upload-drag-area-legal{border-radius:var(--default,8px)}.upload-si61kX .semi-upload-drag-area-sub-text{color:var(--coz-fg-dim)}.upload-si61kX .semi-button-with-icon-only{border-radius:4px}.upload-si61kX .semi-upload-file-list{display:none}.upload-icon-iaQIvU{width:32px;height:32px}.create-enough-file-gKQjYO{cursor:not-allowed;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.create-enough-file-gKQjYO .picture-rutWZA{width:122px;height:122px;margin-bottom:14px}.create-enough-file-gKQjYO .text-fu7IXG{color:rgba(28,31,35,.6);font-size:12px;line-height:16px}",""]),s.locals={upload:"upload-si61kX","upload-icon":"upload-icon-iaQIvU",uploadIcon:"upload-icon-iaQIvU","create-enough-file":"create-enough-file-gKQjYO",createEnoughFile:"create-enough-file-gKQjYO",picture:"picture-rutWZA",text:"text-fu7IXG"},t.Z=s},112425:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".database-model-content-tIj0m7 .semi-form-field{padding-top:0;padding-bottom:16px}.database-model-content-tIj0m7 .semi-input-wrapper{background-color:rgba(var(--coze-bg-2),var(--coze-bg-2-alpha))}.database-model-content-tIj0m7 .semi-input-textarea-wrapper{background-color:rgba(var(--coze-bg-2),var(--coze-bg-2-alpha))}",""]),s.locals={"database-model-content":"database-model-content-tIj0m7",databaseModelContent:"database-model-content-tIj0m7"},t.Z=s},191552:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".modal-key-tip-FNDXx_{width:200px!important}.modal-key-tip-FNDXx_ ul{padding-left:16px}",""]),s.locals={"modal-key-tip":"modal-key-tip-FNDXx_",modalKeyTip:"modal-key-tip-FNDXx_"},t.Z=s},694898:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.th-tip-name-rGuPdC{flex-direction:column;display:flex}.th-tip-dot-igOI00{padding-left:16px;position:relative}.th-tip-dot-igOI00:before{content:"";background-color:#000;border-radius:50%;width:5px;height:5px;position:absolute;top:7px;left:0}.form-input-error-Xsj4gN .semi-input-wrapper{border-color:#f93920}.form-input-error-Xsj4gN .semi-input-wrapper:hover{border-color:var(--semi-color-border,rgba(29,28,35,.08))}.table-structure-form-Ezs2aX{padding-bottom:4px}.table-structure-form-Ezs2aX .semi-form-field-validate-status-icon{display:none}.table-structure-form-Ezs2aX .semi-form-field-validate-status-icon+span{font-size:12px}.table-structure-form-Ezs2aX .semi-col-12 .semi-form-field[x-field-id=prompt_disabled]{justify-content:flex-end;display:flex}.table-structure-form-Ezs2aX .semi-col-12 .semi-form-field[x-field-id=prompt_disabled] .semi-form-field-main{align-items:center;display:flex;width:auto!important}.table-structure-form-Ezs2aX .semi-switch-checked{background-color:rgba(var(--coze-brand-5),1)!important}.table-structure-form-Ezs2aX .semi-switch-checked:hover{background-color:rgba(var(--coze-brand-6),1)!important}.max-row-banner-yDr9Ob{margin-bottom:24px}.form-item-label-tooltip-icon-dPXGBa{cursor:pointer;color:#c6cacd}.table-setting-select-a_BIxX .semi-select:hover{border:1px solid var(--semi-color-border)!important}.table-structure-table-sBwJzN .semi-table-container{border:1px solid var(--Light-usage-border---color-border-1,rgba(29,28,35,.08));border-radius:8px;padding:0 8px}.table-structure-table-sBwJzN .semi-table-header .semi-table-row-head{padding-left:8px;padding-right:8px;background:0 0!important}.table-structure-table-sBwJzN .semi-table-body .semi-table-row{background:0 0!important}.table-structure-table-sBwJzN .semi-table-body .semi-table-row:hover>.semi-table-row-cell{background:0 0!important}.table-structure-table-sBwJzN .semi-table-row{cursor:default!important}.table-structure-table-sBwJzN .semi-table-row>.semi-table-row-cell{padding-left:0;border-bottom:1px solid transparent!important;padding:12px 8px!important}.table-structure-table-sBwJzN .semi-table-body{border-radius:8px;padding:12px 0;overflow:visible;max-height:none!important}.table-structure-table-sBwJzN .semi-table-row-cell:before{display:none}.table-structure-table-sBwJzN .semi-input-wrapper-disabled{background:0 0;border:none}.table-structure-table-sBwJzN .semi-input-wrapper-disabled .semi-input-disabled{color:var(--coz-fg-primary);-webkit-text-fill-color:var(--coz-fg-primary);padding:0;font-weight:500}.table-structure-table-sBwJzN .semi-input-wrapper-disabled .semi-input-suffix{display:none}.table-structure-table-sBwJzN .semi-select-disabled{cursor:default;opacity:1;background:0 0;border:none}.table-structure-table-sBwJzN .semi-select-disabled:hover{background-color:transparent!important}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-selection{cursor:default;margin:0}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-selection .semi-select-selection-text{color:var(--coz-fg-primary);font-weight:500}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-arrow{display:none}.table-structure-table-wrapper-YvUCp5{height:auto}.table-empty-tips-pB0Q_1{color:#f93920;padding:8px;font-size:12px;font-weight:400;line-height:16px}.spin-DHi3Xg .semi-spin-wrapper div{color:rgba(29,28,35,.35);font-size:16px}.table-setting-option-EKwfVk .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.table-name-form-field-qjON33{padding-bottom:24px!important}.table-name-form-field-qjON33 .semi-input-wrapper-disabled{-webkit-text-fill-color:#1d1c23}.table-desc-form-field-YxaaDH{padding-top:0!important}.prompt_disabled_popover-liVpSD .semi-popover-icon-arrow{right:8px!important}.read_mode_popover-RmV2WL .semi-popover-icon-arrow{left:8px!important}.hidden-form-border-AcU3Ef .semi-table-container{border:none;border-radius:0;padding:0}',""]),s.locals={"th-tip-name":"th-tip-name-rGuPdC",thTipName:"th-tip-name-rGuPdC","th-tip-dot":"th-tip-dot-igOI00",thTipDot:"th-tip-dot-igOI00","form-input-error":"form-input-error-Xsj4gN",formInputError:"form-input-error-Xsj4gN","table-structure-form":"table-structure-form-Ezs2aX",tableStructureForm:"table-structure-form-Ezs2aX","max-row-banner":"max-row-banner-yDr9Ob",maxRowBanner:"max-row-banner-yDr9Ob","form-item-label-tooltip-icon":"form-item-label-tooltip-icon-dPXGBa",formItemLabelTooltipIcon:"form-item-label-tooltip-icon-dPXGBa","table-setting-select":"table-setting-select-a_BIxX",tableSettingSelect:"table-setting-select-a_BIxX","table-structure-table":"table-structure-table-sBwJzN",tableStructureTable:"table-structure-table-sBwJzN","table-structure-table-wrapper":"table-structure-table-wrapper-YvUCp5",tableStructureTableWrapper:"table-structure-table-wrapper-YvUCp5","table-empty-tips":"table-empty-tips-pB0Q_1",tableEmptyTips:"table-empty-tips-pB0Q_1",spin:"spin-DHi3Xg","table-setting-option":"table-setting-option-EKwfVk",tableSettingOption:"table-setting-option-EKwfVk","table-name-form-field":"table-name-form-field-qjON33",tableNameFormField:"table-name-form-field-qjON33","table-desc-form-field":"table-desc-form-field-YxaaDH",tableDescFormField:"table-desc-form-field-YxaaDH",prompt_disabled_popover:"prompt_disabled_popover-liVpSD",promptDisabledPopover:"prompt_disabled_popover-liVpSD",read_mode_popover:"read_mode_popover-RmV2WL",readModePopover:"read_mode_popover-RmV2WL","hidden-form-border":"hidden-form-border-AcU3Ef",hiddenFormBorder:"hidden-form-border-AcU3Ef"},t.Z=s},408582:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".input-wrapper-FtUpxy{width:100%;position:relative}.input-wrapper-FtUpxy span{width:100%}.error-wrapper-amWL8g .semi-input-wrapper{border:1px solid #f93920}.error-content-OcbxcM{height:20px}.error-float-v53a7a{white-space:nowrap;width:100%;position:absolute}.error-text-W3xpef{color:#f93920;padding-top:2px;font-size:12px;position:absolute}.input-EP2aeu input{text-overflow:ellipsis;overflow:hidden}.limit-count-xXMxxt{color:var(--light-usage-text-color-text-3,rgba(28,31,35,.35));padding-left:8px;padding-right:12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;overflow:hidden}",""]),s.locals={"input-wrapper":"input-wrapper-FtUpxy",inputWrapper:"input-wrapper-FtUpxy","error-wrapper":"error-wrapper-amWL8g",errorWrapper:"error-wrapper-amWL8g","error-content":"error-content-OcbxcM",errorContent:"error-content-OcbxcM","error-float":"error-float-v53a7a",errorFloat:"error-float-v53a7a","error-text":"error-text-W3xpef",errorText:"error-text-W3xpef",input:"input-EP2aeu","limit-count":"limit-count-xXMxxt",limitCount:"limit-count-xXMxxt"},t.Z=s},53785:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".select-wrapper-cbYwaD{width:100%}.select-wrapper-cbYwaD .semi-select-disabled .semi-select-arrow{color:rgba(29,28,35,.6)}.select-wrapper-cbYwaD span{width:100%}.error-wrapper-_ZgJx2 .semi-select{border:1px solid #f93920}.error-content-TD7d74{height:20px}.error-float-lSPXTk{width:100%;position:absolute}.error-text-bm_wVC{color:#f93920;padding-top:2px;font-size:12px;position:absolute}.selected-option-FTHMPv .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}",""]),s.locals={"select-wrapper":"select-wrapper-cbYwaD",selectWrapper:"select-wrapper-cbYwaD","error-wrapper":"error-wrapper-_ZgJx2",errorWrapper:"error-wrapper-_ZgJx2","error-content":"error-content-TD7d74",errorContent:"error-content-TD7d74","error-float":"error-float-lSPXTk",errorFloat:"error-float-lSPXTk","error-text":"error-text-bm_wVC",errorText:"error-text-bm_wVC","selected-option":"selected-option-FTHMPv",selectedOption:"selected-option-FTHMPv"},t.Z=s},686203:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.tab-QaYwt3{flex-direction:column;height:100%;display:flex;overflow:hidden}.tab-QaYwt3 .semi-tabs-bar{min-height:56px}.tab-QaYwt3 .semi-tabs-bar-extra{flex-direction:row;justify-content:end;align-items:center;width:100%;padding:0;display:flex}.tab-QaYwt3 .semi-tabs-content{flex-grow:1;padding:0;overflow:auto}.tab-QaYwt3 .semi-tabs-content .coz-tab-bar-content.semi-tabs-pane-active{height:100%}.tab-QaYwt3 .semi-tabs-content .coz-tab-bar-content.semi-tabs-pane-active .semi-tabs-pane-motion-overlay{flex-direction:column;height:100%;display:flex;overflow:hidden}.th-tip-dot-RPuwkq{padding-left:16px;position:relative}.th-tip-dot-RPuwkq:before{content:"";background-color:#000;border-radius:50%;width:5px;height:5px;position:absolute;top:7px;left:0}',""]),s.locals={tab:"tab-QaYwt3","th-tip-dot":"th-tip-dot-RPuwkq",thTipDot:"th-tip-dot-RPuwkq"},t.Z=s},116954:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".table-B81I4V{flex-grow:1;position:relative;overflow:hidden}.table-B81I4V .table-wrapper-euQcfX .semi-table-wrapper{line-height:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:2px 2px 3px rgba(0,0,0,.08)}.table-B81I4V .table-wrapper-euQcfX .semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:-2px 2px 3px rgba(0,0,0,.08)}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody>.semi-table-row{cursor:default}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head:last-child{text-align:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody>.semi-table-row>.semi-table-row-cell:last-child{text-align:unset}.table-B81I4V .table-wrapper-euQcfX .coz-table-list .semi-table-fixed-header table{height:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head{height:28px;padding-bottom:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead .semi-table-row .react-resizable-handle{background:0 0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:-webkit-any(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:-moz-any(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:is(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.resizing{border-right-color:var(--coz-stroke-hglt);border-right-width:1px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-row-cell{height:56px}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-row-cell.resizing{border-right-color:var(--coz-stroke-hglt)}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-cell-fixed-left-last{border-right:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-cell-fixed-right-first{border-left:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row:not(:hover)>.semi-table-row-cell.semi-table-cell-fixed-left{border-top-left-radius:0;border-bottom-left-radius:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row:not(:hover)>.semi-table-row-cell.semi-table-cell-fixed-right{border-top-right-radius:0;border-bottom-right-radius:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-pagination-outer{height:48px;min-height:unset}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right:before{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-tbody>.semi-table-row:not(:hover)>.semi-table-row-cell{background-color:var(--coz-bg-max)}",""]),s.locals={table:"table-B81I4V","table-wrapper":"table-wrapper-euQcfX",tableWrapper:"table-wrapper-euQcfX","table-wrapper-project":"table-wrapper-project-j7aSPD",tableWrapperProject:"table-wrapper-project-j7aSPD"},t.Z=s},528857:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".table-structure-wrapper-SZG90C{height:100%;overflow:auto}.table-structure-wrapper-SZG90C .coz-table-spin{text-align:center}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-head{padding:6px 8px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-cell{padding:6px 8px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-head{border-bottom-width:1px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-cell{background:0 0;border-bottom:0;height:56px;font-weight:500}",""]),s.locals={"table-structure-wrapper":"table-structure-wrapper-SZG90C",tableStructureWrapper:"table-structure-wrapper-SZG90C"},t.Z=s},898720:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".select-J3wJj4 .semi-select:hover{background-color:transparent!important}.select-J3wJj4 .semi-select:active{background-color:transparent!important}.select-J3wJj4 .semi-select-focus{border:none;outline:none}.select-J3wJj4 .semi-select-open{border:none;outline:none}.select-J3wJj4 .semi-select-selection .semi-select-selection-text{font-weight:600!important}.bottom-shadow-HVs9Pw{background:linear-gradient(rgba(249,249,249,0) 0%,#f9f9f9 100%)}.label-r_G6Mo{color:var(--Fg-COZ-fg-secondary,rgba(6,7,9,.5));font-size:14px;font-style:normal;font-weight:600;line-height:20px}.tips-wrapper-J2KNMp{border-radius:12px}.tip-title-UTyceA{color:var(--Fg-COZ-fg-plus,#fff);margin-bottom:10px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.tip-desc-WKkdq3{color:rgba(255,255,255,.39);margin:8px 0;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.bot-bg-IA2Zm4{background:var(--Mg-COZ-mg-primary,rgba(255,255,255,.06));border-radius:var(--default,8px);flex-direction:column;align-self:stretch;align-items:flex-start;gap:12px;padding:16px 12px;display:flex}.bot-item-WK4deo{justify-content:start;align-items:center;display:flex}.bot-img-hio3vT{color:#fff;border-radius:50%;justify-content:center;align-items:center;margin-right:8px;padding:8px;font-family:SF Pro Display;font-size:8px;font-style:normal;font-weight:500;line-height:7.254px;display:flex;width:24px!important;height:24px!important}.bot-img-hio3vT.img-user-G54LO4{background-color:var(--Fg-COZ-fg-color-blue,#0084ff)}.bot-img-hio3vT.img-bot-pYNKcX{background-color:var(--Fg-COZ-fg-color-cyan,#00b9b5)}.bot-content-DmAgbZ{width:100%;color:var(--Fg-COZ-fg-primary,rgba(255,255,255,.79));border-radius:var(--default,8px);padding:8px 12px;font-size:10px;font-style:normal;font-weight:400;line-height:14px}.bot-content-DmAgbZ.content-user-Y7_iZU{background:var(--Mg-COZ-mg-hglt-plus-dim,rgba(94,94,255,.37))}.bot-content-DmAgbZ.content-bot-IU9zOP{background:var(--Mg-COZ-mg-plus,rgba(255,255,255,.09))}.loading-more-W2dMLl,.no-more-K9TKcE{width:100%;color:var(--light-usage-text-color-text-2,var(--light-usage-text-color-text-2,rgba(28,31,35,.6)));grid-column:1/-1;justify-content:center;align-items:center;padding:13px 0;font-size:14px;font-weight:400;line-height:20px;display:flex;position:relative}.database-add-v00ROE{min-width:48px;min-height:30px;max-height:30px;font-size:12px;font-style:normal;font-weight:500;line-height:16.5px;color:var(--coz-fg-primary)!important;background-color:var(--coz-mg-primary)!important}.database-added-YR1yAA{min-width:48px;min-height:30px;max-height:30px;font-size:12px;font-style:normal;font-weight:500;line-height:16.5px;color:var(--coz-fg-dim)!important;background-color:var(--coz-mg-primary)!important}.database-added-YR1yAA.added-mousein-pawLIZ{color:var(--light-color-red-red-5,#ff441e)!important}.list-eNYUi9 .semi-spin-children{height:100%}",""]),s.locals={select:"select-J3wJj4","bottom-shadow":"bottom-shadow-HVs9Pw",bottomShadow:"bottom-shadow-HVs9Pw",label:"label-r_G6Mo","tips-wrapper":"tips-wrapper-J2KNMp",tipsWrapper:"tips-wrapper-J2KNMp","tip-title":"tip-title-UTyceA",tipTitle:"tip-title-UTyceA","tip-desc":"tip-desc-WKkdq3",tipDesc:"tip-desc-WKkdq3","bot-bg":"bot-bg-IA2Zm4",botBg:"bot-bg-IA2Zm4","bot-item":"bot-item-WK4deo",botItem:"bot-item-WK4deo","bot-img":"bot-img-hio3vT",botImg:"bot-img-hio3vT","img-user":"img-user-G54LO4",imgUser:"img-user-G54LO4","img-bot":"img-bot-pYNKcX",imgBot:"img-bot-pYNKcX","bot-content":"bot-content-DmAgbZ",botContent:"bot-content-DmAgbZ","content-user":"content-user-Y7_iZU",contentUser:"content-user-Y7_iZU","content-bot":"content-bot-IU9zOP",contentBot:"content-bot-IU9zOP","loading-more":"loading-more-W2dMLl",loadingMore:"loading-more-W2dMLl","no-more":"no-more-K9TKcE",noMore:"no-more-K9TKcE","database-add":"database-add-v00ROE",databaseAdd:"database-add-v00ROE","database-added":"database-added-YR1yAA",databaseAdded:"database-added-YR1yAA","added-mousein":"added-mousein-pawLIZ",addedMousein:"added-mousein-pawLIZ",list:"list-eNYUi9"},t.Z=s},790822:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,'.text-YVQdLo{font-size:14px;font-style:normal;font-weight:400;line-height:16px}.plugin-item-FtQgO6{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);height:98px;margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-FtQgO6:not(:last-child){border-bottom:1px solid rgba(28,31,35,.08);position:relative}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG{flex:1}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-name-CF7KxS{width:100%}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-name-CF7KxS .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:#1c1d23!important}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .semi-typography{font-size:12px;line-height:16px;color:rgba(28,31,35,.6)!important}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql{align-items:center;margin-top:12px;display:flex}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c{max-width:500px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c .tag-item-ndsbDs{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;color:rgba(28,29,35,.6);border-radius:6px;min-width:fit-content;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c>:not(:first-child){margin-left:16px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-desc-GqVF5c{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-FtQgO6 .plugin-api-method-Ejjj7F{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.between-OicXaK{justify-content:space-between;align-items:center;width:100%;display:flex}.tools-content-lLWgtr{padding:0 20px 24px}.tools-content-lLWgtr .tools-table-thead-t125FM{padding-bottom:6px}.tools-content-lLWgtr .tools-table-thead-t125FM th{padding:6px 0 8px}.api-table-hluBHA{table-layout:fixed;border-collapse:collapse;color:rgba(28,31,35,.6);word-wrap:break-word;width:100%;height:32px;font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA thead th{color:#888d92;text-align:left;font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA .api-row-E8ZNSI.border-top-WQ0Szt{position:relative}.api-table-hluBHA .api-row-E8ZNSI.border-top-WQ0Szt td{margin-top:4px}.api-table-hluBHA .api-row-E8ZNSI:last-child{border-bottom:1px solid #f9f9f9}.api-table-hluBHA .api-row-E8ZNSI td{padding-bottom:4px;overflow:hidden}.api-table-hluBHA .api-row-name-ymtiyz{vertical-align:middle}.api-table-hluBHA .api-row-E8ZNSI .semi-tag-grey-light{background:#fff;border-radius:6px;height:20px}.api-table-hluBHA .api-row-E8ZNSI .semi-tag-content{justify-content:space-between;align-items:center}.api-table-hluBHA .api-plugin-TlvgG3{align-items:center;height:24px;padding-right:10px;display:flex}.api-table-hluBHA .api-plugin-image-k3p1lx{flex-shrink:0;margin-right:8px;display:flex}.api-table-hluBHA .api-plugin-image-k3p1lx>img{width:16px;height:16px}.api-table-hluBHA .api-plugin-TlvgG3 .semi-image-status{background-color:rgba(255,255,255,0)!important}.api-table-hluBHA .api-plugin-name-TOa5Gt{color:rgba(28,29,35,.8);font-size:12px;font-weight:400;line-height:22px}.api-table-hluBHA .api-method-mHol6d{text-align:center;justify-content:space-between;width:100%;height:100%}.api-table-hluBHA .api-method-mHol6d span{color:rgba(28,31,35,.35)}.api-table-hluBHA .api-method-mHol6d .icon-config-BO8NfO{cursor:pointer;color:#6b6d75}.api-table-hluBHA .api-method-read-ajJdR6{justify-content:flex-end}.api-table-hluBHA .api-name-hptG2r{align-items:center;padding:2px 10px 2px 0;display:flex}.api-table-hluBHA .api-name-text-ulwKOO{color:rgba(29,28,35,.8);font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA .api-name-hptG2r .semi-tag-grey-light{background:#fff!important}.api-table-hluBHA .api-name-hptG2r .api-divider-r6t7cF{border-color:#b3c4ff;height:12px}.api-table-hluBHA .api-name-hptG2r .copy-d5LaZv{cursor:copy}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB:hover{background-color:var(--semi-color-fill-0)}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB{cursor:pointer;border-radius:4px;padding:2px}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB>svg{width:14px;height:14px}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB>svg>path{fill:#6b6d75}.api-table-hluBHA .api-name-publish-mY1IG6{flex-shrink:0;margin-left:4px}.popover-content-eN0b7h{box-sizing:border-box;max-width:264px}.popover-api-name-eEHe9C{color:#1c1f23;word-wrap:break-word;font-size:14px;font-weight:700;line-height:20px}.popover-api-desc-VPSjG6{color:rgba(28,31,35,.6);word-wrap:break-word;padding:4px 0;font-size:12px;line-height:16px}.plugin-panel-header-p2im2x{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-p2im2x .creator-icon-DYRZRC{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-p2im2x .creator-icon-DYRZRC img{width:14px;height:14px}.plugin-panel-header-p2im2x .creator-time-S71Z5P{color:rgba(28,29,35,.35);text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-p2im2x .header-icon-yuYCvy{flex-shrink:0;margin-right:16px;display:flex}.plugin-panel-header-p2im2x .header-icon-yuYCvy img{background:#fff;width:36px;height:36px}.plugin-panel-header-p2im2x .header-main-UvLafw{flex:1;width:0;min-width:0;margin-right:16px;overflow:hidden}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA{width:100%}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:#1c1d23!important;word-wrap:break-word!important}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-p2im2x .header-main-UvLafw .header-desc-pB91wu{width:100%}.plugin-panel-header-p2im2x .header-main-UvLafw .header-desc-pB91wu .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:rgba(28,29,35,.8)!important;word-wrap:break-word!important}.plugin-panel-header-p2im2x .header-info-UrNsPT{color:rgba(28,29,35,.35);text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-p2im2x .header-info-UrNsPT .semi-divider-vertical{color:rgba(28,29,35,.12);height:10px}.plugin-panel-header-p2im2x .header-tags-n3yJ7f{margin:6px 0}.plugin-panel-header-p2im2x .header-tag-a3XTeu{border-radius:6px;letter-spacing:.12px!important}.plugin-panel-header-p2im2x .header-tag-a3XTeu:last-child{margin-right:0}.plugin-modal-header-He96SF{color:#1c1f23;justify-content:space-between;align-items:center;padding-right:24px;font-size:18px;font-weight:600;line-height:24px;display:flex}.plugin-modal-header-title-L67YVa{background:#ebedf0;width:218px;padding:24px;line-height:16px}.plugin-modal-filter-rfbtT3{gap:12px;display:flex}.composition-modal-layout-YVhTFa{background:#ebedf0}.plugin-modal-K2Y4QI{height:100%}.plugin-modal-K2Y4QI .iconSearch-sV6m7_{margin-left:16px;margin-right:8px}.plugin-modal-K2Y4QI .iconSearch-sV6m7_>svg{width:16px;height:16px}.plugin-modal-K2Y4QI .iconSearch-sV6m7_>svg>path{fill:rgba(28,29,35,.35)}.plugin-modal-K2Y4QI .tool-tag-list-xvDQDS{white-space:nowrap;flex:1 0;padding-top:16px;overflow:auto}.plugin-modal-K2Y4QI .tool-tag-list-label-jMUs2c{color:rgba(28,29,35,.35);height:40px;margin-bottom:8px;padding:0 12px;font-size:12px;font-weight:600;line-height:40px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs{cursor:pointer;color:#1d1c23;border-radius:3px;align-items:center;height:44px;margin-bottom:4px;padding:0 10px 0 12px;font-size:14px;line-height:44px;display:flex;position:relative}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY{flex-shrink:0;margin-right:8px;display:flex}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>svg{width:24px;height:24px}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>svg>path{fill:#1d1c23}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>img{width:24px;height:24px;padding:4px}.plugin-modal-K2Y4QI .tool-tag-list-cell-divider-RBPaG4{background:rgba(28,29,35,.12);width:calc(100% - 24px);margin:12px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs:hover{color:#1c1f23;background:rgba(46,50,56,.05);border-radius:8px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X{color:var(--light-usage-text-color-text-0,#1c1d23);background:rgba(46,47,56,.05);border-radius:8px;font-size:14px;font-weight:600}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X .tool-tag-list-cell-icon-DjoxQY>svg{width:24px;height:24px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X .tool-tag-list-cell-icon-DjoxQY>svg>path{fill:#4d53e8}.plugin-modal-K2Y4QI .addbtn-gz_ZWw{margin-top:24px}.plugin-modal-K2Y4QI .plugin-filter-TX9V52{background:#ebedf0;flex-direction:column;flex-shrink:0;width:218px;display:flex}.plugin-modal-K2Y4QI .tool-content-area-YZYent{height:100%;overflow-y:auto}.plugin-modal-K2Y4QI .plugin-modal-filter-rfbtT3{display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-modal-K2Y4QI .plugin-content-COnww1 .loading-more-mwlWFX{text-align:center}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY{padding:0 36px 0 22px;display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .plugin-content-sort-K2aNy3{width:150px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .bot-tag-txb6X4{align-items:center;display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-content{padding:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active{color:rgba(28,29,35,.8);background-color:transparent}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab:last-child:before{content:"";background-color:rgba(28,29,35,.12);width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-item{border:none;position:relative}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:hover{background:rgba(46,47,56,.05);border-bottom:1px solid transparent;border-radius:8px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:active{background:rgba(46,47,56,.05)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header-icon{width:auto;height:24px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header-icon:hover{background:rgba(46,47,56,.09);border-radius:5px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB{cursor:pointer;padding:4px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB>svg{width:16px;height:16px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB>svg>path{fill:rgba(28,29,35,.35)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io{background:rgba(46,47,56,.05);border:none;border-radius:8px;margin-bottom:8px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io .semi-collapse-header:hover{background:0 0}.plugin-modal-K2Y4QI .semi-modal-content{padding:0}.plugin-modal-K2Y4QI .semi-spin-children{height:100%}.plugin-content-COnww1 .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-collapse-hOqDWd .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-content-COnww1 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-hOqDWd .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-COnww1 .semi-collapse{padding:16px 0 12px}.plugin-collapse-hOqDWd .semi-collapse{padding:16px 0 12px}.plugin-content-COnww1 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-hOqDWd .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.parameter-item-RIaOdc{margin-top:12px;font-size:12px;line-height:16px}.parameter-item-RIaOdc .parameter-text-n_0r_d{color:#1c1f23;max-width:100%;margin-bottom:4px}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-name-BOCrW3{word-wrap:break-word;font-weight:700}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-type-aATcZN{color:rgba(28,31,35,.8)}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-required-otLMcT{color:#fc8800}.parameter-item-RIaOdc .parameter-desc-SyEdcg{color:rgba(28,31,35,.6);word-wrap:break-word}.apis-add-icon-Q27Tro>svg{width:14px;height:14px}.apis-add-icon-Q27Tro>svg>path{fill:#3370ff}.default-text-UgMy7q{color:rgba(28,29,35,.6);font-size:14px;font-style:normal;font-weight:400;line-height:16px}.operator-btn-UFfE6p{width:98px}.operator-btn-UFfE6p.added-W2NKyd{color:#b4baf6;background:#fff;border:1px solid #f0f0f5}.operator-btn-UFfE6p.addedMouseIn-DNkd5w{color:#ff441e;background:#fff;border:1px solid rgba(29,28,35,.12)}.tab-select-FogoTy{margin-right:10px}.hide-button-model-wrap-rbxZXb .ml20-a5CVs3{margin-left:20px}.hide-button-model-wrap-rbxZXb .h56-XKSu3A{height:56px}.hide-button-model-wrap-rbxZXb .search-input-oHTFuf{z-index:9;background:#fff;width:100%;position:absolute;top:20px}.plugin-func-collapse-_PsrNY .plugin-api-desc-u_tjUM{cursor:pointer;width:200px!important}',""]),s.locals={text:"text-YVQdLo","plugin-item":"plugin-item-FtQgO6",pluginItem:"plugin-item-FtQgO6","plugin-api-main":"plugin-api-main-bH1gpG",pluginApiMain:"plugin-api-main-bH1gpG","plugin-api-name":"plugin-api-name-CF7KxS",pluginApiName:"plugin-api-name-CF7KxS","plugin-api-desc":"plugin-api-desc-u_tjUM",pluginApiDesc:"plugin-api-desc-u_tjUM","api-params":"api-params-E6D3ql",apiParams:"api-params-E6D3ql","params-tags":"params-tags-miPz3c",paramsTags:"params-tags-miPz3c","tag-item":"tag-item-ndsbDs",tagItem:"tag-item-ndsbDs","params-desc":"params-desc-GqVF5c",paramsDesc:"params-desc-GqVF5c","plugin-api-method":"plugin-api-method-Ejjj7F",pluginApiMethod:"plugin-api-method-Ejjj7F",between:"between-OicXaK","tools-content":"tools-content-lLWgtr",toolsContent:"tools-content-lLWgtr","tools-table-thead":"tools-table-thead-t125FM",toolsTableThead:"tools-table-thead-t125FM","api-table":"api-table-hluBHA",apiTable:"api-table-hluBHA","api-row":"api-row-E8ZNSI",apiRow:"api-row-E8ZNSI","border-top":"border-top-WQ0Szt",borderTop:"border-top-WQ0Szt","api-row-name":"api-row-name-ymtiyz",apiRowName:"api-row-name-ymtiyz","api-plugin":"api-plugin-TlvgG3",apiPlugin:"api-plugin-TlvgG3","api-plugin-image":"api-plugin-image-k3p1lx",apiPluginImage:"api-plugin-image-k3p1lx","api-plugin-name":"api-plugin-name-TOa5Gt",apiPluginName:"api-plugin-name-TOa5Gt","api-method":"api-method-mHol6d",apiMethod:"api-method-mHol6d","icon-config":"icon-config-BO8NfO",iconConfig:"icon-config-BO8NfO","api-method-read":"api-method-read-ajJdR6",apiMethodRead:"api-method-read-ajJdR6","api-name":"api-name-hptG2r",apiName:"api-name-hptG2r","api-name-text":"api-name-text-ulwKOO",apiNameText:"api-name-text-ulwKOO","api-divider":"api-divider-r6t7cF",apiDivider:"api-divider-r6t7cF",copy:"copy-d5LaZv","icon-tips":"icon-tips-_00WCB",iconTips:"icon-tips-_00WCB","api-name-publish":"api-name-publish-mY1IG6",apiNamePublish:"api-name-publish-mY1IG6","popover-content":"popover-content-eN0b7h",popoverContent:"popover-content-eN0b7h","popover-api-name":"popover-api-name-eEHe9C",popoverApiName:"popover-api-name-eEHe9C","popover-api-desc":"popover-api-desc-VPSjG6",popoverApiDesc:"popover-api-desc-VPSjG6","plugin-panel-header":"plugin-panel-header-p2im2x",pluginPanelHeader:"plugin-panel-header-p2im2x","creator-icon":"creator-icon-DYRZRC",creatorIcon:"creator-icon-DYRZRC","creator-time":"creator-time-S71Z5P",creatorTime:"creator-time-S71Z5P","header-icon":"header-icon-yuYCvy",headerIcon:"header-icon-yuYCvy","header-main":"header-main-UvLafw",headerMain:"header-main-UvLafw","header-name":"header-name-zcG7WA",headerName:"header-name-zcG7WA","header-desc":"header-desc-pB91wu",headerDesc:"header-desc-pB91wu","header-info":"header-info-UrNsPT",headerInfo:"header-info-UrNsPT","header-tags":"header-tags-n3yJ7f",headerTags:"header-tags-n3yJ7f","header-tag":"header-tag-a3XTeu",headerTag:"header-tag-a3XTeu","plugin-modal-header":"plugin-modal-header-He96SF",pluginModalHeader:"plugin-modal-header-He96SF","plugin-modal-header-title":"plugin-modal-header-title-L67YVa",pluginModalHeaderTitle:"plugin-modal-header-title-L67YVa","plugin-modal-filter":"plugin-modal-filter-rfbtT3",pluginModalFilter:"plugin-modal-filter-rfbtT3","composition-modal-layout":"composition-modal-layout-YVhTFa",compositionModalLayout:"composition-modal-layout-YVhTFa","plugin-modal":"plugin-modal-K2Y4QI",pluginModal:"plugin-modal-K2Y4QI",iconSearch:"iconSearch-sV6m7_","tool-tag-list":"tool-tag-list-xvDQDS",toolTagList:"tool-tag-list-xvDQDS","tool-tag-list-label":"tool-tag-list-label-jMUs2c",toolTagListLabel:"tool-tag-list-label-jMUs2c","tool-tag-list-cell":"tool-tag-list-cell-lUktLs",toolTagListCell:"tool-tag-list-cell-lUktLs","tool-tag-list-cell-icon":"tool-tag-list-cell-icon-DjoxQY",toolTagListCellIcon:"tool-tag-list-cell-icon-DjoxQY","tool-tag-list-cell-divider":"tool-tag-list-cell-divider-RBPaG4",toolTagListCellDivider:"tool-tag-list-cell-divider-RBPaG4",active:"active-Zlqi8X",addbtn:"addbtn-gz_ZWw","plugin-filter":"plugin-filter-TX9V52",pluginFilter:"plugin-filter-TX9V52","tool-content-area":"tool-content-area-YZYent",toolContentArea:"tool-content-area-YZYent","plugin-content":"plugin-content-COnww1",pluginContent:"plugin-content-COnww1","loading-more":"loading-more-mwlWFX",loadingMore:"loading-more-mwlWFX","plugin-content-filter":"plugin-content-filter-oOEbZY",pluginContentFilter:"plugin-content-filter-oOEbZY","plugin-content-sort":"plugin-content-sort-K2aNy3",pluginContentSort:"plugin-content-sort-K2aNy3","bot-tag":"bot-tag-txb6X4",botTag:"bot-tag-txb6X4","plugin-collapse":"plugin-collapse-hOqDWd",pluginCollapse:"plugin-collapse-hOqDWd","collapse-icon":"collapse-icon-Yse2xB",collapseIcon:"collapse-icon-Yse2xB",activePanel:"activePanel-u7d1io","parameter-item":"parameter-item-RIaOdc",parameterItem:"parameter-item-RIaOdc","parameter-text":"parameter-text-n_0r_d",parameterText:"parameter-text-n_0r_d","parameter-name":"parameter-name-BOCrW3",parameterName:"parameter-name-BOCrW3","parameter-type":"parameter-type-aATcZN",parameterType:"parameter-type-aATcZN","parameter-required":"parameter-required-otLMcT",parameterRequired:"parameter-required-otLMcT","parameter-desc":"parameter-desc-SyEdcg",parameterDesc:"parameter-desc-SyEdcg","apis-add-icon":"apis-add-icon-Q27Tro",apisAddIcon:"apis-add-icon-Q27Tro","default-text":"default-text-UgMy7q",defaultText:"default-text-UgMy7q","operator-btn":"operator-btn-UFfE6p",operatorBtn:"operator-btn-UFfE6p",added:"added-W2NKyd",addedMouseIn:"addedMouseIn-DNkd5w","tab-select":"tab-select-FogoTy",tabSelect:"tab-select-FogoTy","hide-button-model-wrap":"hide-button-model-wrap-rbxZXb",hideButtonModelWrap:"hide-button-model-wrap-rbxZXb",ml20:"ml20-a5CVs3",h56:"h56-XKSu3A","search-input":"search-input-oHTFuf",searchInput:"search-input-oHTFuf","plugin-func-collapse":"plugin-func-collapse-_PsrNY",pluginFuncCollapse:"plugin-func-collapse-_PsrNY"},t.Z=s},552113:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".search-no-card-Y4hOkS{background:0 0;justify-content:center;width:100%;height:100%;display:flex}.search-no-card-Y4hOkS>div{display:flex;position:relative}.search-no-card-Y4hOkS>div svg{z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.search-no-card-Y4hOkS .bot-no-card-DHE_Md{width:280px;height:102px}.search-no-card-Y4hOkS .common-no-card-TS0Wf9{width:360px;height:248px}.search-no-card-Y4hOkS .widget-no-card-I_qPLz{width:280px;height:184px}.search-no-card-Y4hOkS .social-no-card-Yh2YYr,.search-no-card-Y4hOkS .recommend-no-card-LpKNou{width:576px;height:288px}.search-no-card-Y4hOkS .social-scene-flow-no-card-nOwKos{width:280px;height:102px}",""]),s.locals={"search-no-card":"search-no-card-Y4hOkS",searchNoCard:"search-no-card-Y4hOkS","bot-no-card":"bot-no-card-DHE_Md",botNoCard:"bot-no-card-DHE_Md","common-no-card":"common-no-card-TS0Wf9",commonNoCard:"common-no-card-TS0Wf9","widget-no-card":"widget-no-card-I_qPLz",widgetNoCard:"widget-no-card-I_qPLz","social-no-card":"social-no-card-Yh2YYr",socialNoCard:"social-no-card-Yh2YYr","recommend-no-card":"recommend-no-card-LpKNou",recommendNoCard:"recommend-no-card-LpKNou","social-scene-flow-no-card":"social-scene-flow-no-card-nOwKos",socialSceneFlowNoCard:"social-scene-flow-no-card-nOwKos"},t.Z=s},666462:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".search-no-result-eIqAAd{flex-direction:column;justify-content:center;align-items:center;height:100%;padding-bottom:5%;display:flex}.search-no-result-eIqAAd .search-no-wrapper-WYZq1l{width:576px;height:288px;display:flex;position:relative}.search-no-result-eIqAAd .search-no-tips-yd44F1{text-align:center;width:576px;min-height:60px;bottom:0;left:0}.search-no-result-eIqAAd .search-no-tips-yd44F1 .search-no-title-KXETSD{margin-top:40px;margin-bottom:8px;font-size:20px;font-style:normal;font-weight:500;line-height:28px}.search-no-result-eIqAAd .search-no-tips-yd44F1 .search-no-desc-vi1JOG{margin-bottom:24px;font-size:14px;font-style:normal;font-weight:400;line-height:20px}",""]),s.locals={"search-no-result":"search-no-result-eIqAAd",searchNoResult:"search-no-result-eIqAAd","search-no-wrapper":"search-no-wrapper-WYZq1l",searchNoWrapper:"search-no-wrapper-WYZq1l","search-no-tips":"search-no-tips-yd44F1",searchNoTips:"search-no-tips-yd44F1","search-no-title":"search-no-title-KXETSD",searchNoTitle:"search-no-title-KXETSD","search-no-desc":"search-no-desc-vi1JOG",searchNoDesc:"search-no-desc-vi1JOG"},t.Z=s},290028:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".search-no-mask-JxdrOS>svg{z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}",""]),s.locals={"search-no-mask":"search-no-mask-JxdrOS",searchNoMask:"search-no-mask-JxdrOS"},t.Z=s},542749:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".card-WWaG88{cursor:pointer;border-radius:8px;min-width:248px;height:172px;transition:box-shadow .4s;position:relative;background-color:#fff!important}.card-WWaG88:hover{box-shadow:0 4px 20px rgba(31,35,41,.04),0 4px 10px rgba(31,35,41,.04),0 2px 5px rgba(31,35,41,.04)}.card-favorite-not-publish-AfESBZ{cursor:not-allowed;background-color:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05))!important}.add-card-xOp1w2{background-color:#fff;border-radius:8px}.add-card-inner-lgEfib{flex-direction:column;justify-content:center;display:flex}.name-wrap-3LtU4M{align-items:center;width:100%;height:40px;padding:16px 16px 0;display:flex}.avatar-TraOkA{border-radius:50%px;flex-shrink:0;width:24px;height:24px}.name-VlEJfE{color:#000;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 156px);font-size:14px;font-weight:600;line-height:24px;position:absolute;top:16px;left:48px;overflow:hidden}.extra-_ZJc6g{margin-left:auto}.card-content-zVHGG2{flex-direction:column;height:calc(100% - 40px);padding:16px;display:flex}.description-yNsXzW{color:#494c4f;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.recent-modify-WxpK6V{color:rgba(28,31,35,.6);margin-top:8px;font-size:12px;line-height:16px}.creator-D0IKDF{width:-moz-fit-content;color:#346ef8;background:rgba(51,112,255,.1);width:fit-content;padding:4px;font-size:12px;line-height:16px;border:none!important;border-radius:3px!important}.upload-form-v53bGL{flex-direction:column;gap:16px;display:flex}.upload-form-v53bGL .upload-field-_H0EYS{padding-top:0}.upload-form-v53bGL .upload-field-_H0EYS .semi-form-field-help-text{justify-content:center}.upload-form-v53bGL .textarea-single-line-uvgoZH .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-v53bGL .textarea-multi-line-FNBYUS{margin-bottom:16px}.upload-form-v53bGL .textarea-multi-line-FNBYUS .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-v53bGL .footer-draft-eEXooH{color:var(--coz-fg-secondary);align-items:flex-start;padding-top:16px;font-size:12px;line-height:16px}.upload-form-v53bGL .footer-draft-eEXooH .link-HhAOLc{color:var(--coz-fg-hglt);font-weight:400}.upload-form-v53bGL .footer-draft-eEXooH .semi-icon{margin-top:2px}.upload-form-v53bGL .semi-form-field{padding:0}.upload-form-v53bGL input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-form-item-Emgg3K .semi-form-field-label-text{display:none}.collect-num-FOBat8{width:12px;height:12px;margin-right:4px}.collect-num-FOBat8 svg{width:12px;height:12px}.user-info-H0TT65{margin-top:auto}.extinfo-c0Y2mI{max-width:338px;font-size:12px}.extinfo-c0Y2mI .extinfo-title-M2K7EQ{font-weight:700}.extinfo-c0Y2mI .extinfo-text-lqFN78{color:rgba(28,31,35,.6)}.extinfo-c0Y2mI .extinfo-ex-sKRvhO{color:rgba(28,31,35,.6);border:1px solid rgba(28,31,35,.08);margin-top:4px;padding:6px 10px}.upload-avatar-u9p4bH{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-u7VT62 .semi-form-field-label-with-extra{padding-right:0}.header-list-u7VT62 .semi-form-field-label-extra{flex:1}.header-list-u7VT62 .header-list-extra-zndrVs{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-u7VT62 .header-list-box-G0zP4N{border:1px solid var(--coz-stroke-primary);border-radius:8px;max-height:348px;overflow:auto}.header-list-u7VT62 .header-list-box-G0zP4N .header-row-n1fgFr{border-bottom:1px solid var(--coz-stroke-primary)}.header-list-u7VT62 .header-list-box-G0zP4N .header-col-content-GEof7W{color:var(--coz-fg-secondary);padding:6px 8px;font-size:12px;font-weight:500;line-height:16px}.header-list-u7VT62 .header-list-box-G0zP4N .col-content-jxn1tn{padding:12px 8px}.error-msg-box-fHOH9H{position:relative;top:-24px}.error-msg-box-fHOH9H .error-msg-xl_IO9{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-fHOH9H .error-msg-xl_IO9 .link-HhAOLc{color:#4d53e8;font-weight:400}.creation-method-n7THTL{flex-direction:column;justify-content:space-between;gap:4px;padding:0!important;display:flex!important}.creation-method-n7THTL .semi-radio{background-color:var(--coz-mg-card);border:solid 1px var(--coz-stroke-plus);border-radius:8px;padding:8px 12px}.creation-method-n7THTL .semi-radio:hover{background-color:var(--coz-mg-secondary-hovered)}.creation-method-n7THTL .semi-radio:active{background-color:var(--coz-mg-secondary-pressed)}.creation-method-n7THTL .semi-radio-inner{display:none}.creation-method-n7THTL .semi-radio-addon{line-height:20px}.creation-method-n7THTL .semi-radio-checked{background:var(--coz-mg-hglt);border:1px solid var(--coz-stroke-hglt)}.creation-method-n7THTL .semi-radio-checked:hover{background-color:var(--coz-mg-hglt-hovered)}.creation-method-n7THTL .semi-radio-checked:active{background-color:var(--coz-mg-hglt-pressed)}.code-runtime-list-VSrKiF .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.bot-code-edit-title-action-l5WQpX{justify-content:space-between;align-items:center;width:100%;display:flex}",""]),s.locals={card:"card-WWaG88","card-favorite-not-publish":"card-favorite-not-publish-AfESBZ",cardFavoriteNotPublish:"card-favorite-not-publish-AfESBZ","add-card":"add-card-xOp1w2",addCard:"add-card-xOp1w2","add-card-inner":"add-card-inner-lgEfib",addCardInner:"add-card-inner-lgEfib","name-wrap":"name-wrap-3LtU4M",nameWrap:"name-wrap-3LtU4M",avatar:"avatar-TraOkA",name:"name-VlEJfE",extra:"extra-_ZJc6g","card-content":"card-content-zVHGG2",cardContent:"card-content-zVHGG2",description:"description-yNsXzW","recent-modify":"recent-modify-WxpK6V",recentModify:"recent-modify-WxpK6V",creator:"creator-D0IKDF","upload-form":"upload-form-v53bGL",uploadForm:"upload-form-v53bGL","upload-field":"upload-field-_H0EYS",uploadField:"upload-field-_H0EYS","textarea-single-line":"textarea-single-line-uvgoZH",textareaSingleLine:"textarea-single-line-uvgoZH","textarea-multi-line":"textarea-multi-line-FNBYUS",textareaMultiLine:"textarea-multi-line-FNBYUS","footer-draft":"footer-draft-eEXooH",footerDraft:"footer-draft-eEXooH",link:"link-HhAOLc","upload-form-item":"upload-form-item-Emgg3K",uploadFormItem:"upload-form-item-Emgg3K","collect-num":"collect-num-FOBat8",collectNum:"collect-num-FOBat8","user-info":"user-info-H0TT65",userInfo:"user-info-H0TT65",extinfo:"extinfo-c0Y2mI","extinfo-title":"extinfo-title-M2K7EQ",extinfoTitle:"extinfo-title-M2K7EQ","extinfo-text":"extinfo-text-lqFN78",extinfoText:"extinfo-text-lqFN78","extinfo-ex":"extinfo-ex-sKRvhO",extinfoEx:"extinfo-ex-sKRvhO","upload-avatar":"upload-avatar-u9p4bH",uploadAvatar:"upload-avatar-u9p4bH","header-list":"header-list-u7VT62",headerList:"header-list-u7VT62","header-list-extra":"header-list-extra-zndrVs",headerListExtra:"header-list-extra-zndrVs","header-list-box":"header-list-box-G0zP4N",headerListBox:"header-list-box-G0zP4N","header-row":"header-row-n1fgFr",headerRow:"header-row-n1fgFr","header-col-content":"header-col-content-GEof7W",headerColContent:"header-col-content-GEof7W","col-content":"col-content-jxn1tn",colContent:"col-content-jxn1tn","error-msg-box":"error-msg-box-fHOH9H",errorMsgBox:"error-msg-box-fHOH9H","error-msg":"error-msg-xl_IO9",errorMsg:"error-msg-xl_IO9","creation-method":"creation-method-n7THTL",creationMethod:"creation-method-n7THTL","code-runtime-list":"code-runtime-list-VSrKiF",codeRuntimeList:"code-runtime-list-VSrKiF","bot-code-edit-title-action":"bot-code-edit-title-action-l5WQpX",botCodeEditTitleAction:"bot-code-edit-title-action-l5WQpX"},t.Z=s},428494:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".selected-params-N88XmO{border:1px solid var(--semi-color-focus-border);outline:0}.layout-content-qotxAg{height:100%}.layout-content-qotxAg .coz-layout-header{padding-bottom:16px}.dropdown-options-6-pd2I9P .semi-cascader-option-lists{height:208px}.dropdown-options-7-N5Ka9N .semi-cascader-option-lists{height:242px}.dropdown-options-8-KkZKhu .semi-cascader-option-lists{height:276px}.dropdown-options-9-Qu2Z60 .semi-cascader-option-lists{height:310px}.layout-header-i8n82T .select-lbEeY4,.layout-header-i8n82T .cascader-Glj2yb{min-width:128px;flex-shrink:0!important}",""]),s.locals={"selected-params":"selected-params-N88XmO",selectedParams:"selected-params-N88XmO","layout-content":"layout-content-qotxAg",layoutContent:"layout-content-qotxAg","dropdown-options-6":"dropdown-options-6-pd2I9P",dropdownOptions6:"dropdown-options-6-pd2I9P","dropdown-options-7":"dropdown-options-7-N5Ka9N",dropdownOptions7:"dropdown-options-7-N5Ka9N","dropdown-options-8":"dropdown-options-8-KkZKhu",dropdownOptions8:"dropdown-options-8-KkZKhu","dropdown-options-9":"dropdown-options-9-Qu2Z60",dropdownOptions9:"dropdown-options-9-Qu2Z60","layout-header":"layout-header-i8n82T",layoutHeader:"layout-header-i8n82T",select:"select-lbEeY4",cascader:"cascader-Glj2yb"},t.Z=s},602053:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".expression-editor-suggestion-EkwfMi{z-index:1000;background:var(--light-usage-bg-color-bg-3,#fff);border:.5px solid rgba(153,182,255,.12);border-radius:8px;width:272px;max-height:236px;overflow:auto;box-shadow:0 4px 12px rgba(0,0,0,.25)}.expression-editor-suggestion-empty-GlAQEM{z-index:1000;background:#fff;border:.5px solid rgba(153,182,255,.12);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.25)}.expression-editor-suggestion-empty-GlAQEM p{color:var(--light-usage-text-color-text-2,rgba(29,28,35,.6));margin:4px 6px;font-size:12px;font-style:normal;font-weight:600;line-height:16px}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-search-wrapper{display:none}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list{width:-moz-fit-content;width:fit-content;min-width:100%;padding:4px 4px 4px 0}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list li{height:32px}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option{pointer-events:none;background-color:transparent}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label{pointer-events:auto;border-radius:4px;height:24px;margin-right:4px;padding:0 4px}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label:active{background:var(--light-usage-fill-color-fill-2,rgba(46,46,56,.12))}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text{width:-moz-fit-content;white-space:nowrap;width:fit-content;display:inline-block}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text span{width:-moz-fit-content;white-space:nowrap;width:fit-content;display:inline-block}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text .semi-tree-option-highlight{color:var(--light-usage-warning-color-warning,#ff9600)}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-selected{color:var(--light-usage-primary-color-primary,#4d53e8);font-weight:600}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-disabled .semi-tree-option-label{cursor:not-allowed;background:0 0}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-list .semi-tree-option-disabled .semi-icon+.semi-tree-option-label{color:var(--light-usage-text-color-text-0,#1d1c23)}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-empty-icon{width:16px}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-expand-icon{pointer-events:auto;border-radius:4px;width:16px;height:16px;margin-right:0;padding:4px}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-expand-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-expand-icon:active{background:var(--light-usage-fill-color-fill-2,rgba(46,46,56,.12))}.expression-editor-suggestion-tree-FaZ1A2 .semi-tree-option-expand-icon svg{width:16px;height:16px}.expression-editor-suggestion-keyboard-selected-bRdfW_ .semi-tree-option-label{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))!important}",""]),s.locals={"expression-editor-suggestion":"expression-editor-suggestion-EkwfMi",expressionEditorSuggestion:"expression-editor-suggestion-EkwfMi","expression-editor-suggestion-empty":"expression-editor-suggestion-empty-GlAQEM",expressionEditorSuggestionEmpty:"expression-editor-suggestion-empty-GlAQEM","expression-editor-suggestion-tree":"expression-editor-suggestion-tree-FaZ1A2",expressionEditorSuggestionTree:"expression-editor-suggestion-tree-FaZ1A2","expression-editor-suggestion-keyboard-selected":"expression-editor-suggestion-keyboard-selected-bRdfW_",expressionEditorSuggestionKeyboardSelected:"expression-editor-suggestion-keyboard-selected-bRdfW_"},t.Z=s},323043:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".expression-editor-counter-Jrzg68{color:var(--semi-color-text-2);position:absolute;bottom:0;right:0}.expression-editor-counter-Jrzg68 p{text-align:right;flex-direction:column;justify-content:center;min-height:24px;padding:3px 12px 5px;font-size:12px;line-height:16px;display:flex}.expression-editor-counter-error-kFMBaK{color:var(--semi-color-danger)}",""]),s.locals={"expression-editor-counter":"expression-editor-counter-Jrzg68",expressionEditorCounter:"expression-editor-counter-Jrzg68","expression-editor-counter-error":"expression-editor-counter-error-kFMBaK",expressionEditorCounterError:"expression-editor-counter-error-kFMBaK"},t.Z=s},928239:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".slate-editable-natVw7{-webkit-user-select:text!important;-moz-user-select:text!important;-ms-user-select:text!important;user-select:text!important;-o-user-select:text!important}",""]),s.locals={"slate-editable":"slate-editable-natVw7",slateEditable:"slate-editable-natVw7"},t.Z=s},498356:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".expression-editor-suggestion-pin-e45wDH{width:0;height:1.5rem;position:absolute;transform:translateY(-.5rem)}.expression-editor-suggestion-tnzQLh{z-index:1000;background:var(--light-usage-bg-color-bg-3,#fff);border:.5px solid rgba(153,182,255,.12);border-radius:8px;width:272px;max-height:236px;overflow:auto;box-shadow:0 4px 12px rgba(0,0,0,.25)}.expression-editor-suggestion-empty-NVUeaZ{z-index:1000;background:#fff;border:.5px solid rgba(153,182,255,.12);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.25)}.expression-editor-suggestion-empty-NVUeaZ p{color:var(--light-usage-text-color-text-2,rgba(29,28,35,.6));margin:4px 6px;font-size:12px;font-style:normal;font-weight:600;line-height:16px}.expression-editor-suggestion-tree-SsqsTm .semi-tree-search-wrapper{display:none}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list{width:-moz-fit-content;width:fit-content;min-width:100%;padding:4px 4px 4px 0}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list li{height:32px}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option{pointer-events:none;background-color:transparent}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label{pointer-events:auto;border-radius:4px;height:24px;margin-right:4px;padding:0 4px}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label:active{background:var(--light-usage-fill-color-fill-2,rgba(46,46,56,.12))}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text{width:-moz-fit-content;white-space:nowrap;width:fit-content;display:inline-block}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text span{width:-moz-fit-content;white-space:nowrap;width:fit-content;display:inline-block}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-label .semi-tree-option-label-text .semi-tree-option-highlight{color:var(--light-usage-warning-color-warning,#ff9600)}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-selected{color:var(--light-usage-primary-color-primary,#4d53e8);font-weight:600}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-disabled .semi-tree-option-label{cursor:not-allowed;background:0 0}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-list .semi-tree-option-disabled .semi-icon+.semi-tree-option-label{color:var(--light-usage-text-color-text-0,#1d1c23)}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-empty-icon{width:16px}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-expand-icon{pointer-events:auto;border-radius:4px;width:16px;height:16px;margin-right:0;padding:4px}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-expand-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-expand-icon:active{background:var(--light-usage-fill-color-fill-2,rgba(46,46,56,.12))}.expression-editor-suggestion-tree-SsqsTm .semi-tree-option-expand-icon svg{width:16px;height:16px}.expression-editor-suggestion-keyboard-selected-r4RzO7 .semi-tree-option-label{background:var(--light-usage-fill-color-fill-1,rgba(46,46,56,.08))!important}",""]),s.locals={"expression-editor-suggestion-pin":"expression-editor-suggestion-pin-e45wDH",expressionEditorSuggestionPin:"expression-editor-suggestion-pin-e45wDH","expression-editor-suggestion":"expression-editor-suggestion-tnzQLh",expressionEditorSuggestion:"expression-editor-suggestion-tnzQLh","expression-editor-suggestion-empty":"expression-editor-suggestion-empty-NVUeaZ",expressionEditorSuggestionEmpty:"expression-editor-suggestion-empty-NVUeaZ","expression-editor-suggestion-tree":"expression-editor-suggestion-tree-SsqsTm",expressionEditorSuggestionTree:"expression-editor-suggestion-tree-SsqsTm","expression-editor-suggestion-keyboard-selected":"expression-editor-suggestion-keyboard-selected-r4RzO7",expressionEditorSuggestionKeyboardSelected:"expression-editor-suggestion-keyboard-selected-r4RzO7"},t.Z=s},283681:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".item-DerqGd{color:#1d1c23;font-size:14px;display:flex}.itemTitle-TKzc7Q{flex:1;align-items:center;display:flex}.itemContent-W03eHz{align-items:center;display:flex}.close-auvAyY{cursor:pointer;position:absolute;top:24px;right:24px}",""]),s.locals={item:"item-DerqGd",itemTitle:"itemTitle-TKzc7Q",itemContent:"itemContent-W03eHz",close:"close-auvAyY"},t.Z=s},866328:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".image-uploader-q9DcDW.semi-input-wrapper:hover{background-color:var(--semi-color-white)}.image-uploader-q9DcDW.can-action-ASgYH2.semi-input-wrapper{transition:all .1s}.image-uploader-q9DcDW.can-action-ASgYH2.semi-input-wrapper:hover{background:rgba(46,46,56,.08)}.image-uploader-q9DcDW.can-action-ASgYH2.semi-input-wrapper:active{background:rgba(46,46,56,.12)}.image-uploader-q9DcDW .action-b5im3G{cursor:pointer;color:rgba(29,28,35,.6);border-radius:4px;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;transition:all .2s;display:inline-flex}.image-uploader-q9DcDW .action-b5im3G:hover{background-color:rgba(46,46,56,.08)}.image-uploader-q9DcDW .action-b5im3G:active{background-color:rgba(46,46,56,.12)}.image-uploader-q9DcDW .action-b5im3G.disabled-z52AVj{cursor:not-allowed;background-color:rgba(46,46,56,.08)}.image-uploader-q9DcDW .input-img-thumb-SkgMfz{border-radius:.125rem;flex-grow:0;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex;overflow:hidden}.image-uploader-q9DcDW .input-img-thumb-SkgMfz img{-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;border-radius:.125rem;max-width:100%;max-height:100%}.image-uploader-q9DcDW .input-img-thumb-SkgMfz .semi-image-status{background:0 0}.image-uploader-q9DcDW .input-img-thumb-SkgMfz .semi-image-status svg{color:rgba(6,7,9,.3);width:17px}.img-popover-content-G30hwp{padding:8px}",""]),s.locals={"image-uploader":"image-uploader-q9DcDW",imageUploader:"image-uploader-q9DcDW","can-action":"can-action-ASgYH2",canAction:"can-action-ASgYH2",action:"action-b5im3G",disabled:"disabled-z52AVj","input-img-thumb":"input-img-thumb-SkgMfz",inputImgThumb:"input-img-thumb-SkgMfz","img-popover-content":"img-popover-content-G30hwp",imgPopoverContent:"img-popover-content-G30hwp"},t.Z=s},130462:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".history-item-edCZgv{padding-bottom:16px}",""]),s.locals={"history-item":"history-item-edCZgv",historyItem:"history-item-edCZgv"},t.Z=s},971522:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".upload-form-YShdl5 .textarea-single-line-hvDjpe .semi-input-textarea-counter{position:absolute;top:4px;right:0}.upload-form-YShdl5 .textarea-multi-line-gzxElE{margin-bottom:16px}.upload-form-YShdl5 .conversation-field-Gg6g3e{padding:0}.upload-form-YShdl5 .upload-field-DsJXUU,.upload-form-YShdl5 .schema_type-DQYtJ6{padding-top:0}.upload-form-item-a_mguT .semi-form-field-label-text{display:none}.add-card-JK2pk7{background-color:#fff;border-radius:8px}.add-card-inner-kAzOG5{flex-direction:column;justify-content:center;display:flex}",""]),s.locals={"upload-form":"upload-form-YShdl5",uploadForm:"upload-form-YShdl5","textarea-single-line":"textarea-single-line-hvDjpe",textareaSingleLine:"textarea-single-line-hvDjpe","textarea-multi-line":"textarea-multi-line-gzxElE",textareaMultiLine:"textarea-multi-line-gzxElE","conversation-field":"conversation-field-Gg6g3e",conversationField:"conversation-field-Gg6g3e","upload-field":"upload-field-DsJXUU",uploadField:"upload-field-DsJXUU",schema_type:"schema_type-DQYtJ6",schemaType:"schema_type-DQYtJ6","upload-form-item":"upload-form-item-a_mguT",uploadFormItem:"upload-form-item-a_mguT","add-card":"add-card-JK2pk7",addCard:"add-card-JK2pk7","add-card-inner":"add-card-inner-kAzOG5",addCardInner:"add-card-inner-kAzOG5"},t.Z=s},172835:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,"button.button-ALlJdt{min-width:76px}button.button-ALlJdt.moreLevel-po8T28{color:var(--light-usage-primary-color-primary-disabled,#b4baf6);background:var(--light-usage-bg-color-bg-0,#fff);border:none}button.button-ALlJdt.mouseIn-WM2eIa{color:#fff;background-color:rgba(var(--coze-red-5),1)!important}",""]),s.locals={button:"button-ALlJdt",moreLevel:"moreLevel-po8T28",mouseIn:"mouseIn-WM2eIa"},t.Z=s},179798:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".font-normal-Hi97Nb{cursor:text;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-NIRcki{margin-left:8px}.container-NIRcki .button-H7xpc6{cursor:pointer;width:76px}.not_publish_tooltip-A5_1Fo{border-radius:6px;padding:12px}.not_publish_tooltip-A5_1Fo .content-sBrrYO{cursor:text;color:#fff;font-size:12px;font-style:normal;font-weight:400;line-height:20px}.workflow_count_span-oHdGdL{color:#fff;vertical-align:1px;background-color:#4d53e8;border-radius:8px;width:16px;height:16px;margin-left:6px;font-size:10px;line-height:17px;display:inline-block}",""]),s.locals={"font-normal":"font-normal-Hi97Nb",fontNormal:"font-normal-Hi97Nb",container:"container-NIRcki",button:"button-H7xpc6",not_publish_tooltip:"not_publish_tooltip-A5_1Fo",notPublishTooltip:"not_publish_tooltip-A5_1Fo",content:"content-sBrrYO",workflow_count_span:"workflow_count_span-oHdGdL",workflowCountSpan:"workflow_count_span-oHdGdL"},t.Z=s},989127:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".font-normal-CcQsTl{font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem{cursor:pointer;border-top:1px solid var(--light-usage-border-color-border,rgba(28,29,35,.12));flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding:12px 16px 14px;display:flex}.container-FLpcem:first-child{border-top:1px solid transparent}.container-FLpcem:hover{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.04));border-top:1px solid transparent;border-radius:8px}.container-FLpcem:hover+div{border-top:1px solid transparent}.container-FLpcem .left-VNM2Ci{margin-right:16px}.container-FLpcem .left-VNM2Ci .icon-ObTxZu,.container-FLpcem .left-VNM2Ci .icon-ObTxZu img{width:36px;height:36px}.container-FLpcem .center-dCaIXc{flex-direction:column;flex:1;width:0;display:flex}.container-FLpcem .center-dCaIXc .header-i78yZb{justify-content:flex-start;align-items:center;width:100%;padding-bottom:2px;display:flex}.container-FLpcem .center-dCaIXc .header-i78yZb .title_wrapper-BmGpzI{cursor:pointer;flex:1;align-self:stretch;align-items:center;width:0;display:flex}.container-FLpcem .center-dCaIXc .header-i78yZb .title_wrapper-BmGpzI .title-MqFCNL{color:var(--coz-fg-primary,#060709);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.container-FLpcem .center-dCaIXc .header-i78yZb .title_wrapper-BmGpzI .status-sCNi6w{flex-direction:row;align-items:center;margin-left:8px;display:flex}.container-FLpcem .center-dCaIXc .header-i78yZb .title_wrapper-BmGpzI .status-sCNi6w .text-l5eV2c{color:var(--coz-fg-primary,#060709);margin-left:4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .center-dCaIXc .content-hoKiX8{cursor:pointer;flex-direction:column;width:100%;margin-top:4px;display:flex}.container-FLpcem .center-dCaIXc .content-hoKiX8 .desc-zI0m4U{color:var(--coz-fg-secondary,rgba(6,7,9,.5));font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .center-dCaIXc .footer-coU_ZP{flex-direction:column;width:100%;display:flex}.container-FLpcem .center-dCaIXc .footer-coU_ZP .creator-geyAl0{cursor:pointer;border-radius:3px;align-items:center;display:flex}.container-FLpcem .center-dCaIXc .footer-coU_ZP .creator-geyAl0 .avatar-y0GkMw{width:12px;height:12px;display:flex}.container-FLpcem .center-dCaIXc .footer-coU_ZP .creator-geyAl0 .avatar-y0GkMw img{width:12px;height:12px}.container-FLpcem .center-dCaIXc .footer-coU_ZP .creator-geyAl0 .name-saw6k2{max-width:106px;color:var(--coz-fg-secondary,rgba(6,7,9,.5));word-break:break-word;margin-left:4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ{cursor:pointer;align-items:center;display:inline-flex}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ .creator-geyAl0{background:unset}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ .creator-avatar-a7ycd4{width:12px;height:12px}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ .creator-name-bllrnG{max-width:70px;color:var(--coz-fg-secondary,rgba(6,7,9,.5));margin-left:4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ .symbol-F2naAW{color:var(--coz-stroke-primary);margin:0 8px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .center-dCaIXc .footer-coU_ZP .info-XVfEjJ .date-iokszy{color:var(--coz-fg-dim,rgba(6,7,9,.4));font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-FLpcem .right-l0vpmw{flex-direction:column;margin-left:16px;display:flex}.container-FLpcem .right-l0vpmw .buttons-PHCIE5{align-self:stretch;align-items:center;display:flex}",""]),s.locals={"font-normal":"font-normal-CcQsTl",fontNormal:"font-normal-CcQsTl",container:"container-FLpcem",left:"left-VNM2Ci",icon:"icon-ObTxZu",center:"center-dCaIXc",header:"header-i78yZb",title_wrapper:"title_wrapper-BmGpzI",titleWrapper:"title_wrapper-BmGpzI",title:"title-MqFCNL",status:"status-sCNi6w",text:"text-l5eV2c",content:"content-hoKiX8",desc:"desc-zI0m4U",footer:"footer-coU_ZP",creator:"creator-geyAl0",avatar:"avatar-y0GkMw",name:"name-saw6k2",info:"info-XVfEjJ","creator-avatar":"creator-avatar-a7ycd4",creatorAvatar:"creator-avatar-a7ycd4","creator-name":"creator-name-bllrnG",creatorName:"creator-name-bllrnG",symbol:"symbol-F2naAW",date:"date-iokszy",right:"right-l0vpmw",buttons:"buttons-PHCIE5"},t.Z=s},189450:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".font-normal-OWqeAz{color:rgba(28,31,35,.8);font-size:12px;font-style:normal;font-weight:400;line-height:16px}.container-j67vV6{width:100%;margin:4px 0 8px}.container-j67vV6 .wrapper-dOZtf7{cursor:pointer;flex-direction:column;display:flex;position:relative}.container-j67vV6 .wrapper-dOZtf7 .popover_help_block-fn6jQd{width:100%;height:100%;position:absolute;top:0;left:0}.popover-kGADs0{border-radius:6px;width:260px;max-height:400px;padding:12px;overflow:auto;box-shadow:0 4px 14px rgba(0,0,0,.1),0 0 1px rgba(0,0,0,.3)}.popover-kGADs0 .item-Qr1nCd{flex-direction:column;margin-top:4px;display:flex}.popover-kGADs0 .item-Qr1nCd:first-child{margin-top:0}.popover-kGADs0 .item-Qr1nCd .header-BqZWkh{align-items:center;display:flex}.popover-kGADs0 .item-Qr1nCd .header-BqZWkh .name-gRTwbN{color:#1c1f23;word-break:break-word;font-size:12px;font-style:normal;font-weight:700;line-height:16px}.popover-kGADs0 .item-Qr1nCd .header-BqZWkh .type-te9j_D{color:rgba(28,31,35,.8);margin-left:12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.popover-kGADs0 .item-Qr1nCd .header-BqZWkh .required-Lcp1FY{color:#fc8800;margin-left:12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.popover-kGADs0 .item-Qr1nCd .footer-aZpSu5{color:rgba(28,31,35,.6);word-break:break-word;width:100%;margin-top:4px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}",""]),s.locals={"font-normal":"font-normal-OWqeAz",fontNormal:"font-normal-OWqeAz",container:"container-j67vV6",wrapper:"wrapper-dOZtf7",popover_help_block:"popover_help_block-fn6jQd",popoverHelpBlock:"popover_help_block-fn6jQd",popover:"popover-kGADs0",item:"item-Qr1nCd",header:"header-BqZWkh",name:"name-gRTwbN",type:"type-te9j_D",required:"required-Lcp1FY",footer:"footer-aZpSu5"},t.Z=s},640327:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".container-g9bnA0{width:100%;height:100%;padding:0 24px}.scroll_load_more-_xyR9q{padding:8px}.scroll_load_more-_xyR9q.empty-DtlBSS{height:0;padding:0}.workflow-content-YsZUrv{width:100%;height:100%;padding-bottom:12px;overflow:auto}.workflow-content-YsZUrv .loading-more-QYxOt8{text-align:center}.spin-gU3jd6{width:100%;height:100%}.spin-gU3jd6 .semi-spin-children{height:100%}",""]),s.locals={container:"container-g9bnA0",scroll_load_more:"scroll_load_more-_xyR9q",scrollLoadMore:"scroll_load_more-_xyR9q",empty:"empty-DtlBSS","workflow-content":"workflow-content-YsZUrv",workflowContent:"workflow-content-YsZUrv","loading-more":"loading-more-QYxOt8",loadingMore:"loading-more-QYxOt8",spin:"spin-gU3jd6"},t.Z=s},584139:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".header-Ct6iKP{align-items:center;gap:12px;display:flex}.workflow-status-radio-vc1Cuo .semi-radio-buttonRadioGroup{padding:0}.workflow-status-radio-vc1Cuo .semi-radio-buttonRadioGroup:first-child .semi-radio-addon-buttonRadio{border-right:1px solid var(--semi-color-fill-2);border-radius:0}.workflow-status-radio-vc1Cuo .semi-radio-addon-buttonRadio{color:rgba(28,31,35,.4);padding:0 16px;font-size:14px}.workflow-status-radio-vc1Cuo .semi-radio-addon-buttonRadio-hover{background-color:transparent}.workflow-status-radio-vc1Cuo .semi-radio-addon-buttonRadio-checked{color:var(--light-usage-text-color-text-0,#1c1d23);background-color:transparent}",""]),s.locals={header:"header-Ct6iKP","workflow-status-radio":"workflow-status-radio-vc1Cuo",workflowStatusRadio:"workflow-status-radio-vc1Cuo"},t.Z=s},766537:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".workflow-modal-BnrriW{height:100%}.workflow-modal-BnrriW .title-crgsEa{margin-bottom:var(--coze-24);font-size:var(--coze-20);color:rgba(var(--coze-fg-4),var(--coze-fg-4-alpha));font-weight:500;line-height:1.75rem}.workflow-modal-BnrriW .title-for-avatar-RHsMfI{font-size:var(--coze-20);color:rgba(var(--coze-fg-4),var(--coze-fg-4-alpha));font-weight:500;line-height:1.75rem}.douyin-workflow-modal-jmPWmJ .semi-modal{width:800px}",""]),s.locals={"workflow-modal":"workflow-modal-BnrriW",workflowModal:"workflow-modal-BnrriW",title:"title-crgsEa","title-for-avatar":"title-for-avatar-RHsMfI",titleForAvatar:"title-for-avatar-RHsMfI","douyin-workflow-modal":"douyin-workflow-modal-jmPWmJ",douyinWorkflowModal:"douyin-workflow-modal-jmPWmJ"},t.Z=s},839418:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".tool-tag-list-ghOLS8{white-space:nowrap;flex:1 0;padding-top:16px;overflow:auto}.tool-tag-list-label-RAcGJE{height:40px;color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-bottom:8px;padding:0 12px;font-size:12px;font-weight:600;line-height:40px}.tool-tag-list-cell-ENLevq{cursor:pointer;color:#1d1c23;border-radius:3px;align-items:center;height:32px;margin-bottom:4px;padding:0 10px 0 12px;font-size:14px;line-height:32px;display:flex;position:relative}.tool-tag-list-cell-icon-kAQMHL{flex-shrink:0;justify-content:center;align-items:center;margin-right:8px;display:flex}.tool-tag-list-cell-icon-kAQMHL>svg{width:20px;height:20px}.tool-tag-list-cell-icon-kAQMHL>svg>path{fill:#1d1c23}.tool-tag-list-cell-icon-kAQMHL>img{width:24px;height:24px;padding:4px}.tool-tag-list-cell-divider-PGAkgG{background:rgba(28,29,35,.12);width:calc(100% - 24px);margin:12px}.tool-tag-list-cell-ENLevq:hover{color:var(--light-usage-text-color-text-0,#1c1f23);background:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05));border-radius:8px}.tool-tag-list-cell-ENLevq.active-U52emq{color:var(--light-usage-text-color-text-0,#1c1d23);background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-radius:8px;font-size:14px;font-weight:600}.tool-tag-list-cell-ENLevq.active-U52emq .tool-tag-list-cell-icon-kAQMHL>svg{width:20px;height:20px}.tool-tag-list-cell-ENLevq.active-U52emq .tool-tag-list-cell-icon-kAQMHL>svg>path{fill:#4d53e8}",""]),s.locals={"tool-tag-list":"tool-tag-list-ghOLS8",toolTagList:"tool-tag-list-ghOLS8","tool-tag-list-label":"tool-tag-list-label-RAcGJE",toolTagListLabel:"tool-tag-list-label-RAcGJE","tool-tag-list-cell":"tool-tag-list-cell-ENLevq",toolTagListCell:"tool-tag-list-cell-ENLevq","tool-tag-list-cell-icon":"tool-tag-list-cell-icon-kAQMHL",toolTagListCellIcon:"tool-tag-list-cell-icon-kAQMHL","tool-tag-list-cell-divider":"tool-tag-list-cell-divider-PGAkgG",toolTagListCellDivider:"tool-tag-list-cell-divider-PGAkgG",active:"active-U52emq"},t.Z=s},477654:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".cm-content .slot-content{color:#4e40e5;word-break:break-all;background-color:rgba(186,192,255,.2)}.cm-content .slot-side-left{background-color:rgba(186,192,255,.2);border-radius:4px 0 0 4px;padding-left:5px}.cm-content .slot-side-right{background-color:rgba(186,192,255,.2);border-radius:0 5px 5px 0;margin-right:4px;padding-right:5px}.cm-content .slot-placeholder{color:rgba(148,152,247,.7);word-break:break-all;background-color:rgba(186,192,255,.2)}",""]),t.Z=s},743154:function(e,t,r){"use strict";var n=r(125161),o=r.n(n),i=r(404442),s=r.n(i)()(o());s.push([e.id,".cm-content .library-block-container{cursor:default;color:#4e40e5;background-color:rgba(186,192,255,.2);border-radius:4px;margin-right:4px;padding:0 5px;display:inline-block}.cm-content .library-block-icon{vertical-align:sub;margin-right:2px}.cm-content .library-block-content{word-break:break-all}.library-block-tooltip .semi-tooltip-content{width:100%}",""]),t.Z=s},801138:function(e,t,r){"use strict";r.d(t,{$L:function(){return g},B1:function(){return ej},DB:function(){return el},GA:function(){return eO},Gn:function(){return ef},Mb:function(){return c},dk:function(){return H},eC:function(){return d},vQ:function(){return eb},ys:function(){return eM}});var n,o,i=r(913693),s=r(249294),a=r(562312);class l{constructor(e,t,r,n){this.state=e,this.pos=t,this.explicit=r,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,a.qz)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),r=Math.max(t.from,this.pos-250),n=t.text.slice(r-t.from,this.pos-t.from),o=n.search(f(e,!1));return o<0?null:{from:r+o,to:this.pos,text:n.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,r){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function u(e){let t=Object.keys(e).join(""),r=/\w/.test(t);return r&&(t=t.replace(/\w/g,"")),`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function c(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[r,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)r[n[e]]=!0}let n=u(t)+u(r)+"*$";return[RegExp("^"+n),new RegExp(n)]}(t);return e=>{let o=e.matchBefore(n);return o||e.explicit?{from:o?o.from:e.pos,options:t,validFor:r}:null}}function d(e,t){return r=>{for(let t=(0,a.qz)(r.state).resolveInner(r.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(r)}}class p{constructor(e,t,r,n){this.completion=e,this.source=t,this.match=r,this.score=n}}function h(e){return e.selection.main.from}function f(e,t){var r;let{source:n}=e,o=t&&"^"!=n[0],i="$"!=n[n.length-1];return o||i?RegExp(`${o?"^":""}(?:${n})${i?"$":""}`,null!==(r=e.flags)&&void 0!==r?r:e.ignoreCase?"i":""):e}let m=i.q6.define();function g(e,t,r,n){let{main:o}=e.selection,s=r-o.from,a=n-o.from;return Object.assign(Object.assign({},e.changeByRange(l=>{if(l!=o&&r!=n&&e.sliceDoc(l.from+s,l.from+a)!=e.sliceDoc(r,n))return{range:l};let u=e.toText(t);return{changes:{from:l.from+s,to:n==o.from?l.to:l.from+a,insert:u},range:i.jT.cursor(l.from+s+u.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}let y=new WeakMap;function x(e){if(!Array.isArray(e))return e;let t=y.get(e);return!t&&y.set(e,t=c(e)),t}let b=i.Py.define(),w=i.Py.define();class _{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=(0,i.gm)(e,t),n=(0,i.nZ)(r);this.chars.push(r);let o=e.slice(t,t+n),s=o.toUpperCase();this.folded.push((0,i.gm)(s==o?o.toLowerCase():s,0)),t+=n}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:r,any:n,precise:o,byWord:s}=this;if(1==t.length){let n=(0,i.gm)(e,0),o=(0,i.nZ)(n),s=o==e.length?0:-100;if(n==t[0]);else{if(n!=r[0])return null;s+=-200}return this.ret(s,[0,o])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,u=0;if(a<0){for(let o=0,s=Math.min(e.length,200);o<s&&u<l;){let s=(0,i.gm)(e,o);(s==t[u]||s==r[u])&&(n[u++]=o),o+=(0,i.nZ)(s)}if(u<l)return null}let c=0,d=0,p=!1,h=0,f=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let n=0,u=Math.min(e.length,200),x=0;n<u&&d<l;){let u=(0,i.gm)(e,n);a<0&&(c<l&&u==t[c]&&(o[c++]=n),h<l&&(u==t[h]||u==r[h]?(0==h&&(f=n),m=n+1,h++):h=0));let b,w=u<255?u>=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(b=(0,i.bg)(u))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!n||1==w&&g||0==x&&0!=w)&&(t[d]==u||r[d]==u&&(p=!0)?s[d++]=n:s.length&&(y=!1)),x=w,n+=(0,i.nZ)(u)}return d==l&&0==s[0]&&y?this.result(-100+(p?-200:0),s,e):h==l&&0==f?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):h==l?this.ret(-900-e.length,[f,m]):d==l?this.result(-100+(p?-200:0)+-700+(y?0:-1100),s,e):2==t.length?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,r){let n=[],o=0;for(let e of t){let t=e+(this.astral?(0,i.nZ)((0,i.gm)(r,e)):1);o&&n[o-1]==e?n[o-1]=t:(n[o++]=e,n[o++]=t)}return this.ret(e-r.length,n)}}class k{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),r=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==r?null:(this.matched=[0,t.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}let C=i.r$.define({combine:e=>(0,i.BO)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:O,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>A(e(r),t(r)),optionClass:(e,t)=>r=>A(e(r),t(r)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function A(e,t){return e?t?e+" "+t:e:t}function O(e,t,r,n,o,i){let a=e.textDirection==s.Nm.RTL,l=a,u=!1,c="top",d,p,h=t.left-o.left,f=o.right-t.right,m=n.right-n.left,g=n.bottom-n.top;if(l&&h<Math.min(m,f)?l=!1:!l&&f<Math.min(m,h)&&(l=!0),m<=(l?h:f))d=Math.max(o.top,Math.min(r.top,o.bottom-g))-t.top,p=Math.min(400,l?h:f);else{u=!0,p=Math.min(400,(a?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;e>=g||e>t.top?d=r.bottom-t.top:(c="bottom",d=t.bottom-r.top)}let y=(t.bottom-t.top)/i.offsetHeight,x=(t.right-t.left)/i.offsetWidth;return{style:`${c}: ${d/y}px; max-width: ${p/x}px`,class:"cm-completionInfo-"+(u?a?"left-narrow":"right-narrow":l?"left":"right")}}function D(e,t,r){if(e<=r)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.floor((e-t)/r);return{from:e-(n+1)*r,to:e-n*r}}class S{constructor(e,t,r){var n;let o;this.view=e,this.stateField=t,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:s,selected:a}=i.open,l=e.state.facet(C);this.optionContent=(o=(n=l).addToOptions.slice(),n.icons&&o.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),o.push({render(e,t,r,n){let o=document.createElement("span");o.className="cm-completionLabel";let i=e.displayLabel||e.label,s=0;for(let e=0;e<n.length;){let t=n[e++],r=n[e++];t>s&&o.appendChild(document.createTextNode(i.slice(s,t)));let a=o.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(i.slice(t,r))),a.className="cm-completionMatchedText",s=r}return s<i.length&&o.appendChild(document.createTextNode(i.slice(s))),o},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),o.sort((e,t)=>e.position-t.position).map(e=>e.render)),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=D(s.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{let{options:n}=e.state.field(t).open;for(let t=r.target,o;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(o=/-(\d+)$/.exec(t.id))&&+o[1]<n.length){this.applyCompletion(e,n[+o[1]]),r.preventDefault();return}}),this.dom.addEventListener("focusout",t=>{let r=e.state.field(this.stateField,!1);r&&r.tooltip&&e.state.facet(C).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:w.of(null)})}),this.showOptions(s,i.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let r=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=n){let{options:o,selected:i,disabled:s}=r.open;(!n.open||n.open.options!=o)&&(this.range=D(o.length,i,e.state.facet(C).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=(null===(t=n.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=D(t.options.length,t.selected,this.view.state.facet(C).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:n}=r;if(!n)return;let o="string"==typeof n?document.createTextNode(n):n(r);if(!o)return;"then"in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>(0,s.OO)(this.view.state,e,"completion info")):this.addInfoPane(o,r)}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",null!=e.nodeType)r.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;r.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let r=this.list.firstChild,n=this.range.from;r;r=r.nextSibling,n++)"LI"==r.nodeName&&r.id?n==e?!r.hasAttribute("aria-selected")&&(r.setAttribute("aria-selected","true"),t=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected"):n--;return t&&function(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=r.height/e.offsetHeight;n.top<r.top?e.scrollTop-=(r.top-n.top)/o:n.bottom>r.bottom&&(e.scrollTop+=(n.bottom-r.bottom)/o)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),o=this.space;if(!o){let e=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return n.top>Math.min(o.bottom,t.bottom)-10||n.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(C).positionInfo(this.view,t,n,r,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,r){let n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions")),n.addEventListener("mousedown",e=>{e.target==n&&e.preventDefault()});let o=null;for(let i=r.from;i<r.to;i++){let{completion:s,match:a}=e[i],{section:l}=s;if(l){let e="string"==typeof l?l:l.name;e!=o&&(i>r.from||0==r.from)&&(o=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}let u=n.appendChild(document.createElement("li"));u.id=t+"-"+i,u.setAttribute("role","option");let c=this.optionClass(s);for(let e of(c&&(u.className=c),this.optionContent)){let t=e(s,this.view.state,this.view,a);t&&u.appendChild(t)}}return r.from&&n.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function T(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class E{constructor(e,t,r,n,o,i){this.options=e,this.attrs=t,this.tooltip=r,this.timestamp=n,this.selected=o,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new E(this.options,P(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,o,i){if(n&&!i&&e.some(e=>e.isPending))return n.setDisabled();let s=function(e,t){let r=[],n=null,o=e=>{r.push(e);let{section:t}=e.completion;if(t){!n&&(n=[]);let e="string"==typeof t?t:t.name;!n.some(t=>t.name==e)&&n.push("string"==typeof t?{name:e}:t)}},i=t.facet(C);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)o(new p(t,n.source,e?e(t):[],1e9-r.length));else{let r=t.sliceDoc(n.from,n.to),s,a=i.filterStrict?new k(r):new _(r);for(let t of n.result.options)if(s=a.match(t.label)){let r=t.displayLabel?e?e(t,s.matched):[]:s.matched;o(new p(t,n.source,r,s.score+(t.boost||0)))}}}if(n){let e=Object.create(null),t=0;for(let r of n.sort((e,t)=>{var r,n;return(null!==(r=e.rank)&&void 0!==r?r:1e9)-(null!==(n=t.rank)&&void 0!==n?n:1e9)||(e.name<t.name?-1:1)}))t-=1e5,e[r.name]=t;for(let t of r){let{section:r}=t.completion;r&&(t.score+=e["string"==typeof r?r:r.name])}}let s=[],a=null,l=i.compareCompletions;for(let e of r.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;a&&a.label==t.label&&a.detail==t.detail&&(null==a.type||null==t.type||a.type==t.type)&&a.apply==t.apply&&a.boost==t.boost?T(e.completion)>T(a)&&(s[s.length-1]=e):s.push(e),a=e.completion}return s}(e,t);if(!s.length)return n&&e.some(e=>e.isPending)?n.setDisabled():null;let a=t.facet(C).selectOnOpen?0:-1;if(n&&n.selected!=a&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){a=t;break}}return new E(s,P(r,a),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:W,above:o.aboveCursor},n?n.timestamp:Date.now(),a,!1)}map(e){return new E(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new E(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class M{constructor(e,t,r){this.active=e,this.id=t,this.open=r}static start(){return new M(B,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(C),n=(r.override||t.languageDataAt("autocomplete",h(t)).map(x)).map(t=>(this.active.find(e=>e.source==t)||new L(t,this.active.some(e=>0!=e.state)?1:0)).update(e,r));n.length==this.active.length&&n.every((e,t)=>e==this.active[t])&&(n=this.active);let o=this.open,i=e.effects.some(e=>e.is(z));for(let s of(o&&e.docChanged&&(o=o.map(e.changes)),e.selection||n.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let r=0,n=0;;){for(;r<e.length&&!e[r].hasResult();)r++;for(;n<t.length&&!t[n].hasResult();)n++;let o=r==e.length,i=n==t.length;if(o||i)return o==i;if(e[r++].result!=t[n++].result)return!1}}(n,this.active)||i?o=E.build(n,t,this.id,o,r,i):o&&o.disabled&&!n.some(e=>e.isPending)&&(o=null),!o&&n.every(e=>!e.isPending)&&n.some(e=>e.hasResult())&&(n=n.map(e=>e.hasResult()?new L(e.source,0):e)),e.effects))s.is(R)&&(o=o&&o.setSelected(s.value,this.id));return n==this.active&&o==this.open?this:new M(n,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?j:N}}let j={"aria-autocomplete":"list"},N={};function P(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(r["aria-activedescendant"]=e+"-"+t),r}let B=[];function I(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(m);if(r&&t.activateOnCompletion(r))return 12}let r=e.isUserEvent("input.type");return r&&t.activateOnTyping?5:r?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class L{constructor(e,t,r=!1){this.source=e,this.state=t,this.explicit=r}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let r=I(e,t),n=this;for(let t of((8&r||16&r&&this.touches(e))&&(n=new L(n.source,0)),4&r&&0==n.state&&(n=new L(this.source,1)),n=n.updateFor(e,r),e.effects))if(t.is(b))n=new L(n.source,1,t.value);else if(t.is(w))n=new L(n.source,0);else if(t.is(z))for(let e of t.value)e.source==n.source&&(n=e);return n}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class F extends L{constructor(e,t,r,n,o,i){super(e,3,t),this.limit=r,this.result=n,this.from=o,this.to=i}hasResult(){return!0}updateFor(e,t){var r;if(!(3&t))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let o=e.changes.mapPos(this.from),i=e.changes.mapPos(this.to,1),s=h(e.state);if(s>i||!n||2&t&&(h(e.startState)==this.from||s<this.limit))return new L(this.source,4&t?1:0);let a=e.changes.mapPos(this.limit);return function(e,t,r,n){if(!e)return!1;let o=t.sliceDoc(r,n);return"function"==typeof e?e(o,r,n,t):f(e,!0).test(o)}(n.validFor,e.state,o,i)?new F(this.source,this.explicit,a,n,o,i):n.update&&(n=n.update(n,o,i,new l(e.state,s,!1)))?new F(this.source,this.explicit,a,n,n.from,null!==(r=n.to)&&void 0!==r?r:h(e.state)):new L(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new F(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new L(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let z=i.Py.define({map:(e,t)=>e.map(e=>e.map(t))}),R=i.Py.define(),X=i.QQ.define({create:()=>M.start(),update:(e,t)=>e.update(t),provide:e=>[s.hJ.from(e,e=>e.tooltip),s.tk.contentAttributes.from(e,e=>e.attrs)]});function Z(e,t){let r=t.completion.apply||t.completion.label,n=e.state.field(X).active.find(e=>e.source==t.source);return n instanceof F&&("string"==typeof r?e.dispatch(Object.assign(Object.assign({},g(e.state,r,n.from,n.to)),{annotations:m.of(t.completion)})):r(e,t.completion,n.from,n.to),!0)}let W=(n=X,o=Z,e=>new S(e,n,o));function V(e,t="option"){return r=>{let n=r.state.field(X,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<r.state.facet(C).interactionDelay)return!1;let o=1,i;"page"==t&&(i=(0,s.gB)(r,n.open.tooltip))&&(o=Math.max(2,Math.floor(i.dom.offsetHeight/i.dom.querySelector("li").offsetHeight)-1));let{length:a}=n.open.options,l=n.open.selected>-1?n.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),r.dispatch({effects:R.of(l)}),!0}}let H=e=>{let t=e.state.field(X,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(C).interactionDelay)&&Z(e,t.open.options[t.open.selected])},U=e=>!!e.state.field(X,!1)&&(e.dispatch({effects:b.of(!0)}),!0);class q{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let Y=s.lg.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,e.state.field(X).active))t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(X),r=e.state.facet(C);if(!e.selectionSet&&!e.docChanged&&e.startState.field(X)==t)return;let n=e.transactions.some(e=>{let t=I(e,r);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let r=this.running[t];if(n||r.context.abortOnDocChange&&e.docChanged||r.updates.length+e.transactions.length>50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){(0,s.OO)(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(b)))&&(this.pendingStart=!0);let o=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(X);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(C).updateSyncTime))}startQuery(e){let{state:t}=this.view,r=h(t),n=new l(t,r,e.explicit,this.view),o=new q(e,n);this.running.push(o),Promise.resolve(e.source(n)).then(e=>{!o.context.aborted&&(o.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:w.of(null)}),(0,s.OO)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(C).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],r=this.view.state.facet(C),n=this.view.state.field(X);for(let o=0;o<this.running.length;o++){let i=this.running[o];if(void 0===i.done)continue;if(this.running.splice(o--,1),i.done){let n=h(i.updates.length?i.updates[0].startState:this.view.state),o=Math.min(n,i.done.from+(i.active.explicit?0:1)),s=new F(i.active.source,i.active.explicit,o,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:n);for(let e of i.updates)s=s.update(e,r);if(s.hasResult()){t.push(s);continue}}let s=n.active.find(e=>e.source==i.active.source);if(s&&s.isPending){if(null==i.done){let e=new L(i.active.source,0);for(let t of i.updates)e=e.update(t,r);!e.isPending&&t.push(e)}else this.startQuery(s)}}(t.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:z.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(X,!1);if(t&&t.tooltip&&this.view.state.facet(C).closeOnBlur){let r=t.open&&(0,s.gB)(this.view,t.open.tooltip);(!r||!r.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:w.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:b.of(!1)}),20),this.composing=0}}}),Q="object"==typeof navigator&&/Win/.test(navigator.platform),G=i.Wl.highest(s.tk.domEventHandlers({keydown(e,t){let r=t.state.field(X,!1);if(!r||!r.open||r.open.disabled||r.open.selected<0||e.key.length>1||e.ctrlKey&&!(Q&&e.altKey)||e.metaKey)return!1;let n=r.open.options[r.open.selected],o=r.active.find(e=>e.source==n.source),i=n.completion.commitCharacters||o.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&Z(t,n),!1}})),$=s.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"},".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"}}});class K{constructor(e,t,r,n){this.field=e,this.line=t,this.from=r,this.to=n}}class J{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,i.gc.TrackDel),r=e.mapPos(this.to,1,i.gc.TrackDel);return null==t||null==r?null:new J(this.field,t,r)}}class ee{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],n=[t],o=e.doc.lineAt(t),i=/^\s*/.exec(o.text)[0];for(let o of this.lines){if(r.length){let r=i,s=/^\t*/.exec(o)[0].length;for(let t=0;t<s;t++)r+=e.facet(a.c);n.push(t+r.length-s),o=r+o.slice(s)}r.push(o),t+=o.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new J(e.field,n[e.line]+e.from,n[e.line]+e.to))}}static parse(e){let t=[],r=[],n=[],o;for(let i of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(i);){let e=o[1]?+o[1]:null,s=o[2]||o[3]||"",a=-1,l=s.replace(/\\[{}]/g,e=>e[1]);for(let r=0;r<t.length;r++)(null!=e?t[r].seq==e:!!l&&t[r].name==l)&&(a=r);if(a<0){let r=0;for(;r<t.length&&(null==e||null!=t[r].seq&&t[r].seq<e);)r++;for(let o of(t.splice(r,0,{seq:e,name:l}),a=r,n))o.field>=a&&o.field++}n.push(new K(a,r.length,o.index,o.index+l.length)),i=i.slice(0,o.index)+s+i.slice(o.index+o[0].length)}i=i.replace(/\\([{}])/g,(e,t,o)=>{for(let e of n)e.line==r.length&&e.from>o&&(e.from--,e.to--);return t}),r.push(i)}return new ee(r,n)}}let et=s.p.widget({widget:new class extends s.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),er=s.p.mark({class:"cm-snippetField"});class en{constructor(e,t){this.ranges=e,this.active=t,this.deco=s.p.set(e.map(e=>(e.from==e.to?et:er).range(e.from,e.to)))}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new en(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let eo=i.Py.define({map:(e,t)=>e&&e.map(t)}),ei=i.Py.define(),es=i.QQ.define({create:()=>null,update(e,t){for(let r of t.effects){if(r.is(eo))return r.value;if(r.is(ei)&&e)return new en(e.ranges,r.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>s.tk.decorations.from(e,e=>e?e.deco:s.p.none)});function ea(e,t){return i.jT.create(e.filter(e=>e.field==t).map(e=>i.jT.range(e.from,e.to)))}function el(e){let t=ee.parse(e);return(e,r,n,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,n),{main:l}=e.state.selection,u={changes:{from:n,to:o==l.from?l.to:o,insert:i.xv.of(s)},scrollIntoView:!0,annotations:r?[m.of(r),i.YW.userEvent.of("input.complete")]:void 0};if(a.length&&(u.selection=ea(a,0)),a.some(e=>e.field>0)){let t=new en(a,0),r=u.effects=[eo.of(t)];void 0===e.state.field(es,!1)&&r.push(i.Py.appendConfig.of([es,eh,em,$]))}e.dispatch(e.state.update(u))}}function eu(e){return({state:t,dispatch:r})=>{let n=t.field(es,!1);if(!n||e<0&&0==n.active)return!1;let o=n.active+e,i=e>0&&!n.ranges.some(t=>t.field==o+e);return r(t.update({selection:ea(n.ranges,o),effects:eo.of(i?null:new en(n.ranges,o)),scrollIntoView:!0})),!0}}let ec=eu(1),ed=[{key:"Tab",run:ec,shift:eu(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(es,!1)&&(t(e.update({effects:eo.of(null)})),!0)}],ep=i.r$.define({combine:e=>e.length?e[0]:ed}),eh=i.Wl.highest(s.$f.compute([ep],e=>e.facet(ep)));function ef(e,t){return Object.assign(Object.assign({},t),{apply:el(e)})}let em=s.tk.domEventHandlers({mousedown(e,t){let r=t.state.field(es,!1),n;if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let o=r.ranges.find(e=>e.from<=n&&e.to>=n);return!!o&&o.field!=r.active&&(t.dispatch({selection:ea(r.ranges,o.field),effects:eo.of(r.ranges.some(e=>e.field>o.field)?new en(r.ranges,o.field):null),scrollIntoView:!0}),!0)}}),eg={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ev=i.Py.define({map(e,t){let r=t.mapPos(e,-1,i.gc.TrackAfter);return null==r?void 0:r}}),ey=new class extends i.uU{};ey.startSide=1,ey.endSide=-1;let ex=i.QQ.define({create:()=>i.Xs.empty,update(e,t){if(e=e.map(t.changes),t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)r.is(ev)&&(e=e.update({add:[ey.range(r.value,r.value+1)]}));return e}});function eb(){return[eA,ex]}let ew="()[]{}<>\xab\xbb\xbb\xab";function e_(e){for(let t=0;t<ew.length;t+=2)if(ew.charCodeAt(t)==e)return ew.charAt(t+1);return(0,i.bg)(e<128?e:e+1)}function ek(e,t){return e.languageDataAt("closeBrackets",t)[0]||eg}let eC="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),eA=s.tk.inputHandler.of((e,t,r,n)=>{if((eC?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(n.length>2||2==n.length&&1==(0,i.nZ)((0,i.gm)(n,0))||t!=o.from||r!=o.to)return!1;let s=function(e,t){let r=ek(e,e.selection.main.head),n=r.brackets||eg.brackets;for(let o of n){let s=e_((0,i.gm)(o,0));if(t==o)return s==o?function(e,t,r,n){let o=n.stringPrefixes||eg.stringPrefixes,s=null,l=e.changeByRange(n=>{if(!n.empty)return{changes:[{insert:t,from:n.from},{insert:t,from:n.to}],effects:ev.of(n.to+t.length),range:i.jT.range(n.anchor+t.length,n.head+t.length)};let l=n.head,u=eS(e.doc,l),c;if(u==t){if(eT(e,l))return{changes:{insert:t+t,from:l},effects:ev.of(l+t.length),range:i.jT.cursor(l+t.length)};if(eD(e,l)){let n=r&&e.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+n.length,insert:n},range:i.jT.cursor(l+n.length)}}}else if(r&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=eE(e,l-2*t.length,o))>-1&&eT(e,c))return{changes:{insert:t+t+t+t,from:l},effects:ev.of(l+t.length),range:i.jT.cursor(l+t.length)};else if(e.charCategorizer(l)(u)!=i.D0.Word&&eE(e,l,o)>-1&&!function(e,t,r,n){let o=(0,a.qz)(e).resolveInner(t,-1),i=n.reduce((e,t)=>Math.max(e,t.length),0);for(let s=0;s<5;s++){let s=e.sliceDoc(o.from,Math.min(o.to,o.from+r.length+i)),a=s.indexOf(r);if(!a||a>-1&&n.indexOf(s.slice(0,a))>-1){let t=o.firstChild;for(;t&&t.from==o.from&&t.to-t.from>r.length+a;){if(e.sliceDoc(t.to-r.length,t.to)==r)return!1;t=t.firstChild}return!0}let l=o.to==t&&o.parent;if(!l)break;o=l}return!1}(e,l,t,o))return{changes:{insert:t+t,from:l},effects:ev.of(l+t.length),range:i.jT.cursor(l+t.length)};return{range:s=n}});return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,n.indexOf(o+o+o)>-1,r):function(e,t,r,n){let o=null,s=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:r,from:s.to}],effects:ev.of(s.to+t.length),range:i.jT.range(s.anchor+t.length,s.head+t.length)};let a=eS(e.doc,s.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:t+r,from:s.head},effects:ev.of(s.head+t.length),range:i.jT.cursor(s.head+t.length)}:{range:o=s}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,s,r.before||eg.before);if(t==s&&eD(e,e.selection.main.from))return function(e,t,r){let n=null,o=e.changeByRange(t=>t.empty&&eS(e.doc,t.head)==r?{changes:{from:t.head,to:t.head+r.length,insert:r},range:i.jT.cursor(t.head+r.length)}:n={range:t});return n?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,s)}return null}(e.state,n);return!!s&&(e.dispatch(s),!0)}),eO=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=ek(e,e.selection.main.head).brackets||eg.brackets,n=null,o=e.changeByRange(t=>{if(t.empty){let n=function(e,t){let r=e.sliceString(t-2,t);return(0,i.nZ)((0,i.gm)(r,0))==r.length?r:r.slice(1)}(e.doc,t.head);for(let o of r)if(o==n&&eS(e.doc,t.head)==e_((0,i.gm)(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:i.jT.cursor(t.head-o.length)}}return{range:n=t}});return!n&&t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function eD(e,t){let r=!1;return e.field(ex).between(0,e.doc.length,e=>{e==t&&(r=!0)}),r}function eS(e,t){let r=e.sliceString(t,t+2);return r.slice(0,(0,i.nZ)((0,i.gm)(r,0)))}function eT(e,t){let r=(0,a.qz)(e).resolveInner(t+1);return r.parent&&r.from==t}function eE(e,t,r){let n=e.charCategorizer(t);if(n(e.sliceDoc(t-1,t))!=i.D0.Word)return t;for(let o of r){let r=t-o.length;if(e.sliceDoc(r,t)==o&&n(e.sliceDoc(r-1,r))!=i.D0.Word)return r}return -1}function eM(e={}){return[G,X,C.of(e),Y,eN,$]}let ej=[{key:"Ctrl-Space",run:U},{mac:"Alt-`",run:U},{key:"Escape",run:e=>{let t=e.state.field(X,!1);return!!(t&&t.active.some(e=>0!=e.state))&&(e.dispatch({effects:w.of(null)}),!0)}},{key:"ArrowDown",run:V(!0)},{key:"ArrowUp",run:V(!1)},{key:"PageDown",run:V(!0,"page")},{key:"PageUp",run:V(!1,"page")},{key:"Enter",run:H}],eN=i.Wl.highest(s.$f.computeN([C],e=>e.facet(C).defaultKeymap?[ej]:[]))},992814:function(e,t,r){"use strict";r.d(t,{KX:function(){return _},Yw:function(){return w},f$:function(){return N},m8:function(){return x},oc:function(){return eM},wQ:function(){return eE}});var n=r(913693),o=r(249294),i=r(562312),s=r(437254);function a(e,t){return({state:r,dispatch:n})=>{if(r.readOnly)return!1;let o=e(t,r);return!!o&&(n(r.update(o)),!0)}}let l=a(function(e,t,r=t.selection.ranges){let n=[],o=-1;for(let{from:e,to:i}of r){let r=n.length,s=1e9,a=d(t,e).line;if(a){for(let r=e;r<=i;){let l=t.doc.lineAt(r);if(l.from>o&&(e==i||i>l.from)){o=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,r=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<s&&(s=e),n.push({line:l,comment:r,token:a,indent:e,empty:t,single:!1})}r=l.to+1}if(s<1e9)for(let e=r;e<n.length;e++)n[e].indent<n[e].line.text.length&&(n[e].indent=s);n.length==r+1&&(n[r].single=!0)}}if(2!=e&&n.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:r,indent:o,empty:i,single:s}of n)(s||!i)&&e.push({from:t.from+o,insert:r+" "});let r=t.changes(e);return{changes:r,selection:t.selection.map(r,1)}}if(1!=e&&n.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:r,token:o}of n)if(r>=0){let n=t.from+r,i=n+o.length;" "==t.text[i-t.from]&&i++,e.push({from:n,to:i})}return{changes:e}}return null},0),u=a(p,0),c=a((e,t)=>p(e,t,function(e){let t=[];for(let r of e.selection.ranges){let n=e.doc.lineAt(r.from),o=r.to<=n.to?n:e.doc.lineAt(r.to);o.from>n.from&&o.from==r.to&&(o=r.to==n.to+1?n:e.doc.lineAt(r.to-1));let i=t.length-1;i>=0&&t[i].to>n.from?t[i].to=o.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:o.to})}return t}(t)),0);function d(e,t){let r=e.languageDataAt("commentTokens",t,1);return r.length?r[0]:{}}function p(e,t,r=t.selection.ranges){let n=r.map(e=>d(t,e.from).block);if(!n.every(e=>e))return null;let o=r.map((e,r)=>(function(e,{open:t,close:r},n,o){let i,s,a=e.sliceDoc(n-50,n),l=e.sliceDoc(o,o+50),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,d=a.length-u;if(a.slice(d-t.length,d)==t&&l.slice(c,c+r.length)==r)return{open:{pos:n-u,margin:u&&1},close:{pos:o+c,margin:c&&1}};o-n<=100?i=s=e.sliceDoc(n,o):(i=e.sliceDoc(n,n+50),s=e.sliceDoc(o-50,o));let p=/^\s*/.exec(i)[0].length,h=/\s*$/.exec(s)[0].length,f=s.length-h-r.length;return i.slice(p,p+t.length)==t&&s.slice(f,f+r.length)==r?{open:{pos:n+p+t.length,margin:/\s/.test(i.charAt(p+t.length))?1:0},close:{pos:o-h-r.length,margin:/\s/.test(s.charAt(f-1))?1:0}}:null})(t,n[r],e.from,e.to));if(2!=e&&!o.every(e=>e))return{changes:t.changes(r.map((e,t)=>o[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]))};if(1!=e&&o.some(e=>e)){let e=[];for(let t=0,r;t<o.length;t++)if(r=o[t]){let o=n[t],{open:i,close:s}=r;e.push({from:i.pos-o.open.length,to:i.pos+i.margin},{from:s.pos-s.margin,to:s.pos+o.close.length})}return{changes:e}}return null}let h=n.q6.define(),f=n.q6.define(),m=n.r$.define(),g=n.r$.define({combine:e=>(0,n.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}),y=n.QQ.define({create:()=>j.empty,update(e,t){let r=t.state.facet(g),o=t.annotation(h);if(o){let n=A.fromTransaction(t,o.selection),i=o.side,s=0==i?e.undone:e.done;return s=n?O(s,s.length,r.minDepth,n):T(s,t.startState.selection),new j(0==i?o.rest:s,0==i?s:o.rest)}let i=t.annotation(f);if(("full"==i||"before"==i)&&(e=e.isolate()),!1===t.annotation(n.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=A.fromTransaction(t),a=t.annotation(n.YW.time),l=t.annotation(n.YW.userEvent);return s?e=e.addChanges(s,a,l,r,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,r.newGroupDelay)),("full"==i||"after"==i)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new j(e.done.map(A.fromJSON),e.undone.map(A.fromJSON))});function x(e={}){return[y,g.of(e),o.tk.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?w:"historyRedo"==e.inputType?_:null;return!!r&&(e.preventDefault(),r(t))}})]}function b(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return!1;let o=r.field(y,!1);if(!o)return!1;let i=o.pop(e,r,t);return!!i&&(n(i),!0)}}let w=b(0,!1),_=b(1,!1),k=b(0,!0),C=b(1,!0);class A{constructor(e,t,r,n,o){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=n,this.selectionsAfter=o}setSelAfter(e){return new A(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(r=this.startSelection)||void 0===r?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new A(e.changes&&n.as.fromJSON(e.changes),[],e.mapped&&n.n0.fromJSON(e.mapped),e.startSelection&&n.jT.fromJSON(e.startSelection),e.selectionsAfter.map(n.jT.fromJSON))}static fromTransaction(e,t){let r=S;for(let t of e.startState.facet(m)){let n=t(e);n.length&&(r=r.concat(n))}return!r.length&&e.changes.empty?null:new A(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,S)}static selection(e){return new A(void 0,S,void 0,void 0,e)}}function O(e,t,r,n){let o=e.slice(t+1>r+20?t-r-1:0,t);return o.push(n),o}function D(e,t){return e.length?t.length?e.concat(t):e:t}let S=[];function T(e,t){if(!e.length)return[A.selection([t])];{let r=e[e.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-200));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),O(e,e.length-1,1e9,r.setSelAfter(n)))}}function E(e,t){if(!e.length)return e;let r=e.length,o=S;for(;r;){let i=function(e,t,r){let o=D(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):S,r);if(!e.changes)return A.selection(o);let i=e.changes.map(t),s=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(s):s;return new A(i,n.Py.mapEffects(e.effects,t),a,e.startSelection.map(s),o)}(e[r-1],t,o);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,r);return t[r-1]=i,t}t=i.mapped,r--,o=i.selectionsAfter}return o.length?[A.selection(o)]:S}let M=/^(input\.type|delete)($|\.)/;class j{constructor(e,t,r=0,n){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new j(this.done,this.undone):this}addChanges(e,t,r,o,i){var s,a;let l,u,c=this.done,d=c[c.length-1];if(d&&d.changes&&!d.changes.empty&&e.changes&&(!r||M.test(r))&&(!d.selectionsAfter.length&&t-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,(s=d.changes,a=e.changes,l=[],u=!1,s.iterChangedRanges((e,t)=>l.push(e,t)),a.iterChangedRanges((e,t,r,n)=>{for(let e=0;e<l.length;){let t=l[e++],o=l[e++];n>=t&&r<=o&&(u=!0)}}),u))||"input.type.compose"==r))c=O(c,c.length-1,o.minDepth,new A(e.changes.compose(d.changes),D(n.Py.mapEffects(e.effects,d.changes),d.effects),d.mapped,d.startSelection,S));else c=O(c,c.length,o.minDepth,e);return new j(c,S,t,r)}addSelection(e,t,r,n){var o,i;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:S;return s.length>0&&t-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(o=s[s.length-1],i=e,o.ranges.length==i.ranges.length&&0===o.ranges.filter((e,t)=>e.empty!=i.ranges[t].empty).length)?this:new j(T(this.done,e),this.undone,t,r)}addMapping(e){return new j(E(this.done,e),E(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let o=n[n.length-1],i=o.selectionsAfter[0]||t.selection;if(r&&o.selectionsAfter.length){var s;let r,a;return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:h.of({side:e,rest:(r=(s=n)[s.length-1],(a=s.slice())[s.length-1]=r.setSelAfter(r.selectionsAfter.slice(0,r.selectionsAfter.length-1)),a),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!o.changes)return null;{let r=1==n.length?S:n.slice(0,n.length-1);return o.mapped&&(r=E(r,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:h.of({side:e,rest:r,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}j.empty=new j(S,S);let N=[{key:"Mod-z",run:w,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:_,preventDefault:!0},{linux:"Ctrl-Shift-z",run:_,preventDefault:!0},{key:"Mod-u",run:k,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:C,preventDefault:!0}];function P(e,t){return n.jT.create(e.ranges.map(t),e.mainIndex)}function B(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function I({state:e,dispatch:t},r){let n=P(e.selection,r);return!n.eq(e.selection,!0)&&(t(B(e,n)),!0)}function L(e,t){return n.jT.cursor(t?e.to:e.from)}function F(e,t){return I(e,r=>r.empty?e.moveByChar(r,t):L(r,t))}function z(e){return e.textDirectionAt(e.state.selection.main.head)==o.Nm.LTR}let R=e=>F(e,!z(e)),X=e=>F(e,z(e));function Z(e,t){return I(e,r=>r.empty?e.moveByGroup(r,t):L(r,t))}"undefined"!=typeof Intl&&Intl.Segmenter;function W(e,t,r){let o,a,l=(0,i.qz)(e).resolveInner(t.head),u=r?s.md.closedBy:s.md.openedBy;for(let n=t.head;;){let t=r?l.childAfter(n):l.childBefore(n);if(!t)break;(function(e,t,r){if(t.type.prop(r))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild})(e,t,u)?l=t:n=r?t.to:t.from}return a=l.type.prop(u)&&(o=r?(0,i.Um)(e,l.from,1):(0,i.Um)(e,l.to,-1))&&o.matched?r?o.end.to:o.end.from:r?l.to:l.from,n.jT.cursor(a,r?-1:1)}function V(e,t){return I(e,r=>{if(!r.empty)return L(r,t);let n=e.moveVertically(r,t);return n.head!=r.head?n:e.moveToLineBoundary(r,t)})}let H=e=>V(e,!1),U=e=>V(e,!0);function q(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,n=0,i;if(t){for(let t of e.state.facet(o.tk.scrollMargins)){let o=t(e);(null==o?void 0:o.top)&&(r=Math.max(null==o?void 0:o.top,r)),(null==o?void 0:o.bottom)&&(n=Math.max(null==o?void 0:o.bottom,n))}i=e.scrollDOM.clientHeight-r-n}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:n,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function Y(e,t){let r,n=q(e),{state:i}=e,s=P(i.selection,r=>r.empty?e.moveVertically(r,t,n.height):L(r,t));if(s.eq(i.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,u=a.bottom-n.marginBottom;t&&t.top>l&&t.bottom<u&&(r=o.tk.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(B(i,s),{effects:r}),!0}let Q=e=>Y(e,!1),G=e=>Y(e,!0);function $(e,t,r){let o=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,r);if(i.head==t.head&&i.head!=(r?o.to:o.from)&&(i=e.moveToLineBoundary(t,r,!1)),!r&&i.head==o.from&&o.length){let r=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;r&&t.head!=o.from+r&&(i=n.jT.cursor(o.from+r))}return i}function K(e,t){let r=P(e.state.selection,e=>{let r=t(e);return n.jT.range(e.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!r.eq(e.state.selection)&&(e.dispatch(B(e.state,r)),!0)}function J(e,t){return K(e,r=>e.moveByChar(r,t))}let ee=e=>J(e,!z(e)),et=e=>J(e,z(e));function er(e,t){return K(e,r=>e.moveByGroup(r,t))}function en(e,t){return K(e,r=>e.moveVertically(r,t))}let eo=e=>en(e,!1),ei=e=>en(e,!0);function es(e,t){return K(e,r=>e.moveVertically(r,t,q(e).height))}let ea=e=>es(e,!1),el=e=>es(e,!0),eu=({state:e,dispatch:t})=>(t(B(e,{anchor:0})),!0),ec=({state:e,dispatch:t})=>(t(B(e,{anchor:e.doc.length})),!0),ed=({state:e,dispatch:t})=>(t(B(e,{anchor:e.selection.main.anchor,head:0})),!0),ep=({state:e,dispatch:t})=>(t(B(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function eh(e,t){if(e.state.readOnly)return!1;let r="delete.selection",{state:i}=e,s=i.changeByRange(o=>{let{from:i,to:s}=o;if(i==s){let n=t(o);n<i?(r="delete.backward",n=ef(e,n,!1)):n>i&&(r="delete.forward",n=ef(e,n,!0)),i=Math.min(i,n),s=Math.max(s,n)}else i=ef(e,i,!1),s=ef(e,s,!0);return i==s?{range:o}:{changes:{from:i,to:s},range:n.jT.cursor(i,i<o.head?-1:1)}});return!s.changes.empty&&(e.dispatch(i.update(s,{scrollIntoView:!0,userEvent:r,effects:"delete.selection"==r?o.tk.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ef(e,t,r){if(e instanceof o.tk)for(let n of e.state.facet(o.tk.atomicRanges).map(t=>t(e)))n.between(t,t,(e,n)=>{e<t&&n>t&&(t=r?n:e)});return t}let em=(e,t,r)=>eh(e,o=>{let s=o.from,{state:a}=e,l=a.doc.lineAt(s),u,c;if(r&&!t&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(u=l.text.slice(0,s-l.from))){if(" "==u[u.length-1])return s-1;let e=(0,n.IS)(u,a.tabSize)%(0,i.y1)(a)||(0,i.y1)(a);for(let t=0;t<e&&" "==u[u.length-1-t];t++)s--;c=s}else(c=(0,n.cp)(l.text,s-l.from,t,t)+l.from)==s&&l.number!=(t?a.doc.lines:1)?c+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(c-l.from,s-l.from))&&(c=(0,n.cp)(l.text,c-l.from,!1,!1)+l.from);return c}),eg=e=>em(e,!1,!0),ev=e=>em(e,!0,!1),ey=(e,t)=>eh(e,r=>{let o=r.head,{state:i}=e,s=i.doc.lineAt(o),a=i.charCategorizer(o);for(let e=null;;){if(o==(t?s.to:s.from)){o==r.head&&s.number!=(t?i.doc.lines:1)&&(o+=t?1:-1);break}let l=(0,n.cp)(s.text,o-s.from,t)+s.from,u=s.text.slice(Math.min(o,l)-s.from,Math.max(o,l)-s.from),c=a(u);if(null!=e&&c!=e)break;(" "!=u||o!=r.head)&&(e=c),o=l}return o}),ex=e=>ey(e,!1);function eb(e){let t=[],r=-1;for(let n of e.selection.ranges){let o=e.doc.lineAt(n.from),i=e.doc.lineAt(n.to);if(!n.empty&&n.to==i.from&&(i=e.doc.lineAt(n.to-1)),r>=o.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(n)}else t.push({from:o.from,to:i.to,ranges:[n]});r=i.number+1}return t}function ew(e,t,r){if(e.readOnly)return!1;let o=[],i=[];for(let t of eb(e)){if(r?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(r?t.to+1:t.from-1),a=s.length+1;if(r)for(let r of(o.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak}),t.ranges))i.push(n.jT.range(Math.min(e.doc.length,r.anchor+a),Math.min(e.doc.length,r.head+a)));else for(let r of(o.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text}),t.ranges))i.push(n.jT.range(r.anchor-a,r.head-a))}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:n.jT.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function e_(e,t,r){if(e.readOnly)return!1;let n=[];for(let t of eb(e))r?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let ek=eA(!1),eC=eA(!0);function eA(e){return({state:t,dispatch:r})=>{if(t.readOnly)return!1;let o=t.changeByRange(r=>{let{from:o,to:a}=r,l=t.doc.lineAt(o),u=!e&&o==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let r=(0,i.qz)(e).resolveInner(t),n=r.childBefore(t),o=r.childAfter(t),a;return n&&o&&n.to<=t&&o.from>=t&&(a=n.type.prop(s.md.closedBy))&&a.indexOf(o.name)>-1&&e.doc.lineAt(n.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(n.to,o.from))?{from:n.to,to:o.from}:null}(t,o);e&&(o=a=(a<=l.to?l:t.doc.lineAt(a)).to);let c=new i.Gn(t,{simulateBreak:o,simulateDoubleBreak:!!u}),d=(0,i.K0)(c,o);for(null==d&&(d=(0,n.IS)(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));a<l.to&&/\s/.test(l.text[a-l.from]);)a++;u?{from:o,to:a}=u:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let p=["",(0,i.SS)(t,d)];return u&&p.push((0,i.SS)(t,c.lineIndent(l.from,-1))),{changes:{from:o,to:a,insert:n.xv.of(p)},range:n.jT.cursor(o+1+p[1].length)}});return r(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function eO(e,t){let r=-1;return e.changeByRange(o=>{let i=[];for(let n=o.from;n<=o.to;){let s=e.doc.lineAt(n);s.number>r&&(o.empty||o.to>s.from)&&(t(s,i,o),r=s.number),n=s.to+1}let s=e.changes(i);return{changes:i,range:n.jT.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}})}let eD=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eO(e,(t,r)=>{r.push({from:t.from,insert:e.facet(i.c)})}),{userEvent:"input.indent"})),!0),eS=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eO(e,(t,r)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let s=(0,n.IS)(o,e.tabSize),a=0,l=(0,i.SS)(e,Math.max(0,s-(0,i.y1)(e)));for(;a<o.length&&a<l.length&&o.charCodeAt(a)==l.charCodeAt(a);)a++;r.push({from:t.from+a,to:t.from+o.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"})),!0),eT=[{key:"Ctrl-b",run:R,shift:ee,preventDefault:!0},{key:"Ctrl-f",run:X,shift:et},{key:"Ctrl-p",run:H,shift:eo},{key:"Ctrl-n",run:U,shift:ei},{key:"Ctrl-a",run:e=>I(e,t=>n.jT.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>K(e,t=>n.jT.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>I(e,t=>n.jT.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>K(e,t=>n.jT.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:ev},{key:"Ctrl-h",run:eg},{key:"Ctrl-k",run:e=>eh(e,t=>{let r=e.lineBlockAt(t.head).to;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:ex},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:n.xv.of(["",""])},range:n.jT.cursor(e.from)}));return t(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let r=t.from,o=e.doc.lineAt(r),i=r==o.from?r-1:(0,n.cp)(o.text,r-o.from,!1)+o.from,s=r==o.to?r+1:(0,n.cp)(o.text,r-o.from,!0)+o.from;return{changes:{from:i,to:s,insert:e.doc.slice(r,s).append(e.doc.slice(i,r))},range:n.jT.cursor(s)}});return!r.changes.empty&&(t(e.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:G}],eE=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>I(e,t=>W(e.state,t,!z(e))),shift:e=>K(e,t=>W(e.state,t,!z(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>I(e,t=>W(e.state,t,z(e))),shift:e=>K(e,t=>W(e.state,t,z(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>ew(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>e_(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>ew(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>e_(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let r=e.selection,o=null;return r.ranges.length>1?o=n.jT.create([r.main]):!r.main.empty&&(o=n.jT.create([n.jT.cursor(r.main.head)])),!!o&&(t(B(e,o)),!0)}},{key:"Mod-Enter",run:eC},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let r=eb(e).map(({from:t,to:r})=>n.jT.range(t,Math.min(r+1,e.doc.length)));return t(e.update({selection:n.jT.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let r=P(e.selection,t=>{let r=(0,i.qz)(e),o=r.resolveStack(t.from,1);if(t.empty){let e=r.resolveStack(t.from,-1);e.node.from>=o.node.from&&e.node.to<=o.node.to&&(o=e)}for(let e=o;e;e=e.next){let{node:r}=e;if((r.from<t.from&&r.to>=t.to||r.to>t.to&&r.from<=t.from)&&e.next)return n.jT.range(r.to,r.from)}return t});return!r.eq(e.selection)&&(t(B(e,r)),!0)},preventDefault:!0},{key:"Mod-[",run:eS},{key:"Mod-]",run:eD},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Object.create(null),n=new i.Gn(e,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=eO(e,(t,o,s)=>{let a=(0,i.K0)(n,t.from);if(null==a)return;!/\S/.test(t.text)&&(a=0);let l=/^\s*/.exec(t.text)[0],u=(0,i.SS)(e,a);(l!=u||s.from<t.from+l.length)&&(r[t.from]=a,o.push({from:t.from,to:t.from+l.length,insert:u}))});return!o.changes.empty&&t(e.update(o,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,r=t.changes(eb(t).map(({from:e,to:r})=>(e>0?e--:r<t.doc.length&&r++,{from:e,to:r}))),n=P(t.selection,t=>{let r;if(e.lineWrapping){let n=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);o&&(r=n.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,r)}).map(r);return e.dispatch({changes:r,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{var r,o,s;let a,l;return r=e,o=t,s=!1,a=!1,l=P(r.selection,e=>{let t=(0,i.Um)(r,e.head,-1)||(0,i.Um)(r,e.head,1)||e.head>0&&(0,i.Um)(r,e.head-1,1)||e.head<r.doc.length&&(0,i.Um)(r,e.head+1,-1);if(!t||!t.end)return e;a=!0;let o=t.start.from==e.head?t.end.to:t.end.from;return s?n.jT.range(e.anchor,o):n.jT.cursor(o)}),!!a&&(o(B(r,l)),!0)}},{key:"Mod-/",run:e=>{let{state:t}=e,r=t.doc.lineAt(t.selection.main.from),n=d(e.state,r.from);return n.line?l(e):!!n.block&&c(e)}},{key:"Alt-A",run:u},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:R,shift:ee,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Z(e,!z(e)),shift:e=>er(e,!z(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>I(e,t=>$(e,t,!z(e))),shift:e=>K(e,t=>$(e,t,!z(e))),preventDefault:!0},{key:"ArrowRight",run:X,shift:et,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Z(e,z(e)),shift:e=>er(e,z(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>I(e,t=>$(e,t,z(e))),shift:e=>K(e,t=>$(e,t,z(e))),preventDefault:!0},{key:"ArrowUp",run:H,shift:eo,preventDefault:!0},{mac:"Cmd-ArrowUp",run:eu,shift:ed},{mac:"Ctrl-ArrowUp",run:Q,shift:ea},{key:"ArrowDown",run:U,shift:ei,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ec,shift:ep},{mac:"Ctrl-ArrowDown",run:G,shift:el},{key:"PageUp",run:Q,shift:ea},{key:"PageDown",run:G,shift:el},{key:"Home",run:e=>I(e,t=>$(e,t,!1)),shift:e=>K(e,t=>$(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:eu,shift:ed},{key:"End",run:e=>I(e,t=>$(e,t,!0)),shift:e=>K(e,t=>$(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:ec,shift:ep},{key:"Enter",run:ek,shift:ek},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:eg,shift:eg},{key:"Delete",run:ev},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ex},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>ey(e,!0)},{mac:"Mod-Backspace",run:e=>eh(e,t=>{let r=e.moveToLineBoundary(t,!1).head;return t.head>r?r:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:e=>eh(e,t=>{let r=e.moveToLineBoundary(t,!0).head;return t.head<r?r:Math.min(e.state.doc.length,t.head+1)})}].concat(eT.map(e=>({mac:e.key,run:e.run,shift:e.shift})))),eM={key:"Tab",run:eD,shift:eS}},562312:function(e,t,r){"use strict";r.d(t,{Dv:function(){return V},Gn:function(){return j},K0:function(){return M},KC:function(){return d},Qf:function(){return ed},R_:function(){return ev},SQ:function(){return p},SS:function(){return E},Um:function(){return ew},c:function(){return S},e7:function(){return ee},il:function(){return eO},kU:function(){return c},mi:function(){return eu},nF:function(){return em},nY:function(){return X},pp:function(){return u},qp:function(){return f},qz:function(){return m},ri:function(){return O},rs:function(){return Z},tC:function(){return R},uj:function(){return N},vw:function(){return L},x0:function(){return W},y1:function(){return T},ze:function(){return z}});var n,o=r(437254),i=r(913693),s=r(249294),a=r(888855),l=r(775985);let u=new o.md;function c(e){return i.r$.define({combine:e?t=>t.concat(e):void 0})}let d=new o.md;class p{constructor(e,t,r=[],n=""){this.data=e,this.name=n,!i.yy.prototype.hasOwnProperty("tree")&&Object.defineProperty(i.yy.prototype,"tree",{get(){return m(this)}}),this.parser=t,this.extension=[A.of(this),i.yy.languageData.of((e,t,r)=>{let n=h(e,t,r),o=n.type.prop(u);if(!o)return[];let i=e.facet(o),s=n.type.prop(d);if(s){let o=n.resolve(t-n.from,r);for(let t of s)if(t.test(o,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(i)}}return i})].concat(r)}isActiveAt(e,t,r=-1){return h(e,t,r).type.prop(u)==this.data}findRegions(e){let t=e.facet(A);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],n=(e,t)=>{if(e.prop(u)==this.data){r.push({from:t,to:t+e.length});return}let i=e.prop(o.md.mounted);if(i){if(i.tree.prop(u)==this.data){if(i.overlay)for(let e of i.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}if(i.overlay){let e=r.length;if(n(i.tree,i.overlay[0].from+t),r.length>e)return}}for(let r=0;r<e.children.length;r++){let i=e.children[r];i instanceof o.mp&&n(i,e.positions[r]+t)}};return n(m(e),0),r}get allowsNesting(){return!0}}function h(e,t,r){let n=e.facet(A),i=m(e).topNode;if(!n||n.allowsNesting)for(let e=i;e;e=e.enter(t,r,o.vj.ExcludeBuffers))e.type.isTop&&(i=e);return i}p.setState=i.Py.define();class f extends p{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=c(e.languageData);return new f(t,e.parser.configure({props:[u.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new f(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function m(e){let t=e.field(p.state,!1);return t?t.tree:o.mp.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let y=null;class x{constructor(e,t,r=[],n,o,i,s,a){this.parser=e,this.state=t,this.fragments=r,this.tree=n,this.treeLen=o,this.viewport=i,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new x(e,t,[],o.mp.empty,0,r,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=o.mp.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(!this.parse&&(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(o.i9.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(r=this.parse.stoppedAt)&&void 0!==r?r:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(o.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=y;y=this;try{return e()}finally{y=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=b(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:n,treeLen:i,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,r,n,o)=>t.push({fromA:e,toA:r,fromB:n,toB:o})),r=o.i9.applyChanges(r,t),n=o.mp.empty,i=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length)for(let t of(a=[],this.skipped)){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);r<n&&a.push({from:r,to:n})}}return new x(this.parser,t,r,n,i,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:r,to:n}=this.skipped[t];r<e.to&&n>e.from&&(this.fragments=b(this.fragments,r,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends o._b{createParse(t,r,n){let i=n[0].from,s=n[n.length-1].to;return{parsedPos:i,advance(){let t=y;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new o.mp(o.Jq.none,[],[],s-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return y}}function b(e,t,r){return o.i9.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class w{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return!t.work(20,r)&&t.takeTree(),new w(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=x.create(e.facet(A).parser,e,{from:0,to:t});return!r.work(20,t)&&r.takeTree(),new w(r)}}p.state=i.QQ.define({create:w.init,update(e,t){for(let e of t.effects)if(e.is(p.setState))return e.value;return t.startState.facet(A)!=t.state.facet(A)?w.init(t.state):e.apply(t)}});let _=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(_=e=>{let t=-1,r=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)});let k="undefined"!=typeof navigator&&(null===(n=navigator.scheduling)||void 0===n?void 0:n.isInputPending)?()=>navigator.scheduling.isInputPending():null,C=s.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(p.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(p.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=_(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,o=r.field(p.state);if(o.tree==o.context.tree&&o.context.isDone(n+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,e&&!k?Math.max(25,e.timeRemaining()-5):1e9),s=o.context.treeLen<n&&r.doc.length>n+1e3,a=o.context.work(()=>k&&k()||Date.now()>i,n+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:p.setState.of(new w(o.context))})),this.chunkBudget>0&&!(a&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,s.OO)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),A=i.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[p.state,C,s.tk.contentAttributes.compute([e],t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}})]});class O{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let D=i.r$.define(),S=i.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function T(e){let t=e.facet(S);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function E(e,t){let r="",n=e.tabSize,o=e.facet(S)[0];if(" "==o){for(;t>=n;)r+=" ",t-=n;o=" "}for(let e=0;e<t;e++)r+=o;return r}function M(e,t){for(let r of(e instanceof i.yy&&(e=new j(e)),e.state.facet(D))){let n=r(e,t);if(void 0!==n)return n}let r=m(e.state);return r.length>=t?function(e,t,r){let n=t.resolveStack(r),o=t.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(o!=n.node){let e=[];for(let t=o;t&&!(t.from<n.node.from||t.to>n.node.to||t.from==n.node.from&&t.type==n.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return P(n,e,r)}(e,r,t):null}class j{constructor(e,t={}){this.state=e,this.options=t,this.unit=T(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:o}=this.options;if(null!=n&&n>=r.from&&n<=r.to)return o&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:r.text.slice(n-r.from),from:n}:{text:r.text.slice(0,n-r.from),from:r.from};return r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,t);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,t=1){let{text:r,from:n}=this.lineAt(e,t),o=this.countColumn(r,e-n),i=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return i>-1&&(o+=i-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,t=e.length){return(0,i.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let e=o(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let N=new o.md;function P(e,t,r){for(let n=e;n;n=n.next){let e=function(e){let t=e.type.prop(N);if(t)return t;let r=e.firstChild,n;if(r&&(n=r.type.prop(o.md.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>{var n;return F(e,!0,1,void 0,r&&!((n=e).pos==n.options.simulateBreak&&n.options.simulateDoubleBreak)?t.from:void 0)}}return null==e.parent?B:null}(n.node);if(e)return e(I.create(t,r,n))}return 0}function B(){return 0}class I extends j{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new I(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(function(e,t){for(let r=t;r;r=r.parent)if(e==r)return!0;return!1}(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return P(this.context.next,this.base,this.pos)}}function L({closing:e,align:t=!0,units:r=1}){return n=>F(n,t,r,e)}function F(e,t,r,n,o){let i=e.textAfter,s=i.match(/^\s*/)[0].length,a=n&&i.slice(s,s+n.length)==n||o==e.pos+s,l=t?function(e){let t=e.node,r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let o=e.options.simulateBreak,i=e.state.doc.lineAt(r.from),s=null==o||o<=i.from?i.to:Math.min(i.to,o);for(let e=r.to;;){let o=t.childAfter(e);if(!o||o==n)return null;if(!o.type.isSkipped){if(o.from>=s)return null;let e=/^ */.exec(i.text.slice(r.to-i.from))[0].length;return{from:r.from,to:r.to+e}}e=o.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*r)}let z=e=>e.baseIndent;function R({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}}function X(){return i.yy.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let r=e.newDoc,{head:n}=e.newSelection.main,o=r.lineAt(n);if(n>o.from+200)return e;let i=r.sliceString(o.from,n);if(!t.some(e=>e.test(i)))return e;let{state:s}=e,a=-1,l=[];for(let{head:e}of s.selection.ranges){let t=s.doc.lineAt(e);if(t.from==a)continue;a=t.from;let r=M(s,t.from);if(null==r)continue;let n=/^\s*/.exec(t.text)[0],o=E(s,r);n!=o&&l.push({from:t.from,to:t.from+n.length,insert:o})}return l.length?[e,{changes:l,sequential:!0}]:e})}let Z=i.r$.define(),W=new o.md;function V(e){let t=e.firstChild,r=e.lastChild;return t&&t.to<r.from?{from:t.to,to:r.type.isError?e.to:r.from}:null}function H(e,t,r){for(let n of e.facet(Z)){let o=n(e,t,r);if(o)return o}return function(e,t,r){let n=m(e);if(n.length<r)return null;let o=n.resolveStack(r,1),i=null;for(let s=o;s;s=s.next){let o=s.node;if(o.to<=r||o.from>r)continue;if(i&&o.from<t)break;let a=o.type.prop(W);if(a&&(o.to<n.length-50||n.length==e.doc.length||!function(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(o))){let n=a(o,e);n&&n.from<=r&&n.from>=t&&n.to>r&&(i=n)}}return i}(e,t,r)}function U(e,t){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return r>=n?void 0:{from:r,to:n}}let q=i.Py.define({map:U}),Y=i.Py.define({map:U});function Q(e){let t=[];for(let{head:r}of e.state.selection.ranges)!t.some(e=>e.from<=r&&e.to>=r)&&t.push(e.lineBlockAt(r));return t}let G=i.QQ.define({create:()=>s.p.none,update(e,t){for(let r of(e=e.map(t.changes),t.effects))if(r.is(q)&&!function(e,t,r){let n=!1;return e.between(t,t,(e,o)=>{e==t&&o==r&&(n=!0)}),n}(e,r.value.from,r.value.to)){let{preparePlaceholder:n}=t.state.facet(er),o=n?s.p.replace({widget:new es(n(t.state,r.value))}):ei;e=e.update({add:[o.range(r.value.from,r.value.to)]})}else r.is(Y)&&(e=e.update({filter:(e,t)=>r.value.from!=e||r.value.to!=t,filterFrom:r.value.from,filterTo:r.value.to}));if(t.selection){let r=!1,{head:n}=t.selection.main;e.between(n,n,(e,t)=>{e<n&&t>n&&(r=!0)}),r&&(e=e.update({filterFrom:n,filterTo:n,filter:(e,t)=>t<=n||e>=n}))}return e},provide:e=>s.tk.decorations.from(e),toJSON(e,t){let r=[];return e.between(0,t.doc.length,(e,t)=>{r.push(e,t)}),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r<e.length;){let n=e[r++],o=e[r++];if("number"!=typeof n||"number"!=typeof o)throw RangeError("Invalid JSON for fold state");t.push(ei.range(n,o))}return s.p.set(t,!0)}});function $(e,t,r){var n;let o=null;return null===(n=e.field(G,!1))||void 0===n||n.between(t,r,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o}function K(e,t){return e.field(G,!1)?t:t.concat(i.Py.appendConfig.of(en()))}function J(e,t,r=!0){let n=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return s.tk.announce.of(`${e.state.phrase(r?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${o}.`)}let ee=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of Q(e)){let r=H(e.state,t.from,t.to);if(r)return e.dispatch({effects:K(e.state,[q.of(r),J(e,r)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(G,!1))return!1;let t=[];for(let r of Q(e)){let n=$(e.state,r.from,r.to);n&&t.push(Y.of(n),J(e,n,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,r=[];for(let n=0;n<t.doc.length;){let o=e.lineBlockAt(n),i=H(t,o.from,o.to);i&&r.push(q.of(i)),n=(i?e.lineBlockAt(i.to):o).to+1}return r.length&&e.dispatch({effects:K(e.state,r)}),!!r.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(G,!1);if(!t||!t.size)return!1;let r=[];return t.between(0,e.state.doc.length,(e,t)=>{r.push(Y.of({from:e,to:t}))}),e.dispatch({effects:r}),!0}}],et={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},er=i.r$.define({combine:e=>(0,i.BO)(e,et)});function en(e){let t=[G,ec];return e&&t.push(er.of(e)),t}function eo(e,t){let{state:r}=e,n=r.facet(er),o=t=>{let r=e.lineBlockAt(e.posAtDOM(t.target)),n=$(e.state,r.from,r.to);n&&e.dispatch({effects:Y.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,o,t);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",r.phrase("folded code")),i.title=r.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}let ei=s.p.replace({widget:new class extends s.l9{toDOM(e){return eo(e,null)}}});class es extends s.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return eo(e,this.value)}}let ea={openText:"⌄",closedText:"",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class el extends s.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function eu(e={}){let t={...ea,...e},r=new el(t,!0),n=new el(t,!1),o=s.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(A)!=e.state.facet(A)||e.startState.field(G,!1)!=e.state.field(G,!1)||m(e.startState)!=m(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new i.f_;for(let o of e.viewportLineBlocks){let i=$(e.state,o.from,o.to)?n:H(e.state,o.from,o.to)?r:null;i&&t.add(o.from,o.from,i)}return t.finish()}}),{domEventHandlers:a}=t;return[o,(0,s.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.markers)||i.Xs.empty},initialSpacer:()=>new el(t,!1),domEventHandlers:{...a,click:(e,t,r)=>{if(a.click&&a.click(e,t,r))return!0;let n=$(e.state,t.from,t.to);if(n)return e.dispatch({effects:Y.of(n)}),!0;let o=H(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:q.of(o)}),!0)}}}),en()]}let ec=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 ed{constructor(e,t){let r;function n(e){let t=l.V.newName();return(r||(r=Object.create(null)))["."+t]=e,t}this.specs=e;let o="string"==typeof t.all?t.all:t.all?n(t.all):void 0,i=t.scope;this.scope=i instanceof p?e=>e.prop(u)==i.data:i?e=>e==i:void 0,this.style=(0,a.QR)(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:o}).style,this.module=r?new l.V(r):null,this.themeType=t.themeType}static define(e,t){return new ed(e,t||{})}}let ep=i.r$.define(),eh=i.r$.define({combine:e=>e.length?[e[0]]:null});function ef(e){let t=e.facet(ep);return t.length?t:e.facet(eh)}function em(e,t){let r=[eg],n;return e instanceof ed&&(e.module&&r.push(s.tk.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(eh.of(e)):n?r.push(ep.computeN([s.tk.darkTheme],t=>t.facet(s.tk.darkTheme)==("dark"==n)?[e]:[])):r.push(ep.of(e)),r}let eg=i.Wl.high(s.lg.fromClass(class e{constructor(e){this.markCache=Object.create(null),this.tree=m(e.state),this.decorations=this.buildDeco(e,ef(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=m(e.state),r=ef(e.state),n=r!=ef(e.startState),{viewport:o}=e.view,i=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!n&&t.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return s.p.none;let r=new i.f_;for(let{from:n,to:o}of e.visibleRanges)(0,a.bW)(this.tree,t,(e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=s.p.mark({class:n})))},n,o);return r.finish()}},{decorations:e=>e.decorations})),ev=ed.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"}]),ey=new o.md;function ex(e,t,r){let n=e.prop(t<0?o.md.openedBy:o.md.closedBy);if(n)return n;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[r[n+t]]}return null}function eb(e){let t=e.type.prop(ey);return t?t(e.node):e}function ew(e,t,r,n={}){let o=n.maxScanDistance||1e4,i=n.brackets||"()[]{}",s=m(e),a=s.resolveInner(t,r);for(let n=a;n;n=n.parent){let o=ex(n.type,r,i);if(o&&n.from<n.to){let s=eb(n);if(s&&(r>0?t>=s.from&&t<s.to:t>s.from&&t<=s.to))return function(e,t,r,n,o,i,s){let a=n.parent,l={from:o.from,to:o.to},u=0,c=null==a?void 0:a.cursor();if(c&&(r<0?c.childBefore(n.from):c.childAfter(n.to)))do if(r<0?c.to<=n.from:c.from>=n.to){if(0==u&&i.indexOf(c.type.name)>-1&&c.from<c.to){let e=eb(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(ex(c.type,r,s))u++;else if(ex(c.type,-r,s)){if(0==u){let e=eb(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}while(r<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}(e,t,r,n,s,o,i)}}return function(e,t,r,n,o,i,s){let a=r<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=r>0)return null;let u={from:r<0?t-1:t,to:r>0?t+1:t},c=e.doc.iterRange(t,r>0?e.doc.length:0),d=0;for(let e=0;!c.next().done&&e<=i;){let i=c.value;r<0&&(e+=i.length);let a=t+e*r;for(let e=r>0?0:i.length-1,t=r>0?i.length:-1;e!=t;e+=r){let t=s.indexOf(i[e]);if(!(t<0)&&n.resolveInner(a+e,1).type==o){if(t%2==0==r>0)d++;else{if(1==d)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};d--}}}r>0&&(e+=i.length)}return c.done?{start:u,matched:!1}:null}(e,t,r,s,a.type,o,i)}function e_(e,t,r,n=0,o=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let i=o;for(let o=n;o<t;o++)9==e.charCodeAt(o)?i+=r-i%r:i++;return i}class ek{constructor(e,t,r,n){this.string=e,this.tabSize=t,this.indentUnit=r,this.overrideIndent=n,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,r=this.string.charAt(this.pos);if(t="string"==typeof e?r==e:r&&(e instanceof RegExp?e.test(r):e(r)))return++this.pos,r}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=e_(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:e_(this.string,null,this.tabSize)}match(e,t,r){if("string"==typeof e){let n=e=>r?e.toLowerCase():e;return n(this.string.substr(this.pos,e.length))==n(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function eC(e){if("object"!=typeof e)return e;let t={};for(let r in e){let n=e[r];t[r]=n instanceof Array?n.slice():n}return t}let eA=new WeakMap;class eO extends p{constructor(e){var t;let r=c(e.languageData);let n={name:(t=e).name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||eC,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||eE,mergeTokens:!1!==t.mergeTokens},i;super(r,new class extends o._b{createParse(e,t,r){return new eS(i,e,t,r)}},[],e.name),this.topNode=function(e,t){let r=o.Jq.define({id:eM.length,name:"Document",props:[u.add(()=>e),N.add(()=>e=>t.getIndent(e))],top:!0});return eM.push(r),r}(r,this),i=this,this.streamParser=n,this.stateAfter=new o.md({perNode:!0}),this.tokenTable=e.tokenTable?new eI(n.tokenTable):eL}static define(e){return new eO(e)}getIndent(e){let t;let{overrideIndentation:r}=e.options;r&&null!=(t=eA.get(e.state))&&t<e.pos-1e4&&(t=void 0);let n=eD(this,e.node.tree,e.node.from,e.node.from,null!=t?t:e.pos),o,i;if(n?(i=n.state,o=n.pos+1):(i=this.streamParser.startState(e.unit),o=e.node.from),e.pos-o>1e4)return null;for(;o<e.pos;){let t=e.state.doc.lineAt(o),n=Math.min(e.pos,t.to);if(t.length){let o=r?r(t.from):-1,s=new ek(t.text,e.state.tabSize,e.unit,o<0?void 0:o);for(;s.pos<n-t.from;)eT(this.streamParser.token,s,i)}else this.streamParser.blankLine(i,e.unit);if(n==e.pos)break;o=t.to+1}let s=e.lineAt(e.pos);return r&&null==t&&eA.set(e.state,s.from),this.streamParser.indent(i,/^\s*(.*)/.exec(s.text)[1],e)}get allowsNesting(){return!1}}function eD(e,t,r,n,i){let s=r>=n&&r+t.length<=i&&t.prop(e.stateAfter);if(s)return{state:e.streamParser.copyState(s),pos:r+t.length};for(let s=t.children.length-1;s>=0;s--){let a=t.children[s],l=r+t.positions[s],u=a instanceof o.mp&&l<i&&eD(e,a,l,n,i);if(u)return u}return null}class eS{constructor(e,t,r,n){this.lang=e,this.input=t,this.fragments=r,this.ranges=n,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=n[n.length-1].to;let i=x.get(),s=n[0].from,{state:a,tree:l}=function(e,t,r,n,i){for(let i of t){let t=i.from+(i.openStart?25:0),s=i.to-(i.openEnd?25:0),a=t<=r&&s>r&&eD(e,i.tree,0-i.offset,r,s),l;if(a&&a.pos<=n&&(l=function e(t,r,n,i,s){if(s&&n<=0&&i>=r.length)return r;!s&&0==n&&r.type==t.topNode&&(s=!0);for(let a=r.children.length-1;a>=0;a--){let l=r.positions[a],u=r.children[a],c;if(l<i&&u instanceof o.mp){if(!(c=e(t,u,n-l,i-l,s)))break;return s?new o.mp(r.type,r.children.slice(0,a).concat(c),r.positions.slice(0,a+1),l+c.length):c}}return null}(e,i.tree,r+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:l}}return{state:e.streamParser.startState(i?T(i):4),tree:o.mp.empty}}(e,r,s,this.to,null==i?void 0:i.state);this.state=a,this.parsedPos=this.chunkStart=s+l.length;for(let e=0;e<l.children.length;e++)this.chunks.push(l.children[e]),this.chunkPos.push(l.positions[e]);i&&this.parsedPos<i.viewport.from-1e5&&n.some(e=>e.from<=i.viewport.from&&e.to>=i.viewport.from)&&(this.state=this.lang.streamParser.startState(T(i.state)),i.skipUntilInView(this.parsedPos,i.viewport.from),this.parsedPos=i.viewport.from),this.moveRangeIndex()}advance(){let e=x.get(),t=null==this.stoppedAt?this.to:Math.min(this.to,this.stoppedAt),r=Math.min(t,this.chunkStart+2048);for(e&&(r=Math.min(r,e.viewport.to));this.parsedPos<r;)this.parseLine(e);return(this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t)?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),r=e+t.length;for(let e=this.rangeIndex;;){let n=this.ranges[e].to;if(n>=r)break;if(t=t.slice(0,n-(r-t.length)),++e==this.ranges.length)break;let o=this.ranges[e].from,i=this.lineAfter(o);t+=i,r=o+i.length}return{line:t,end:r}}skipGapsTo(e,t,r){for(;;){let n=this.ranges[this.rangeIndex].to,o=e+t;if(r>0?n>o:n>=o)break;let i=this.ranges[++this.rangeIndex].from;t+=i-n}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,r,n){let o=4;if(this.ranges.length>1){n=this.skipGapsTo(t,n,1),t+=n;let e=this.chunk.length;n=this.skipGapsTo(r,n,-1),r+=n,o+=this.chunk.length-e}let i=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&4==o&&i>=0&&this.chunk[i]==e&&this.chunk[i+2]==t?this.chunk[i+2]=r:this.chunk.push(e,t,r,o),n}parseLine(e){let{line:t,end:r}=this.nextLine(),n=0,{streamParser:o}=this.lang,i=new ek(t,e?e.state.tabSize:4,e?T(e.state):2);if(i.eol())o.blankLine(this.state,i.indentUnit);else for(;!i.eol();){let e=eT(o.token,i,this.state);if(e&&(n=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+i.start,this.parsedPos+i.pos,n)),i.start>1e4)break}this.parsedPos=r,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=o.mp.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:ej,topID:0,maxBufferLength:2048,reused:this.chunkReused});e=new o.mp(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new o.mp(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}}function eT(e,t,r){t.start=t.pos;for(let n=0;n<10;n++){let n=e(t,r);if(t.pos>t.start)return n}throw Error("Stream parser failed to advance stream.")}let eE=Object.create(null),eM=[o.Jq.none],ej=new o.Lj(eM),eN=[],eP=Object.create(null),eB=Object.create(null);for(let[e,t]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"]])eB[e]=ez(eE,t);class eI{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),eB)}resolve(e){return e?this.table[e]||(this.table[e]=ez(this.extra,e)):0}}let eL=new eI(eE);function eF(e,t){!(eN.indexOf(e)>-1)&&(eN.push(e),console.warn(t))}function ez(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||a.pJ[r];n?"function"==typeof n?t.length?t=t.map(n):eF(r,`Modifier ${r} used at start of tag`):t.length?eF(r,`Tag ${r} used as modifier`):t=Array.isArray(n)?n:[n]:eF(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let n=t.replace(/ /g,"_"),i=n+" "+r.map(e=>e.id),s=eP[i];if(s)return s.id;let l=eP[i]=o.Jq.define({id:eM.length,name:n,props:[(0,a.Gv)({[n]:r})]});return eM.push(l),l.id}function eR(e){return e.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e)}let eX={rtl:s.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:s.Nm.RTL}),ltr:s.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:s.Nm.LTR}),auto:s.p.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}},913693:function(e,t,r){"use strict";let n;r.d(t,{Py:()=>em,q6:()=>ep,n0:()=>M,Xs:()=>eE,xv:()=>p,YW:()=>eg,as:()=>j,F6:()=>ee,IS:()=>eZ,gm:()=>C,jT:()=>R,gc:()=>E,bg:()=>A,uU:()=>eO,f_:()=>eM,yy:()=>eC,BO:()=>eA,QQ:()=>Q,r$:()=>W,D0:()=>e_,nZ:()=>O,cp:()=>k,Gz:()=>eW,Wl:()=>K});let o=[],i=[];(()=>{let e="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(e=>e?parseInt(e,36):1);for(let t=0,r=0;t<e.length;t++)(t%2?i:o).push(r+=e[t])})();function s(e){return e>=127462&&e<=127487}function a(e,t,r){if(t==e.length)return t;t&&u(e.charCodeAt(t))&&c(e.charCodeAt(t-1))&&t--;let n=l(e,t);for(t+=d(n);t<e.length;){let a=l(e,t);if(8205==n||8205==a||r&&function(e){if(e<768)return!1;for(let t=0,r=o.length;;){let n=t+r>>1;if(e<o[n])r=n;else{if(!(e>=i[n]))return!0;t=n+1}if(t==r)return!1}}(a))t+=d(a),n=a;else if(s(a)){let r=0,n=t-2;for(;n>=0&&s(l(e,n));)r++,n-=2;if(r%2==0)break;t+=2}else break}return t}function l(e,t){let r=e.charCodeAt(t);if(!c(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return u(n)?(r-55296<<10)+(n-56320)+65536:r}function u(e){return e>=56320&&e<57344}function c(e){return e>=55296&&e<56320}function d(e){return e<65536?1:2}class p{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=_(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),f.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=_(this,e,t);let r=[];return this.decompose(e,t,r,0),f.from(r,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new y(this),o=new y(e);for(let e=t,i=t;;){if(n.next(e),o.next(e),e=0,n.lineBreak!=o.lineBreak||n.done!=o.done||n.value!=o.value)return!1;if(i+=n.value.length,n.done||i>=r)return!0}}iter(e=1){return new y(this,e)}iterRange(e,t=this.length){return new x(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new b(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new h(e):f.from(h.split(e,[])):p.empty}}class h extends p{constructor(e,t=function(e){let t=-1;for(let r of e)t+=r.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let o=0;;o++){let i=this.text[o],s=n+i.length;if((t?r:s)>=e)return new w(n,s,r,i);n=s+1,r++}}decompose(e,t,r,n){let o=e<=0&&t>=this.length?this:new h(function(e,t,r){return m(e,[""],t,r)}(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=r.pop(),t=m(o.text,e.text.slice(),0,o.length);if(t.length<=32)r.push(new h(t,e.length+o.length));else{let e=t.length>>1;r.push(new h(t.slice(0,e)),new h(t.slice(e)))}}else r.push(o)}replace(e,t,r){if(!(r instanceof h))return super.replace(e,t,r);[e,t]=_(this,e,t);let n=m(this.text,m(r.text,function(e,t,r){return m(e,[""],t,r)}(this.text,0,e)),t),o=this.length+r.length-(t-e);return n.length<=32?new h(n,o):f.from(h.split(n,[]),o)}sliceString(e,t=this.length,r="\n"){[e,t]=_(this,e,t);let n="";for(let o=0,i=0;o<=t&&i<this.text.length;i++){let s=this.text[i],a=o+s.length;o>e&&i&&(n+=r),e<a&&t>o&&(n+=s.slice(Math.max(0,e-o),t-o)),o=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let o of e)r.push(o),n+=o.length+1,32==r.length&&(t.push(new h(r,n)),r=[],n=-1);return n>-1&&t.push(new h(r,n)),t}}class f extends p{constructor(e,t){for(let r of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=r.lines}lineInner(e,t,r,n){for(let o=0;;o++){let i=this.children[o],s=n+i.length,a=r+i.lines-1;if((t?a:s)>=e)return i.lineInner(e,t,r,n);n=s+1,r=a+1}}decompose(e,t,r,n){for(let o=0,i=0;i<=t&&o<this.children.length;o++){let s=this.children[o],a=i+s.length;if(e<=a&&t>=i){let o=n&((i<=e?1:0)|(a>=t?2:0));i>=e&&a<=t&&!o?r.push(s):s.decompose(e-i,t-i,r,o)}i=a+1}}replace(e,t,r){if([e,t]=_(this,e,t),r.lines<this.lines)for(let n=0,o=0;n<this.children.length;n++){let i=this.children[n],s=o+i.length;if(e>=o&&t<=s){let a=i.replace(e-o,t-o,r),l=this.lines-i.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let o=this.children.slice();return o[n]=a,new f(o,this.length-(t-e)+r.length)}return super.replace(o,s,a)}o=s+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=_(this,e,t);let n="";for(let o=0,i=0;o<this.children.length&&i<=t;o++){let s=this.children[o],a=i+s.length;i>e&&o&&(n+=r),e<a&&t>i&&(n+=s.sliceString(e-i,t-i,r)),i=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof f))return 0;let r=0,[n,o,i,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,o+=t){if(n==i||o==s)return r;let a=this.children[n],l=e.children[o];if(a!=l)return r+a.scanIdentical(l,t);r+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new h(r,t)}let n=Math.max(32,r>>5),o=n<<1,i=n>>1,s=[],a=0,l=-1,u=[];function c(){0!=a&&(s.push(1==u.length?u[0]:f.from(u,l)),l=-1,a=u.length=0)}for(let t of e)!function e(t){let r;if(t.lines>o&&t instanceof f)for(let r of t.children)e(r);else t.lines>i&&(a>i||!a)?(c(),s.push(t)):t instanceof h&&a&&(r=u[u.length-1])instanceof h&&t.lines+r.lines<=32?(a+=t.lines,l+=t.length+1,u[u.length-1]=new h(r.text.concat(t.text),r.length+1+t.length)):(a+t.lines>n&&c(),a+=t.lines,l+=t.length+1,u.push(t))}(t);return c(),1==s.length?s[0]:new f(s,t)}}p.empty=new h([""],0);function m(e,t,r=0,n=1e9){for(let o=0,i=0,s=!0;i<e.length&&o<=n;i++){let a=e[i],l=o+a.length;l>=r&&(l>n&&(a=a.slice(0,n-o)),o<r&&(a=a.slice(r-o)),s?(t[t.length-1]+=a,s=!1):t.push(a)),o=l+1}return t}function g(e,t,r){return m(e,[""],t,r)}class y{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof h?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,n=this.nodes[r],o=this.offsets[r],i=o>>1,s=n instanceof h?n.text.length:n.children.length;if(i==(t>0?s:0)){if(0==r)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[r]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof h){let o=n.text[i+(t<0?-1:0)];if(this.offsets[r]+=t,o.length>Math.max(0,e))return this.value=0==e?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[i+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof h?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class x{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new y(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class b{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(p.prototype[Symbol.iterator]=function(){return this.iter()},y.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=b.prototype[Symbol.iterator]=function(){return this});class w{constructor(e,t,r,n){this.from=e,this.to=t,this.number=r,this.text=n}get length(){return this.to-this.from}}function _(e,t,r){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,r))]}function k(e,t,r=!0,n=!0){return function(e,t,r=!0,n=!0){return(r?a:function(e,t,r){for(;t>0;){let n=a(e,t-2,r);if(n<t)return n;t--}return 0})(e,t,n)}(e,t,r,n)}function C(e,t){var r,n;let o=e.charCodeAt(t);if(!((r=o)>=55296&&r<56320)||t+1==e.length)return o;let i=e.charCodeAt(t+1);return(n=i)>=56320&&n<57344?(o-55296<<10)+(i-56320)+65536:o}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function O(e){return e<65536?1:2}let D=/\r\n?|\n/;var S,T,E=((S=E||(E={}))[S.Simple=0]="Simple",S[S.TrackDel=1]="TrackDel",S[S.TrackBefore=2]="TrackBefore",S[S.TrackAfter=3]="TrackAfter",S);class M{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,n=0;t<this.sections.length;){let o=this.sections[t++],i=this.sections[t++];i<0?(e(r,n,o),n+=o):n+=i,r+=o}}iterChangedRanges(e,t=!1){B(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];n<0?e.push(r,n):e.push(n,r)}return new M(e)}composeDesc(e){return this.empty?e:e.empty?this:L(this,e)}mapDesc(e,t=!1){return e.empty?this:I(this,e,t)}mapPos(e,t=-1,r=E.Simple){let n=0,o=0;for(let i=0;i<this.sections.length;){let s=this.sections[i++],a=this.sections[i++],l=n+s;if(a<0){if(l>e)return o+(e-n);o+=s}else{if(r!=E.Simple&&l>=e&&(r==E.TrackDel&&n<e&&l>e||r==E.TrackBefore&&n<e||r==E.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==n||t<0?o:o+a;o+=a}n=l}if(e>n)throw RangeError(`Position ${e} is out of range for changeset of length ${n}`);return o}touchesRange(e,t=e){for(let r=0,n=0;r<this.sections.length&&n<=t;){let o=this.sections[r++],i=this.sections[r++],s=n+o;if(i>=0&&n<=t&&s>=e)return!(n<e)||!(s>t)||"cover";n=s}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new M(e)}static create(e){return new M(e)}}class j extends M{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return B(this,(t,r,n,o,i)=>e=e.replace(n,n+(r-t),i),!1),e}mapDesc(e,t=!1){return I(this,e,t,!0)}invert(e){let t=this.sections.slice(),r=[];for(let n=0,o=0;n<t.length;n+=2){let i=t[n],s=t[n+1];if(s>=0){t[n]=s,t[n+1]=i;let a=n>>1;for(;r.length<a;)r.push(p.empty);r.push(i?e.slice(o,o+i):p.empty)}o+=i}return new j(t,r)}compose(e){return this.empty?e:e.empty?this:L(this,e,!0)}map(e,t=!1){return e.empty?this:I(this,e,t,!0)}iterChanges(e,t=!1){B(this,e,t)}get desc(){return M.create(this.sections)}filter(e){let t=[],r=[],n=[],o=new F(this);o:for(let i=0,s=0;;){let a=i==e.length?1e9:e[i++];for(;s<a||s==a&&0==o.len;){if(o.done)break o;let e=Math.min(o.len,a-s);N(n,e,-1);let i=-1==o.ins?-1:0==o.off?o.ins:0;N(t,e,i),i>0&&P(r,t,o.text),o.forward(e),s+=e}let l=e[i++];for(;s<l;){if(o.done)break o;let e=Math.min(o.len,l-s);N(t,e,-1),N(n,e,-1==o.ins?-1:0==o.off?o.ins:0),o.forward(e),s+=e}}return{changes:new j(t,r),filtered:M.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],n=this.sections[t+1];n<0?e.push(r):0==n?e.push([r]):e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,r){let n=[],o=[],i=0,s=null;function a(e=!1){if(!e&&!n.length)return;i<t&&N(n,t-i,-1);let r=new j(n,o);s=s?s.compose(r.map(s)):r,n=[],o=[],i=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof j){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:u}=l;if(e>s||e<0||s>t)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let c=u?"string"==typeof u?p.of(u.split(r||D)):u:p.empty,d=c.length;if(e==s&&0==d)return;e<i&&a(),e>i&&N(n,e-i,-1),N(n,s-e,d),P(o,n,c),i=s}}(e),a(!s),s}static empty(e){return new j(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n];if("number"==typeof o)t.push(o,-1);else if(!Array.isArray(o)||"number"!=typeof o[0]||o.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==o.length)t.push(o[0],0);else{for(;r.length<n;)r.push(p.empty);r[n]=p.of(o.slice(1)),t.push(o[0],r[n].length)}}return new j(t,r)}static createSet(e,t){return new j(e,t)}}function N(e,t,r,n=!1){if(0==t&&r<=0)return;let o=e.length-2;o>=0&&r<=0&&r==e[o+1]?e[o]+=t:o>=0&&0==t&&0==e[o]?e[o+1]+=r:n?(e[o]+=t,e[o+1]+=r):e.push(t,r)}function P(e,t,r){if(0==r.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(r);else{for(;e.length<n;)e.push(p.empty);e.push(r)}}function B(e,t,r){let n=e.inserted;for(let o=0,i=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)o+=a,i+=a;else{let u=o,c=i,d=p.empty;for(;u+=a,c+=l,l&&n&&(d=d.append(n[s-2>>1])),!r&&s!=e.sections.length&&!(e.sections[s+1]<0);){;a=e.sections[s++],l=e.sections[s++]}t(o,u,i,c,d),o=u,i=c}}}function I(e,t,r,n=!1){let o=[],i=n?[]:null,s=new F(e),a=new F(t);for(let e=-1;;){if(s.done&&a.len||a.done&&s.len)throw Error("Mismatched change set lengths");if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);N(o,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!r))){let t=a.len;for(N(o,a.ins,-1);t;){let r=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=r&&(N(o,0,s.ins),i&&P(i,o,s.text),e=s.i),s.forward(r),t-=r}a.next()}else if(s.ins>=0){let t=0,r=s.len;for(;r;)if(-1==a.ins){let e=Math.min(r,a.len);t+=e,r-=e,a.forward(e)}else if(0==a.ins&&a.len<r)r-=a.len,a.next();else break;N(o,t,e<s.i?s.ins:0),i&&e<s.i&&P(i,o,s.text),e=s.i,s.forward(s.len-r)}else if(s.done&&a.done)return i?j.createSet(o,i):M.create(o);else throw Error("Mismatched change set lengths")}}function L(e,t,r=!1){let n=[],o=r?[]:null,i=new F(e),s=new F(t);for(let e=!1;;){if(i.done&&s.done)return o?j.createSet(n,o):M.create(n);if(0==i.ins)N(n,i.len,0,e),i.next();else if(0!=s.len||s.done){if(i.done||s.done)throw Error("Mismatched change set lengths");else{let t=Math.min(i.len2,s.len),r=n.length;if(-1==i.ins){let r=-1==s.ins?-1:s.off?0:s.ins;N(n,t,r,e),o&&r&&P(o,n,s.text)}else -1==s.ins?(N(n,i.off?0:i.len,t,e),o&&P(o,n,i.textBit(t))):(N(n,i.off?0:i.len,s.off?0:s.ins,e),o&&!s.off&&P(o,n,s.text));e=(i.ins>t||s.ins>=0&&s.len>t)&&(e||n.length>r),i.forward2(t),s.forward(t)}}else N(n,0,s.ins,e),o&&P(o,n,s.text),s.next()}}class F{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[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:e}=this.set,t=this.i-2>>1;return t>=e.length?p.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?p.empty:t[r].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class z{constructor(e,t,r){this.from=e,this.to=t,this.flags=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 bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 0xffffff==e?void 0:e}map(e,t=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new z(r,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return R.range(e,t);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return R.range(this.anchor,r)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return R.range(e.anchor,e.head)}static create(e,t,r){return new z(e,t,r)}}class R{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:R.create(this.ranges.map(r=>r.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new R([this.main],0)}addRange(e,t=!0){return R.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();return r[t]=e,R.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new R(e.ranges.map(e=>z.fromJSON(e)),e.main)}static single(e,t=e){return new R([R.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let o=e[n];if(o.empty?o.from<=r:o.from<r)return R.normalized(e.slice(),t);r=o.to}return new R(e,t)}static cursor(e,t=0,r,n){return z.create(e,e,(0==t?0:t<0?8:16)|(null==r?7:Math.min(6,r))|(null!=n?n:0xffffff)<<6)}static range(e,t,r,n){let o=(null!=r?r:0xffffff)<<6|(null==n?7:Math.min(6,n));return t<e?z.create(t,e,48|o):z.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let r=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(r);for(let r=1;r<e.length;r++){let n=e[r],o=e[r-1];if(n.empty?n.from<=o.to:n.from<o.to){let i=o.from,s=Math.max(n.to,o.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?R.range(s,i):R.range(i,s))}}return new R(e,t)}}function X(e,t){for(let r of e.ranges)if(r.to>t)throw RangeError("Selection points outside of document")}let Z=0;class W{constructor(e,t,r,n,o){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=n,this.id=Z++,this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(e={}){return new W(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:V),!!e.static,e.enables)}of(e){return new H([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new H(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new H(e,this,2,t)}from(e,t){return!t&&(t=e=>e),this.compute([e],r=>t(r.field(e)))}}function V(e,t){return e==t||e.length==t.length&&e.every((e,r)=>e===t[r])}class H{constructor(e,t,r,n){this.dependencies=e,this.facet=t,this.type=r,this.value=n,this.id=Z++}dynamicSlot(e){var t;let r=this.value,n=this.facet.compareInput,o=this.id,i=e[o]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let r of this.dependencies)"doc"==r?a=!0:"selection"==r?l=!0:((null!==(t=e[r.id])&&void 0!==t?t:1)&1)==0&&u.push(e[r.id]);return{create:e=>(e.values[i]=r(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||q(e,u)){let t=r(e);if(s?!U(t,e.values[i],n):!n(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[o];if(null!=l){let o=eo(t,l);if(this.dependencies.every(r=>r instanceof W?t.facet(r)===e.facet(r):!(r instanceof Q)||t.field(r,!1)==e.field(r,!1))||(s?U(a=r(e),o,n):n(a=r(e),o)))return e.values[i]=o,0}else a=r(e);return e.values[i]=a,1}}}}function U(e,t,r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function q(e,t){let r=!1;for(let n of t)1&en(e,n)&&(r=!0);return r}let Y=W.define({static:!0});class Q{constructor(e,t,r,n,o){this.id=e,this.createF=t,this.updateF=r,this.compareF=n,this.spec=o,this.provides=void 0}static define(e){let t=new Q(Z++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Y).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,r)=>{let n=e.values[t],o=this.updateF(n,r);return this.compareF(n,o)?0:(e.values[t]=o,1)},reconfigure:(e,r)=>{let n=e.facet(Y),o=r.facet(Y),i;return(i=n.find(e=>e.field==this))&&i!=o.find(e=>e.field==this)?(e.values[t]=i.create(e),1):null!=r.config.address[this.id]?(e.values[t]=r.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,Y.of({field:this,create:e})]}get extension(){return this}}let G={lowest:4,low:3,default:2,high:1,highest:0};function $(e){return t=>new J(t,e)}let K={highest:$(G.highest),high:$(G.high),default:$(G.default),low:$(G.low),lowest:$(G.lowest)};class J{constructor(e,t){this.inner=e,this.prec=t}}class ee{of(e){return new et(this,e)}reconfigure(e){return ee.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class et{constructor(e,t){this.compartment=e,this.inner=t}}class er{constructor(e,t,r,n,o,i){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=n,this.staticValues=o,this.facets=i,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,r){let n=[],o=Object.create(null),i=new Map;for(let r of function(e,t,r){let n=[[],[],[],[],[]],o=new Map;return!function e(i,s){let a=o.get(i);if(null!=a){if(a<=s)return;let e=n[a].indexOf(i);e>-1&&n[a].splice(e,1),i instanceof et&&r.delete(i.compartment)}if(o.set(i,s),Array.isArray(i))for(let t of i)e(t,s);else if(i instanceof et){if(r.has(i.compartment))throw RangeError("Duplicate use of compartment in extensions");let n=t.get(i.compartment)||i.inner;r.set(i.compartment,n),e(n,s)}else if(i instanceof J)e(i.inner,i.prec);else if(i instanceof Q)n[s].push(i),i.provides&&e(i.provides,s);else if(i instanceof H)n[s].push(i),i.facet.extensions&&e(i.facet.extensions,G.default);else{let t=i.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${i}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,G.default),n.reduce((e,t)=>e.concat(t))}(e,t,i))r instanceof Q?n.push(r):(o[r.facet.id]||(o[r.facet.id]=[])).push(r);let s=Object.create(null),a=[],l=[];for(let e of n)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=null==r?void 0:r.config.facets;for(let e in o){let t=o[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>0==e.type)){if(s[n.id]=a.length<<1|1,V(i,t))a.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));a.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}}else{for(let e of t)0==e.type?(s[e.id]=a.length<<1|1,a.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>(function(e,t,r){let n=r.map(t=>e[t.id]),o=r.map(e=>e.type),i=n.filter(e=>!(1&e)),s=e[t.id]>>1;function a(e){let r=[];for(let t=0;t<n.length;t++){let i=eo(e,n[t]);if(2==o[t])for(let e of i)r.push(e);else r.push(i)}return t.combine(r)}return{create(e){for(let t of n)en(e,t);return e.values[s]=a(e),1},update(e,r){if(!q(e,i))return 0;let n=a(e);return t.compare(n,e.values[s])?0:(e.values[s]=n,1)},reconfigure(e,o){let i=q(e,n),l=o.config.facets[t.id],u=o.facet(t);if(l&&!i&&V(r,l))return e.values[s]=u,0;let c=a(e);return t.compare(c,u)?(e.values[s]=u,0):(e.values[s]=c,1)}}})(e,n,t))}}return new er(e,i,l.map(e=>e(s)),s,a,o)}}function en(e,t){if(1&t)return 2;let r=t>>1,n=e.status[r];if(4==n)throw Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let o=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|o}function eo(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let ei=W.define(),es=W.define({combine:e=>e.some(e=>e),static:!0}),ea=W.define({combine:e=>e.length?e[0]:void 0,static:!0}),el=W.define(),eu=W.define(),ec=W.define(),ed=W.define({combine:e=>!!e.length&&e[0]});class ep{constructor(e,t){this.type=e,this.value=t}static define(){return new eh}}class eh{of(e){return new ep(this,e)}}class ef{constructor(e){this.map=e}of(e){return new em(this,e)}}class em{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new em(this.type,t)}is(e){return this.type==e}static define(e={}){return new ef(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);e&&r.push(e)}return r}}em.reconfigure=em.define(),em.appendConfig=em.define();class eg{constructor(e,t,r,n,o,i){this.startState=e,this.changes=t,this.selection=r,this.effects=n,this.annotations=o,this.scrollIntoView=i,this._doc=null,this._state=null,r&&X(r,t.newLength),!o.some(e=>e.type==eg.time)&&(this.annotations=o.concat(eg.time.of(Date.now())))}static create(e,t,r,n,o,i){return new eg(e,t,r,n,o,i)}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(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(eg.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}eg.time=ep.define(),eg.userEvent=ep.define(),eg.addToHistory=ep.define(),eg.remote=ep.define();function ev(e,t,r){var n;let o,i,s;return r?(o=t.changes,i=j.empty(t.changes.length),s=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(o)),{changes:s,selection:t.selection?t.selection.map(i):null===(n=e.selection)||void 0===n?void 0:n.map(o),effects:em.mapEffects(e.effects,o).concat(em.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ey(e,t,r){let n=t.selection,o=ew(t.annotations);return t.userEvent&&(o=o.concat(eg.userEvent.of(t.userEvent))),{changes:t.changes instanceof j?t.changes:j.of(t.changes||[],r,e.facet(ea)),selection:n&&(n instanceof R?n:R.single(n.anchor,n.head)),effects:ew(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}function ex(e,t,r){let n=ey(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(r=!1);for(let o=1;o<t.length;o++){!1===t[o].filter&&(r=!1);let i=!!t[o].sequential;n=ev(n,ey(e,t[o],i?n.changes.newLength:e.doc.length),i)}let o=eg.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,r=t.facet(ec),n=e;for(let o=r.length-1;o>=0;o--){let i=r[o](e);i&&Object.keys(i).length&&(n=ev(n,ey(t,i,e.changes.newLength),!0))}return n==e?e:eg.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(r?function(e){let t=e.startState,r=!0;for(let n of t.facet(el)){let t=n(e);if(!1===t){r=!1;break}Array.isArray(t)&&(r=!0===r?t:function(e,t){let r=[];for(let n=0,o=0;;){let i,s;if(n<e.length&&(o==t.length||t[o]>=e[n]))i=e[n++],s=e[n++];else{if(!(o<t.length))return r;i=t[o++],s=t[o++]}!r.length||r[r.length-1]<i?r.push(i,s):r[r.length-1]<s&&(r[r.length-1]=s)}}(r,t))}if(!0!==r){let n,o;if(!1===r)o=e.changes.invertedDesc,n=j.empty(t.doc.length);else{let t=e.changes.filter(r);n=t.changes,o=t.filtered.mapDesc(t.changes).invertedDesc}e=eg.create(t,n,e.selection&&e.selection.map(o),em.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)}let n=t.facet(eu);for(let r=n.length-1;r>=0;r--){let o=n[r](e);e=o instanceof eg?o:Array.isArray(o)&&1==o.length&&o[0]instanceof eg?o[0]:ex(t,ew(o),!1)}return e}(o):o)}let eb=[];function ew(e){return null==e?eb:Array.isArray(e)?e:[e]}var e_=((T=e_||(e_={}))[T.Word=0]="Word",T[T.Space=1]="Space",T[T.Other=2]="Other",T);let ek=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{n=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class eC{constructor(e,t,r,n,o,i){this.config=e,this.doc=t,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=o,i&&(i._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)en(this,e<<1);this.computeSlot=null}field(e,t=!0){let r=this.config.address[e.id];if(null==r){if(t)throw RangeError("Field is not present in this state");return}return en(this,r),eo(this,r)}update(...e){return ex(this,e,!0)}applyTransaction(e){let t,r=this.config,{base:n,compartments:o}=r;for(let t of e.effects)t.is(ee.reconfigure)?(r&&(o=new Map,r.compartments.forEach((e,t)=>o.set(t,e)),r=null),o.set(t.value.compartment,t.value.extension)):t.is(em.reconfigure)?(r=null,n=t.value):t.is(em.appendConfig)&&(r=null,n=ew(n).concat(t.value));t=r?e.startState.values.slice():new eC(r=er.resolve(n,o,this),this.doc,this.selection,r.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let i=e.startState.facet(es)?e.newSelection:e.newSelection.asSingle();new eC(r,e.newDoc,i,t,(t,r)=>r.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:R.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),n=this.changes(r.changes),o=[r.range],i=ew(r.effects);for(let r=1;r<t.ranges.length;r++){let s=e(t.ranges[r]),a=this.changes(s.changes),l=a.map(n);for(let e=0;e<r;e++)o[e]=o[e].map(l);let u=n.mapDesc(a,!0);o.push(s.range.map(u)),n=n.compose(l),i=em.mapEffects(i,l).concat(em.mapEffects(ew(s.effects),u))}return{changes:n,selection:R.create(o,t.mainIndex),effects:i}}changes(e=[]){return e instanceof j?e:j.of(e,this.doc.length,this.facet(eC.lineSeparator))}toText(e){return p.of(e.split(this.facet(eC.lineSeparator)||D))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(en(this,t),eo(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];n instanceof Q&&null!=this.config.address[n.id]&&(t[r]=n.spec.toJSON(this.field(e[r]),this))}return t}static fromJSON(e,t={},r){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let n=[];if(r){for(let t in r)if(Object.prototype.hasOwnProperty.call(e,t)){let o=r[t],i=e[t];n.push(o.init(e=>o.spec.fromJSON(i,e)))}}return eC.create({doc:e.doc,selection:R.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=er.resolve(e.extensions||[],new Map),r=e.doc instanceof p?e.doc:p.of((e.doc||"").split(t.staticFacet(eC.lineSeparator)||D)),n=e.selection?e.selection instanceof R?e.selection:R.single(e.selection.anchor,e.selection.head):R.single(0);return X(n,r.length),!t.staticFacet(es)&&(n=n.asSingle()),new eC(t,r,n,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(eC.tabSize)}get lineBreak(){return this.facet(eC.lineSeparator)||"\n"}get readOnly(){return this.facet(ed)}phrase(e,...t){for(let t of this.facet(eC.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]})),e}languageDataAt(e,t,r=-1){let n=[];for(let o of this.facet(ei))for(let i of o(this,t,r))Object.prototype.hasOwnProperty.call(i,e)&&n.push(i[e]);return n}charCategorizer(e){var t;return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return e_.Space;if(function(e){if(n)return n.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>"\x80"&&(r.toUpperCase()!=r.toLowerCase()||ek.test(r)))return!0}return!1}(e))return e_.Word;for(let r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return e_.Word;return e_.Other}}wordAt(e){let{text:t,from:r,length:n}=this.doc.lineAt(e),o=this.charCategorizer(e),i=e-r,s=e-r;for(;i>0;){let e=k(t,i,!1);if(o(t.slice(e,i))!=e_.Word)break;i=e}for(;s<n;){let e=k(t,s);if(o(t.slice(s,e))!=e_.Word)break;s=e}return i==s?null:R.range(i+r,s+r)}}function eA(e,t,r={}){let n={};for(let t of e)for(let e of Object.keys(t)){let o=t[e],i=n[e];if(void 0===i)n[e]=o;else if(i===o||void 0===o);else if(Object.hasOwnProperty.call(r,e))n[e]=r[e](i,o);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}eC.allowMultipleSelections=es,eC.tabSize=W.define({combine:e=>e.length?e[0]:4}),eC.lineSeparator=ea,eC.readOnly=ed,eC.phrases=W.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every(r=>e[r]==t[r])}}),eC.languageData=ei,eC.changeFilter=el,eC.transactionFilter=eu,eC.transactionExtender=ec,ee.reconfigure=em.define();class eO{eq(e){return this==e}range(e,t=e){return eD.create(e,t,this)}}eO.prototype.startSide=eO.prototype.endSide=0,eO.prototype.point=!1,eO.prototype.mapMode=E.TrackDel;class eD{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new eD(e,t,r)}}function eS(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eT{constructor(e,t,r,n){this.from=e,this.to=t,this.value=r,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,r,n=0){let o=r?this.to:this.from;for(let i=n,s=o.length;;){if(i==s)return i;let n=i+s>>1,a=o[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==i)return a>=0?i:s;a>=0?s=n:i=n+1}}between(e,t,r,n){for(let o=this.findIndex(t,-1e9,!0),i=this.findIndex(r,1e9,!1,o);o<i;o++)if(!1===n(this.from[o]+e,this.to[o]+e,this.value[o]))return!1}map(e,t){let r=[],n=[],o=[],i=-1,s=-1;for(let a=0;a<this.value.length;a++){let l=this.value[a],u=this.from[a]+e,c=this.to[a]+e,d,p;if(u==c){let e=t.mapPos(u,l.startSide,l.mapMode);if(null==e)continue;if(d=p=e,l.startSide!=l.endSide&&(p=t.mapPos(u,l.endSide))<d)continue}else if(d=t.mapPos(u,l.startSide),d>(p=t.mapPos(c,l.endSide))||d==p&&l.startSide>0&&l.endSide<=0)continue;!(0>(p-d||l.endSide-l.startSide))&&(i<0&&(i=d),l.point&&(s=Math.max(s,p-d)),r.push(l),n.push(d-i),o.push(p-i))}return{mapped:r.length?new eT(n,o,r,s):null,pos:i}}}class eE{constructor(e,t,r,n){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=n}static create(e,t,r,n){return new eE(e,t,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:n=0,filterTo:o=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(r&&(t=t.slice().sort(eS)),this.isEmpty)return t.length?eE.of(t):this;let s=new eN(this,null,-1).goto(0),a=0,l=[],u=new eM;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];!u.addInner(e.from,e.to,e.value)&&l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!i||n>this.chunkEnd(s.chunkIndex)||o<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!i||n>s.to||o<s.from||i(s.from,s.to,s.value))&&!u.addInner(s.from,s.to,s.value)&&l.push(eD.create(s.from,s.to,s.value)),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?eE.empty:this.nextLayer.update({add:l,filter:i,filterFrom:n,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],r=[],n=-1;for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],s=this.chunk[o],a=e.touchesRange(i,i+s.length);if(!1===a)n=Math.max(n,s.maxPoint),t.push(s),r.push(e.mapPos(i));else if(!0===a){let{mapped:o,pos:a}=s.map(i,e);o&&(n=Math.max(n,o.maxPoint),t.push(o),r.push(a))}}let o=this.nextLayer.map(e);return 0==t.length?o:new eE(r,t,o||eE.empty,n)}between(e,t,r){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let o=this.chunkPos[n],i=this.chunk[n];if(t>=o&&e<=o+i.length&&!1===i.between(o,e-o,t-o,r))return}this.nextLayer.between(e,t,r)}}iter(e=0){return eP.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eP.from(e).goto(t)}static compare(e,t,r,n,o=-1){let i=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o),s=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o),a=ej(i,s,r),l=new eI(i,a,o),u=new eI(s,a,o);r.iterGaps((e,t,r)=>eL(l,e,u,t,r,n)),r.empty&&0==r.length&&eL(l,0,u,0,0,n)}static eq(e,t,r=0,n){null==n&&(n=0x3b9ac9ff);let o=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),i=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(o.length!=i.length)return!1;if(!o.length)return!0;let s=ej(o,i),a=new eI(o,s,0).goto(r),l=new eI(i,s,0).goto(r);for(;;){if(a.to!=l.to||!eF(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(e,t,r,n,o=-1){let i=new eI(e,null,o).goto(t),s=t,a=i.openStart;for(;;){let e=Math.min(i.to,r);if(i.point){let r=i.activeForPoint(i.to),o=i.pointFrom<t?r.length+1:i.point.startSide<0?r.length:Math.min(r.length,a);n.point(s,e,i.point,r,o,i.pointRank),a=Math.min(i.openEnd(e),r.length)}else e>s&&(n.span(s,e,i.active,a),a=i.openEnd(e));if(i.to>r)return a+(i.point&&i.to>r?1:0);s=i.to,i.next()}}static of(e,t=!1){let r=new eM;for(let n of e instanceof eD?[e]:t?function(e){if(e.length>1)for(let t=e[0],r=1;r<e.length;r++){let n=e[r];if(eS(t,n)>0)return e.slice().sort(eS);t=n}return e}(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return eE.empty;let t=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=eE.empty;n=n.nextLayer)t=new eE(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}eE.empty=new eE([],[],null,-1);eE.empty.nextLayer=eE.empty;class eM{finishChunk(e){this.chunks.push(new eT(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,e&&(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(e,t,r){!this.addInner(e,t,r)&&(this.nextLayer||(this.nextLayer=new eM)).add(e,t,r)}addInner(e,t,r){let n=e-this.lastTo||r.startSide-this.last.endSide;if(n<=0&&0>(e-this.lastFrom||r.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(eE.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eE.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function ej(e,t,r){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let o=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let i=n.get(e.chunk[t]);null!=i&&(r?r.mapPos(i):i)==e.chunkPos[t]&&!(null==r?void 0:r.touchesRange(i,i+e.chunk[t].length))&&o.add(e.chunk[t])}return o}class eN{constructor(e,t,r,n=0){this.layer=e,this.skip=t,this.minPoint=r,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,r){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!r||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==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=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eP{constructor(e){this.heap=e}static from(e,t=null,r=-1){let n=[];for(let o=0;o<e.length;o++)for(let i=e[o];!i.isEmpty;i=i.nextLayer)i.maxPoint>=r&&n.push(new eN(i,t,r,o));return 1==n.length?n[0]:new eP(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)eB(this.heap,e);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)eB(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),eB(this.heap,0)}}}function eB(e,t){for(let r=e[t];;){let n=(t<<1)+1;if(n>=e.length)break;let o=e[n];if(n+1<e.length&&o.compare(e[n+1])>=0&&(o=e[n+1],n++),0>r.compare(o))break;e[n]=r,e[t]=o,t=n}}class eI{constructor(e,t,r){this.minPoint=r,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=eP.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ez(this.active,e),ez(this.activeTo,e),ez(this.activeRank,e),this.minActive=eX(this.active,this.activeTo)}addActive(e){let t=0,{value:r,to:n,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||n-this.activeTo[t])>0;)t++;eR(this.active,t,r),eR(this.activeTo,t,n),eR(this.activeRank,t,o),e&&eR(e,t,this.cursor.from),this.minActive=eX(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&0>(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&ez(r,n)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(r),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let t=r.length-1;t>=0&&r[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function eL(e,t,r,n,o,i){e.goto(t),r.goto(n);let s=n+o,a=n,l=n-t;for(;;){let t=e.to+l-r.to,n=t||e.endSide-r.endSide,o=n<0?e.to+l:r.to,u=Math.min(o,s);if(e.point||r.point?!(e.point&&r.point&&(e.point==r.point||e.point.eq(r.point))&&eF(e.activeForPoint(e.to),r.activeForPoint(r.to)))&&i.comparePoint(a,u,e.point,r.point):u>a&&!eF(e.active,r.active)&&i.compareRange(a,u,e.active,r.active),o>s)break;(t||e.openEnd!=r.openEnd)&&i.boundChange&&i.boundChange(o),a=o,n<=0&&e.next(),n>=0&&r.next()}}function eF(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r]&&!e[r].eq(t[r]))return!1;return!0}function ez(e,t){for(let r=t,n=e.length-1;r<n;r++)e[r]=e[r+1];e.pop()}function eR(e,t,r){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=r}function eX(e,t){let r=-1,n=1e9;for(let o=0;o<t.length;o++)0>(t[o]-n||e[o].endSide-e[r].endSide)&&(r=o,n=t[o]);return r}function eZ(e,t,r=e.length){let n=0;for(let o=0;o<r&&o<e.length;)9==e.charCodeAt(o)?(n+=t-n%t,o++):(n++,o=k(e,o));return n}function eW(e,t,r,n){for(let n=0,o=0;;){if(o>=t)return n;if(n==e.length)break;o+=9==e.charCodeAt(n)?r-o%r:1,n=k(e,n)}return!0===n?-1:e.length}},249294:function(e,t,r){"use strict";let n;r.d(t,{$1:function(){return rP},$f:function(){return rM},AE:function(){return r9},EY:function(){return rW},Eu:function(){return n0},HQ:function(){return n5},Nm:function(){return eb},OO:function(){return eG},S2:function(){return nu},SJ:function(){return nP},Sd:function(){return nT},Uw:function(){return rH},Y1:function(){return r2},ZO:function(){return nr},Zs:function(){return ns},bF:function(){return nA},dc:function(){return rF},gB:function(){return nO},hJ:function(){return nb},jH:function(){return np},kH:function(){return ea},l9:function(){return es},lg:function(){return e0},mH:function(){return nN},p:function(){return el},qr:function(){return r0},tk:function(){return rk},v5:function(){return nz}});var o,i,s,a=r(913693),l=r(775985),u=r(896433);function c(e){let t;return(t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function d(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function p(e,t){if(!t.anchorNode)return!1;try{return d(e,t.anchorNode)}catch(e){return!1}}function h(e){return 3==e.nodeType?A(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function f(e,t,r,n){return!!r&&(y(e,t,r,n,-1)||y(e,t,r,n,1))}function m(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function g(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function y(e,t,r,n,o){for(;;){if(e==r&&t==n)return!0;if(t==(o<0?0:x(e))){if("DIV"==e.nodeName)return!1;let r=e.parentNode;if(!r||1!=r.nodeType)return!1;t=m(e)+(o<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(o<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=o<0?x(e):0}}}function x(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function b(e,t){let r=t?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}function w(e,t){let r=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(t.width-e.offsetWidth))&&(r=1),(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(t.height-e.offsetHeight))&&(n=1),{scaleX:r,scaleY:n}}class _{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:r}=e;this.set(t,Math.min(e.anchorOffset,t?x(t):0),r,Math.min(e.focusOffset,r?x(r):0))}set(e,t,r,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=r,this.focusOffset=n}}let k=null;function C(e){if(e.setActive)return e.setActive();if(k)return e.focus(k);let t=[];for(let r=e;r&&(t.push(r,r.scrollTop,r.scrollLeft),r!=r.ownerDocument);r=r.parentNode);if(e.focus(null==k?{get preventScroll(){return k={preventScroll:!0},!0}}:void 0),!k){k=!1;for(let e=0;e<t.length;){let r=t[e++],n=t[e++],o=t[e++];r.scrollTop!=n&&(r.scrollTop=n),r.scrollLeft!=o&&(r.scrollLeft=o)}}}function A(e,t,r=t){let o=n||(n=document.createRange());return o.setEnd(e,r),o.setStart(e,t),o}function O(e,t,r,n){let o={key:t,code:t,keyCode:r,which:r,cancelable:!0};n&&({altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey}=n);let i=new KeyboardEvent("keydown",o);i.synthetic=!0,e.dispatchEvent(i);let s=new KeyboardEvent("keyup",o);return s.synthetic=!0,e.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function D(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function S(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function T(e,t){for(let r=e,n=t;;){if(3==r.nodeType&&n>0)return{node:r,offset:n};if(1==r.nodeType&&n>0){if("false"==r.contentEditable)return null;n=x(r=r.childNodes[n-1])}else{if(!r.parentNode||g(r))return null;n=m(r),r=r.parentNode}}}function E(e,t){for(let r=e,n=t;;){if(3==r.nodeType&&n<r.nodeValue.length)return{node:r,offset:n};if(1==r.nodeType&&n<r.childNodes.length){if("false"==r.contentEditable)return null;r=r.childNodes[n],n=0}else{if(!r.parentNode||g(r))return null;n=m(r)+1,r=r.parentNode}}}class M{constructor(e,t,r=!0){this.node=e,this.offset=t,this.precise=r}static before(e,t){return new M(e.parentNode,m(e),t)}static after(e,t){return new M(e.parentNode,m(e)+1,t)}}let j=[];class N{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let r of this.children){if(r==e)return t;t+=r.length+r.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let r=this.dom,n=null,o;for(let i of this.children){if(7&i.flags){if(!i.dom&&(o=n?n.nextSibling:r.firstChild)){let e=N.get(o);(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(o)}i.sync(e,t),i.flags&=-8}if(o=n?n.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&o!=i.dom&&(t.written=!0),i.dom.parentNode==r)for(;o&&o!=i.dom;)o=P(o);else r.insertBefore(i.dom,o);n=i.dom}for((o=n?n.nextSibling:r.firstChild)&&t&&t.node==r&&(t.written=!0);o;)o=P(o)}else if(1&this.flags)for(let r of this.children)7&r.flags&&(r.sync(e,t),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let r;if(e==this.dom)r=this.dom.childNodes[t];else{let n=0==x(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}r=n<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!N.get(r);)r=r.nextSibling;if(!r)return this.length;for(let e=0,t=0;;e++){let n=this.children[e];if(n.dom==r)return t;t+=n.length+n.breakAfter}}domBoundsAround(e,t,r=0){let n=-1,o=-1,i=-1,s=-1;for(let a=0,l=r,u=r;a<this.children.length;a++){let r=this.children[a],c=l+r.length;if(l<e&&c>t)return r.domBoundsAround(e,t,l);if(c>=e&&-1==n&&(n=a,o=l),l>t&&r.dom.parentNode==this.dom){i=a,s=u;break}u=c,l=c+r.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i<this.children.length&&i>=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,r=j){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&0>r.indexOf(e)&&e.destroy()}r.length<250?this.children.splice(e,t-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(t));for(let e=0;e<r.length;e++)r[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new B(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,r,n,o,i){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function P(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}N.prototype.breakAfter=0;class B{constructor(e,t,r){this.children=e,this.pos=t,this.i=r,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function I(e,t,r,n,o,i,s,a,l){let{children:u}=e,c=u.length?u[t]:null,d=i.length?i[i.length-1]:null,p=d?d.breakAfter:s;if(!(t==n&&c&&!s&&!p&&i.length<2&&c.merge(r,o,i.length?d:null,0==r,a,l))){if(n<u.length){let e=u[n];e&&(o<e.length||e.breakAfter&&(null==d?void 0:d.breakAfter))?(t==n&&(e=e.split(o),o=0),!p&&d&&e.merge(0,o,d,!0,0,l)?i[i.length-1]=e:((o||e.children.length&&!e.children[0].length)&&e.merge(0,o,null,!1,0,l),i.push(e))):(null==e?void 0:e.breakAfter)&&(d?d.breakAfter=1:s=1),n++}for(c&&(c.breakAfter=s,r>0&&(!s&&i.length&&c.merge(r,c.length,i[0],!1,a,0)?c.breakAfter=i.shift().breakAfter:(r<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(r,c.length,null,!1,a,0),t++));t<n&&i.length;)if(u[n-1].become(i[i.length-1]))n--,i.pop(),l=i.length?0:a;else if(u[t].become(i[0]))t++,i.shift(),a=i.length?0:l;else break;!i.length&&t&&n<u.length&&!u[t-1].breakAfter&&u[n].merge(0,0,u[t-1],!1,a,l)&&t--,(t<n||i.length)&&e.replaceChildren(t,n,i)}}function L(e,t,r,n,o,i){let s=e.childCursor(),{i:a,off:l}=s.findPos(r,1),{i:u,off:c}=s.findPos(t,-1),d=t-r;for(let e of n)d+=e.length;e.length+=d,I(e,u,c,a,l,n,0,o,i)}let F="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},z="undefined"!=typeof document?document:{documentElement:{style:{}}},R=/Edge\/(\d+)/.exec(F.userAgent),X=/MSIE \d/.test(F.userAgent),Z=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(F.userAgent),W=!!(X||Z||R),V=!W&&/gecko\/(\d+)/i.test(F.userAgent),H=!W&&/Chrome\/(\d+)/.exec(F.userAgent),U="webkitFontSmoothing"in z.documentElement.style,q=!W&&/Apple Computer/.test(F.vendor),Y=q&&(/Mobile\/\w+/.test(F.userAgent)||F.maxTouchPoints>2);var Q={mac:Y||/Mac/.test(F.platform),windows:/Win/.test(F.platform),linux:/Linux|X11/.test(F.platform),ie:W,ie_version:X?z.documentMode||6:Z?+Z[1]:R?+R[1]:0,gecko:V,gecko_version:V?+(/Firefox\/(\d+)/.exec(F.userAgent)||[0,0])[1]:0,chrome:!!H,chrome_version:H?+H[1]:0,ios:Y,android:/Android\b/.test(F.userAgent),webkit:U,safari:q,webkit_version:U?+(/\bAppleWebKit\/(\d+)/.exec(F.userAgent)||[0,0])[1]:0,tabSize:null!=z.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class G extends N{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){!this.dom&&this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,r){return!(8&this.flags)&&(!r||r instanceof G&&!(this.length-(t-e)+r.length>256)&&!(8&r.flags))&&(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new G(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new M(this.dom,e)}domBoundsAround(e,t,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,r){let n=e.nodeValue.length;t>n&&(t=n);let o=t,i=t,s=0;0==t&&r<0||t==n&&r>=0?!(Q.chrome||Q.gecko)&&(t?(o--,s=1):i<n&&(i++,s=-1)):r<0?o--:i<n&&i++;let a=A(e,o,i).getClientRects();if(!a.length)return null;let l=a[(s?s<0:r>=0)?0:a.length-1];return Q.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,e=>e.width)||l),s?b(l,s<0):l||null}(this.dom,e,t)}}class $ extends N{constructor(e,t=[],r=0){for(let n of(super(),this.mark=e,this.children=t,this.length=r,t))n.setParent(this)}setAttrs(e){if(D(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,r,n,o,i){return(!r||!!(r instanceof $&&r.mark.eq(this.mark))&&(!e||!(o<=0))&&(!(t<this.length)||!(i<=0)))&&(L(this,e,t,r?r.children.slice():[],o-1,i-1),this.markDirty(),!0)}split(e){let t=[],r=0,n=-1,o=0;for(let i of this.children){let s=r+i.length;s>e&&t.push(r<e?i.split(e-r):i),n<0&&r>=e&&(n=o),r=s,o++}let i=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new $(this.mark,t,i)}domAtPos(e){return ee(this,e)}coordsAt(e,t){return et(this,e,t)}}class K extends N{static create(e,t,r){return new K(e,t,r)}constructor(e,t,r){super(),this.widget=e,this.length=t,this.side=r,this.prevWidget=null}split(e){let t=K.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),!this.widget.editable&&(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,r,n,o,i){return(!r||r instanceof K&&!!this.widget.compare(r.widget)&&(!(e>0)||!(o<=0))&&(!(t<this.length)||!(i<=0)))&&(this.length=e+(r?r.length:0)+(this.length-t),!0)}become(e){return e instanceof K&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(!this.widget.compare(e.widget)&&this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return a.xv.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,r=t&&t.state.doc,n=this.posAtStart;return r?r.slice(n,n+this.length):a.xv.empty}domAtPos(e){return(this.length?0==e:this.side>0)?M.before(this.dom):M.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;let n=this.dom.getClientRects(),o=null;if(!n.length)return null;let i=this.side?this.side<0:e>0;for(let t=i?n.length-1:0;o=n[t],e>0?0!=t:t!=n.length-1&&!(o.top<o.bottom);t+=i?-1:1);return b(o,!i)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class J extends N{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof J&&e.side==this.side}split(){return new J(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?M.before(this.dom):M.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return a.xv.empty}get isHidden(){return!0}}function ee(e,t){let r=e.dom,{children:n}=e,o=0;for(let e=0;o<n.length;o++){let i=n[o],s=e+i.length;if(!(s==e&&0>=i.getSide())){if(t>e&&t<s&&i.dom.parentNode==r)return i.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=o;e>0;e--){let t=n[e-1];if(t.dom.parentNode==r)return t.domAtPos(t.length)}for(let e=o;e<n.length;e++){let t=n[e];if(t.dom.parentNode==r)return t.domAtPos(0)}return new M(r,0)}G.prototype.children=K.prototype.children=J.prototype.children=j;function et(e,t,r){let n=null,o=-1,i=null,s=-1;!function e(t,a){for(let l=0,u=0;l<t.children.length&&u<=a;l++){let c=t.children[l],d=u+c.length;d>=a&&(c.children.length?e(c,a-u):(!i||i.isHidden&&(r>0||function(e,t){let r=e.coordsAt(0,1),n=t.coordsAt(0,1);return r&&n&&n.top<r.bottom}(i,c)))&&(d>a||u==d&&c.getSide()>0)?(i=c,s=a-u):(u<a||u==d&&0>c.getSide()&&!c.isHidden)&&(n=c,o=a-u)),u=d}}(e,t);let a=(r<0?n:i)||n||i;return a?a.coordsAt(Math.max(0,a==n?o:s),r):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let r=h(t);return r[r.length-1]||null}(e)}function er(e,t){for(let r in e)"class"==r&&t.class?t.class+=" "+e.class:"style"==r&&t.style?t.style+=";"+e.style:t[r]=e[r];return t}let en=Object.create(null);function eo(e,t,r){if(e==t)return!0;!e&&(e=en),!t&&(t=en);let n=Object.keys(e),o=Object.keys(t);if(n.length-(r&&n.indexOf(r)>-1?1:0)!=o.length-(r&&o.indexOf(r)>-1?1:0))return!1;for(let i of n)if(i!=r&&(-1==o.indexOf(i)||e[i]!==t[i]))return!1;return!0}function ei(e,t,r){let n=!1;if(t)for(let o in t)!(r&&o in r)&&(n=!0,"style"==o?e.style.cssText="":e.removeAttribute(o));if(r)for(let o in r)!(t&&t[o]==r[o])&&(n=!0,"style"==o?e.style.cssText=r[o]:e.setAttribute(o,r[o]));return n}class es{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var ea=((o=ea||(ea={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class el extends a.uU{constructor(e,t,r,n){super(),this.startSide=e,this.endSide=t,this.widget=r,this.spec=n}get heightRelevant(){return!1}static mark(e){return new eu(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return t+=r&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ed(e,t,t,r,e.widget||null,!1)}static replace(e){let t=!!e.block,r,n;if(e.isBlockGap)r=-5e8,n=4e8;else{let{start:o,end:i}=ep(e,t);r=(o?t?-3e8:-1:5e8)-1,n=(i?t?2e8:1:-6e8)+1}return new ed(e,r,n,t,e.widget||null,!0)}static line(e){return new ec(e)}static set(e,t=!1){return a.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}el.none=a.Xs.empty;class eu extends el{constructor(e){let{start:t,end:r}=ep(e);super(t?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,r;return this==e||e instanceof eu&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(r=e.attrs)||void 0===r?void 0:r.class))&&eo(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}eu.prototype.point=!1;class ec extends el{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ec&&this.spec.class==e.spec.class&&eo(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ec.prototype.mapMode=a.gc.TrackBefore,ec.prototype.point=!0;class ed extends el{constructor(e,t,r,n,o,i){super(t,r,o,e),this.block=n,this.isReplace=i,this.mapMode=n?t<=0?a.gc.TrackBefore:a.gc.TrackAfter:a.gc.TrackDel}get type(){return this.startSide!=this.endSide?ea.WidgetRange:this.startSide<=0?ea.WidgetBefore:ea.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ed&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ep(e,t=!1){let{inclusiveStart:r,inclusiveEnd:n}=e;return null==r&&(r=e.inclusive),null==n&&(n=e.inclusive),{start:null!=r?r:t,end:null!=n?n:t}}ed.prototype.point=!0;function eh(e,t,r,n=0){let o=r.length-1;o>=0&&r[o]+n>=e?r[o]=Math.max(r[o],t):r.push(e,t)}class ef extends N{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,r,n,o,i){if(r){if(!(r instanceof ef))return!1;!this.dom&&r.transferDOM(this)}return n&&this.setDeco(r?r.attrs:null),L(this,e,t,r?r.children.slice():[],o,i),!0}split(e){let t=new ef;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:r,off:n}=this.childPos(e);n&&(t.append(this.children[r].split(n),0),this.children[r].merge(n,this.children[r].length,null,!1,0,0),r++);for(let e=r;e<this.children.length;e++)t.append(this.children[e],0);for(;r>0&&0==this.children[r-1].length;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){!eo(this.attrs,e)&&(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){!function e(t,r,n){let o,{children:i}=t;n>0&&r instanceof $&&i.length&&(o=i[i.length-1])instanceof $&&o.mark.eq(r.mark)?e(o,r.children[0],n-1):(i.push(r),r.setParent(t)),t.length+=r.length}(this,e,t)}addLineDeco(e){let t=e.spec.attributes,r=e.spec.class;t&&(this.attrs=er(t,this.attrs||{})),r&&(this.attrs=er({class:r},this.attrs||{}))}domAtPos(e){return ee(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var r;this.dom?4&this.flags&&(D(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ei(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&N.get(n)instanceof $;)n=n.lastChild;if(!n||!this.length||"BR"!=n.nodeName&&(null===(r=N.get(n))||void 0===r?void 0:r.isEditable)==!1&&(!Q.ios||!this.children.some(e=>e instanceof G))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0,t;for(let r of this.children){if(!(r instanceof G)||/[^ -~]/.test(r.text))return null;let n=h(r.dom);if(1!=n.length)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let r=et(this,e,t);if(!this.children.length&&r&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=r.bottom-r.top;if(2>Math.abs(t-e.lineHeight)&&e.textHeight<t){let n=(t-e.textHeight)/2;return{top:r.top+n,bottom:r.bottom-n,left:r.left,right:r.left}}}return r}become(e){return e instanceof ef&&0==this.children.length&&0==e.children.length&&eo(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let r=0,n=0;r<e.children.length;r++){let o=e.children[r],i=n+o.length;if(i>=t){if(o instanceof ef)return o;if(i>t)break}n=i+o.breakAfter}return null}}class em extends N{constructor(e,t,r){super(),this.widget=e,this.length=t,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,t,r,n,o,i){return(!r||r instanceof em&&!!this.widget.compare(r.widget)&&(!(e>0)||!(o<=0))&&(!(t<this.length)||!(i<=0)))&&(this.length=e+(r?r.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?M.before(this.dom):M.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let r=new em(this.widget,t,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return j}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),!this.widget.editable&&(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):a.xv.empty}domBoundsAround(){return null}become(e){return e instanceof em&&e.widget.constructor==this.widget.constructor&&(!e.widget.compare(this.widget)&&this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let r=this.widget.coordsAt(this.dom,e,t);return r?r:this.widget instanceof eg?null:b(this.dom.getBoundingClientRect(),this.length?0==e:t<=0)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:r}=this.deco;return t!=r&&(e<0?t<0:r>0)}}class eg extends es{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class ev{constructor(e,t,r,n){this.doc=e,this.pos=t,this.end=r,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof em&&e.deco.endSide<0)}getLine(){return!this.curLine&&(this.content.push(this.curLine=new ef),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ey(new J(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof em)&&this.getLine()}buildText(e,t,r){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:r,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw Error("Ran out of text content when drawing inline views");if(r){!this.posCovered()&&this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-r)),this.getLine().append(ey(new G(this.text.slice(this.textOff,this.textOff+n)),t),r),this.atCursorPos=!0,this.textOff+=n,e-=n,r=0}}span(e,t,r,n){this.buildText(t-e,r,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,r,n,o,i){if(this.disallowBlockEffectsFor[i]&&r instanceof ed){if(r.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(r instanceof ed){if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new em(r.widget||ex.block,s,r));else{let i=K.create(r.widget||ex.inline,s,s?0:r.startSide),a=this.atCursorPos&&!i.isEditable&&o<=n.length&&(e<t||r.startSide>0),l=!i.isEditable&&(e<t||o>n.length||r.startSide<=0),u=this.getLine();2==this.pendingBuffer&&!a&&!i.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),a&&(u.append(ey(new J(1),n),o),o=n.length+Math.max(0,o-n.length)),u.append(ey(i,n),o),this.atCursorPos=l,this.pendingBuffer=l?e<t||o>n.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,r,n,o){let i=new ev(e,t,r,o);return i.openEnd=a.Xs.spans(n,t,r,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function ey(e,t){for(let r of t)e=new $(r,[e],e.length);return e}class ex extends es{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ex.inline=new ex("span"),ex.block=new ex("div");var eb=((i=eb||(eb={}))[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i);let ew=eb.LTR,e_=eb.RTL;function ek(e){let t=[];for(let r=0;r<e.length;r++)t.push(1<<+e[r]);return t}let eC=ek("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),eA=ek("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),eO=Object.create(null),eD=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),r=e.charCodeAt(1);eO[t]=r,eO[r]=-t}function eS(e){return e<=247?eC[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?eA[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}let eT=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class eE{get dir(){return this.level%2?e_:ew}constructor(e,t,r){this.from=e,this.to=t,this.level=r}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,r,n){let o=-1;for(let i=0;i<e.length;i++){let s=e[i];if(s.from<=t&&s.to>=t){if(s.level==r)return i;(o<0||(0!=n?n<0?s.from<t:s.to>t:e[o].level>s.level))&&(o=i)}}if(o<0)throw RangeError("Index out of range");return o}}let eM=[];function ej(e,t,r,n,o,i,s){let a=t%2?2:1;!function(e,t,r,n,o){for(let i=0;i<=n.length;i++){let s=i?n[i-1].to:t,a=i<n.length?n[i].from:r,l=i?256:o;for(let t=s,r=l,n=l;t<a;t++){let o=eS(e.charCodeAt(t));512==o?o=r:8==o&&4==n&&(o=16),eM[t]=4==o?2:o,7&o&&(n=o),r=o}for(let e=s,t=l,n=l;e<a;e++){let o=eM[e];if(128==o)e<a-1&&t==eM[e+1]&&24&t?o=eM[e]=t:eM[e]=256;else if(64==o){let o=e+1;for(;o<a&&64==eM[o];)o++;let i=e&&8==t||o<r&&8==eM[o]?1==n?1:8:256;for(let t=e;t<o;t++)eM[t]=i;e=o-1}else 8==o&&1==n&&(eM[e]=1);t=o,7&o&&(n=o)}}}(e,o,i,n,a),!function(e,t,r,n,o){let i=1==o?2:1;for(let s=0,a=0,l=0;s<=n.length;s++){let u=s?n[s-1].to:t,c=s<n.length?n[s].from:r;for(let t=u,r,n,s;t<c;t++)if(n=eO[r=e.charCodeAt(t)]){if(n<0){for(let e=a-3;e>=0;e-=3)if(eD[e+1]==-n){let r=eD[e+2],n=2&r?o:4&r?1&r?i:o:0;n&&(eM[t]=eM[eD[e]]=n),a=e;break}}else if(189==eD.length)break;else eD[a++]=t,eD[a++]=r,eD[a++]=l}else if(2==(s=eM[t])||1==s){let e=s==o;l=e?0:1;for(let t=a-3;t>=0;t-=3){let r=eD[t+2];if(2&r)break;if(e)eD[t+2]|=2;else{if(4&r)break;eD[t+2]|=4}}}}}(e,o,i,n,a),!function(e,t,r,n){for(let o=0,i=n;o<=r.length;o++){let s=o?r[o-1].to:e,a=o<r.length?r[o].from:t;for(let l=s;l<a;){let s=eM[l];if(256==s){let s=l+1;for(;;)if(s==a){if(o==r.length)break;s=r[o++].to,a=o<r.length?r[o].from:t}else if(256==eM[s])s++;else break;let u=1==i,c=u==((s<t?eM[s]:n)==1)?u?1:2:n;for(let t=s,n=o,i=n?r[n-1].to:e;t>l;)t==i&&(t=r[--n].from,i=n?r[n-1].to:e),eM[--t]=c;l=s}else i=s,l++}}}(o,i,n,a),!function e(t,r,n,o,i,s,a){let l=o%2?2:1;if(o%2==i%2)for(let u=r,c=0;u<n;){let r=!0,d=!1;if(c==s.length||u<s[c].from){let e=eM[u];e!=l&&(r=!1,d=16==e)}let p=r||1!=l?null:[],h=r?o:o+1,f=u;i:for(;;)if(c<s.length&&f==s[c].from){if(d)break;let e=s[c];if(!r)for(let t=e.to,r=c+1;;){if(t==n)break i;if(r<s.length&&s[r].from==t)t=s[r++].to;else if(eM[t]==l)break i;else break}c++,p?p.push(e):(e.from>u&&a.push(new eE(u,e.from,h)),ej(t,e.direction==ew!=!(h%2)?o+1:o,i,e.inner,e.from,e.to,a),u=e.to),f=e.to}else if(f==n||(r?eM[f]!=l:eM[f]==l))break;else f++;p?e(t,u,f,o+1,i,p,a):u<f&&a.push(new eE(u,f,h)),u=f}else for(let u=n,c=s.length;u>r;){let n=!0,d=!1;if(!c||u>s[c-1].to){let e=eM[u-1];e!=l&&(n=!1,d=16==e)}let p=n||1!=l?null:[],h=n?o:o+1,f=u;i:for(;;)if(c&&f==s[c-1].to){if(d)break;let e=s[--c];if(!n)for(let t=e.from,n=c;;){if(t==r)break i;if(n&&s[n-1].to==t)t=s[--n].from;else if(eM[t-1]==l)break i;else break}p?p.push(e):(e.to<u&&a.push(new eE(e.to,u,h)),ej(t,e.direction==ew!=!(h%2)?o+1:o,i,e.inner,e.from,e.to,a),u=e.from),f=e.from}else if(f==r||(n?eM[f-1]!=l:eM[f-1]==l))break;else f--;p?e(t,f,u,o+1,i,p,a):f<u&&a.push(new eE(f,u,h)),u=f}}(e,o,i,t,r,n,s)}function eN(e){return[new eE(0,e,0)]}let eP="",eB=a.r$.define(),eI=a.r$.define(),eL=a.r$.define(),eF=a.r$.define(),ez=a.r$.define(),eR=a.r$.define(),eX=a.r$.define(),eZ=a.r$.define(),eW=a.r$.define(),eV=a.r$.define({combine:e=>e.some(e=>e)}),eH=a.r$.define({combine:e=>e.some(e=>e)}),eU=a.r$.define();class eq{constructor(e,t="nearest",r="nearest",n=5,o=5,i=!1){this.range=e,this.y=t,this.x=r,this.yMargin=n,this.xMargin=o,this.isSnapshot=i}map(e){return e.empty?this:new eq(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new eq(a.jT.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let eY=a.Py.define({map:(e,t)=>e.map(t)}),eQ=a.Py.define();function eG(e,t,r){let n=e.facet(eF);n.length?n[0](t):window.onerror&&window.onerror(String(t),r,void 0,void 0,t)||(r?console.error(r+":",t):console.error(t))}let e$=a.r$.define({combine:e=>!e.length||e[0]}),eK=0,eJ=a.r$.define({combine:e=>e.filter((t,r)=>{for(let n=0;n<r;n++)if(e[n].plugin==t.plugin)return!1;return!0})});class e0{constructor(e,t,r,n,o){this.id=e,this.create=t,this.domEventHandlers=r,this.domEventObservers=n,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(eJ.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(eJ.of({plugin:this,arg:e}))}static define(e,t){let{eventHandlers:r,eventObservers:n,provide:o,decorations:i}=t||{};return new e0(eK++,e,r,n,e=>{let t=[];return i&&t.push(e5.of(t=>{let r=t.plugin(e);return r?i(r):el.none})),o&&t.push(o(e)),t})}static fromClass(e,t){return e0.define((t,r)=>new e(t,r),t)}}class e1{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(eG(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){eG(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){eG(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let e2=a.r$.define(),e4=a.r$.define(),e5=a.r$.define(),e6=a.r$.define(),e3=a.r$.define(),e8=a.r$.define();function e9(e,t){let r=e.state.facet(e8);if(!r.length)return r;let n=r.map(t=>t instanceof Function?t(e):t),o=[];return a.Xs.spans(n,t.from,t.to,{point(){},span(e,r,n,i){let s=e-t.from,a=r-t.from,l=o;for(let e=n.length-1;e>=0;e--,i--){let r=n[e].spec.bidiIsolate,o;if(null==r&&(r=function(e,t,r){for(let n=t;n<r;n++){let t=eS(e.charCodeAt(n));if(1==t)break;if(2==t||4==t)return e_}return ew}(t.text,s,a)),i>0&&l.length&&(o=l[l.length-1]).to==s&&o.direction==r)o.to=a,l=o.inner;else{let e={from:s,to:a,direction:r,inner:[]};l.push(e),l=e.inner}}}}),o}let e7=a.r$.define();function te(e){let t=0,r=0,n=0,o=0;for(let i of e.state.facet(e7)){let s=i(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(r=Math.max(r,s.right)),null!=s.top&&(n=Math.max(n,s.top)),null!=s.bottom&&(o=Math.max(o,s.bottom)))}return{left:t,right:r,top:n,bottom:o}}let tt=a.r$.define();class tr{constructor(e,t,r,n){this.fromA=e,this.toA=t,this.fromB=r,this.toB=n}join(e){return new tr(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,r=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n),e.splice(t-1,1)}}return e.splice(t,0,r),e}static extendWithRanges(e,t){if(0==t.length)return e;let r=[];for(let n=0,o=0,i=0,s=0;;n++){let a=n==e.length?null:e[n],l=i-s,u=a?a.fromB:1e9;for(;o<t.length&&t[o]<u;){let e=t[o],n=t[o+1],i=Math.max(s,e),a=Math.min(u,n);if(i<=a&&new tr(i+l,a+l,i,a).addToSet(r),n>u)break;o+=2}if(!a)return r;new tr(a.fromA,a.toA,a.fromB,a.toB).addToSet(r),i=a.toA,s=a.toB}}}class tn{constructor(e,t,r){for(let n of(this.view=e,this.state=t,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=a.as.empty(this.startState.doc.length),r))this.changes=this.changes.compose(n.changes);let n=[];this.changes.iterChangedRanges((e,t,r,o)=>n.push(new tr(e,t,r,o))),this.changedRanges=n}static create(e,t,r){return new tn(e,t,r)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class to extends N{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=el.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ef],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tr(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?n=this.domChanged.newSel.head:!function(e,t){let r=!1;return t&&e.iterChangedRanges((e,n)=>{e<t.to&&n>t.from&&(r=!0)}),r}(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let o=n>-1?function(e,t,r){let n=ti(e,r);if(!n)return null;let{node:o,from:i,to:s}=n,a=o.nodeValue;if(/[\n\r]/.test(a)||e.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc,u=new tr(l.mapPos(i),l.mapPos(s),i,s),c=[];for(let t=o.parentNode;;t=t.parentNode){let r=N.get(t);if(r instanceof $)c.push({node:t,deco:r.mark});else{if(r instanceof ef||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:o,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new eu({inclusive:!0,attributes:function(e){let t=Object.create(null);for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:n}=this.hasComposition;r=new tr(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Q.ie||Q.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,r){let n=new ts;return a.Xs.compare(e,t,r,n),n.changes}(this.decorations,this.updateDeco(),e.changes);return r=tr.extendWithRanges(r,i),(!!(7&this.flags)||0!=r.length)&&(this.updateInner(r,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,r);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Q.chrome||Q.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(e=>e.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof em&&e.widget instanceof eg&&o.push(e.dom);n.updateGaps(o)}updateChildren(e,t,r){let n=r?r.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let e=n.length-1;;e--){let t=e>=0?n[e]:null;if(!t)break;let{fromA:i,toA:s,fromB:a,toB:l}=t,u,c,d,p;if(r&&r.range.fromB<l&&r.range.toB>a){let e=ev.build(this.view.state.doc,a,r.range.fromB,this.decorations,this.dynamicDecorationMap),t=ev.build(this.view.state.doc,r.range.toB,l,this.decorations,this.dynamicDecorationMap);c=e.breakAtStart,d=e.openStart,p=t.openEnd;let n=this.compositionView(r);t.breakAtStart?n.breakAfter=1:t.content.length&&n.merge(n.length,n.length,t.content[0],!1,t.openStart,0)&&(n.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&n.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),u=e.content.concat(n).concat(t.content)}else({content:u,breakAtStart:c,openStart:d,openEnd:p}=ev.build(this.view.state.doc,a,l,this.decorations,this.dynamicDecorationMap));let{i:h,off:f}=o.findPos(s,1),{i:m,off:g}=o.findPos(i,-1);I(this,m,g,h,f,u,c,d,p)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){for(let t of(this.editContextFormatting=this.editContextFormatting.map(e.changes),e.transactions))for(let e of t.effects)e.is(eQ)&&(this.editContextFormatting=e.value)}compositionView(e){let t=new G(e.text.nodeValue);for(let{deco:r}of(t.flags|=8,e.marks))t=new $(r,[t],t.length);let r=new ef;return r.append(t,0),r}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some(e=>7&e.flags)?1:0),this.markedForComposition.add(t);let r=N.get(e);r&&r!=t&&(r.dom=null),t.setDOM(e)},r=this.childPos(e.range.fromB,1),n=this.children[r.i];t(e.line,n);for(let o=e.marks.length-1;o>=-1;o--)r=n.childPos(r.off,1),n=n.children[r.i],t(o>=0?e.marks[o].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,n=r==this.dom,o=!n&&!(this.view.state.facet(e$)||this.dom.tabIndex>-1)&&p(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(n||t||o))return;let i=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?a:this.moveToLine(this.domAtPos(s.head));if(Q.gecko&&s.empty&&!this.hasComposition&&function(e){return 1==e.node.nodeType&&e.node.firstChild&&(0==e.offset||"false"==e.node.childNodes[e.offset-1].contentEditable)&&(e.offset==e.node.childNodes.length||"false"==e.node.childNodes[e.offset].contentEditable)}(a)){let e=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null)),a=l=new M(e,0),i=!0}let u=this.view.observer.selectionRange;(i||!u.focusNode||(!f(a.node,a.offset,u.anchorNode,u.anchorOffset)||!f(l.node,l.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,s))&&(this.view.observer.ignore(()=>{Q.android&&Q.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let r=e;r&&r!=t;r=r.assignedSlot||r.parentNode)if(1==r.nodeType&&"false"==r.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=c(this.view.root);if(e){if(s.empty){if(Q.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(a.node,a.offset);if(e&&3!=e){let t=(1==e?T:E)(a.node,a.offset);t&&(a=new M(t.node,t.offset))}}e.collapse(a.node,a.offset),null!=s.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=s.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();s.anchor>s.head&&([a,l]=[l,a]),t.setEnd(l.node,l.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}}else;o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new M(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new M(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&f(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,r=c(e.root),{anchorNode:n,anchorOffset:o}=e.observer.selectionRange;if(!r||!t.empty||!t.assoc||!r.modify)return;let i=ef.find(this,t.head);if(!i)return;let s=i.posAtStart;if(t.head==s||t.head==s+i.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);r.collapse(u.node,u.offset),r.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=t.from&&r.collapse(n,o)}moveToLine(e){let t=this.dom,r;if(e.node!=t)return e;for(let n=e.offset;!r&&n<t.childNodes.length;n++){let e=N.get(t.childNodes[n]);e instanceof ef&&(r=e.domAtPos(0))}for(let n=e.offset-1;!r&&n>=0;n--){let e=N.get(t.childNodes[n]);e instanceof ef&&(r=e.domAtPos(e.length))}return r?new M(r.node,r.offset,!0):e}nearest(e){for(let t=e;t;){let e=N.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let r=this.nearest(e);if(!r)throw RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,t)+r.posAtStart}domAtPos(e){let{i:t,off:r}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(r<e.length||e instanceof ef)break;t++,r=0}return this.children[t].domAtPos(r)}coordsAt(e,t){let r=null,n=0;for(let o=this.length,i=this.children.length-1;i>=0;i--){let s=this.children[i],a=o-s.breakAfter,l=a-s.length;if(a<e)break;if(l<=e&&(l<e||s.covers(-1))&&(a>e||s.covers(1))&&(!r||s instanceof ef&&!(r instanceof ef&&t>=0)))r=s,n=l;else if(r&&l==e&&a==e&&s instanceof em&&2>Math.abs(t)){if(s.deco.startSide<0)break;i&&(r=null)}o=l}return r?r.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:r}=this.childPos(e,1),n=this.children[t];if(!(n instanceof ef))return null;for(;n.children.length;){let{i:e,off:t}=n.childPos(r,1);for(;;e++){if(e==n.children.length)return null;if((n=n.children[e]).length)break}r=t}if(!(n instanceof G))return null;let o=(0,a.cp)(n.text,r);if(o==r)return null;let i=A(n.dom,r,o).getClientRects();for(let e=0;e<i.length;e++){let t=i[e];if(e==i.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let t=[],{from:r,to:n}=e,o=this.view.contentDOM.clientWidth,i=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==eb.LTR;for(let e=0,l=0;l<this.children.length;l++){let u=this.children[l],c=e+u.length;if(c>n)break;if(e>=r){let r=u.dom.getBoundingClientRect();if(t.push(r.height),i){let t=u.dom.lastChild,n=t?h(t):[];if(n.length){let t=n[n.length-1],i=a?t.right-r.left:r.right-t.left;i>s&&(s=i,this.minWidth=o,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?eb.RTL:eb.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ef){let t=e.measureTextSize();if(t)return t}let e=document.createElement("div"),t,r,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=h(e.firstChild)[0];t=e.getBoundingClientRect().height,r=o?o.width/27:7,n=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:r,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new B(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,n=0;;n++){let o=n==t.viewports.length?null:t.viewports[n],i=o?o.from-1:this.length;if(i>r){let n=(t.lineBlockAt(i).bottom-t.lineBlockAt(r).top)/this.view.scaleY;e.push(el.replace({widget:new eg(n),block:!0,inclusive:!0,isBlockGap:!0}).range(r,i))}if(!o)break;r=o.to+1}return el.set(e)}updateDeco(){let e=1,t=this.view.state.facet(e5).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),r=!1,n=this.view.state.facet(e6).map((e,t)=>{let n="function"==typeof e;return n&&(r=!0),n?e(this.view):e});for(n.length&&(this.dynamicDecorationMap[e++]=r,t.push(a.Xs.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(eU))try{if(t(this.view,e.range,e))return!0}catch(e){eG(this.view.state,e,"scroll handler")}let{range:t}=e,r=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),n;if(!r)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(r={left:Math.min(r.left,n.left),top:Math.min(r.top,n.top),right:Math.max(r.right,n.right),bottom:Math.max(r.bottom,n.bottom)});let o=te(this.view),i={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(e,t,r,n,o,i,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(1==c.nodeType){let e,p=c==l.body,h=1,f=1;if(p)e=function(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:h,scaleY:f}=w(c,t)),e={left:t.left,right:t.left+c.clientWidth*h,top:t.top,bottom:t.top+c.clientHeight*f}}let m=0,g=0;if("nearest"==o)t.top<e.top?(g=t.top-(e.top+s),r>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+s)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+s,r<0&&t.top-g<e.top&&(g=t.top-(e.top+s)));else{let n=t.bottom-t.top,i=e.bottom-e.top;g=("center"==o&&n<=i?t.top+n/2-i/2:"start"==o||"center"==o&&r<0?t.top-s:t.bottom-i+s)-e.top}if("nearest"==n?t.left<e.left?(m=t.left-(e.left+i),r>0&&t.right>e.right+m&&(m=t.right-e.right+i)):t.right>e.right&&(m=t.right-e.right+i,r<0&&t.left<e.left+m&&(m=t.left-(e.left+i))):m=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==a?t.left-i:t.right-(e.right-e.left)+i)-e.left,m||g){if(p)u.scrollBy(m,g);else{let e=0,r=0;if(g){let e=c.scrollTop;c.scrollTop+=g/f,r=(c.scrollTop-e)*f}if(m){let t=c.scrollLeft;c.scrollLeft+=m/h,e=(c.scrollLeft-t)*h}t={left:t.left-e,top:t.top-r,right:t.right-e,bottom:t.bottom-r},e&&1>Math.abs(e-m)&&(n="nearest"),r&&1>Math.abs(r-g)&&(o="nearest")}}if(p)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,i,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==eb.LTR)}}function ti(e,t){let r=e.observer.selectionRange;if(!r.focusNode)return null;let n=T(r.focusNode,r.focusOffset),o=E(r.focusNode,r.focusOffset),i=n||o;if(o&&n&&o.node!=n.node){let t=N.get(o.node);if(!t||t instanceof G&&t.text!=o.node.nodeValue)i=o;else if(e.docView.lastCompositionAfterCursor){let e=N.get(n.node);!(!e||e instanceof G&&e.text!=n.node.nodeValue)&&(i=o)}}if(e.docView.lastCompositionAfterCursor=i!=n,!i)return null;let s=t-i.offset;return{from:s,to:s+i.node.nodeValue.length,node:i.node}}let ts=class{constructor(){this.changes=[]}compareRange(e,t){eh(e,t,this.changes)}comparePoint(e,t){eh(e,t,this.changes)}boundChange(e){eh(e,e,this.changes)}};function ta(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function tl(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function tu(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function tc(e,t,r){let n=e.nodeValue.length,o=-1,i=1e9,s=0;for(let a=0;a<n;a++){let n=A(e,a,a+1).getClientRects();for(let l=0;l<n.length;l++){let u=n[l];if(u.top==u.bottom)continue;!s&&(s=t-u.left);let c=(u.top>r?u.top-r:r-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<i){let r=t>=(u.left+u.right)/2,n=r;if((Q.chrome||Q.gecko)&&A(e,a).getBoundingClientRect().left==u.right&&(n=!r),c<=0)return{node:e,offset:a+(n?1:0)};o=a+(n?1:0),i=c}}}return{node:e,offset:o>-1?o:s>0?e.nodeValue.length:0}}function td(e,t,r,n=-1){var o,i;let s=e.contentDOM.getBoundingClientRect(),a=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,p=d-a;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,o=!1;(l=e.elementAtHeight(p)).type!=ea.Text;){;for(;!((p=n>0?l.bottom+t:l.top-t)>=0)||!(p<=u);){;if(o)return r?null:0;o=!0,n=-n}}d=a+p;let f=l.from;if(f<e.viewport.from)return 0==e.viewport.from?0:r?null:tp(e,s,l,c,d);if(f>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:r?null:tp(e,s,l,c,d);let m=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:m,y=g.elementFromPoint(c,d);y&&!e.contentDOM.contains(y)&&(y=null),!y&&(c=Math.max(s.left+1,Math.min(s.right-1,c)),(y=g.elementFromPoint(c,d))&&!e.contentDOM.contains(y)&&(y=null));let b,w=-1;if(y&&(null===(o=e.docView.nearest(y))||void 0===o?void 0:o.isEditable)!=!1){if(m.caretPositionFromPoint){let e=m.caretPositionFromPoint(c,d);e&&({offsetNode:b,offset:w}=e)}else if(m.caretRangeFromPoint){let t=m.caretRangeFromPoint(c,d);t&&({startContainer:b,startOffset:w}=t,(!e.contentDOM.contains(b)||Q.safari&&function(e,t,r){let n,o=e;if(3!=e.nodeType||t!=(n=e.nodeValue.length))return!1;for(;;){let e=o.nextSibling;if(e){if("BR"==e.nodeName)break;return!1}{let e=o.parentNode;if(!e||"DIV"==e.nodeName)break;o=e}}return A(e,n-1,n).getBoundingClientRect().right>r}(b,w,c)||Q.chrome&&function(e,t,r){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return r-(1==e.nodeType?e.getBoundingClientRect():A(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(b,w,c))&&(b=void 0))}b&&(w=Math.min(x(b),w))}if(!b||!e.docView.dom.contains(b)){let t=ef.find(e.docView,f);if(!t)return p>l.top+l.height/2?l.to:l.from;({node:b,offset:w}=function e(t,r,n){let o,i,s,a,l,u,c,d,p=!1;for(let x=t.firstChild;x;x=x.nextSibling){let t=h(x);for(let h=0;h<t.length;h++){var f,m,g,y;let b=t[h];u&&ta(u,b)&&(b=tl(tu(b,u.bottom),u.top));let w=(f=r,(m=b).left>f?m.left-f:Math.max(0,f-m.right)),_=(g=n,(y=b).top>g?y.top-g:Math.max(0,g-y.bottom));if(0==w&&0==_)return 3==x.nodeType?tc(x,r,n):e(x,r,n);(!l||d>_||d==_&&c>w)&&(l=x,u=b,c=w,d=_,p=!w||(r<b.left?h>0:h<t.length-1)),0==w?n>b.bottom&&(!s||s.bottom<b.bottom)?(o=x,s=b):n<b.top&&(!a||a.top>b.top)&&(i=x,a=b):s&&ta(s,b)?s=tu(s,b.bottom):a&&ta(a,b)&&(a=tl(a,b.top))}}if(s&&s.bottom>=n?(l=o,u=s):a&&a.top<=n&&(l=i,u=a),!l)return{node:t,offset:0};let x=Math.max(u.left,Math.min(u.right,r));if(3==l.nodeType)return tc(l,x,n);if(p&&"false"!=l.contentEditable)return e(l,x,n);let b=Array.prototype.indexOf.call(t.childNodes,l)+(r>=(u.left+u.right)/2?1:0);return{node:t,offset:b}}(t.dom,c,d))}let _=e.docView.nearest(b);if(!_)return null;if(!_.isWidget||(null===(i=_.dom)||void 0===i?void 0:i.nodeType)!=1)return _.localPosFromDOM(b,w)+_.posAtStart;{let e=_.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?_.posAtStart:_.posAtEnd}}function tp(e,t,r,n,o){let i=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&r.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;i+=Math.floor((o-r.top-(e.defaultLineHeight-t)*.5)/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(r.from,r.to);return r.from+(0,a.Gz)(s,i,e.state.tabSize)}function th(e,t,r){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){let e;for(let o of n.type){if(o.from>t)break;if(!(o.to<t)){if(o.from<t&&o.to>t)return o;(!e||o.type==ea.Text&&(e.type!=o.type||(r<0?o.from<t:o.to>t)))&&(e=o)}}return e||n}return n}function tf(e,t,r,n){let o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),s=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=function(e,t,r,n,o){var i;let s=n.head-e.from,l=eE.find(t,s,null!==(i=n.bidiLevel)&&void 0!==i?i:-1,n.assoc),u=t[l],c=u.side(o,r);if(s==c){let e=l+=o?1:-1;if(e<0||e>=t.length)return null;s=(u=t[l=e]).side(!o,r),c=u.side(o,r)}let d=(0,a.cp)(e.text,s,u.forward(o,r));(d<u.from||d>u.to)&&(d=c),eP=e.text.slice(Math.min(s,d),Math.max(s,d));let p=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return p&&d==c&&p.level+(o?0:1)<u.level?a.jT.cursor(p.side(!o,r)+e.from,p.forward(o,r)?1:-1,p.level):a.jT.cursor(d+e.from,u.forward(o,r)?-1:1,u.level)}(o,i,s,l,r),c=eP;if(!t){if(o.number==(r?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(r?1:-1)),i=e.bidiSpans(o),t=e.visualLineSide(o,!r)}if(u){if(!u(c))return l}else{if(!n)return t;u=n(c)}l=t}}function tm(e,t,r){for(;;){let n=0;for(let o of e)o.between(t-1,t+1,(e,o,i)=>{if(t>e&&t<o){let i=n||r||(t-e<o-t?-1:1);t=i<0?e:o,n=i}});if(!n)return t}}function tg(e,t,r){let n=tm(e.state.facet(e3).map(t=>t(e)),r.from,t.head>r.from?-1:1);return n==r.from?r:a.jT.cursor(n,n<r.from?1:-1)}class tv{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(a.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="￿"}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let e=this.text.length;this.readNode(n);let o=n.nextSibling;if(o==t)break;let i=N.get(n),s=N.get(o);(i&&s?i.breakAfter:(i?i.breakAfter:g(n))||g(o)&&("BR"!=n.nodeName||n.cmIgnore)&&this.text.length>e)&&this.lineBreak(),n=o}return this.findPointBefore(r,t),this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,t.length));for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,i=1,s;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,r),i=this.lineSeparator.length):(s=n.exec(t))&&(o=s.index,i=s[0].length),this.append(t.slice(r,o<0?t.length:o)),o<0)break;if(this.lineBreak(),i>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=i-1);r=o+i}}readNode(e){if(e.cmIgnore)return;let t=N.get(e),r=t&&t.overrideDOMText;if(null!=r){this.findPointInside(e,r.length);for(let e=r.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==t&&(r.pos=this.text.length)}findPointInside(e,t){for(let r of this.points)(3==e.nodeType?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(function(e,t,r){for(;;){if(!t||r<x(t))return!1;if(t==e)return!0;r=m(t)+1,t=t.parentNode}}(e,r.node,r.offset)?t:0))}}class ty{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class tx{constructor(e,t,r,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:i}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,r,0))){let t=o||i?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:r,anchorOffset:n,focusNode:o,focusOffset:i}=e.observer.selectionRange;return r&&(t.push(new ty(r,n)),(o!=r||i!=n)&&t.push(new ty(o,i))),t}(e),r=new tv(t,e.state);r.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=r.text,this.newSel=function(e,t){if(0==e.length)return null;let r=e[0].pos,n=2==e.length?e[1].pos:r;return r>-1&&n>-1?a.jT.single(r+t,n+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,r=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!d(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!d(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((Q.ios||Q.chrome)&&e.state.selection.main.empty&&r!=n&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(r,n),o=Math.max(r,n),i=s.from-t,a=s.to-o;(0==i||1==i||0==t)&&(0==a||-1==a||o==e.state.doc.length)&&(r=0,n=e.state.doc.length)}this.newSel=a.jT.single(n,r)}}}function tb(e,t){let r;let{newSel:n}=t,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:n,to:s}=t.bounds,l=o.from,u=null;(8===i||Q.android&&t.text.length<s-n)&&(l=o.to,u="end");let c=function(e,t,r,n){let o=Math.min(e.length,t.length),i=0;for(;i<o&&e.charCodeAt(i)==t.charCodeAt(i);)i++;if(i==o&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==n){let e=Math.max(0,i-Math.min(s,a));r-=s+e-i}if(s<i&&e.length<t.length){let e=r<=i&&r>=s?i-r:0;i-=e,a=i+(a-s),s=i}else if(a<i){let e=r<=i&&r>=a?i-r:0;i-=e,s=i+(s-a),a=i}return{from:i,toA:s,toB:a}}(e.state.doc.sliceString(n,s,"￿"),t.text,l-n,u);c&&(Q.chrome&&13==i&&c.toB==c.from+2&&"￿￿"==t.text.slice(c.from,c.toB)&&c.toB--,r={from:n+c.from,to:n+c.toA,insert:a.xv.of(t.text.slice(c.from,c.toB).split("￿"))})}else n&&(!e.hasFocus&&e.state.facet(e$)||n.main.eq(o))&&(n=null);if(!r&&!n)return!1;if(!r&&t.typeOver&&!o.empty&&n&&n.main.empty?r={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:(Q.mac||Q.android)&&r&&r.from==r.to&&r.from==o.head-1&&/^\. ?$/.test(r.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==r.insert.length&&(n=a.jT.single(n.main.anchor-1,n.main.head-1)),r={from:r.from,to:r.to,insert:a.xv.of([r.insert.toString().replace("."," ")])}):r&&r.from>=o.from&&r.to<=o.to&&(r.from!=o.from||r.to!=o.to)&&o.to-o.from-(r.to-r.from)<=4?r={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,o.to))}:Q.chrome&&r&&r.from==r.to&&r.from==o.head&&"\n "==r.insert.toString()&&e.lineWrapping&&(n&&(n=a.jT.single(n.main.anchor-1,n.main.head-1)),r={from:o.from,to:o.to,insert:a.xv.of([" "])}),r)return tw(e,r,n,i);if(!n||n.main.eq(o))return!1;{let t=!1,r="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),r=e.inputState.lastSelectionOrigin),e.dispatch({selection:n,scrollIntoView:t,userEvent:r}),!0}}function tw(e,t,r,n=-1){let o;if(Q.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(Q.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&" "==e.state.sliceDoc(t.from,i.from))&&1==t.insert.length&&2==t.insert.lines&&O(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>i.head)&&O(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&0==t.insert.length&&O(e.contentDOM,"Delete",46)))return!0;let s=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>o||(o=function(e,t,r){let n,o=e.state,i=o.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let r=i.from<t.from?o.sliceDoc(i.from,t.from):"",s=i.to>t.to?o.sliceDoc(t.to,i.to):"";n=o.replaceSelection(e.state.toText(r+t.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{let s=o.changes(t),l=r&&r.main.to<=s.newLength?r.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=r&&ti(e,r.main.head);if(d){let e=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-e}}else c=e.state.doc.lineAt(i.head);let p=i.to-t.to,h=i.to-i.from;n=o.changeByRange(r=>{if(r.from==i.from&&r.to==i.to)return{changes:s,range:l||r.map(s)};let n=r.to-p,d=n-u.length;if(r.to-r.from!=h||e.state.sliceDoc(d,n)!=u||r.to>=c.from&&r.from<=c.to)return{range:r};let f=o.changes({from:d,to:n,insert:t.insert}),m=r.to-i.to;return{changes:f,range:l?a.jT.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):r.map(f)}})}else n={changes:s,selection:l&&o.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),o.update(n,{userEvent:s,scrollIntoView:!0})}(e,t,r));return!e.state.facet(eR).some(r=>r(e,t.from,t.to,s,l))&&e.dispatch(l()),!0}class t_{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Q.safari&&e.contentDOM.addEventListener("input",()=>null),Q.gecko&&function(e){!tq.has(e)&&(tq.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){if(!(!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target,n;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=N.get(r))&&n.ignoreEvent(t))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)))!("keydown"==e.type&&this.keydown(e))&&(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let r=this.handlers[e];if(r){for(let e of r.observers)e(this.view,t);for(let e of r.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function r(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,n=e&&e.plugin.domEventHandlers,o=e&&e.plugin.domEventObservers;if(n)for(let e in n){let o=n[e];o&&r(e).handlers.push(tk(t.value,o))}if(o)for(let e in o){let n=o[e];n&&r(e).observers.push(tk(t.value,n))}}for(let e in tT)r(e).handlers.push(tT[e]);for(let e in tE)r(e).observers.push(tE[e]);return t}(e),r=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let o=!t[e].handlers.length,i=r[e];i&&!i.handlers.length!=o&&(n.removeEventListener(e,this.handleEvent),i=null),!i&&n.addEventListener(e,this.handleEvent,{passive:o})}for(let e in r)"scroll"!=e&&!t[e]&&n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){let t;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))||((this.tabFocusMode>0&&27!=e.keyCode&&0>tO.indexOf(e.keyCode)&&(this.tabFocusMode=-1),Q.android&&Q.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))?(this.view.observer.delayAndroidKey(e.key,e.keyCode),!0):Q.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=tC.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||tA.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(229!=e.keyCode&&this.view.observer.forceFlush(),!1))}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||"Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,O(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(!!(this.composing>0)||!!(Q.safari&&!Q.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function tk(e,t){return(r,n)=>{try{return t.call(e,n,r)}catch(e){eG(r.state,e)}}}let tC=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],tA="dthko",tO=[16,17,18,20,91,92,224,225];function tD(e){return .7*Math.max(0,e)+8}class tS{constructor(e,t,r,n){this.view=e,this.startEvent=t,this.style=r,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=function(e){let t=e.ownerDocument,r,n;for(let o=e.parentNode;o&&o!=t.body&&(!r||!n);){;if(1==o.nodeType)!n&&o.scrollHeight>o.clientHeight&&(n=o),!r&&o.scrollWidth>o.clientWidth&&(r=o),o=o.assignedSlot||o.parentNode;else if(11==o.nodeType)o=o.host;else break}return{x:r,y:n}}(e.contentDOM),this.atoms=e.state.facet(e3).map(t=>t(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(a.yy.allowMultipleSelections)&&function(e,t){let r=e.state.facet(eB);return r.length?r[0](t):Q.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!!function(e,t){let{main:r}=e.state.selection;if(r.empty)return!1;let n=c(e.root);if(!n||0==n.rangeCount)return!0;let o=n.getRangeAt(0).getClientRects();for(let e=0;e<o.length;e++){let r=o[e];if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return!0}return!1}(e,t)&&1==tX(t)&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>(t=this.startEvent,r=e,Math.max(Math.abs(t.clientX-r.clientX),Math.abs(t.clientY-r.clientY))))return;this.select(this.lastEvent=e);let n=0,o=0,i=0,s=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let u=te(this.view);e.clientX-u.left<=i+6?n=-tD(i-e.clientX):e.clientX+u.right>=a-6&&(n=tD(e.clientX-a)),e.clientY-u.top<=s+6?o=-tD(s-e.clientY):e.clientY+u.bottom>=l-6&&(o=tD(e.clientY-l)),this.setScrollSpeed(n,o)}up(e){null==this.dragging&&this.select(this.lastEvent),!this.dragging&&e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let r=0;r<e.ranges.length;r++){let n=e.ranges[r],o=null;if(n.empty){let e=tm(this.atoms,n.from,0);e!=n.from&&(o=a.jT.cursor(e,-1))}else{let e=tm(this.atoms,n.from,-1),t=tm(this.atoms,n.to,1);(e!=n.from||t!=n.to)&&(o=a.jT.range(n.from==n.anchor?e:t,n.from==n.head?e:t))}o&&(!t&&(t=e.ranges.slice()),t[r]=o)}return t?a.jT.create(t,e.mainIndex):e}select(e){let{view:t}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(t.state.selection,!1===this.dragging))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}let tT=Object.create(null),tE=Object.create(null),tM=Q.ie&&Q.ie_version<15||Q.ios&&Q.webkit_version<604;function tj(e,t,r){for(let n of e.facet(t))r=n(r,e);return r}function tN(e,t){t=tj(e.state,eZ,t);let{state:r}=e,n,o=1,i=r.toText(t),s=i.lines==r.selection.ranges.length;if(null!=tW&&r.selection.ranges.every(e=>e.empty)&&tW==i.toString()){let e=-1;n=r.changeByRange(n=>{let l=r.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=r.toText((s?i.line(o++).text:t)+r.lineBreak);return{changes:{from:l.from,insert:u},range:a.jT.cursor(n.from+u.length)}})}else n=s?r.changeByRange(e=>{let t=i.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:a.jT.cursor(e.from+t.length)}}):r.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function tP(e,t,r,n){if(1==n)return a.jT.cursor(t,r);if(2==n)return function(e,t,r=1){let n=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from;if(0==o.length)return a.jT.cursor(t);0==i?r=1:i==o.length&&(r=-1);let s=i,l=i;r<0?s=(0,a.cp)(o.text,i,!1):l=(0,a.cp)(o.text,i);let u=n(o.text.slice(s,l));for(;s>0;){let e=(0,a.cp)(o.text,s,!1);if(n(o.text.slice(e,s))!=u)break;s=e}for(;l<o.length;){let e=(0,a.cp)(o.text,l);if(n(o.text.slice(l,e))!=u)break;l=e}return a.jT.range(s+o.from,l+o.from)}(e.state,t,r);{let r=ef.find(e.docView,t),n=e.state.doc.lineAt(r?r.posAtEnd:t),o=r?r.posAtStart:n.from,i=r?r.posAtEnd:n.to;return i<e.state.doc.length&&i==n.to&&i++,a.jT.range(o,i)}}tE.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},tT.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),tE.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},tE.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},tT.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let r=null;for(let n of e.state.facet(eL))if(r=n(e,t))break;if(!r&&0==t.button&&(r=function(e,t){let r=tI(e,t),n=tX(t),o=e.state.selection;return{update(e){e.docChanged&&(r.pos=e.changes.mapPos(r.pos),o=o.map(e.changes))},get(t,i,s){let l=tI(e,t),u,c=tP(e,l.pos,l.bias,n);if(r.pos!=l.pos&&!i){let t=tP(e,r.pos,r.bias,n),o=Math.min(t.from,c.from),i=Math.max(t.to,c.to);c=o<c.from?a.jT.range(o,i):a.jT.range(i,o)}if(i)return o.replaceRange(o.main.extend(c.from,c.to));if(s&&1==n&&o.ranges.length>1&&(u=function(e,t){for(let r=0;r<e.ranges.length;r++){let{from:n,to:o}=e.ranges[r];if(n<=t&&o>=t)return a.jT.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r?1:0))}return null}(o,l.pos)))return u;if(s)return o.addRange(c);else return a.jT.create([c])}}}(e,t)),r){let n=!e.hasFocus;e.inputState.startMouseSelection(new tS(e,t,r,n)),n&&e.observer.ignore(()=>{C(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let o=e.inputState.mouseSelection;if(o)return o.start(t),!1===o.dragging}return!1};let tB=(e,t,r)=>t>=r.top&&t<=r.bottom&&e>=r.left&&e<=r.right;function tI(e,t){let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:r,bias:function(e,t,r,n){let o=ef.find(e.docView,t);if(!o)return 1;let i=t-o.posAtStart;if(0==i)return 1;if(i==o.length)return -1;let s=o.coordsAt(i,-1);if(s&&tB(r,n,s))return -1;let a=o.coordsAt(i,1);return a&&tB(r,n,a)?1:s&&s.bottom>=n?-1:1}(e,r,t.clientX,t.clientY)}}let tL=Q.ie&&Q.ie_version<=11,tF=null,tz=0,tR=0;function tX(e){if(!tL)return e.detail;let t=tF,r=tR;return tF=e,tR=Date.now(),tz=!t||r>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(tz+1)%3:1}function tZ(e,t,r,n){var o,i;let s;if(!(r=tj(e.state,eZ,r)))return;let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:l}=e.inputState;let u=n&&l&&(o=e,i=t,(s=o.state.facet(eI)).length?s[0](i):Q.mac?!i.altKey:!i.ctrlKey)?{from:l.from,to:l.to}:null,c={from:a,insert:r},d=e.state.changes(u?[u,c]:c);e.focus(),e.dispatch({changes:d,selection:{anchor:d.mapPos(a,-1),head:d.mapPos(a,1)},userEvent:u?"move.drop":"input.drop"}),e.inputState.draggedContent=null}tT.dragstart=(e,t)=>{let{selection:{main:r}}=e.state;if(t.target.draggable){let n=e.docView.nearest(t.target);if(n&&n.isWidget){let e=n.posAtStart,t=e+n.length;(e>=r.to||t<=r.from)&&(r=a.jT.range(e,t))}}let{inputState:n}=e;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=r,t.dataTransfer&&(t.dataTransfer.setData("Text",tj(e.state,eW,e.state.sliceDoc(r.from,r.to))),t.dataTransfer.effectAllowed="copyMove"),!1},tT.dragend=e=>(e.inputState.draggedContent=null,!1),tT.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let r=t.dataTransfer.files;if(r&&r.length){let n=Array(r.length),o=0,i=()=>{++o==r.length&&tZ(e,t,n.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<r.length;e++){let t=new FileReader;t.onerror=i,t.onload=()=>{!/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)&&(n[e]=t.result),i()},t.readAsText(r[e])}return!0}{let r=t.dataTransfer.getData("Text");if(r)return tZ(e,t,r,!0),!0}return!1},tT.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let r=tM?null:t.clipboardData;return r?(tN(e,r.getData("text/plain")||r.getData("text/uri-list")),!0):(!function(e){let t=e.dom.parentNode;if(!t)return;let r=t.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.remove(),tN(e,r.value)},50)}(e),!1)};let tW=null;tT.copy=tT.cut=(e,t)=>{let{text:r,ranges:n,linewise:o}=function(e){let t=[],r=[],n=!1;for(let n of e.selection.ranges)!n.empty&&(t.push(e.sliceDoc(n.from,n.to)),r.push(n));if(!t.length){let o=-1;for(let{from:n}of e.selection.ranges){let i=e.doc.lineAt(n);i.number>o&&(t.push(i.text),r.push({from:i.from,to:Math.min(e.doc.length,i.to+1)})),o=i.number}n=!0}return{text:tj(e,eW,t.join(e.lineBreak)),ranges:r,linewise:n}}(e.state);if(!r&&!o)return!1;tW=o?r:null,"cut"==t.type&&!e.state.readOnly&&e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let i=tM?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",r),!0):(!function(e,t){let r=e.dom.parentNode;if(!r)return;let n=r.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),e.focus()},50)}(e,r),!1)};let tV=a.q6.define();function tH(e,t){let r=[];for(let n of e.facet(eX)){let o=n(e,t);o&&r.push(o)}return r.length?e.update({effects:r,annotations:tV.of(!0)}):null}function tU(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let r=tH(e.state,t);r?e.dispatch(r):e.update([])}},10)}tE.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),tU(e)},tE.blur=e=>{e.observer.clearSelectionRange(),tU(e)},tE.compositionstart=tE.compositionupdate=e=>{!e.observer.editContext&&(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},tE.compositionend=e=>{!e.observer.editContext&&(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Q.chrome&&Q.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},tE.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},tT.beforeinput=(e,t)=>{var r,n;let o;if("insertReplacementText"==t.inputType&&e.observer.editContext){let n=null===(r=t.dataTransfer)||void 0===r?void 0:r.getData("text/plain"),o=t.getTargetRanges();if(n&&o.length){let t=o[0],r=e.posAtDOM(t.startContainer,t.startOffset),i=e.posAtDOM(t.endContainer,t.endOffset);return tw(e,{from:r,to:i,insert:e.state.toText(n)},null),!0}}if(Q.chrome&&Q.android&&(o=tC.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var r;((null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Q.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Q.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>tE.compositionend(e,t),20),!1};let tq=new Set,tY=["pre-wrap","normal","pre-line","break-spaces"],tQ=!1;function tG(){tQ=!1}class t${constructor(e){this.lineWrapping=e,this.doc=a.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return tY.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];n<0?r++:!this.heightSamples[Math.floor(10*n)]&&(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,r,n,o,i){let s=tY.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=r,this.textHeight=n,this.lineLength=o,a){this.heightSamples={};for(let e=0;e<i.length;e++){let t=i[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class tK{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class tJ{constructor(e,t,r,n,o){this.from=e,this.length=t,this.top=r,this.height=n,this._content=o}get type(){return"number"==typeof this._content?ea.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof ed?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new tJ(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var t0=((s=t0||(t0={}))[s.ByPos=0]="ByPos",s[s.ByHeight=1]="ByHeight",s[s.ByPosNoHeight=2]="ByPosNoHeight",s);class t1{constructor(e,t,r=2){this.length=e,this.height=t,this.flags=r}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>.001&&(tQ=!0),this.height=e)}replace(e,t,r){return t1.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,n){let o=this,i=r.doc;for(let s=n.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=n[s],d=o.lineAt(a,t0.ByPosNoHeight,r.setDoc(t),0,0),p=d.to>=l?d:o.lineAt(l,t0.ByPosNoHeight,r,0,0);for(c+=p.to-l,l=p.to;s>0&&d.from<=n[s-1].toA;)a=n[s-1].fromA,u=n[s-1].fromB,s--,a<d.from&&(d=o.lineAt(a,t0.ByPosNoHeight,r,0,0));u+=d.from-a,a=d.from;let h=t9.build(r.setDoc(i),e,u,c);o=t2(o,o.replace(a,l,h))}return o.updateHeight(r,0)}static empty(){return new t5(0,0)}static of(e){if(1==e.length)return e[0];let t=0,r=e.length,n=0,o=0;for(;;)if(t==r){if(n>2*o){let o=e[t-1];o.break?e.splice(--t,1,o.left,null,o.right):e.splice(--t,1,o.left,o.right),r+=1+o.break,n-=o.size}else if(o>2*n){let t=e[r];t.break?e.splice(r,1,t.left,null,t.right):e.splice(r,1,t.left,t.right),r+=2+t.break,o-=t.size}else break}else if(n<o){let r=e[t++];r&&(n+=r.size)}else{let t=e[--r];t&&(o+=t.size)}let i=0;return null==e[t-1]?(i=1,t--):null==e[t]&&(i=1,r++),new t3(t1.of(e.slice(0,t)),i,t1.of(e.slice(r)))}}function t2(e,t){return e==t?e:(e.constructor!=t.constructor&&(tQ=!0),t)}t1.prototype.size=1;class t4 extends t1{constructor(e,t,r){super(e,t),this.deco=r}blockAt(e,t,r,n){return new tJ(n,this.length,r,this.height,this.deco||0)}lineAt(e,t,r,n,o){return this.blockAt(0,r,n,o)}forEachLine(e,t,r,n,o,i){e<=o+this.length&&t>=o&&i(this.blockAt(0,r,n,o))}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class t5 extends t4{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,r,n){return new tJ(n,this.length,r,this.height,this.breaks)}replace(e,t,r){let n=r[0];return 1==r.length&&(n instanceof t5||n instanceof t6&&4&n.flags)&&10>Math.abs(this.length-n.length)?(n instanceof t6?n=new t5(n.length,this.height):n.height=this.height,!this.outdated&&(n.outdated=!1),n):t1.of(r)}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more?this.setHeight(n.heights[n.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class t6 extends t1{constructor(e){super(e,0)}heightMetrics(e,t){let r=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,o=n-r+1,i,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);i=t/o,this.length>o+1&&(s=(this.height-t)/(this.length-o-1))}else i=this.height/o;return{firstLine:r,lastLine:n,perLine:i,perChar:s}}blockAt(e,t,r,n){let{firstLine:o,lastLine:i,perLine:s,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let o=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),i=t.doc.lineAt(o),l=s+i.length*a,u=Math.max(r,e-l/2);return new tJ(i.from,i.length,u,l,0)}{let n=Math.max(0,Math.min(i-o,Math.floor((e-r)/s))),{from:a,length:l}=t.doc.line(o+n);return new tJ(a,l,r+s*n,s,0)}}lineAt(e,t,r,n,o){if(t==t0.ByHeight)return this.blockAt(e,r,n,o);if(t==t0.ByPosNoHeight){let{from:t,to:n}=r.doc.lineAt(e);return new tJ(t,n-t,0,0,0)}let{firstLine:i,perLine:s,perChar:a}=this.heightMetrics(r,o),l=r.doc.lineAt(e),u=s+l.length*a,c=l.number-i,d=n+s*c+a*(l.from-o-c);return new tJ(l.from,l.length,Math.max(n,Math.min(d,n+this.height-u)),u,0)}forEachLine(e,t,r,n,o,i){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(r,o);for(let u=e,c=n;u<=t;){let t=r.doc.lineAt(u);if(u==e){let r=t.number-s;c+=a*r+l*(e-o-r)}let n=a+l*t.length;i(new tJ(t.from,t.length,c,n,0)),c+=n,u=t.to+1}}replace(e,t,r){let n=this.length-t;if(n>0){let e=r[r.length-1];e instanceof t6?r[r.length-1]=new t6(e.length+n):r.push(null,new t6(n-1))}if(e>0){let t=r[0];t instanceof t6?r[0]=new t6(e+t.length):r.unshift(new t6(e-1),null)}return t1.of(r)}decomposeLeft(e,t){t.push(new t6(e-1),null)}decomposeRight(e,t){t.push(null,new t6(this.length-e-1))}updateHeight(e,t=0,r=!1,n){let o=t+this.length;if(n&&n.from<=t+this.length&&n.more){let r=[],i=Math.max(t,n.from),s=-1;for(n.from>t&&r.push(new t6(n.from-t-1).updateHeight(e,t));i<=o&&n.more;){let t=e.doc.lineAt(i).length;r.length&&r.push(null);let o=n.heights[n.index++];-1==s?s=o:Math.abs(o-s)>=.001&&(s=-2);let a=new t5(t,o);a.outdated=!1,r.push(a),i+=t+1}i<=o&&r.push(null,new t6(o-i).updateHeight(e,i));let a=t1.of(r);return(s<0||Math.abs(a.height-this.height)>=.001||Math.abs(s-this.heightMetrics(e,t).perLine)>=.001)&&(tQ=!0),t2(this,a)}return(r||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class t3 extends t1{constructor(e,t,r){super(e.length+t+r.length,e.height+r.height,t|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return 1&this.flags}blockAt(e,t,r,n){let o=r+this.left.height;return e<o?this.left.blockAt(e,t,r,n):this.right.blockAt(e,t,o,n+this.left.length+this.break)}lineAt(e,t,r,n,o){let i=n+this.left.height,s=o+this.left.length+this.break,a=t==t0.ByHeight?e<i:e<s,l=a?this.left.lineAt(e,t,r,n,o):this.right.lineAt(e,t,r,i,s);if(this.break||(a?l.to<s:l.from>s))return l;let u=t==t0.ByPosNoHeight?t0.ByPosNoHeight:t0.ByPos;return a?l.join(this.right.lineAt(s,u,r,i,s)):this.left.lineAt(s,u,r,n,o).join(l)}forEachLine(e,t,r,n,o,i){let s=n+this.left.height,a=o+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,r,n,o,i),t>=a&&this.right.forEachLine(e,t,r,s,a,i);else{let l=this.lineAt(a,t0.ByPos,r,n,o);e<l.from&&this.left.forEachLine(e,l.from-1,r,n,o,i),l.to>=e&&l.from<=t&&i(l),t>l.to&&this.right.forEachLine(l.to+1,t,r,s,a,i)}}replace(e,t,r){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,r));let o=[];e>0&&this.decomposeLeft(e,o);let i=o.length;for(let e of r)o.push(e);if(e>0&&t8(o,i-1),t<this.length){let e=o.length;this.decomposeRight(t,o),t8(o,e)}return t1.of(o)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++r&&t.push(null),e>r&&this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<r&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?t1.of(this.break?[e,null,t]:[e,t]):(this.left=t2(this.left,e),this.right=t2(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,r=!1,n){let{left:o,right:i}=this,s=t+o.length+this.break,a=null;return(n&&n.from<=t+o.length&&n.more?a=o=o.updateHeight(e,t,r,n):o.updateHeight(e,t,r),n&&n.from<=s+i.length&&n.more?a=i=i.updateHeight(e,s,r,n):i.updateHeight(e,s,r),a)?this.balanced(o,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function t8(e,t){let r,n;null==e[t]&&(r=e[t-1])instanceof t6&&(n=e[t+1])instanceof t6&&e.splice(t-1,3,new t6(r.length+1+n.length))}class t9{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof t5?r.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new t5(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0,o=r.widget?r.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let i=t-e;r.block?this.addBlock(new t4(i,n,r)):(i||o||n>=5)&&this.addLineDeco(n,o,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new t5(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let r=new t6(t-e);return this.oracle.doc.lineAt(e).to==t&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof t5)return e;let t=new t5(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,r){let n=this.ensureLine();n.length+=r,n.collapsed+=r,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+r}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof t5||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new t5(0,-1));let r=e;for(let e of this.nodes)e instanceof t5&&e.updateHeight(this.oracle,r),r+=e?e.length:1;return this.nodes}static build(e,t,r,n){let o=new t9(r,e);return a.Xs.spans(t,r,n,o,0),o.finish(r)}}class t7{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,n){(e<t||r&&r.heightRelevant||n&&n.heightRelevant)&&eh(e,t,this.changes,5)}}class re{constructor(e,t,r,n){this.from=e,this.to=t,this.size=r,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],o=t[r];if(n.from!=o.from||n.to!=o.to||n.size!=o.size)return!1}return!0}draw(e,t){return el.replace({widget:new rt(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class rt extends es{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class rr{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=rs,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=eb.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(e4).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new t$(t),this.stateDeco=e.facet(e5).filter(e=>"function"!=typeof e),this.heightMap=t1.empty().applyChanges(this.stateDeco,a.xv.empty,this.heightOracle.setDoc(e.doc),[new tr(0,0,0,e.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=el.set(this.lineGaps.map(e=>e.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let n=r?t.head:t.anchor;if(!e.some(({from:e,to:t})=>n>=e&&n<=t)){let{from:t,to:r}=this.lineBlockAt(n);e.push(new rn(t,r))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?rs:new ra(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(rl(e,this.scaler))})}update(e,t=null){var r,n,o;let i;this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(e5).filter(e=>"function"!=typeof e);let l=e.changedRanges;let u=tr.extendWithRanges(l,(r=s,n=this.stateDeco,o=e?e.changes:a.as.empty(this.state.doc.length),i=new t7,a.Xs.compare(r,n,o,i,0),i.changes)),c=this.heightMap.height,d=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);tQ=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),u),(this.heightMap.height!=c||tQ)&&(e.flags|=2),d?(this.scrollAnchorPos=e.changes.mapPos(d.from,-1),this.scrollAnchorHeight=d.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=c);let p=u.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<p.from||t.range.head>p.to)||!this.viewportIsAppropriate(p))&&(p=this.getViewport(0,t));let h=p.from!=this.viewport.from||p.to!=this.viewport.to;this.viewport=p,e.flags|=this.updateForViewport(),(h||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(eH)&&(this.mustEnforceCursorAssoc=!0)}measure(e){var t;let r,n,o=e.contentDOM,i=window.getComputedStyle(o),s=this.heightOracle,l=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?eb.RTL:eb.LTR;let u=this.heightOracle.mustRefreshForWrapping(l),c=o.getBoundingClientRect(),d=u||this.mustMeasureContent||this.contentDOMHeight!=c.height;this.contentDOMHeight=c.height,this.mustMeasureContent=!1;let p=0,h=0;if(c.width&&c.height){let{scaleX:e,scaleY:t}=w(o,c);(e>.005&&Math.abs(this.scaleX-e)>.005||t>.005&&Math.abs(this.scaleY-t)>.005)&&(this.scaleX=e,this.scaleY=t,p|=16,u=d=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,m=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=m)&&(this.paddingTop=f,this.paddingBottom=m,p|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(d=!0),this.editorWidth=e.scrollDOM.clientWidth,p|=16);let g=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=S(e.scrollDOM);let y=(this.printing?function(e,t){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:t,bottom:r.bottom-(r.top+t)}}:function(e,t){let r=e.getBoundingClientRect(),n=e.ownerDocument,o=n.defaultView||window,i=Math.max(0,r.left),s=Math.min(o.innerWidth,r.right),a=Math.max(0,r.top),l=Math.min(o.innerHeight,r.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let r=t,n=window.getComputedStyle(r);if((r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&"visible"!=n.overflow){let n=r.getBoundingClientRect();i=Math.max(i,n.left),s=Math.min(s,n.right),a=Math.max(a,n.top),l=Math.min(t==e.parentNode?o.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?r.offsetParent:r.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:i-r.left,right:Math.max(i,s)-r.left,top:a-(r.top+t),bottom:Math.max(a,l)-(r.top+t)}})(o,this.paddingTop),x=y.top-this.pixelViewport.top,b=y.bottom-this.pixelViewport.bottom;this.pixelViewport=y;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;_!=this.inView&&(this.inView=_,_&&(d=!0));if(!this.inView&&!this.scrollTarget&&(r=(t=e.dom).getBoundingClientRect(),n=t.ownerDocument.defaultView||window,!(r.left<n.innerWidth)||!(r.right>0)||!(r.top<n.innerHeight)||!(r.bottom>0)))return 0;let k=c.width;if((this.contentDOMWidth!=k||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=e.scrollDOM.clientHeight,p|=16),d){let t=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(t)&&(u=!0),u||s.lineWrapping&&Math.abs(k-this.contentDOMWidth)>s.charWidth){let{lineHeight:r,charWidth:n,textHeight:o}=e.docView.measureTextSize();(u=r>0&&s.refresh(l,r,n,o,k/n,t))&&(e.docView.minWidth=0,p|=16)}for(let r of(x>0&&b>0?h=Math.max(x,b):x<0&&b<0&&(h=Math.min(x,b)),tQ=!1,this.viewports)){let n=r.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(r);this.heightMap=(u?t1.empty().applyChanges(this.stateDeco,a.xv.empty,this.heightOracle,[new tr(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,u,new tK(r.from,n))}tQ&&(p|=2)}let C=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return C&&(2&p&&(p|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),p|=this.updateForViewport()),(2&p||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(u?[]:this.lineGaps,e)),p|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),p}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,o=this.heightOracle,{visibleTop:i,visibleBottom:s}=this,a=new rn(n.lineAt(i-1e3*r,t0.ByHeight,o,0,0).from,n.lineAt(s+(1-r)*1e3,t0.ByHeight,o,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),i=n.lineAt(e,t0.ByPos,o,0,0),s;s="center"==t.y?(i.top+i.bottom)/2-r/2:"start"==t.y||"nearest"==t.y&&e<a.from?i.top:i.bottom-r,a=new rn(n.lineAt(s-500,t0.ByHeight,o,0,0).from,n.lineAt(s+r+500,t0.ByHeight,o,0,0).to)}}return a}mapViewport(e,t){let r=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new rn(this.heightMap.lineAt(r,t0.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,t0.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,t0.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,t0.ByPos,this.heightOracle,0,0),{visibleTop:i,visibleBottom:s}=this;return(0==e||n<=i-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||o>=s+Math.max(10,Math.min(r,250)))&&n>i-2e3&&o<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let n of e)!t.touchesRange(n.from,n.to)&&r.push(new re(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return r}ensureLineGaps(e,t){let r=this.heightOracle.lineWrapping,n=r?1e4:2e3,o=n>>1,i=n<<1;if(this.defaultTextDirection!=eb.LTR&&!r)return[];let s=[],l=(n,i,u,c)=>{if(i-n<o)return;let d=this.state.selection.main,p=[d.from];for(let e of(!d.empty&&p.push(d.to),p))if(e>n&&e<i){l(n,e-10,u,c),l(e+10,i,u,c);return}let h=function(e,t){for(let r of e)if(t(r))return r}(e,e=>e.from>=u.from&&e.to<=u.to&&Math.abs(e.from-n)<o&&Math.abs(e.to-i)<o&&!p.some(t=>e.from<t&&e.to>t));if(!h){if(i<u.to&&t&&r&&t.visibleRanges.some(e=>e.from<=i&&e.to>=i)){let e=t.moveToLineBoundary(a.jT.cursor(i),!1,!0).head;e>n&&(i=e)}let e=this.gapSize(u,n,i,c),o=r||e<2e6?e:2e6;h=new re(n,i,e,o)}s.push(h)},u=t=>{let o,s;if(t.length<i||t.type!=ea.Text)return;let u=function(e,t,r){let n=[],o=e,i=0;return a.Xs.spans(r,e,t,{span(){},point(e,t){e>o&&(n.push({from:o,to:e}),i+=e-o),o=t}},20),o<t&&(n.push({from:o,to:t}),i+=t-o),{total:i,ranges:n}}(t.from,t.to,this.stateDeco);if(u.total<i)return;let c=this.scrollTarget?this.scrollTarget.range.head:null;if(r){let e,r,i=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=c){let n=ri(u,c),o=((this.visibleBottom-this.visibleTop)/2+i)/t.height;e=n-o,r=n+o}else e=(this.visibleTop-t.top-i)/t.height,r=(this.visibleBottom-t.top+i)/t.height;o=ro(u,e),s=ro(u,r)}else{let r,i,a=u.total*this.heightOracle.charWidth,l=n*this.heightOracle.charWidth,d=0;if(a>2e6)for(let r of e)r.from>=t.from&&r.from<t.to&&r.size!=r.displaySize&&r.from*this.heightOracle.charWidth+d<this.pixelViewport.left&&(d=r.size-r.displaySize);let p=this.pixelViewport.left+d,h=this.pixelViewport.right+d;if(null!=c){let e=ri(u,c),t=((h-p)/2+l)/a;r=e-t,i=e+t}else r=(p-l)/a,i=(h+l)/a;o=ro(u,r),s=ro(u,i)}o>t.from&&l(t.from,o,t,u),s<t.to&&l(s,t.to,t,u)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(u):u(e);return s}gapSize(e,t,r,n){let o=ri(n,r)-ri(n,t);return this.heightOracle.lineWrapping?e.height*o:n.total*this.heightOracle.charWidth*o}updateLineGaps(e){!re.same(e,this.lineGaps)&&(this.lineGaps=e,this.lineGapDeco=el.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let r=[];a.Xs.spans(t,this.viewport.from,this.viewport.to,{span(e,t){r.push({from:e,to:t})},point(){}},20);let n=0;if(r.length!=this.visibleRanges.length)n=12;else for(let t=0;t<r.length&&!(8&n);t++){let o=this.visibleRanges[t],i=r[t];(o.from!=i.from||o.to!=i.to)&&(n|=4,!(e&&e.mapPos(o.from,-1)==i.from&&e.mapPos(o.to,1)==i.to)&&(n|=8))}return this.visibleRanges=r,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||rl(this.heightMap.lineAt(e,t0.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||rl(this.heightMap.lineAt(this.scaler.fromDOM(e),t0.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return rl(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class rn{constructor(e,t){this.from=e,this.to=t}}function ro({total:e,ranges:t},r){if(r<=0)return t[0].from;if(r>=1)return t[t.length-1].to;let n=Math.floor(e*r);for(let e=0;;e++){let{from:r,to:o}=t[e],i=o-r;if(n<=i)return r+n;n-=i}}function ri(e,t){let r=0;for(let{from:n,to:o}of e.ranges){if(t<=o){r+=t-n;break}r+=o-n}return r/e.total}let rs={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class ra{constructor(e,t,r){let n=0,o=0,i=0;for(let s of(this.viewports=r.map(({from:r,to:o})=>{let i=t.lineAt(r,t0.ByPos,e,0,0).top,s=t.lineAt(o,t0.ByPos,e,0,0).bottom;return n+=s-i,{from:r,to:o,top:i,bottom:s,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n),this.viewports))s.domTop=i+(s.top-o)*this.scale,i=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let t=0,r=0,n=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return n+(e-r)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);r=o.bottom,n=o.domBottom}}fromDOM(e){for(let t=0,r=0,n=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return r+(e-n)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);r=o.bottom,n=o.domBottom}}eq(e){return e instanceof ra&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,r)=>t.from==e.viewports[r].from&&t.to==e.viewports[r].to)}}function rl(e,t){if(1==t.scale)return e;let r=t.toDOM(e.top),n=t.toDOM(e.bottom);return new tJ(e.from,e.length,r,n-r,Array.isArray(e._content)?e._content.map(e=>rl(e,t)):e._content)}let ru=a.r$.define({combine:e=>e.join(" ")}),rc=a.r$.define({combine:e=>e.indexOf(!0)>-1}),rd=l.V.newName(),rp=l.V.newName(),rh=l.V.newName(),rf={"&light":"."+rp,"&dark":"."+rh};function rm(e,t,r){return new l.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!r||!r[t])throw RangeError(`Unsupported selector: ${t}`);return r[t]}):e+" "+t})}let rg=rm("."+rd,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},rf),rv={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ry=Q.ie&&Q.ie_version<=11;class rx{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new _,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(Q.ie&&Q.ie_version<=11||Q.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&!1!==e.constructor.EDIT_CONTEXT&&!(Q.chrome&&Q.chrome_version<126)&&(this.editContext=new r_(e),e.state.facet(e$)&&(e.contentDOM.editContext=this.editContext.editContext)),ry&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,r)=>t!=e[r]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(e$)?r.root.activeElement!=this.dom:!p(this.dom,n))return;let o=n.anchorNode&&r.docView.nearest(n.anchorNode);if(o&&o.ignoreEvent(e)){!t&&(this.selectionChanged=!1);return}(Q.ie&&Q.ie_version<=11||Q.android&&Q.chrome)&&!r.state.selection.main.empty&&n.focusNode&&f(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=c(e.root);if(!t)return!1;let r=Q.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return rw(e,r)}let r=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),r?rw(e,r):null}(this.view,t)||t;if(!r||this.selectionRange.eq(r))return!1;let n=p(this.dom,r);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let r=t.focusNode,n=t.focusOffset;if(!r||t.anchorNode!=r||t.anchorOffset!=n)return!1;for(n=Math.min(n,x(r));;)if(n){if(1!=r.nodeType)return!1;let e=r.childNodes[n-1];"false"==e.contentEditable?n--:n=x(r=e)}else{if(r==e)return!0;n=m(r),r=r.parentNode}}(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(1==r.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:!t&&(t=this.scrollTargets.slice(0,e)),t&&t.push(r),r=r.assignedSlot||r.parentNode;else if(11==r.nodeType)r=r.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){!this.active&&(this.observer.observe(this.dom,rv),ry&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ry&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var r;!this.delayedAndroidKey&&(this.flushingAndroidKey=this.view.win.requestAnimationFrame(()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&O(this.dom,e.key,e.keyCode))})),(!this.delayedAndroidKey||"Enter"==e)&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(r=this.delayedAndroidKey)||void 0===r?void 0:r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,r=-1,n=!1;for(let o of e){let e=this.readMutation(o);e&&(e.typeOver&&(n=!0),-1==t?{from:t,to:r}=e:(t=Math.min(e.from,t),r=Math.max(e.to,r)))}return{from:t,to:r,typeOver:n}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords(),n=this.selectionChanged&&p(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new tx(this.view,e,t,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let r=this.view.state,n=tb(this.view,t);return this.view.state==r&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let r=rb(t,e.previousSibling||e.target.previousSibling,-1),n=rb(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}if("characterData"==e.type)return{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue};return null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(e$)!=e.state.facet(e$)&&(e.view.contentDOM.editContext=e.state.facet(e$)?this.editContext.editContext:null))}destroy(){var e,t,r;for(let n of(this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(r=this.resizeScroll)||void 0===r||r.disconnect(),this.scrollTargets))n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function rb(e,t,r){for(;t;){let n=N.get(t);if(n&&n.parent==e)return n;let o=t.parentNode;t=o!=e.dom?o:r>0?t.nextSibling:t.previousSibling}return null}function rw(e,t){let r=t.startContainer,n=t.startOffset,o=t.endContainer,i=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return f(s.node,s.offset,o,i)&&([r,n,o,i]=[o,i,r,n]),{anchorNode:r,anchorOffset:n,focusNode:o,focusOffset:i}}class r_{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let r in this.handlers.textupdate=t=>{let r=e.state.selection.main,{anchor:n,head:o}=r,i=this.toEditorPos(t.updateRangeStart),s=this.toEditorPos(t.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:t.updateRangeStart,editorBase:i,drifted:!1});let l={from:i,to:s,insert:a.xv.of(t.text.split("\n"))};if(l.from==this.from&&n<this.from?l.from=n:l.to==this.to&&n>this.to&&(l.to=n),l.from==l.to&&!l.insert.length){let n=a.jT.single(this.toEditorPos(t.selectionStart),this.toEditorPos(t.selectionEnd));!n.main.eq(r)&&e.dispatch({selection:n,userEvent:"select"});return}if((Q.mac||Q.android)&&l.from==o-1&&/^\. ?$/.test(t.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(l={from:i,to:s,insert:a.xv.of([t.text.replace("."," ")])}),this.pendingContextChange=l,!e.state.readOnly){let r=this.to-this.from+(l.to-l.from+l.insert.length);tw(e,l,a.jT.single(this.toEditorPos(t.selectionStart,r),this.toEditorPos(t.selectionEnd,r)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=r=>{let n=[],o=null;for(let t=this.toEditorPos(r.rangeStart),i=this.toEditorPos(r.rangeEnd);t<i;t++){let r=e.coordsForChar(t);o=r&&new DOMRect(r.left,r.top,r.right-r.left,r.bottom-r.top)||o||new DOMRect,n.push(o)}t.updateCharacterBounds(r.rangeStart,n)},this.handlers.textformatupdate=t=>{let r=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if("None"!=t&&"None"!=n){let o=this.toEditorPos(e.rangeStart),i=this.toEditorPos(e.rangeEnd);if(o<i){let e=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==n?1:2}px`;r.push(el.mark({attributes:{style:e}}).range(o,i))}}}e.dispatch({effects:eQ.of(el.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}},this.handlers)t.addEventListener(r,this.handlers[r]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=c(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,r=!1,n=this.pendingContextChange;return e.changes.iterChanges((o,i,s,a,l)=>{if(r)return;let u=l.length-(i-o);if(n&&i>=n.to){if(n.from==o&&n.to==i&&n.insert.eq(l)){n=this.pendingContextChange=null,t+=u,this.to+=u;return}n=null,this.revertPending(e.state)}if(o+=t,(i+=t)<=this.from)this.from+=u,this.to+=u;else if(o<this.to){if(o<this.from||i>this.to||this.to-this.from+l.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(i),l.toString()),this.to+=u}t+=u}),n&&!r&&this.revertPending(e.state),!r}update(e){let t=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(r,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class rk{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;for(let t of(this.dispatchTransactions=e.dispatchTransactions||r&&(e=>e.forEach(e=>r(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new rr(e.state||a.yy.create(e)),e.scrollTo&&e.scrollTo.is(eY)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(eJ).map(e=>new e1(e)),this.plugins))t.update(this);this.observer=new rx(this),this.inputState=new t_(this),this.inputState.ensureHandlers(this.plugins),this.docView=new to(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=1==e.length&&e[0]instanceof a.YW?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,r=!1,n,o=this.state;for(let t of e){if(t.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed){this.viewState.state=o;return}let i=this.hasFocus,s=0,l=null;e.some(e=>e.annotation(tV))?(this.inputState.notifiedFocused=i,s=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,!(l=tH(o,i))&&(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),((c=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(a.yy.phrases)!=this.state.facet(a.yy.phrases))return this.setState(o);n=tn.create(this,o,e),n.flags|=s;let d=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(d&&(d=d.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;d=new eq(e.empty?e:a.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(eY)&&(d=e.value.clip(this.state))}this.viewState.update(n,d),this.bidiCache=rO.update(this.bidiCache,n.changes),!n.empty&&(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(tt)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(ru)!=n.state.facet(ru)&&(this.viewState.mustMeasureContent=!0),(t||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let e of this.state.facet(ez))try{e(n)}catch(e){eG(this.state,e,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!tb(this,c)&&u.force&&O(this.contentDOM,u.key,u.keyCode)})}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new rr(e),this.plugins=e.facet(eJ).map(e=>new e1(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView.destroy(),this.docView=new to(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(eJ),r=e.state.facet(eJ);if(t!=r){let n=[];for(let o of r){let r=t.indexOf(o);if(r<0)n.push(new e1(o));else{let t=this.plugins[r];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){eG(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,r=this.scrollDOM,n=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:i}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(i<0){if(S(r))o=-1,i=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(n);o=e.from,i=e.top}}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];!(4&s)&&([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map(e=>{try{return e.read(this)}catch(e){return eG(this.state,e),rA}}),u=tn.create(this,this.state,[]),c=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,!u.empty&&(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),(c=this.docView.update(u))&&this.docViewUpdate());for(let e=0;e<a.length;e++)if(l[e]!=rA)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){eG(this.state,e)}if(c&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,i=-1;continue}{let e=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-i;if(e>1||e<-1){n+=e,r.scrollTop=n/this.scaleY,i=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(ez))e(t)}get themeClasses(){return rd+" "+(this.state.facet(rc)?rh:rp)+" "+this.state.facet(ru)}updateAttrs(){let e=rD(this,e2,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(e$)?"true":"false",class:"cm-content",style:`${Q.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),rD(this,e4,t);let r=this.observer.ignore(()=>{let r=ei(this.contentDOM,this.contentAttrs,t),n=ei(this.dom,this.editorAttrs,e);return r||n});return this.editorAttrs=e,this.contentAttrs=t,r}showAnnouncements(e){let t=!0;for(let r of e)for(let e of r.effects)e.is(rk.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(tt);let e=this.state.facet(rk.cspNonce);l.V.mount(this.root,this.styleModules.concat(rg).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(!(this.measureRequests.indexOf(e)>-1)){if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,r){return tg(this,e,tf(this,e,t,r))}moveByGroup(e,t){return tg(this,e,tf(this,e,t,t=>{var r,n,o;let i,s;return r=this,n=e.head,o=t,s=(i=r.state.charCategorizer(n))(o),e=>{let t=i(e);return s==a.D0.Space&&(s=t),s==t}}))}visualLineSide(e,t){let r=this.bidiSpans(e),n=this.textDirectionAt(e.from),o=r[t?r.length-1:0];return a.jT.cursor(o.side(t,n)+e.from,o.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,r=!0){return function(e,t,r,n){let o=th(e,t.head,t.assoc||-1),i=n&&o.type==ea.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(i){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(o.from),s=e.posAtCoords({x:r==(n==eb.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2});if(null!=s)return a.jT.cursor(s,r?-1:1)}return a.jT.cursor(r?o.to:o.from,r?-1:1)}(this,e,t,r)}moveVertically(e,t,r){return tg(this,e,function(e,t,r,n){let o=t.head,i=r?1:-1;if(o==(r?e.state.doc.length:0))return a.jT.cursor(o,t.assoc);let s=t.goalColumn,l,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),d=e.documentTop;if(c)null==s&&(s=c.left-u.left),l=i<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==s&&(s=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),l=(i<0?t.top:t.bottom)+d}let p=u.left+s,h=null!=n?n:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let r=l+(h+t)*i,n=td(e,{x:p,y:r},!1,i);if(r<u.top||r>u.bottom||(i<0?n<o:n>o)){let t=e.docView.coordsForChar(n),o=!t||r<t.top?-1:1;return a.jT.cursor(n,o,void 0,s)}}}(this,e,t,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),td(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let r=this.docView.coordsAt(e,t);if(!r||r.left==r.right)return r;let n=this.state.doc.lineAt(e),o=this.bidiSpans(n);return b(r,o[eE.find(o,e-n.from,-1,t)].dir==eb.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(eV)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>rC)return eN(e.length);let t=this.textDirectionAt(e.from),r;for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t&&(n.fresh||function e(t,r){if(t.length!=r.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],i=r[n];if(o.from!=i.from||o.to!=i.to||o.direction!=i.direction||!e(o.inner,i.inner))return!1}return!0}(n.isolates,r=e9(this,e))))return n.order;!r&&(r=e9(this,e));let n=function(e,t,r){if(!e)return[new eE(0,0,t==e_?1:0)];if(t==ew&&!r.length&&!eT.test(e))return eN(e.length);if(r.length)for(;e.length>eM.length;)eM[eM.length]=256;let n=[],o=t==ew?0:1;return ej(e,o,o,r,0,e.length,n),n}(e.text,t,r);return this.bidiCache.push(new rO(e.from,e.to,t,r,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Q.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{C(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return eY.of(new eq("number"==typeof e?a.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return eY.of(new eq(a.jT.cursor(r.from),"start","start",r.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return e0.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return e0.define(()=>({}),{eventObservers:e})}static theme(e,t){let r=l.V.newName(),n=[ru.of(r),tt.of(rm(`.${r}`,e))];return t&&t.dark&&n.push(rc.of(!0)),n}static baseTheme(e){return a.Wl.lowest(tt.of(rm("."+rd,e,rf)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content"),n=r&&N.get(r)||N.get(e);return(null===(t=null==n?void 0:n.rootView)||void 0===t?void 0:t.view)||null}}rk.styleModule=tt,rk.inputHandler=eR,rk.clipboardInputFilter=eZ,rk.clipboardOutputFilter=eW,rk.scrollHandler=eU,rk.focusChangeEffect=eX,rk.perLineTextDirection=eV,rk.exceptionSink=eF,rk.updateListener=ez,rk.editable=e$,rk.mouseSelectionStyle=eL,rk.dragMovesSelection=eI,rk.clickAddsSelectionRange=eB,rk.decorations=e5,rk.outerDecorations=e6,rk.atomicRanges=e3,rk.bidiIsolatedRanges=e8,rk.scrollMargins=e7,rk.darkTheme=rc,rk.cspNonce=a.r$.define({combine:e=>e.length?e[0]:""}),rk.contentAttributes=e4,rk.editorAttributes=e2,rk.lineWrapping=rk.contentAttributes.of({class:"cm-lineWrapping"}),rk.announce=a.Py.define();let rC=4096,rA={};class rO{constructor(e,t,r,n,o,i){this.from=e,this.to=t,this.dir=r,this.isolates=n,this.fresh=o,this.order=i}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let r=[],n=e.length?e[e.length-1].dir:eb.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let i=e[o];i.dir==n&&!t.touchesRange(i.from,i.to)&&r.push(new rO(t.mapPos(i.from,1),t.mapPos(i.to,-1),i.dir,i.isolates,!1,i.order))}return r}}function rD(e,t,r){for(let n=e.state.facet(t),o=n.length-1;o>=0;o--){let t=n[o],i="function"==typeof t?t(e):t;i&&er(i,r)}return r}let rS=Q.mac?"mac":Q.windows?"win":Q.linux?"linux":"key";function rT(e,t,r){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==r&&t.shiftKey&&(e="Shift-"+e),e}let rE=a.Wl.default(rk.domEventHandlers({keydown:(e,t)=>rL(rN(t.state),e,t,"editor")})),rM=a.r$.define({enables:rE}),rj=new WeakMap;function rN(e){let t=e.facet(rM),r=rj.get(t);return!r&&rj.set(t,r=function(e,t=rS){let r=Object.create(null),n=Object.create(null),o=(e,t)=>{let r=n[e];if(null==r)n[e]=t;else if(r!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},i=(e,n,i,s,a)=>{var l,u;let c=r[e]||(r[e]=Object.create(null)),d=n.split(/ (?!$)/).map(e=>(function(e,t){let r,n,o,i;let s=e.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(let e=0;e<s.length-1;++e){let a=s[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))o=!0;else if(/^mod$/i.test(a))"mac"==t?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+a)}return r&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),o&&(a="Shift-"+a),a})(e,t));for(let t=1;t<d.length;t++){let r=d.slice(0,t).join(" ");o(r,!0),!c[r]&&(c[r]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=rB={view:t,prefix:r,scope:e};return setTimeout(()=>{rB==n&&(rB=null)},4e3),!0}]})}let p=d.join(" ");o(p,!1);let h=c[p]||(c[p]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});i&&h.run.push(i),s&&(h.preventDefault=!0),a&&(h.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=r[t]||(r[t]=Object.create(null));!e._any&&(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:o}=n;for(let t in e)e[t].run.push(e=>o(e,rI))}let o=n[t]||n.key;if(o)for(let t of e)i(t,o,n.run,n.preventDefault,n.stopPropagation),n.shift&&i(t,"Shift-"+o,n.shift,n.preventDefault,n.stopPropagation)}return r}(t.reduce((e,t)=>e.concat(t),[]))),r}function rP(e,t,r){return rL(rN(e.state),t,e,r)}let rB=null,rI=null;function rL(e,t,r,n){rI=t;let o=(0,u.YG)(t),i=(0,a.gm)(o,0),s=(0,a.nZ)(i)==o.length&&" "!=o,l="",c=!1,d=!1,p=!1;rB&&rB.view==r&&rB.scope==n&&(l=rB.prefix+" ",0>tO.indexOf(t.keyCode)&&(d=!0,rB=null));let h=new Set,f=e=>{if(e){for(let t of e.run)if(!h.has(t)&&(h.add(t),t(r)))return e.stopPropagation&&(p=!0),!0;e.preventDefault&&(e.stopPropagation&&(p=!0),d=!0)}return!1},m=e[n],g,y;return m&&(f(m[l+rT(o,t,!s)])?c=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Q.windows&&t.ctrlKey&&t.altKey)&&(g=u.ue[t.keyCode])&&g!=o?f(m[l+rT(g,t,!0)])?c=!0:t.shiftKey&&(y=u.uY[t.keyCode])!=o&&y!=g&&f(m[l+rT(y,t,!1)])&&(c=!0):s&&t.shiftKey&&f(m[l+rT(o,t,!0)])&&(c=!0),!c&&f(m._any)&&(c=!0)),d&&(c=!0),c&&p&&t.stopPropagation(),rI=null,c}class rF{constructor(e,t,r,n,o){this.className=e,this.left=t,this.top=r,this.width=n,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,r){if(!r.empty)return function(e,t,r){if(r.to<=e.viewport.from||r.from>=e.viewport.to)return[];let n=Math.max(r.from,e.viewport.from),o=Math.min(r.to,e.viewport.to),i=e.textDirection==eb.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=rz(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=a.right-(c?parseInt(c.paddingRight):0),h=th(e,n,1),f=th(e,o,-1),m=h.type==ea.Text?h:null,g=f.type==ea.Text?f:null;if(m&&(e.lineWrapping||h.widgetLineBreaks)&&(m=rR(e,n,1,m)),g&&(e.lineWrapping||f.widgetLineBreaks)&&(g=rR(e,o,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return x(b(r.from,r.to,m));{let t=m?b(r.from,null,m):w(h,!1),n=g?b(null,r.to,g):w(f,!0),o=[];return(m||h).to<(g||f).from-(m&&g?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<n.top?o.push(y(d,t.bottom,p,n.top)):t.bottom<n.top&&e.elementAtHeight((t.bottom+n.top)/2).type==ea.Text&&(t.bottom=n.top=(t.bottom+n.top)/2),x(t).concat(o).concat(x(n))}function y(e,r,n,o){return new rF(t,e-l.left,r-l.top,n-e,o-r)}function x({top:e,bottom:t,horizontal:r}){let n=[];for(let o=0;o<r.length;o+=2)n.push(y(r[o],e,r[o+1],t));return n}function b(t,r,n){let o=1e9,s=-1e9,a=[];function l(t,r,l,u,c){let h=e.coordsAtPos(t,t==n.to?-2:2),f=e.coordsAtPos(l,l==n.from?2:-2);h&&f&&(o=Math.min(h.top,f.top,o),s=Math.max(h.bottom,f.bottom,s),c==eb.LTR?a.push(i&&r?d:h.left,i&&u?p:f.right):a.push(!i&&u?d:f.left,!i&&r?p:h.right))}let u=null!=t?t:n.from,c=null!=r?r:n.to;for(let n of e.visibleRanges)if(n.to>u&&n.from<c)for(let o=Math.max(n.from,u),i=Math.min(n.to,c);;){let n=e.state.doc.lineAt(o);for(let s of e.bidiSpans(n)){let e=s.from+n.from,a=s.to+n.from;if(e>=i)break;a>o&&l(Math.max(e,o),null==t&&e<=u,Math.min(a,i),null==r&&a>=c,s.dir)}if((o=n.to+1)>=i)break}return 0==a.length&&l(u,null==t,c,null==r,e.textDirection),{top:o,bottom:s,horizontal:a}}function w(e,t){let r=a.top+(t?e.top:e.bottom);return{top:r,bottom:r,horizontal:[]}}}(e,t,r);{let n=e.coordsAtPos(r.head,r.assoc||1);if(!n)return[];let o=rz(e);return[new rF(t,n.left-o.left,n.top-o.top,null,n.bottom-n.top)]}}}function rz(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==eb.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function rR(e,t,r,n){let o=e.coordsAtPos(t,2*r);if(!o)return n;let i=e.dom.getBoundingClientRect(),s=(o.top+o.bottom)/2,a=e.posAtCoords({x:i.left+1,y:s}),l=e.posAtCoords({x:i.right-1,y:s});return null==a||null==l?n:{from:Math.max(n.from,Math.min(a,l)),to:Math.min(n.to,Math.max(a,l))}}class rX{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(rZ)!=e.state.facet(rZ)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,r=e.facet(rZ);for(;t<r.length&&r[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((e,t)=>{var r,n;return r=e,n=this.drawn[t],!(r.constructor==n.constructor&&r.eq(n))})){let t=this.dom.firstChild,r=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[r].constructor&&n.update(t,this.drawn[r])?(t=t.nextSibling,r++):this.dom.insertBefore(n.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let rZ=a.r$.define();function rW(e){return[e0.define(t=>new rX(t,e)),rZ.of(e)]}let rV=a.r$.define({combine:e=>(0,a.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function rH(e={}){return[rV.of(e),rq,rQ,rG,eH.of(!0)]}function rU(e){return e.startState.facet(rV)!=e.state.facet(rV)}let rq=rW({above:!0,markers(e){let{state:t}=e,r=t.facet(rV),n=[];for(let o of t.selection.ranges){let i=o==t.selection.main;if(o.empty||r.drawRangeCursor){let t=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",r=o.empty?o:a.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let o of rF.forRange(e,t,r))n.push(o)}}return n},update(e,t){e.transactions.some(e=>e.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let r=rU(e);return r&&rY(e.state,t),e.docChanged||e.selectionSet||r},mount(e,t){rY(t.state,e)},class:"cm-cursorLayer"});function rY(e,t){t.style.animationDuration=e.facet(rV).cursorBlinkRate+"ms"}let rQ=rW({above:!1,markers:e=>e.state.selection.ranges.map(t=>t.empty?[]:rF.forRange(e,"cm-selectionBackground",t)).reduce((e,t)=>e.concat(t)),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||rU(e),class:"cm-selectionLayer"}),rG=a.Wl.highest(rk.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),r$=a.Py.define({map:(e,t)=>null==e?null:t.mapPos(e)}),rK=a.QQ.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce((e,t)=>t.is(r$)?t.value:e,e))}),rJ=e0.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let r=e.state.field(rK);null==r?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(!this.cursor&&(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(rK)!=r||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(rK),r=null!=t&&e.coordsAtPos(t);if(!r)return null;let n=e.scrollDOM.getBoundingClientRect();return{left:r.left-n.left+e.scrollDOM.scrollLeft*e.scaleX,top:r.top-n.top+e.scrollDOM.scrollTop*e.scaleY,height:r.bottom-r.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:r}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/r+"px",this.cursor.style.height=e.height/r+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(rK)!=e&&this.view.dispatch({effects:r$.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function r0(){return[rK,rJ]}function r1(e,t,r,n,o){t.lastIndex=0;for(let i=e.iterRange(r,n),s=r,a;!i.next().done;s+=i.value.length)if(!i.lineBreak)for(;a=t.exec(i.value);)o(s+a.index,a)}class r2{constructor(e){let{regexp:t,decoration:r,decorate:n,boundary:o,maxLength:i=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,r,o)=>n(o,r,r+e[0].length,e,t);else if("function"==typeof r)this.addMatch=(e,t,n,o)=>{let i=r(e,t,n);i&&o(n,n+e[0].length,i)};else if(r)this.addMatch=(e,t,n,o)=>o(n,n+e[0].length,r);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=i}createDeco(e){let t=new a.f_,r=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let r=e.visibleRanges;if(1==r.length&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let n=[];for(let{from:o,to:i}of r)o=Math.max(e.state.doc.lineAt(o).from,o-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),n.length&&n[n.length-1].to>=o?n[n.length-1].to=i:n.push({from:o,to:i});return n}(e,this.maxLength))r1(e.state.doc,this.regexp,t,n,(t,n)=>this.addMatch(n,e,t,r));return t.finish()}updateDeco(e,t){let r=1e9,n=-1;return(e.docChanged&&e.changes.iterChanges((t,o,i,s)=>{s>=e.view.viewport.from&&i<=e.view.viewport.to&&(r=Math.min(i,r),n=Math.max(s,n))}),e.viewportMoved||n-r>1e3)?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),r,n):t}updateRange(e,t,r,n){for(let o of e.visibleRanges){let i=Math.max(o.from,r),s=Math.min(o.to,n);if(s>=i){let r=e.state.doc.lineAt(i),n=r.to<s?e.state.doc.lineAt(s):r,a=Math.max(o.from,r.from),l=Math.min(o.to,n.to);if(this.boundary){for(;i>r.from;i--)if(this.boundary.test(r.text[i-1-r.from])){a=i;break}for(;s<n.to;s++)if(this.boundary.test(n.text[s-n.from])){l=s;break}}let u=[],c,d=(e,t,r)=>u.push(r.range(e,t));if(r==n)for(this.regexp.lastIndex=a-r.from;(c=this.regexp.exec(r.text))&&c.index<l-r.from;)this.addMatch(c,e,c.index+r.from,d);else r1(e.state.doc,this.regexp,a,l,(t,r)=>this.addMatch(r,e,t,d));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:u})}}return t}}let r4=null!=/x/.unicode?"gu":"g",r5=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜\u2028\u2029\uFEFF-]",r4),r6={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},r3=null,r8=a.r$.define({combine(e){let t=(0,a.BO)(e,{render:null,specialChars:r5,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==r3&&"undefined"!=typeof document&&document.body){let t=document.body.style;r3=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)!=null}return r3||!1}())&&(t.specialChars=RegExp(" |"+t.specialChars.source,r4)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,r4)),t}});function r9(e={}){return[r8.of(e),function(){return r7||(r7=e0.fromClass(class{constructor(e){this.view=e,this.decorations=el.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(r8)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new r2({regexp:e.specialChars,decoration:(t,r,n)=>{let{doc:o}=r.state,i=(0,a.gm)(t[0],0);if(9==i){let e=o.lineAt(n),t=r.state.tabSize,i=(0,a.IS)(e.text,t,n-e.from);return el.replace({widget:new nt((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=el.replace({widget:new ne(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(r8);e.startState.facet(r8)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}()]}let r7=null;class ne extends es{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){var t;let r=(t=this.code)>=32?"•":10==t?"␤":String.fromCharCode(9216+t),n=e.state.phrase("Control character")+" "+(r6[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,r);if(o)return o;let i=document.createElement("span");return i.textContent=r,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class nt extends es{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function nr(){return no}let nn=el.line({class:"cm-activeLine"}),no=e0.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,r=[];for(let n of e.state.selection.ranges){let o=e.lineBlockAt(n.head);o.from>t&&(r.push(nn.range(o.from)),t=o.from)}return el.set(r)}},{decorations:e=>e.decorations});function ni(e,t){var r,n;let o,i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),s=e.state.doc.lineAt(i),l=i-s.from;let u=l>2e3?-1:l==s.length?(r=e,n=t.clientX,(o=r.coordsAtPos(r.viewport.from))?Math.round(Math.abs((o.left-n)/r.defaultCharacterWidth)):-1):(0,a.IS)(s.text,e.state.tabSize,i-s.from);return{line:s.number,col:u,off:l}}function ns(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return rk.mouseSelectionStyle.of((e,r)=>{var n;let o,i;return t(r)?(o=ni(n=e,r),i=n.state.selection,o?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(o.line).from),r=e.state.doc.lineAt(t);o={line:r.number,col:o.col,off:Math.min(o.off,r.length)},i=i.map(e.changes)}},get(e,t,r){let s=ni(n,e);if(!s)return i;let l=function(e,t,r){let n=Math.min(t.line,r.line),o=Math.max(t.line,r.line),i=[];if(t.off>2e3||r.off>2e3||t.col<0||r.col<0){let s=Math.min(t.off,r.off),l=Math.max(t.off,r.off);for(let t=n;t<=o;t++){let r=e.doc.line(t);r.length<=l&&i.push(a.jT.range(r.from+s,r.to+l))}}else{let s=Math.min(t.col,r.col),l=Math.max(t.col,r.col);for(let t=n;t<=o;t++){let r=e.doc.line(t),n=(0,a.Gz)(r.text,s,e.tabSize,!0);if(n<0)i.push(a.jT.cursor(r.to));else{let t=(0,a.Gz)(r.text,l,e.tabSize);i.push(a.jT.range(r.from+n,r.from+t))}}}return i}(n.state,o,s);return l.length?r?a.jT.create(l.concat(i.ranges)):a.jT.create(l):i}}:null):null})}let na={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},nl={style:"cursor: crosshair"};function nu(e={}){let[t,r]=na[e.key||"Alt"],n=e0.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||r(e))},keyup(e){(e.keyCode==t||!r(e))&&this.set(!1)},mousemove(e){this.set(r(e))}}});return[n,rk.contentAttributes.of(e=>{var t;return(null===(t=e.plugin(n))||void 0===t?void 0:t.isDown)?nl:null})]}let nc="-10000px";class nd{constructor(e,t,r,n){this.facet=t,this.createTooltipView=r,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let o=null;this.tooltipViews=this.tooltips.map(e=>o=r(e,o))}update(e,t){var r;let n=e.state.facet(this.facet),o=n.filter(e=>e);if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[],s=t?[]:null;for(let r=0;r<o.length;r++){let n=o[r],a=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(a=e)}if(a<0)i[r]=this.createTooltipView(n,r?i[r-1]:null),s&&(s[r]=!!n.above);else{let n=i[r]=this.tooltipViews[a];s&&(s[r]=t[a]),n.update&&n.update(e)}}}for(let e of this.tooltipViews)0>i.indexOf(e)&&(this.removeTooltipView(e),null===(r=e.destroy)||void 0===r||r.call(e));return t&&(s.forEach((e,r)=>t[r]=e),t.length=s.length),this.input=n,this.tooltips=o,this.tooltipViews=i,!0}}function np(e={}){return nf.of(e)}function nh(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}let nf=a.r$.define({combine:e=>{var t,r,n;return{position:Q.ios?"absolute":(null===(t=e.find(e=>e.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(r=e.find(e=>e.parent))||void 0===r?void 0:r.parent)||null,tooltipSpace:(null===(n=e.find(e=>e.tooltipSpace))||void 0===n?void 0:n.tooltipSpace)||nh}}}),nm=new WeakMap,ng=e0.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(nf);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new nd(e,nb,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let r=t||e.geometryChanged,n=e.state.facet(nf);if(n.position!=this.position&&!this.madeAbsolute){for(let e of(this.position=n.position,this.manager.tooltipViews))e.dom.style.position=this.position;r=!0}if(n.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(e,t){let r=e.create(this.view),n=t?t.dom:null;if(r.dom.classList.add("cm-tooltip"),e.arrow&&!r.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",r.dom.appendChild(e)}return r.dom.style.position=this.position,r.dom.style.top=nc,r.dom.style.left="0px",this.container.insertBefore(r.dom,n),r.mount&&r.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(r.dom),r}destroy(){var e,t,r;for(let t of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(r=this.intersectionObserver)||void 0===r||r.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Q.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==nc&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position){if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState)}let n=this.view.scrollDOM.getBoundingClientRect(),o=te(this.view);return{visible:{left:n.left+o.left,top:n.top+o.top,right:n.right-o.right,bottom:n.bottom-o.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let r=this.manager.tooltipViews[t];return r.getCoords?r.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(nf).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute)for(let e of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))e.dom.style.position="absolute";let{visible:r,space:n,scaleX:o,scaleY:i}=e,s=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],u=this.manager.tooltipViews[a],{dom:c}=u,d=e.pos[a],p=e.size[a];if(!d||!1!==l.clip&&(d.bottom<=Math.max(r.top,n.top)||d.top>=Math.min(r.bottom,n.bottom)||d.right<Math.max(r.left,n.left)-.1||d.left>Math.min(r.right,n.right)+.1)){c.style.top=nc;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,m=p.right-p.left,g=null!==(t=nm.get(u))&&void 0!==t?t:p.bottom-p.top,y=u.offset||nx,x=this.view.textDirection==eb.LTR,b=p.width>n.right-n.left?x?n.left:n.right-p.width:x?Math.max(n.left,Math.min(d.left-(h?14:0)+y.x,n.right-m)):Math.min(Math.max(n.left,d.left-m+(h?14:0)-y.x),n.right-m),w=this.above[a];!l.strictSide&&(w?d.top-g-f-y.y<n.top:d.bottom+g+f+y.y>n.bottom)&&w==n.bottom-d.bottom>d.top-n.top&&(w=this.above[a]=!w);let _=(w?d.top-n.top:n.bottom-d.bottom)-f;if(_<g&&!1!==u.resize){if(_<this.view.defaultLineHeight){c.style.top=nc;continue}nm.set(u,g),c.style.height=(g=_)/i+"px"}else c.style.height&&(c.style.height="");let k=w?d.top-g-f-y.y:d.bottom+f+y.y,C=b+m;if(!0!==u.overlap)for(let e of s)e.left<C&&e.right>b&&e.top<k+g&&e.bottom>k&&(k=w?e.top-g-2-f:e.bottom+f+2);if("absolute"==this.position?(c.style.top=(k-e.parent.top)/i+"px",nv(c,(b-e.parent.left)/o)):(c.style.top=k/i+"px",nv(c,b/o)),h){let e=d.left+(x?y.x:-y.x)-(b+14-7);h.style.left=e/o+"px"}!0!==u.overlap&&s.push({left:b,top:k,right:C,bottom:k+g}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=nc}},{eventObservers:{scroll(){this.maybeMeasure()}}});function nv(e,t){let r=parseInt(e.style.left,10);(isNaN(r)||Math.abs(t-r)>1)&&(e.style.left=t+"px")}let ny=rk.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),nx={x:0,y:0},nb=a.r$.define({enables:[ng,ny]}),nw=a.r$.define({combine:e=>e.reduce((e,t)=>e.concat(t),[])});class n_{static create(e){return new n_(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new nd(e,nw,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let r of this.manager.tooltipViews){let n=r[e];if(void 0!==n){if(void 0===t)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}let nk=nb.compute([nw],e=>{let t=e.facet(nw);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos})),create:n_.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class nC{constructor(e,t,r,n,o){this.view=e,this.source=t,this.field=r,this.setHover=n,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,r=e.docView.nearest(t.target);if(!r)return;let n,o=1;if(r instanceof K)n=r.posAtStart;else{if(null==(n=e.posAtCoords(t)))return;let r=e.coordsAtPos(n);if(!r||t.y<r.top||t.y>r.bottom||t.x<r.left-e.defaultCharacterWidth||t.x>r.right+e.defaultCharacterWidth)return;let i=e.bidiSpans(e.state.doc.lineAt(n)).find(e=>e.from<=n&&e.to>=n),s=i&&i.dir==eb.RTL?-1:1;o=t.x<r.left?-s:s}let i=this.source(e,n,o);if(null==i?void 0:i.then){let t=this.pending={pos:n};i.then(r=>{this.pending==t&&(this.pending=null,r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])}))},t=>eG(e.state,t,"hover tooltip"))}else i&&!(Array.isArray(i)&&!i.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(i)?i:[i])})}get tooltip(){let e=this.view.plugin(ng),t=e?e.manager.tooltips.findIndex(e=>e.create==n_.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n.length&&o&&!function(e,t){let{left:r,right:n,top:o,bottom:i}=e.getBoundingClientRect(),s;if(s=e.querySelector(".cm-tooltip-arrow")){let e=s.getBoundingClientRect();o=Math.min(e.top,o),i=Math.max(e.bottom,i)}return t.clientX>=r-4&&t.clientX<=n+4&&t.clientY>=o-4&&t.clientY<=i+4}(o.dom,e)||this.pending){let{pos:o}=n[0]||this.pending,i=null!==(r=null===(t=n[0])||void 0===t?void 0:t.end)&&void 0!==r?r:o;(o==i?this.view.posAtCoords(this.lastMove)!=o:!function(e,t,r,n,o,i){let s=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>n||s.right<n||s.top>o||Math.min(s.bottom,a)<o)return!1;let l=e.posAtCoords({x:n,y:o},!1);return l>=t&&l<=r}(this.view,o,i,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=r=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function nA(e,t={}){let r=a.Py.define(),n=a.QQ.define({create:()=>[],update(e,n){if(e.length&&(t.hideOnChange&&(n.docChanged||n.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(n,e))),n.docChanged)){let t=[];for(let r of e){let e=n.changes.mapPos(r.pos,-1,a.gc.TrackDel);if(null!=e){let o=Object.assign(Object.create(null),r);o.pos=e,null!=o.end&&(o.end=n.changes.mapPos(o.end)),t.push(o)}}e=t}for(let t of n.effects)t.is(r)&&(e=t.value),t.is(nD)&&(e=[]);return e},provide:e=>nw.from(e)});return{active:n,extension:[n,e0.define(o=>new nC(o,e,n,r,t.hoverTime||300)),nk]}}function nO(e,t){let r=e.plugin(ng);if(!r)return null;let n=r.manager.tooltips.indexOf(t);return n<0?null:r.manager.tooltipViews[n]}let nD=a.Py.define(),nS=a.r$.define({combine(e){let t,r;for(let n of e)t=t||n.topContainer,r=r||n.bottomContainer;return{topContainer:t,bottomContainer:r}}});function nT(e,t){let r=e.plugin(nE),n=r?r.specs.indexOf(t):-1;return n>-1?r.panels[n]:null}let nE=e0.fromClass(class{constructor(e){this.input=e.state.facet(nN),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(nS);for(let r of(this.top=new nM(e,!0,t.topContainer),this.bottom=new nM(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top)),this.panels))r.dom.classList.add("cm-panel"),r.mount&&r.mount()}update(e){let t=e.state.facet(nS);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new nM(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new nM(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=e.state.facet(nN);if(r!=this.input){let t=r.filter(e=>e),n=[],o=[],i=[],s=[];for(let r of t){let t=this.specs.indexOf(r),a;t<0?(a=r(e.view),s.push(a)):(a=this.panels[t]).update&&a.update(e),n.push(a),(a.top?o:i).push(a)}for(let e of(this.specs=t,this.panels=n,this.top.sync(o),this.bottom.sync(i),s))e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>rk.scrollMargins.of(t=>{let r=t.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})});class nM{constructor(e,t,r){this.view=e,this.top=t,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=nj(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=nj(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function nj(e){let t=e.nextSibling;return e.remove(),t}let nN=a.r$.define({enables:nE});class nP extends a.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}nP.prototype.elementClass="",nP.prototype.toDOM=void 0,nP.prototype.mapMode=a.gc.TrackBefore,nP.prototype.startSide=nP.prototype.endSide=-1,nP.prototype.point=!0;let nB=a.r$.define(),nI=a.r$.define(),nL={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>a.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},nF=a.r$.define();function nz(e){return[nX(),nF.of({...nL,...e})]}let nR=a.r$.define({combine:e=>e.some(e=>e)});function nX(e){let t=[nZ];return e&&!1===e.fixed&&t.push(nR.of(!0)),t}let nZ=e0.fromClass(class{constructor(e){for(let t of(this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(nF).map(t=>new nU(e,t)),this.gutters))this.dom.appendChild(t.dom);this.fixed=!e.state.facet(nR),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport,n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<(r.to-r.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(nR)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let r=a.Xs.iter(this.view.state.facet(nB),this.view.viewport.from),n=[],o=this.gutters.map(e=>new nH(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let i of e.type)if(i.type==ea.Text&&t){for(let e of(nV(r,n,i.from),o))e.line(this.view,i,n);t=!1}else if(i.widget)for(let e of o)e.widget(this.view,i)}else if(e.type==ea.Text)for(let t of(nV(r,n,e.from),o))t.line(this.view,e,n);else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(nF),r=e.state.facet(nF),n=e.docChanged||e.heightChanged||e.viewportChanged||!a.Xs.eq(e.startState.facet(nB),e.state.facet(nB),e.view.viewport.from,e.view.viewport.to);if(t==r)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let o=[];for(let n of r){let r=t.indexOf(n);r<0?o.push(new nU(this.view,n)):(this.gutters[r].update(e),o.push(this.gutters[r]))}for(let e of this.gutters)e.dom.remove(),0>o.indexOf(e)&&e.destroy();for(let e of o)this.dom.appendChild(e.dom);this.gutters=o}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>rk.scrollMargins.of(t=>{let r=t.plugin(e);return r&&0!=r.gutters.length&&r.fixed?t.textDirection==eb.LTR?{left:r.dom.offsetWidth*t.scaleX}:{right:r.dom.offsetWidth*t.scaleX}:null})});function nW(e){return Array.isArray(e)?e:[e]}function nV(e,t,r){for(;e.value&&e.from<=r;)e.from==r&&t.push(e.value),e.next()}class nH{constructor(e,t,r){this.gutter=e,this.height=r,this.i=0,this.cursor=a.Xs.iter(e.markers,t.from)}addElement(e,t,r){let{gutter:n}=this,o=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==n.elements.length){let t=new nq(e,i,o,r);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,i,o,r);this.height=t.bottom,this.i++}line(e,t,r){let n=[];nV(this.cursor,n,t.from),r.length&&(n=n.concat(r));let o=this.gutter.config.lineMarker(e,t,n);o&&n.unshift(o);let i=this.gutter;(0!=n.length||i.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t),n=r?[r]:null;for(let r of e.state.facet(nI)){let o=r(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class nU{constructor(e,t){for(let r in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(r,n=>{let o=n.target,i;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=n.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[r](e,s,n)&&n.preventDefault()});this.markers=nW(t.markers(e)),t.initialSpacer&&(this.spacer=new nq(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=nW(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!a.Xs.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class nq{constructor(e,t,r,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,r,n)}update(e,t,r,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return!1;return!0}(this.markers,n)&&this.setMarkers(e,n)}setMarkers(e,t){let r="cm-gutterElement",n=this.dom.firstChild;for(let o=0,i=0;;){let s=i,a=o<t.length?t[o++]:null,l=!1;if(a){let e=a.elementClass;e&&(r+=" "+e);for(let e=i;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;i<s;){let e=this.markers[i++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!a)break;a.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),l&&i++}this.dom.className=r,this.markers=t}destroy(){this.setMarkers(null,[])}}let nY=a.r$.define(),nQ=a.r$.define(),nG=a.r$.define({combine:e=>(0,a.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let r=Object.assign({},e);for(let e in t){let n=r[e],o=t[e];r[e]=n?(e,t,r)=>n(e,t,r)||o(e,t,r):o}return r}})});class n$ extends nP{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function nK(e,t){return e.state.facet(nG).formatNumber(t,e.state)}let nJ=nF.compute([nG],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(nY),lineMarker:(e,t,r)=>r.some(e=>e.toDOM)?null:new n$(nK(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,r)=>{for(let n of e.state.facet(nQ)){let o=n(e,t,r);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(nG)!=e.state.facet(nG),initialSpacer:e=>new n$(nK(e,n1(e.state.doc.lines))),updateSpacer(e,t){let r=nK(t.view,n1(t.view.state.doc.lines));return r==e.number?e:new n$(r)},domEventHandlers:e.facet(nG).domEventHandlers}));function n0(e={}){return[nG.of(e),nX(),nJ]}function n1(e){let t=9;for(;t<e;)t=10*t+9;return t}let n2=new class extends nP{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},n4=nB.compute(["selection"],e=>{let t=[],r=-1;for(let n of e.selection.ranges){let o=e.doc.lineAt(n.head).from;o>r&&(r=o,t.push(n2.range(o)))}return a.Xs.of(t)});function n5(){return n4}},437254:function(e,t,r){"use strict";var n,o;r.d(t,{FE:function(){return F},Jq:function(){return d},L3:function(){return i},Lj:function(){return p},_b:function(){return I},hr:function(){return P},i9:function(){return B},md:function(){return l},mp:function(){return m},vj:function(){return n}});let i=1024,s=0;class a{constructor(e,t){this.from=e,this.to=t}}class l{constructor(e={}){this.id=s++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=d.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}l.closedBy=new l({deserialize:e=>e.split(" ")}),l.openedBy=new l({deserialize:e=>e.split(" ")}),l.group=new l({deserialize:e=>e.split(" ")}),l.isolate=new l({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class u{constructor(e,t,r){this.tree=e,this.overlay=t,this.parser=r}static get(e){return e&&e.props&&e.props[l.mounted.id]}}let c=Object.create(null);class d{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):c,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new d(e.name||"",t,e.id,r);if(e.props){for(let r of e.props)if(!Array.isArray(r)&&(r=r(n)),r){if(r[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.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(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(l.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(l.group),n=-1;n<(r?r.length:0);n++){let o=t[n<0?e.name:r[n]];if(o)return o}}}}d.none=new d("",Object.create(null),0,8);class p{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);e&&(!n&&(n=Object.assign({},r.props)),n[e[0].id]=e[1])}t.push(n?new d(r.name,n,r.id,r.flags):r)}return new p(t)}}let h=new WeakMap,f=new WeakMap;(o=n||(n={}))[o.ExcludeBuffers=1]="ExcludeBuffers",o[o.IncludeAnonymous=2]="IncludeAnonymous",o[o.IgnoreMounts=4]="IgnoreMounts",o[o.IgnoreOverlays=8]="IgnoreOverlays";class m{constructor(e,t,r,n,o){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,o&&o.length)for(let[e,t]of(this.props=Object.create(null),o))this.props["number"==typeof e?e:e.id]=t}toString(){let e=u.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new T(this.topNode,e)}cursorAt(e,t=0,r=0){let n=new T(h.get(this)||this.topNode);return n.moveTo(e,t),h.set(this,n._tree),n}get topNode(){return new _(this,0,0,null)}resolve(e,t=0){let r=b(h.get(this)||this.topNode,e,t,!1);return h.set(this,r),r}resolveInner(e,t=0){let r=b(f.get(this)||this.topNode,e,t,!0);return f.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),o=null;for(let e=n instanceof _?n:n.context.parent;e;e=e.parent)if(e.index<0){let i=e.parent;(o||(o=[n])).push(i.resolve(t,r)),e=i}else{let i=u.get(e.tree);if(i&&i.overlay&&i.overlay[0].from<=t&&i.overlay[i.overlay.length-1].to>=t){let s=new _(i.tree,i.overlay[0].from+e.from,-1,e);(o||(o=[n])).push(b(s,t,r,!1))}}return o?D(o):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:o=0,to:i=this.length}=e,s=e.mode||0,a=(s&n.IncludeAnonymous)>0;for(let e=this.cursor(s|n.IncludeAnonymous);;){let n=!1;if(e.from<=i&&e.to>=o&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;n=!0}for(;n&&r&&(a||!e.type.isAnonymous)&&r(e),!e.nextSibling();){;if(!e.parent())return;n=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:N(d.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new m(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new m(d.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:o=i,reused:s=[],minRepeatType:a=n.types.length}=e,u=Array.isArray(r)?new g(r,r.length):r,c=n.types,d=0,p=0;function h(e,t,r,o,i,s,a,l,u){let c=[],d=[];for(;e.length>o;)c.push(e.pop()),d.push(t.pop()+r-i);e.push(f(n.types[a],c,d,s-i,l-s,u)),t.push(i-r)}function f(e,t,r,n,o,i,s){if(i){let e=[l.contextHash,i];s=s?[e].concat(s):[e]}if(o>25){let e=[l.lookAhead,o];s=s?[e].concat(s):[e]}return new m(e,t,r,n,s)}let x=[],b=[];for(;u.pos>0;)!function e(t,r,i,g,x,b){let{id:w,start:_,end:k,size:C}=u,A=p,O=d;for(;C<0;){if(u.next(),-1==C){let e=s[w];i.push(e),g.push(_-t);return}if(-3==C){d=w;return}else if(-4==C){p=w;return}else throw RangeError(`Unrecognized record size: ${C}`)}let D=c[w],S,T,E=_-t;if(k-_<=o&&(T=function(e,t){let r=u.fork(),n=0,i=0,s=0,l=r.end-o,c={size:0,start:0,skip:0};s:for(let o=r.pos-e;r.pos>o;){let e=r.size;if(r.id==t&&e>=0){c.size=n,c.start=i,c.skip=s,s+=4,n+=4,r.next();continue}let u=r.pos-e;if(e<0||u<o||r.start<l)break;let d=r.id>=a?4:0,p=r.start;for(r.next();r.pos>u;){if(r.size<0){if(-3==r.size)d+=4;else break s}else r.id>=a&&(d+=4);r.next()}i=p,n+=e,s+=d}return(t<0||n==e)&&(c.size=n,c.start=i,c.skip=s),c.size>4?c:void 0}(u.pos-r,x))){let e=new Uint16Array(T.size-T.skip),r=u.pos-T.size,o=e.length;for(;u.pos>r;)o=function e(t,r,n){let{id:o,start:i,end:s,size:l}=u;if(u.next(),l>=0&&o<a){let a=n;if(l>4){let o=u.pos-(l-4);for(;u.pos>o;)n=e(t,r,n)}r[--n]=a,r[--n]=s-t,r[--n]=i-t,r[--n]=o}else -3==l?d=o:-4==l&&(p=o);return n}(T.start,e,o);S=new y(e,k-T.start,n),E=T.start-t}else{let t=u.pos-C;u.next();let r=[],i=[],s=w>=a?w:-1,c=0,d=k;for(;u.pos>t;)s>=0&&u.id==s&&u.size>=0?(u.end<=d-o&&(h(r,i,_,c,u.end,d,s,A,O),c=r.length,d=u.end),u.next()):b>2500?function(e,t,r,i){let s=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:r,size:n}=u;if(n>4)u.next();else if(l>-1&&t<l)break;else l<0&&(l=r-o),s.push(e,t,r),a++,u.next()}if(a){let t=new Uint16Array(4*a),o=s[s.length-2];for(let e=s.length-3,r=0;e>=0;e-=3)t[r++]=s[e],t[r++]=s[e+1]-o,t[r++]=s[e+2]-o,t[r++]=r;r.push(new y(t,s[2]-o,n)),i.push(o-e)}}(_,t,r,i):e(_,t,r,i,s,b+1);if(s>=0&&c>0&&c<r.length&&h(r,i,_,c,_,d,s,A,O),r.reverse(),i.reverse(),s>-1&&c>0){let e=function(e,t){return(r,n,o)=>{let i=0,s=r.length-1,a,u;if(s>=0&&(a=r[s])instanceof m){if(!s&&a.type==e&&a.length==o)return a;(u=a.prop(l.lookAhead))&&(i=n[s]+a.length+u)}return f(e,r,n,o,i,t)}}(D,O);S=N(D,r,i,0,r.length,0,k-_,e,e)}else S=f(D,r,i,k-_,A-k,O)}i.push(S),g.push(E)}(e.start||0,e.bufferStart||0,x,b,-1,0);let w=null!==(t=e.length)&&void 0!==t?t:x.length?b[0]+x[0].length:0;return new m(c[e.topID],x.reverse(),b.reverse(),w)}(e)}}m.empty=new m(d.none,[],[],0);class g{constructor(e,t){this.buffer=e,this.index=t}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(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return d.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],o=n.name;if(/\W/.test(o)&&!n.isError&&(o=JSON.stringify(o)),r==(e+=4))return o;let i=[];for(;e<r;)i.push(this.childString(e)),e=this.buffer[e+3];return o+"("+i.join(",")+")"}findChild(e,t,r,n,o){let{buffer:i}=this,s=-1;for(let a=e;a!=t&&(!x(o,n,i[a+1],i[a+2])||(s=a,!(r>0)));a=i[a+3]);return s}slice(e,t,r){let n=this.buffer,o=new Uint16Array(t-e),i=0;for(let s=e,a=0;s<t;){o[a++]=n[s++],o[a++]=n[s++]-r;let t=o[a++]=n[s++]-r;o[a++]=n[s++]-e,i=Math.max(i,t)}return new y(o,i,this.set)}}function x(e,t,r,n){switch(e){case -2:return r<t;case -1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function b(e,t,r,o){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!o&&e instanceof _&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=o?0:n.IgnoreOverlays;if(o)for(let n=e,o=n.parent;o;o=(n=o).parent)n instanceof _&&n.index<0&&(null===(i=o.enter(t,r,s))||void 0===i?void 0:i.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,r,s);if(!n)return e;e=n}}class w{cursor(e=0){return new T(this,e)}getChild(e,t=null,r=null){let n=k(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return k(this,e,t,r)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}matchContext(e){return C(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class _ extends w{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,o,i=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=t>0?a.length:-1;e!=c;e+=t){let c=a[e],d=l[e]+s.from;if(x(o,r,d,d+c.length)){if(c instanceof y){if(i&n.ExcludeBuffers)continue;let a=c.findChild(0,c.buffer.length,t,r-d,o);if(a>-1)return new O(new A(s,c,e,d),null,a)}else if(i&n.IncludeAnonymous||!c.type.isAnonymous||E(c)){let a;if(!(i&n.IgnoreMounts)&&(a=u.get(c))&&!a.overlay)return new _(a.tree,d,e,s);let l=new _(c,d,e,s);return i&n.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,r,o)}}}if(i&n.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<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(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let o;if(!(r&n.IgnoreOverlays)&&(o=u.get(this._tree))&&o.overlay){let r=e-this.from;for(let{from:e,to:n}of o.overlay)if((t>0?e<=r:e<r)&&(t<0?n>=r:n>r))return new _(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}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 k(e,t,r,n){let o=e.cursor(),i=[];if(!o.firstChild())return i;if(null!=r){for(let e=!1;!e;)if(e=o.type.is(r),!o.nextSibling())return i}for(;;){if(null!=n&&o.type.is(n))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return null==n?i:[]}}function C(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class A{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class O extends w{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(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,o=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return o<0?null:new O(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&n.ExcludeBuffers)return null;let{buffer:o}=this.context,i=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new O(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new O(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new O(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,o=r.buffer[this.index+3];if(o>n){let i=r.buffer[this.index+1];e.push(r.slice(n,o,i)),t.push(0)}return new m(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function D(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let o=e[n];(o.from>r.from||o.to<r.to)&&(r=o,t=n)}let n=r instanceof _&&r.index<0?null:r.parent,o=e.slice();return n?o[t]=n:o.splice(t,1),new S(o,r)}class S{constructor(e,t){this.heads=e,this.node=t}get next(){return D(this.heads)}}class T{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof _)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof _?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,o=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&n.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&n.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&n.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:o}=this;if(o){if(e>0){if(this.index<o.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(o.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=o)}else({index:t,_parent:r}=this._tree);for(;r;{index:t,_parent:r}=r)if(t>-1)for(let o=t+e,i=e<0?-1:r._tree.children.length;o!=i;o+=e){let e=r._tree.children[o];if(this.mode&n.IncludeAnonymous||e instanceof y||!e.type.isAnonymous||E(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)s:for(let n=this.index,o=this.stack.length;o>=0;){for(let i=e;i;i=i._parent)if(i.index==n){if(n==this.index)return i;t=i,r=o+1;break s}n=this.stack[--o]}for(let e=r;e<this.stack.length;e++)t=new O(this.buffer,t,this.stack[e]);return this.bufferNode=new O(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}!this.type.isAnonymous&&(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return C(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,o=this.stack.length-1;n>=0;o--){if(o<0)return C(this._tree,e,n);let i=r[t.buffer[this.stack[o]]];if(!i.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}}function E(e){return e.children.some(e=>e instanceof y||!e.type.isAnonymous||E(e))}let M=new WeakMap;function j(e,t){if(!e.isAnonymous||t instanceof y||t.type!=e)return 1;let r=M.get(t);if(null==r){for(let n of(r=1,t.children)){if(n.type!=e||!(n instanceof m)){r=1;break}r+=j(e,n)}M.set(t,r)}return r}function N(e,t,r,n,o,i,s,a,l){let u=0;for(let r=n;r<o;r++)u+=j(e,t[r]);let c=Math.ceil(1.5*u/8),d=[],p=[];return!function t(r,n,o,s,a){for(let u=o;u<s;){let o=u,h=n[u],f=j(e,r[u]);for(u++;u<s;u++){let t=j(e,r[u]);if(f+t>=c)break;f+=t}if(u==o+1){if(f>c){let e=r[o];t(e.children,e.positions,0,e.children.length,n[o]+a);continue}d.push(r[o])}else{let t=n[u-1]+r[u-1].length-h;d.push(N(e,r,n,o,u,h,t,null,l))}p.push(h+a-i)}}(t,r,n,o,0),(a||l)(d,p,s)}class P{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);!n&&this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof O?this.setBuffer(e.context.buffer,e.index,t):e instanceof _&&this.map.set(e.tree,t)}get(e){return e instanceof O?this.getBuffer(e.context.buffer,e.index):e instanceof _?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class B{constructor(e,t,r,n,o=!1,i=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(o?1:0)|(i?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new B(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],o=1,i=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null,c=u?u.fromA:1e9;if(c-a>=r)for(;i&&i.from<c;){let t=i;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,r=Math.min(t.to,c)-l;t=e>=r?null:new B(e,r,t.tree,t.offset+l,s>0,!!u)}if(t&&n.push(t),i.to>c)break;i=o<e.length?e[o++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return n}}class I{startParse(e,t,r){return"string"==typeof e&&(e=new L(e)),r=r?r.length?r.map(e=>new a(e.from,e.to)):[new a(0,0)]:[new a(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class L{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function F(e){return(t,r,n,o)=>new W(t,e,r,n,o)}class z{constructor(e,t,r,n,o){this.parser=e,this.parse=t,this.overlay=r,this.target=n,this.from=o}}function R(e){if(!e.length||e.some(e=>e.from>=e.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class X{constructor(e,t,r,n,o,i,s){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=o,this.target=i,this.prev=s,this.depth=0,this.ranges=[]}}let Z=new l({perNode:!0});class W{constructor(e,t,r,n,o){this.nest=t,this.input=r,this.fragments=n,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new m(e.type,e.children,e.positions,e.length,e.propValues.concat([[Z,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[l.mounted.id]=new u(t,e.overlay,e.parser),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new U(this.fragments),t=null,r=null,o=new T(new _(this.baseTree,this.ranges[0].from,0,null),n.IncludeAnonymous|n.IgnoreMounts);s:for(let n,i;;){let s=!0,l;if(null!=this.stoppedAt&&o.from>=this.stoppedAt)s=!1;else if(e.hasNode(o)){if(t){let e=t.mounts.find(e=>e.frag.from<=o.from&&e.frag.to>=o.to&&e.mount.overlay);if(e)for(let r of e.mount.overlay){let n=r.from+e.pos,i=r.to+e.pos;n>=o.from&&i<=o.to&&!t.ranges.some(e=>e.from<i&&e.to>n)&&t.ranges.push({from:n,to:i})}}s=!1}else if(r&&(i=function(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}(r.ranges,o.from,o.to)))s=2!=i;else if(!o.type.isAnonymous&&(n=this.nest(o,this.input))&&(o.from<o.to||!n.overlay)){!o.tree&&function(e){let{node:t}=e,r=[],n=t.context.buffer;do r.push(e.index),e.parent();while(!e.tree);let o=e.tree,i=o.children.indexOf(n),s=o.children[i],a=s.buffer,l=[i];for(let n of(o.children[i]=function e(n,o,i,u,c,d){let p=r[d],h=[],f=[];V(s,n,p,h,f,u);let g=a[p+1],y=a[p+2];l.push(h.length);let x=d?e(p+4,a[p+3],s.set.types[a[p]],g,y-g,d-1):t.toTree();return h.push(x),f.push(g-u),V(s,a[p+3],o,h,f,u),new m(i,h,f,c)}(0,a.length,d.none,0,s.length,r.length-1),l)){let t=e.tree.children[n],r=e.tree.positions[n];e.yield(new _(t,r+e.from,n,e._tree))}}(o);let i=e.findMounts(o.from,n.parser);if("function"==typeof n.overlay)t=new X(n.parser,n.overlay,i,this.inner.length,o.from,o.tree,t);else{let e=q(this.ranges,n.overlay||(o.from<o.to?[new a(o.from,o.to)]:[]));e.length&&R(e),(e.length||!n.overlay)&&this.inner.push(new z(n.parser,e.length?n.parser.startParse(this.input,Y(i,e),e):n.parser.startParse(""),n.overlay?n.overlay.map(e=>new a(e.from-o.from,e.to-o.from)):null,o.tree,e.length?e[0].from:o.from)),n.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):s=!1}}else if(t&&(l=t.predicate(o))&&(!0===l&&(l=new a(o.from,o.to)),l.from<l.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==l.from?t.ranges[e]={from:t.ranges[e].from,to:l.to}:t.ranges.push(l)}if(s&&o.firstChild())t&&t.depth++,r&&r.depth++;else for(;!o.nextSibling();){if(!o.parent())break s;if(t&&!--t.depth){let e=q(this.ranges,t.ranges);e.length&&(R(e),this.inner.splice(t.index,0,new z(t.parser,t.parser.startParse(this.input,Y(t.mounts,e),e),t.ranges.map(e=>new a(e.from-t.start,e.to-t.start)),t.target,e[0].from))),t=t.prev}r&&!--r.depth&&(r=r.prev)}}}}function V(e,t,r,n,o,i){if(t<r){let s=e.buffer[t+1];n.push(e.slice(t,r,s)),o.push(s-i)}}class H{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(n.IncludeAnonymous|n.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)t.to>=e&&t.enter(r,1,n.IgnoreOverlays|n.ExcludeBuffers)||!t.next(!1)&&(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof m)t=t.children[0];else break}return!1}}class U{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!==(t=r.tree.prop(Z))&&void 0!==t?t:r.to,this.inner=new H(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(Z))&&void 0!==e?e:t.to,this.inner=new H(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let o=null===(r=e.tree)||void 0===r?void 0:r.prop(l.mounted);if(o&&o.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:o})}}}return n}}function q(e,t){let r=null,n=t;for(let o=1,i=0;o<e.length;o++){let s=e[o-1].to,l=e[o].from;for(;i<n.length;i++){let e=n[i];if(e.from>=l)break;!(e.to<=s)&&(!r&&(n=r=t.slice()),e.from<s?(r[i]=new a(e.from,s),e.to>l&&r.splice(i+1,0,new a(l,e.to))):e.to>l?r[i--]=new a(l,e.to):r.splice(i--,1))}}return n}function Y(e,t){let r=[];for(let{pos:n,mount:o,frag:i}of e){let e=n+(o.overlay?o.overlay[0].from:0),s=e+o.tree.length,l=Math.max(i.from,e),u=Math.min(i.to,s);if(o.overlay){let s=function(e,t,r,n){let o=0,i=0,s=!1,l=!1,u=-1e9,c=[];for(;;){let d=o==e.length?1e9:s?e[o].to:e[o].from,p=i==t.length?1e9:l?t[i].to:t[i].from;if(s!=l){let e=Math.max(u,r),t=Math.min(d,p,n);e<t&&c.push(new a(e,t))}if(1e9==(u=Math.min(d,p)))break;d==u&&(s?(s=!1,o++):s=!0),p==u&&(l?(l=!1,i++):l=!0)}return c}(t,o.overlay.map(e=>new a(e.from+n,e.to+n)),l,u);for(let t=0,n=l;;t++){let a=t==s.length,l=a?u:s[t].from;if(l>n&&r.push(new B(n,l,o.tree,-e,i.from>=n||i.openStart,i.to<=l||i.openEnd)),a)break;n=s[t].to}}else r.push(new B(l,u,o.tree,-e,i.from>=e||i.openStart,i.to<=s||i.openEnd))}return r}},888855:function(e,t,r){"use strict";r.d(t,{Gv:function(){return l},QR:function(){return d},Vp:function(){return i},bW:function(){return p},pJ:function(){return E}});var n=r(437254);let o=0;class i{constructor(e,t,r,n){this.name=e,this.set=t,this.base=r,this.modified=n,this.id=o++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof i&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let r=new i("string"==typeof e?e:"?",[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new a(e);return e=>e.modified.indexOf(t)>-1?e:a.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let s=0;class a{constructor(e){this.name=e,this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(r=>r.base==e&&function(e,t){return e.length==t.length&&e.every((e,r)=>e==t[r])}(t,r.modified));if(r)return r;let n=[],o=new i(e.name,n,e,t);for(let e of t)e.instances.push(o);let s=function(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,o=t.length;n<o;n++)t.push(t[n].concat(e[r]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of s)n.push(a.get(t,e));return o}}function l(e){let t=Object.create(null);for(let r in e){let n=e[r];for(let e of(!Array.isArray(n)&&(n=[n]),r.split(" ")))if(e){let r=[],o=2,i=e;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){o=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i);if(!n)throw RangeError("Invalid path: "+e);if(r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),(t+=n[0].length)==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){o=0;break}if("/"!=s)throw RangeError("Invalid path: "+e);i=e.slice(t)}let s=r.length-1,a=r[s];if(!a)throw RangeError("Invalid path: "+e);let l=new c(n,o,s>0?r.slice(0,s):null);t[a]=l.sort(t[a])}}return u.add(t)}let u=new n.md;class c{constructor(e,t,r,n){this.tags=e,this.mode=t,this.context=r,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function d(e,t){let r=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)r[e.id]=t.class;else r[t.tag.id]=t.class;let{scope:n,all:o=null}=t||{};return{style:e=>{let t=o;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}c.empty=new c([],2,null);function p(e,t,r,n=0,o=e.length){let i=new h(n,Array.isArray(t)?t:[t],r);i.highlightRange(e.cursor(),n,o,"",i.highlighters),i.flush(o)}class h{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,o,i){let{type:s,from:a,to:l}=e;if(a>=r||l<=t)return;s.isTop&&(i=this.highlighters.filter(e=>!e.scope||e.scope(s)));let d=o,p=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,h=function(e,t){let r=null;for(let n of e){let e=n.style(t);e&&(r=r?r+" "+e:e)}return r}(i,p.tags);if(h&&(d&&(d+=" "),d+=h,1==p.mode&&(o+=(o?" ":"")+h)),this.startSpan(Math.max(t,a),d),p.opaque)return;let f=e.tree&&e.tree.prop(n.md.mounted);if(f&&f.overlay){let n=e.node.enter(f.overlay[0].from+a,1),s=this.highlighters.filter(e=>!e.scope||e.scope(f.tree.type)),u=e.firstChild();for(let c=0,p=a;;c++){let h=c<f.overlay.length?f.overlay[c]:null,m=h?h.from+a:l,g=Math.max(t,p),y=Math.min(r,m);if(g<y&&u)for(;e.from<y&&(this.highlightRange(e,g,y,o,i),this.startSpan(Math.min(y,e.to),d),!(e.to>=m)&&e.nextSibling()););if(!h||m>r)break;(p=h.to+a)>t&&(this.highlightRange(n.cursor(),Math.max(t,h.from+a),Math.min(r,p),"",s),this.startSpan(Math.min(r,p),d))}u&&e.parent()}else if(e.firstChild()){f&&(o="");do{if(e.to<=t)continue;if(e.from>=r)break;this.highlightRange(e,t,r,o,i),this.startSpan(Math.min(r,e.to),d)}while(e.nextSibling());e.parent()}}}let f=i.define,m=f(),g=f(),y=f(g),x=f(g),b=f(),w=f(b),_=f(b),k=f(),C=f(k),A=f(),O=f(),D=f(),S=f(D),T=f(),E={comment:m,lineComment:f(m),blockComment:f(m),docComment:f(m),name:g,variableName:f(g),typeName:y,tagName:f(y),propertyName:x,attributeName:f(x),className:f(g),labelName:f(g),namespace:f(g),macroName:f(g),literal:b,string:w,docString:f(w),character:f(w),attributeValue:f(w),number:_,integer:f(_),float:f(_),bool:f(b),regexp:f(b),escape:f(b),color:f(b),url:f(b),keyword:A,self:f(A),null:f(A),atom:f(A),unit:f(A),modifier:f(A),operatorKeyword:f(A),controlKeyword:f(A),definitionKeyword:f(A),moduleKeyword:f(A),operator:O,derefOperator:f(O),arithmeticOperator:f(O),logicOperator:f(O),bitwiseOperator:f(O),compareOperator:f(O),updateOperator:f(O),definitionOperator:f(O),typeOperator:f(O),controlOperator:f(O),punctuation:D,separator:f(D),bracket:S,angleBracket:f(S),squareBracket:f(S),paren:f(S),brace:f(S),content:k,heading:C,heading1:f(C),heading2:f(C),heading3:f(C),heading4:f(C),heading5:f(C),heading6:f(C),contentSeparator:f(k),list:f(k),quote:f(k),emphasis:f(k),strong:f(k),link:f(k),monospace:f(k),strikethrough:f(k),inserted:f(),deleted:f(),changed:f(),invalid:f(),meta:T,documentMeta:f(T),annotation:f(T),processingInstruction:f(T),definition:i.defineModifier("definition"),constant:i.defineModifier("constant"),function:i.defineModifier("function"),standard:i.defineModifier("standard"),local:i.defineModifier("local"),special:i.defineModifier("special")};for(let e in E){let t=E[e];t instanceof i&&(t.name=e)}d([{tag:E.link,class:"tok-link"},{tag:E.heading,class:"tok-heading"},{tag:E.emphasis,class:"tok-emphasis"},{tag:E.strong,class:"tok-strong"},{tag:E.keyword,class:"tok-keyword"},{tag:E.atom,class:"tok-atom"},{tag:E.bool,class:"tok-bool"},{tag:E.url,class:"tok-url"},{tag:E.labelName,class:"tok-labelName"},{tag:E.inserted,class:"tok-inserted"},{tag:E.deleted,class:"tok-deleted"},{tag:E.literal,class:"tok-literal"},{tag:E.string,class:"tok-string"},{tag:E.number,class:"tok-number"},{tag:[E.regexp,E.escape,E.special(E.string)],class:"tok-string2"},{tag:E.variableName,class:"tok-variableName"},{tag:E.local(E.variableName),class:"tok-variableName tok-local"},{tag:E.definition(E.variableName),class:"tok-variableName tok-definition"},{tag:E.special(E.variableName),class:"tok-variableName2"},{tag:E.definition(E.propertyName),class:"tok-propertyName tok-definition"},{tag:E.typeName,class:"tok-typeName"},{tag:E.namespace,class:"tok-namespace"},{tag:E.className,class:"tok-className"},{tag:E.macroName,class:"tok-macroName"},{tag:E.propertyName,class:"tok-propertyName"},{tag:E.operator,class:"tok-operator"},{tag:E.comment,class:"tok-comment"},{tag:E.meta,class:"tok-meta"},{tag:E.invalid,class:"tok-invalid"},{tag:E.punctuation,class:"tok-punctuation"}])},290483:function(e,t,r){"use strict";r.d(t,{IK:function(){return D},Jq:function(){return f},RA:function(){return h},WQ:function(){return S}});var n=r(437254);class o{constructor(e,t,r,n,o,i,s,a,l,u=0,c){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=o,this.score=i,this.buffer=s,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new o(e,[],t,r,r,0,[],0,n?new i(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:o}=this.p,i=this.reducePos<this.pos-25;i&&this.setLookAhead(this.pos);let s=o.dynamicPrecedence(n);if(s&&(this.score+=s),0==r){this.pushState(o.getGoto(this.state,n,!0),this.reducePos),n<o.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(n,this.reducePos);return}let a=this.stack.length-(r-1)*3-(262144&e?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let c=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-c;if(n<o.minRepeatTerm||131072&e){let e=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,d+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=o.getGoto(e,n,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,r,n=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,n=this.buffer.length;if(0==n&&e.parent&&(n=e.bufferBase-e.parent.bufferBase,e=e.parent),n>0&&0==e.buffer[n-4]&&e.buffer[n-1]>-1){if(t==r)return;if(e.buffer[n-2]>=t){e.buffer[n-2]=r;return}}}if(o&&this.pos!=r){let o=this.buffer.length;if(o>0&&0!=this.buffer[o-4]){let e=!1;for(let t=o;t>0&&this.buffer[t-2]>r;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=r,this.buffer[o+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,!o.stateFlag(e,1)&&(this.reducePos=n)),this.pushState(e,r),this.shiftContext(t,r),t<=o.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if((65536&r)==0)return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n=0,o;n<t.length;n+=2)(o=t[n+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(t[n],o);if(this.stack.length<120)for(let e=0;r.length<8&&e<t.length;e+=2){let n=t[e+1];!r.some((e,t)=>1&t&&e==n)&&r.push(t[e],n)}t=r}let r=[];for(let e=0;e<t.length&&r.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let o=this.split();o.pushState(n,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[e],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){let r=t>>19,n=65535&t,o=this.stack.length-3*r;if(o<0||0>e.getGoto(this.stack[o],n,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,o)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let r=(t>>19)-o;if(r>1){let n=65535&t,o=this.stack.length-3*r;if(o>=0&&e.getGoto(this.stack[o],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,o+1);if(null!=e)return e}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new i(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class i{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class s{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=r}}class a{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new a(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}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]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function l(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,o=0;n<e.length;){let i=0;for(;;){let t=e.charCodeAt(n++),r=!1;if(126==t){i=65535;break}t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,r=!0),i+=o,r)break;i*=46}r?r[o++]=i:r=new t(i)}return r}class u{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let c=new u;class d{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,o=this.pos+e;for(;o<r.from;){if(!n)return null;let e=this.ranges[--n];o-=r.from-e.to,r=e}for(;t<0?o>r.to:o>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];o+=e.from-r.to,r=e}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,r,n;if(t>=0&&t<this.chunk.length)r=this.pos+e,n=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((r=t)>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=r;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-r)),n=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),n}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=c,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class p{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;m(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class h{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data="string"==typeof e?l(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(m(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!r&&n++,null==o)break;e.reset(o,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}}h.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class f{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function m(e,t,r,n,o,i){let s=0,a=1<<n,{dialect:l}=r.p.parser;s:for(;(a&e[s])!=0;){let r=e[s+1];for(let n=s+3;n<r;n+=2)if((e[n+1]&a)>0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||function(e,t,r,n){let o=g(r,n,t);return o<0||g(r,n,e)<o}(r,t.token.value,o,i))){t.acceptToken(r);break}}let n=t.next,u=0,c=e[s+2];if(t.next<0&&c>u&&65535==e[r+3*c-3]){s=e[r+3*c-1];continue}for(;u<c;){let o=u+c>>1,i=r+o+(o<<1),a=e[i],l=e[i+1]||65536;if(n<a)c=o;else if(n>=l)u=o+1;else{s=e[i+2],t.advance();continue s}}break}}function g(e,t,r){for(let n=t,o;65535!=(o=e[n]);n++)if(o==r)return n-t;return -1}let y="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG),x=null;function b(e,t,r){let o=e.cursor(n.vj.IncludeAnonymous);for(o.moveTo(t);;)if(!(r<0?o.childBefore(t):o.childAfter(t)))for(;;){if((r<0?o.to<t:o.from>t)&&!o.type.isError)return r<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(r<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return r<0?0:e.length}}class w{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?b(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?b(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let r=this.trees[t],o=this.index[t];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[o],s=this.start[t]+r.positions[o];if(s>e)return this.nextStart=s,null;if(i instanceof n.mp){if(s==e){if(s<this.safeFrom)return null;let e=s+i.length;if(e<=this.safeTo){let t=i.prop(n.md.lookAhead);if(!t||e+t<this.fragment.to)return i}}this.index[t]++,s+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+i.length}}}class _{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new u)}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:o}=n,i=n.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,a=0;for(let n=0;n<o.length;n++){if((1<<n&i)==0)continue;let l=o[n],u=this.tokens[n];if((!r||l.fallback)&&((l.contextual||u.start!=e.pos||u.mask!=i||u.context!=s)&&(this.updateCachedToken(u,l,e),u.mask=i,u.context=s),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let n=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(r=u,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!r&&e.pos==this.stream.end&&((r=new u).value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new u,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let o=t.specializers[n](this.stream.read(e.start,e.end),r);if(o>=0&&r.p.parser.dialect.allows(o>>1)){(1&o)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=r,n}addActions(e,t,r,n){let{state:o}=e,{parser:i}=e.p,{data:s}=i;for(let e=0;e<2;e++)for(let a=i.stateSlot(o,e?2:1);;a+=3){if(65535==s[a]){if(1==s[a+1])a=T(s,a+2);else{0==n&&2==s[a+1]&&(n=this.putAction(T(s,a+2),t,r,n));break}}s[a]==t&&(n=this.putAction(T(s,a+1),t,r,n))}return n}}class k{constructor(e,t,r,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new d(t,n),this.tokens=new _(e,this.stream),this.topTerm=e.top[1];let{from:i}=n[0];this.stacks=[o.start(this,e.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*e.bufferLength?new w(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<r.length;i++){let s=r[i];for(;;){if(this.tokens.mainToken=null,s.pos>n)o.push(s);else{if(this.advanceStack(s,o,r))continue;!e&&(e=[],t=[]),e.push(s);let n=this.tokens.getMainToken(s);t.push(n.value,n.end)}break}}if(!o.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}(e);if(t)return y&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw y&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+n);!this.recovering&&(this.recovering=5)}if(this.recovering&&e){let r=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(r)return y&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(o.length>e)for(o.sort((e,t)=>t.score-e.score);o.length>e;)o.pop();o.some(e=>e.reducePos>n)&&this.recovering--}else if(o.length>1){r:for(let e=0;e<o.length-1;e++){let t=o[e];for(let r=e+1;r<o.length;r++){let n=o[r];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if((t.score-n.score||t.buffer.length-n.buffer.length)>0)o.splice(r--,1);else{o.splice(e--,1);continue r}}}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(let e=1;e<o.length;e++)o[e].pos<this.minStackPos&&(this.minStackPos=o[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,r){let o=e.pos,{parser:i}=this,s=y?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(o);a;){let o=this.parser.nodeSet.types[a.type.id]==a.type?i.getGoto(e.state,a.type.id):-1;if(o>-1&&a.length&&(!t||(a.prop(n.md.contextHash)||0)==r))return e.useNode(a,o),y&&console.log(s+this.stackID(e)+` (via reuse of ${i.getName(a.type.id)})`),!0;if(!(a instanceof n.mp)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(l instanceof n.mp&&0==a.positions[0])a=l;else break}}let a=i.stateSlot(e.state,4);if(a>0)return e.reduce(a),y&&console.log(s+this.stackID(e)+` (via always-reduce ${i.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let n=0;n<l.length;){let a=l[n++],u=l[n++],c=l[n++],d=n==l.length||!r,p=d?e:e.split(),h=this.tokens.mainToken;if(p.apply(a,u,h?h.start:p.pos,c),y&&console.log(s+this.stackID(p)+` (via ${(65536&a)==0?"shift":`reduce of ${i.getName(65535&a)}`} for ${i.getName(u)} @ ${o}${p==e?"":", split"})`),d)return!0;p.pos>o?t.push(p):r.push(p)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return C(e,t),!0}}runRecovery(e,t,r){let n=null,o=!1;for(let i=0;i<e.length;i++){let s=e[i],a=t[i<<1],l=t[(i<<1)+1],u=y?this.stackID(s)+" -> ":"";if(s.deadEnd){if(o)continue;if(o=!0,s.restart(),y&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))continue}let c=s.split(),d=u;for(let e=0;c.forceReduce()&&e<10&&(y&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,r));e++){;y&&(d=this.stackID(c)+" -> ")}for(let e of s.recoverByInsert(a))y&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,r);this.stream.end>s.pos?(l==s.pos&&(l++,a=0),s.recoverByDelete(a,l),y&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(a)})`),C(s,r)):(!n||n.score<s.score)&&(n=s)}return n}stackToTree(e){return e.close(),n.mp.build({buffer:a.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(x||(x=new WeakMap)).get(e);return!t&&x.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function C(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e)){t[r].score<e.score&&(t[r]=e);return}}t.push(e)}class A{constructor(e,t,r){this.source=e,this.flags=t,this.disabled=r}allows(e){return!this.disabled||0==this.disabled[e]}}let O=e=>e;class D{constructor(e){this.start=e.start,this.shift=e.shift||O,this.reduce=e.reduce||O,this.reuse=e.reuse||O,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class S extends n._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let r=Object.keys(e.topRules).map(t=>e.topRules[t][1]),o=[];for(let e=0;e<t.length;e++)o.push([]);function i(e,t,r){o[e].push([t,t.deserialize(String(r))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=n.md[e]);for(let r=1;r<t.length;){let n=t[r++];if(n>=0)i(n,e,t[r++]);else{let o=t[r+-n];for(let s=-n;s>0;s--)i(t[r++],e,o);r++}}}this.nodeSet=new n.Lj(t.map((t,i)=>n.Jq.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:o[i],top:r.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=n.L3;let s=l(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(E),this.states=l(e.states,Uint32Array),this.data=l(e.stateData),this.goto=l(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new p(s,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new k(this,e,t,r);for(let o of this.wrappers)n=o(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return -1;for(let o=n[t+1];;){let t=n[o++],i=1&t,s=n[o++];if(i&&r)return s;for(let r=o+(t>>1);o<r;o++)if(n[o]==e)return s;if(i)return -1}}hasAction(e,t){let r=this.data;for(let n=0;n<2;n++)for(let o=this.stateSlot(e,n?2:1),i;;o+=3){if(65535==(i=r[o])){if(1==r[o+1])i=r[o=T(r,o+2)];else if(2==r[o+1])return T(r,o+2);else break}if(i==t||0==i)return T(r,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r]){if(1==this.data[r+1])r=T(this.data,r+2);else break}n=t(T(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1==this.data[r+1])r=T(this.data,r+2);else break}if((1&this.data[r+2])==0){let e=this.data[r+1];!t.some((t,r)=>1&r&&t==e)&&t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(S.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let r=e.tokenizers.find(e=>e.from==t);return r?r.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((r,n)=>{let o=e.specializers.find(e=>e.from==r.external);if(!o)return r;let i=Object.assign(Object.assign({},r),{external:o.to});return t.specializers[n]=E(i),i})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!r[e])for(let r=this.dialects[t[e]],o;65535!=(o=this.data[r++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[o]=1;return new A(e,r,n)}static deserialize(e){return new S(e)}}function T(e,t){return e[t]|e[t+1]<<16}function E(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}},853220:function(e,t,r){"use strict";r.d(t,{v4:function(){return s}});for(var n,o=256,i=[];o--;)i[o]=(o+256).toString(16).substring(1);function s(){var e,t=0,r="";if(!n||o+16>256){for(n=Array(t=256);t--;)n[t]=256*Math.random()|0;t=o=0}for(;t<16;t++)e=n[o+t],6==t?r+=i[15&e|64]:8==t?r+=i[63&e|128]:r+=i[e],1&t&&t>1&&t<11&&(r+="-");return o++,r}},734083:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=Object.prototype.hasOwnProperty;function o(e,t,r){for(r of e.keys())if(i(r,t))return r}function i(e,t){var r,s,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((s=e.length)===t.length)for(;s--&&i(e[s],t[s]););return -1===s}if(r===Set){if(e.size!==t.size)return!1;for(s of e)if((a=s)&&"object"==typeof a&&!(a=o(t,a))||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(s of e)if((a=s[0])&&"object"==typeof a&&!(a=o(t,a))||!i(s[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((s=e.byteLength)===t.byteLength)for(;s--&&e.getInt8(s)===t.getInt8(s););return -1===s}if(ArrayBuffer.isView(e)){if((s=e.byteLength)===t.byteLength)for(;s--&&e[s]===t[s];);return -1===s}if(!r||"object"==typeof e){for(r in s=0,e)if(n.call(e,r)&&++s&&!n.call(t,r)||!(r in t)||!i(e[r],t[r]))return!1;return Object.keys(t).length===s}}return e!=e&&t!=t}},640652:function(e,t,r){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")&&!0)}r.d(t,{P:function(){return o}})},775985:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});let n="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),o="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:r}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,o,i,s){let a=[],l=/^@(\w+)\b/.exec(t[0]),u=l&&"keyframes"==l[1];if(l&&null==o)return i.push(t[0]+";");for(let r in o){let s=o[r];if(/&/.test(r))e(r.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),s,i);else if(s&&"object"==typeof s){if(!l)throw RangeError("The value of a property ("+r+") should be a primitive value.");e(n(r),s,a,u)}else null!=s&&a.push(r.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+s+";")}(a.length||u)&&i.push((!r||l||s?t:t.map(r)).join(", ")+" {"+a.join(" ")+"}")}(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=i[n]||1;return i[n]=e+1,"ͼ"+e.toString(36)}static mount(e,t,r){let n=e[o],i=r&&r.nonce;n?i&&n.setNonce(i):n=new l(e,i),n.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=a.get(r);if(t)return e[o]=t;this.sheet=new n.CSSStyleSheet,a.set(r,this)}else this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[o]=this}mount(e,t){let r=this.sheet,n=0,o=0;for(let t=0;t<e.length;t++){let i=e[t],s=this.modules.indexOf(i);if(s<o&&s>-1&&(this.modules.splice(s,1),o--,s=-1),-1==s){if(this.modules.splice(o++,0,i),r)for(let e=0;e<i.rules.length;e++)r.insertRule(i.rules[e],n++)}else{for(;o<s;)n+=this.modules[o++].rules.length;n+=i.rules.length,o++}}if(r)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let r=t.head||t;this.styleTag.parentNode!=r&&r.insertBefore(this.styleTag,r.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},896433:function(e,t,r){"use strict";r.d(t,{YG:function(){return u},uY:function(){return o},ue:function(){return n}});for(var n={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:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="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++)n[48+a]=n[96+a]=String(a);for(var a=1;a<=24;a++)n[a+111]="F"+a;for(var a=65;a<=90;a++)n[a]=String.fromCharCode(a+32),o[a]=String.fromCharCode(a);for(var l in n)!o.hasOwnProperty(l)&&(o[l]=n[l]);function u(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},494308:function(e,t,r){"use strict";let n;r.d(t,{Qc:()=>t$,Pz:()=>tK});let o=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),l=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[c]===o,p=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===s,f=e=>!!e&&"object"==typeof e&&e[c]===a,m=e=>!!e&&"object"==typeof e&&e[c]===l,g=e=>!!e&&"object"==typeof e&&e[c]===u;function y(e){if(e&&"object"==typeof e)switch(e[c]){case s:case u:return!0}return!1}function x(e){if(e&&"object"==typeof e)switch(e[c]){case o:case s:case l:case u:return!0}return!1}let b=e=>(m(e)||y(e))&&!!e.anchor,w=Symbol("break visit"),_=Symbol("skip children"),k=Symbol("remove node");function C(e,t){let r=S(t);p(e)?A(null,e.contents,r,Object.freeze([e]))===k&&(e.contents=null):A(null,e,r,Object.freeze([]))}function A(e,t,r,n){let o=T(e,t,r,n);if(x(o)||f(o))return E(e,n,o),A(e,o,r,n);if("symbol"!=typeof o){if(y(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let o=A(e,t.items[e],r,n);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===k&&(t.items.splice(e,1),e-=1)}}}else if(f(t)){n=Object.freeze(n.concat(t));let e=A("key",t.key,r,n);if(e===w)return w;e===k&&(t.key=null);let o=A("value",t.value,r,n);if(o===w)return w;o===k&&(t.value=null)}}return o}async function O(e,t){let r=S(t);p(e)?await D(null,e.contents,r,Object.freeze([e]))===k&&(e.contents=null):await D(null,e,r,Object.freeze([]))}async function D(e,t,r,n){let o=await T(e,t,r,n);if(x(o)||f(o))return E(e,n,o),D(e,o,r,n);if("symbol"!=typeof o){if(y(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let o=await D(e,t.items[e],r,n);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===k&&(t.items.splice(e,1),e-=1)}}}else if(f(t)){n=Object.freeze(n.concat(t));let e=await D("key",t.key,r,n);if(e===w)return w;e===k&&(t.key=null);let o=await D("value",t.value,r,n);if(o===w)return w;o===k&&(t.value=null)}}return o}function S(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function T(e,t,r,n){return"function"==typeof r?r(e,t,n):h(t)?r.Map?.(e,t,n):g(t)?r.Seq?.(e,t,n):f(t)?r.Pair?.(e,t,n):m(t)?r.Scalar?.(e,t,n):d(t)?r.Alias?.(e,t,n):void 0}function E(e,t,r){let n=t[t.length-1];if(y(n))n.items[e]=r;else if(f(n))"key"===e?n.key=r:n.value=r;else if(p(n))n.contents=r;else{let e=d(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}C.BREAK=w,C.SKIP=_,C.REMOVE=k,O.BREAK=w,O.SKIP=_,O.REMOVE=k;let M={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},j=e=>e.replace(/[!,[\]{}]/g,e=>M[e]);class N{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},N.defaultYaml,e),this.tags=Object.assign({},N.defaultTags,t)}clone(){let e=new N(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new N(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:N.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},N.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:N.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},N.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let r=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,r),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}let[,r,n]=e.match(/^(.*!)([^!]*)$/s);!n&&t(`The ${e} tag has no suffix`);let o=this.tags[r];if(o)try{return o+decodeURIComponent(n)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+j(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&x(e.contents)){let r={};C(e.contents,(e,t)=>{x(t)&&t.tag&&(r[t.tag]=!0)}),t=Object.keys(r)}else t=[];for(let[o,i]of n)("!!"!==o||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&r.push(`%TAG ${o} ${i}`);return r.join("\n")}}function P(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function B(e){let t=new Set;return C(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function I(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}N.defaultYaml={explicit:!1,version:"1.2"},N.defaultTags={"!!":"tag:yaml.org,2002:"};function L(e,t,r,n){if(n&&"object"==typeof n){if(Array.isArray(n))for(let t=0,r=n.length;t<r;++t){let r=n[t],o=L(e,n,String(t),r);void 0===o?delete n[t]:o!==r&&(n[t]=o)}else if(n instanceof Map)for(let t of Array.from(n.keys())){let r=n.get(t),o=L(e,n,t,r);void 0===o?n.delete(t):o!==r&&n.set(t,o)}else if(n instanceof Set)for(let t of Array.from(n)){let r=L(e,n,t,t);void 0===r?n.delete(t):r!==t&&(n.delete(t),n.add(r))}else for(let[t,r]of Object.entries(n)){let o=L(e,n,t,r);void 0===o?delete n[t]:o!==r&&(n[t]=o)}}return e.call(t,r,n)}function F(e,t,r){if(Array.isArray(e))return e.map((e,t)=>F(e,String(t),r));if(e&&"function"==typeof e.toJSON){if(!r||!b(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=e=>{n.res=e,delete r.onCreate};let o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return"bigint"!=typeof e||r?.keep?e:Number(e)}class z{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:o}={}){if(!p(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},s=F(this,"",i);if("function"==typeof n)for(let{count:e,res:t}of i.anchors.values())n(t,e);return"function"==typeof o?L(o,{"":s},"",s):s}}class R extends z{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,n;t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],C(e,{Node:(e,t)=>{(d(t)||b(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r));for(let e of r){if(e===this)break;e.anchor===this.source&&(n=e)}return n}toJSON(e,t){if(!t)return{source:this.source};let{anchors:r,doc:n,maxAliasCount:o}=t,i=this.resolve(n,t);if(!i)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let s=r.get(i);if(!s&&(F(i,null,t),s=r.get(i)),!s||void 0===s.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,r,n){if(d(r)){let e=r.resolve(t),o=n&&e&&n.get(e);return o?o.count*o.aliasCount:0}if(y(r)){let o=0;for(let i of r.items){let r=e(t,i,n);r>o&&(o=r)}return o}if(f(r)){let o=e(t,r.key,n);return Math.max(o,e(t,r.value,n))}return 1}(n,i,r)),s.count*s.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,r){let n=`*${this.source}`;if(e){if(P(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let X=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Z extends z{constructor(e){super(l),this.value=e}toJSON(e,t){return t?.keep?this.value:F(this.value,e,t)}toString(){return String(this.value)}}Z.BLOCK_FOLDED="BLOCK_FOLDED",Z.BLOCK_LITERAL="BLOCK_LITERAL",Z.PLAIN="PLAIN",Z.QUOTE_DOUBLE="QUOTE_DOUBLE",Z.QUOTE_SINGLE="QUOTE_SINGLE";function W(e,t,r){let n;if(p(e)&&(e=e.contents),x(e))return e;if(f(e)){let t=r.schema[s].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:o,onAnchor:i,onTagObj:a,schema:l,sourceObjects:c}=r;if(o&&e&&"object"==typeof e){if(n=c.get(e))return n.anchor??(n.anchor=i(e)),new R(n.anchor);n={anchor:null,node:null},c.set(e,n)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,r){if(t){let e=r.filter(e=>e.tag===t),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${t} not found`);return n}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new Z(e);return n&&(n.node=t),t}d=e instanceof Map?l[s]:Symbol.iterator in Object(e)?l[u]:l[s]}a&&(a(d),delete r.onTagObj);let h=d?.createNode?d.createNode(r.schema,e,r):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(r.schema,e,r):new Z(e);return t?h.tag=t:!d.default&&(h.tag=d.tag),n&&(n.node=h),h}function V(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){let r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){let e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return W(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}let H=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class U extends z{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>x(t)||f(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(H(e))this.add(t);else{let[r,...n]=e,o=this.get(r,!0);if(y(o))o.addIn(n,t);else if(void 0===o&&this.schema)this.set(r,V(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){let[t,...r]=e;if(0===r.length)return this.delete(t);let n=this.get(t,!0);if(y(n))return n.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...n]=e,o=this.get(r,!0);return 0===n.length?!t&&m(o)?o.value:o:y(o)?o.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!f(t))return!1;let r=t.value;return null==r||e&&m(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(0===r.length)return this.has(t);let n=this.get(t,!0);return!!y(n)&&n.hasIn(r)}setIn(e,t){let[r,...n]=e;if(0===n.length)this.set(r,t);else{let e=this.get(r,!0);if(y(e))e.setIn(n,t);else if(void 0===e&&this.schema)this.set(r,V(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}let q=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Y(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let Q=(e,t,r)=>e.endsWith("\n")?Y(r,t):r.includes("\n")?"\n"+Y(r,t):(e.endsWith(" ")?"":" ")+r,G="flow",$="block",K="quoted";function J(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){let l,u,c;if(!o||o<0)return e;o<i&&(i=0);let d=Math.max(1+i,1+o-t.length);if(e.length<=d)return e;let p=[],h={},f=o-t.length;"number"==typeof n&&(n>o-Math.max(2,i)?p.push(0):f=o-n);let m=!1,g=-1,y=-1,x=-1;r===$&&-1!==(g=ee(e,g,t.length))&&(f=g+d);for(;c=e[g+=1];){if(r===K&&"\\"===c){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}x=g}if("\n"===c)r===$&&(g=ee(e,g,t.length)),f=g+t.length+d,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=g)}if(g>=f){if(l)p.push(l),f=l+d,l=void 0;else if(r===K){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>x+1?g-2:y-1;if(h[t])return e;p.push(t),h[t]=!0,f=t+d,l=void 0}else m=!0}}u=c}if(m&&a&&a(),0===p.length)return e;s&&s();let b=e.slice(0,p[0]);for(let n=0;n<p.length;++n){let o=p[n],i=p[n+1]||e.length;0===o?b=`
${t}${e.slice(0,i)}`:(r===K&&h[o]&&(b+=`${e[o]}\\`),b+=`
${t}${e.slice(o+1,i)}`)}return b}function ee(e,t,r){let n=t,o=t+1,i=e[o];for(;" "===i||" "===i;)if(t<o+r)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);n=t,i=e[o=t+1]}return n}let et=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),er=e=>/^(%|---|\.\.\.)/m.test(e);function en(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(er(e)?" ":""),s="",a=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(s+=r.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{s+=r.slice(a,e);let t=r.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=r.substr(e,6)}e+=5,a=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<o)e+=1;else{for(s+=r.slice(a,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)s+="\n",e+=2;s+=i," "===r[e+2]&&(s+="\\"),e+=1,a=e+1}break;default:e+=1}return s=a?s+r.slice(a):r,n?s:J(s,i,K,et(t,!1))}function eo(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let r=t.indent||(er(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${r}`)+"'";return t.implicitKey?n:J(n,r,G,et(t,!1))}function ei(e,t){let r;let{singleQuote:n}=t.options;if(!1===n)r=en;else{let t=e.includes('"'),o=e.includes("'");r=t&&!o?eo:o&&!t?en:n?eo:en}return r(e,t)}try{n=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{n=/\n+(?!\n|$)/g}function es({comment:e,type:t,value:r},o,i,s){let a,l,u;let{blockQuote:c,commentString:d,lineWidth:p}=o.options;if(!c||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return ei(r,o);let h=o.indent||(o.forceBlockIndent||er(r)?" ":""),f="literal"===c||"folded"!==c&&t!==Z.BLOCK_FOLDED&&(t===Z.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;let n=t-r,o=e.length;if(o<=n)return!1;for(let t=0,r=0;t<o;++t)if("\n"===e[t]){if(t-r>n)return!0;if(o-(r=t+1)<=n)return!1}return!0}(r,p,h.length));if(!r)return f?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=r.substring(l),g=m.indexOf("\n");-1===g?a="-":r===m||g!==m.length-1?(a="+",s&&s()):a="",m&&(r=r.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(n,`$&${h}`));let y=!1,x=-1;for(u=0;u<r.length;++u){let e=r[u];if(" "===e)y=!0;else if("\n"===e)x=u;else break}let b=r.substring(0,x<u?x+1:u);b&&(r=r.substring(b.length),b=b.replace(/\n+/g,`$&${h}`));let w=h?"2":"1",_=(y?w:"")+a;if(e&&(_+=" "+d(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!f){let e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),n=!1,i=et(o,!0);"folded"!==c&&t!==Z.BLOCK_FOLDED&&(i.onOverflow=()=>{n=!0});let s=J(`${b}${e}${m}`,h,$,i);if(!n)return`>${_}
${h}${s}`}return r=r.replace(/\n+/g,`$&${h}`),`|${_}
${h}${b}${r}${m}`}function ea(e,t,r,n){let{implicitKey:o,inFlow:i}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==Z.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Z.QUOTE_DOUBLE);let l=e=>{switch(e){case Z.BLOCK_FOLDED:case Z.BLOCK_LITERAL:return o||i?ei(s.value,t):es(s,t,r,n);case Z.QUOTE_DOUBLE:return en(s.value,t);case Z.QUOTE_SINGLE:return eo(s.value,t);case Z.PLAIN:return function(e,t,r,n){let{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&i.includes("\n")||c&&/[[\]{},]/.test(i))return ei(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes("\n")?ei(i,t):es(e,t,r,n);if(!a&&!c&&o!==Z.PLAIN&&i.includes("\n"))return es(e,t,r,n);if(er(i)){if(""===l)return t.forceBlockIndent=!0,es(e,t,r,n);if(a&&l===u)return ei(i,t)}let d=i.replace(/\n+/g,`$&
${l}`);if(s){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(d),{compat:r,tags:n}=t.doc.schema;if(n.some(e)||r?.some(e))return ei(i,t)}return a?d:J(d,l,G,et(t,!1))}(s,t,r,n);default:return null}},u=l(a);if(null===u){let{defaultKeyType:e,defaultStringType:r}=t.options,n=o&&e||r;if(null===(u=l(n)))throw Error(`Unsupported default string type ${n}`)}return u}function el(e,t){let r;let n=Object.assign({blockQuote:!0,commentString:q,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function eu(e,t,r,n){let o;if(f(e))return e.toString(t,r,n);if(d(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i=x(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o??(o=function(e,t){let r,n;if(t.tag){let r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}if(m(t)){r=t.value;let o=e.filter(e=>e.identify?.(r));if(o.length>1){let e=o.filter(e=>e.test);e.length>0&&(o=e)}n=o.find(e=>e.format===t.format)??o.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(null===r?"null":typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,i));let s=function(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let o=[],i=(m(e)||y(e))&&e.anchor;i&&P(i)&&(r.add(i),o.push(`&${i}`));let s=e.tag??(t.default?null:t.tag);return s&&o.push(n.directives.tagString(s)),o.join(" ")}(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let a="function"==typeof o.stringify?o.stringify(i,t,r,n):m(i)?ea(i,t,r,n):i.toString(t,r,n);return s?m(i)||"{"===a[0]||"["===a[0]?`${s} ${a}`:`${s}
${t.indent}${a}`:a}function ec(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let ed={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Z(Symbol("<<")),{addToJSMap:eh}),stringify:()=>"<<"},ep=(e,t)=>(ed.identify(t)||m(t)&&(!t.type||t.type===Z.PLAIN)&&ed.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===ed.tag&&e.default);function eh(e,t,r){if(g(r=e&&d(r)?r.resolve(e.doc):r))for(let n of r.items)ef(e,t,n);else if(Array.isArray(r))for(let n of r)ef(e,t,n);else ef(e,t,r)}function ef(e,t,r){let n=e&&d(r)?r.resolve(e.doc):r;if(!h(n))throw Error("Merge sources must be maps or map aliases");for(let[r,o]of n.toJSON(null,e,Map))t instanceof Map?!t.has(r)&&t.set(r,o):t instanceof Set?t.add(r):!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function em(e,t,{key:r,value:n}){if(x(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(ep(e,r))eh(e,t,n);else{let o=F(r,"",e);if(t instanceof Map)t.set(o,F(n,o,e));else if(t instanceof Set)t.add(o);else{let i=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(x(e)&&r?.doc){let t=el(r.doc,{});for(let e of(t.anchors=new Set,r.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),ec(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,o,e),s=F(n,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}function eg(e,t,r){let n=W(e,void 0,r);return new ev(n,W(t,void 0,r))}class ev{constructor(e,t=null){Object.defineProperty(this,c,{value:a}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return x(t)&&(t=t.clone(e)),x(r)&&(r=r.clone(e)),new ev(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return em(t,r,this)}toString(e,t,r){return e?.doc?function({key:e,value:t},r,n,o){let i,s,a;let{allNullValues:l,doc:u,indent:c,indentStep:d,options:{commentString:p,indentSeq:h,simpleKeys:f}}=r,b=x(e)&&e.comment||null;if(f){if(b)throw Error("With simple keys, key nodes cannot have comments");if(y(e)||!x(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let w=!f&&(!e||b&&null==t&&!r.inFlow||y(e)||(m(e)?e.type===Z.BLOCK_FOLDED||e.type===Z.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!w&&(f||!l),indent:c+d});let _=!1,k=!1,C=eu(e,r,()=>_=!0,()=>k=!0);if(!w&&!r.inFlow&&C.length>1024){if(f)throw Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(r.inFlow){if(l||null==t)return _&&n&&n(),""===C?"?":w?`? ${C}`:C}else if(l&&!f||null==t&&w)return C=`? ${C}`,b&&!_?C+=Q(C,r.indent,p(b)):k&&o&&o(),C;_&&(b=null),w?(b&&(C+=Q(C,r.indent,p(b))),C=`? ${C}
${c}:`):(C=`${C}:`,b&&(C+=Q(C,r.indent,p(b)))),x(t)?(i=!!t.spaceBefore,s=t.commentBefore,a=t.comment):(i=!1,s=null,a=null,t&&"object"==typeof t&&(t=u.createNode(t))),r.implicitKey=!1,!w&&!b&&m(t)&&(r.indentAtStart=C.length+1),k=!1,!h&&d.length>=2&&!r.inFlow&&!w&&g(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let A=!1,O=eu(t,r,()=>A=!0,()=>k=!0),D=" ";if(b||i||s){if(D=i?"\n":"",s){let e=p(s);D+=`
${Y(e,r.indent)}`}""!==O||r.inFlow?D+=`
${r.indent}`:"\n"===D&&(D="\n\n")}else if(!w&&y(t)){let e=O[0],n=O.indexOf("\n"),o=-1!==n,i=r.inFlow??t.flow??0===t.items.length;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let r=O.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===O[r+1]&&(r=O.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}!t&&(D=`
${r.indent}`)}}else(""===O||"\n"===O[0])&&(D="");return C+=D+O,r.inFlow?A&&n&&n():a&&!A?C+=Q(C,r.indent,p(a)):k&&o&&o(),C}(this,e,t,r):JSON.stringify(this)}}function ey(e,t,r){let n=t.inFlow??e.flow;return(n?eb:ex)(e,t,r)}function ex({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){let l;let{indent:u,options:{commentString:c}}=r,d=Object.assign({},r,{indent:i,type:null}),p=!1,h=[];for(let e=0;e<t.length;++e){let o=t[e],s=null;if(x(o))!p&&o.spaceBefore&&h.push(""),ew(r,h,o.commentBefore,p),o.comment&&(s=o.comment);else if(f(o)){let e=x(o.key)?o.key:null;e&&(!p&&e.spaceBefore&&h.push(""),ew(r,h,e.commentBefore,p))}p=!1;let a=eu(o,d,()=>s=null,()=>p=!0);s&&(a+=Q(a,i,c(s))),p&&s&&(p=!1),h.push(n+a)}if(0===h.length)l=o.start+o.end;else{l=h[0];for(let e=1;e<h.length;++e){let t=h[e];l+=t?`
${u}${t}`:"\n"}}return e?(l+="\n"+Y(c(e),u),a&&a()):p&&s&&s(),l}function eb({items:e},t,{flowChars:r,itemIndent:n}){let{indent:o,indentStep:i,flowCollectionPadding:s,options:{commentString:a}}=t,l=Object.assign({},t,{indent:n+=i,inFlow:!0,type:null}),u=!1,c=0,d=[];for(let r=0;r<e.length;++r){let o=e[r],i=null;if(x(o))o.spaceBefore&&d.push(""),ew(t,d,o.commentBefore,!1),o.comment&&(i=o.comment);else if(f(o)){let e=x(o.key)?o.key:null;e&&(e.spaceBefore&&d.push(""),ew(t,d,e.commentBefore,!1),e.comment&&(u=!0));let r=x(o.value)?o.value:null;r?(r.comment&&(i=r.comment),r.commentBefore&&(u=!0)):null==o.value&&e?.comment&&(i=e.comment)}i&&(u=!0);let s=eu(o,l,()=>i=null);r<e.length-1&&(s+=","),i&&(s+=Q(s,n,a(i))),!u&&(d.length>c||s.includes("\n"))&&(u=!0),d.push(s),c=d.length}let{start:p,end:h}=r;if(0===d.length)return p+h;if(!u){let e=d.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${p}${s}${d.join(" ")}${s}${h}`;{let e=p;for(let t of d)e+=t?`
${i}${o}${t}`:"\n";return`${e}
${o}${h}`}}function ew({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){let o=Y(t(n),e);r.push(o.trimStart())}}function e_(e,t){let r=m(t)?t.value:t;for(let n of e)if(f(n)&&(n.key===t||n.key===r||m(n.key)&&n.key.value===r))return n}class ek extends U{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(s,e),this.items=[]}static from(e,t,r){let{keepUndefined:n,replacer:o}=r,i=new this(e),s=(e,s)=>{if("function"==typeof o)s=o.call(t,e,s);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==s||n)&&i.items.push(eg(e,s,r))};if(t instanceof Map)for(let[e,r]of t)s(e,r);else if(t&&"object"==typeof t)for(let e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let r;r=f(e)?e:e&&"object"==typeof e&&"key"in e?new ev(e.key,e.value):new ev(e,e?.value);let n=e_(this.items,r.key),o=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${r.key} already set`);m(n.value)&&X(r.value)?n.value.value=r.value:n.value=r.value}else if(o){let e=this.items.findIndex(e=>0>o(r,e));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){let t=e_(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let r=e_(this.items,e),n=r?.value;return(!t&&m(n)?n.value:n)??void 0}has(e){return!!e_(this.items,e)}set(e,t){this.add(new ev(e,t),!0)}toJSON(e,t,r){let n=r?new r:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(n),this.items))em(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!f(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ey(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}let eC={collection:"map",default:!0,nodeClass:ek,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(!h(e)&&t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>ek.from(e,t,r)};class eA extends U{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(u,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eO(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let r=eO(e);if("number"!=typeof r)return;let n=this.items[r];return!t&&m(n)?n.value:n}has(e){let t=eO(e);return"number"==typeof t&&t<this.items.length}set(e,t){let r=eO(e);if("number"!=typeof r)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[r];m(n)&&X(t)?n.value=t:this.items[r]=t}toJSON(e,t){let r=[];t?.onCreate&&t.onCreate(r);let n=0;for(let e of this.items)r.push(F(e,String(n++),t));return r}toString(e,t,r){return e?ey(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){let{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof n){let r=t instanceof Set?i:String(e++);i=n.call(t,r,i)}o.items.push(W(i,void 0,r))}}return o}}function eO(e){let t=m(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eD={collection:"seq",default:!0,nodeClass:eA,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(!g(e)&&t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>eA.from(e,t,r)},eS={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>ea(e,t=Object.assign({actualString:!0},t),r,n)},eT={identify:e=>null==e,createNode:()=>new Z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Z(null),stringify:({source:e},t)=>"string"==typeof e&&eT.test.test(e)?e:t.options.nullStr},eE={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Z("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&eE.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};function eM({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);let o="number"==typeof n?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let r=t-(i.length-e-1);for(;r-- >0;)i+="0"}return i}let ej={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eM},eN={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eM(e)}},eP={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Z(parseFloat(e)),r=e.indexOf(".");return -1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:eM},eB=e=>"bigint"==typeof e||Number.isInteger(e),eI=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function eL(e,t,r){let{value:n}=e;return eB(n)&&n>=0?r+n.toString(t):eM(e)}let eF={identify:e=>eB(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>eI(e,2,8,r),stringify:e=>eL(e,8,"0o")},ez={identify:eB,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>eI(e,0,10,r),stringify:eM},eR={identify:e=>eB(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>eI(e,2,16,r),stringify:e=>eL(e,16,"0x")},eX=[eC,eD,eS,eT,eE,eF,ez,eR,ej,eN,eP];function eZ(e){return"bigint"==typeof e||Number.isInteger(e)}let eW=({value:e})=>JSON.stringify(e),eV=[{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eW},{identify:e=>null==e,createNode:()=>new Z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eW},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eW},{identify:eZ,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>eZ(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eW}],eH=[eC,eD].concat(eV,{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eU={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}},stringify({comment:e,type:t,value:r},n,o,i){let s;if(!r)return"";if("function"==typeof btoa){let e="";for(let t=0;t<r.length;++t)e+=String.fromCharCode(r[t]);s=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Z.BLOCK_LITERAL),t!==Z.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),r=Math.ceil(s.length/e),o=Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=s.substr(n,e);s=o.join(t===Z.BLOCK_LITERAL?"\n":" ")}return ea({comment:e,type:t,value:s},n,o,i)}};function eq(e,t){if(g(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!f(n)){if(h(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let e=n.items[0]||new ev(new Z(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
${e.key.commentBefore}`:n.commentBefore),n.comment){let t=e.value??e.key;t.comment=t.comment?`${n.comment}
${t.comment}`:n.comment}n=e}e.items[r]=f(n)?n:new ev(n)}}else t("Expected a sequence for this tag");return e}function eY(e,t,r){let{replacer:n}=r,o=new eA(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,a;if("function"==typeof n&&(e=n.call(t,String(i++),e)),Array.isArray(e)){if(2===e.length)s=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[s=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else s=e;o.items.push(eg(s,a,r))}return o}let eQ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eq,createNode:eY};class eG extends eA{constructor(){super(),this.add=ek.prototype.add.bind(this),this.delete=ek.prototype.delete.bind(this),this.get=ek.prototype.get.bind(this),this.has=ek.prototype.has.bind(this),this.set=ek.prototype.set.bind(this),this.tag=eG.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;for(let e of(t?.onCreate&&t.onCreate(r),this.items)){let n,o;if(f(e)?(n=F(e.key,"",t),o=F(e.value,n,t)):n=F(e,"",t),r.has(n))throw Error("Ordered maps must not include duplicate keys");r.set(n,o)}return r}static from(e,t,r){let n=eY(e,t,r),o=new this;return o.items=n.items,o}}eG.tag="tag:yaml.org,2002:omap";let e$={collection:"seq",identify:e=>e instanceof Map,nodeClass:eG,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=eq(e,t),n=[];for(let{key:e}of r.items)m(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new eG,r)},createNode:(e,t,r)=>eG.from(e,t,r)};function eK({value:e,source:t},r){let n=e?eJ:e0;return t&&n.test.test(t)?t:e?r.options.trueStr:r.options.falseStr}let eJ={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Z(!0),stringify:eK},e0={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Z(!1),stringify:eK},e1=e=>"bigint"==typeof e||Number.isInteger(e);function e2(e,t,r,{intAsBigInt:n}){let o=e[0];if(("-"===o||"+"===o)&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===o?BigInt(-1)*t:t}let i=parseInt(e,r);return"-"===o?-1*i:i}function e4(e,t,r){let{value:n}=e;if(e1(n)){let e=n.toString(t);return n<0?"-"+r+e.substr(1):r+e}return eM(e)}class e5 extends ek{constructor(e){super(e),this.tag=e5.tag}add(e){let t;t=f(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ev(e.key,null):new ev(e,null),!e_(this.items,t.key)&&this.items.push(t)}get(e,t){let r=e_(this.items,e);return!t&&f(r)?m(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=e_(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new ev(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw Error("Set items must all have null values")}static from(e,t,r){let{replacer:n}=r,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),o.items.push(eg(e,null,r));return o}}e5.tag="tag:yaml.org,2002:set";let e6={collection:"map",identify:e=>e instanceof Set,nodeClass:e5,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>e5.from(e,t,r),resolve(e,t){if(h(e)){if(e.hasAllNullValues(!0))return Object.assign(new e5,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function e3(e,t){let r=e[0],n="-"===r||"+"===r?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=n.replace(/_/g,"").split(":").reduce((e,t)=>e*o(60)+o(t),o(0));return"-"===r?o(-1)*i:i}function e8(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eM(e);let n="";t<0&&(n="-",t*=r(-1));let o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e9={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>e3(e,r),stringify:e8},e7={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e3(e,!1),stringify:e8},te={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(te.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,o,i,s,a]=t.map(Number),l=Date.UTC(r,n-1,o,i||0,s||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e3(u,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},tt=[eC,eD,eS,eT,eJ,e0,{identify:e1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>e2(e,2,2,r),stringify:e=>e4(e,2,"0b")},{identify:e1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>e2(e,1,8,r),stringify:e=>e4(e,8,"0")},{identify:e1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>e2(e,0,10,r),stringify:eM},{identify:e1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>e2(e,2,16,r),stringify:e=>e4(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:eM},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eM(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Z(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){let n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:eM},eU,ed,e$,eQ,e6,e9,e7,te],tr=new Map([["core",eX],["failsafe",[eC,eD,eS]],["json",eH],["yaml11",tt],["yaml-1.1",tt]]),tn={binary:eU,bool:eE,float:eP,floatExp:eN,floatNaN:ej,floatTime:e7,int:ez,intHex:eR,intOct:eF,intTime:e9,map:eC,merge:ed,null:eT,omap:e$,pairs:eQ,seq:eD,set:e6,timestamp:te},to={"tag:yaml.org,2002:binary":eU,"tag:yaml.org,2002:merge":ed,"tag:yaml.org,2002:omap":e$,"tag:yaml.org,2002:pairs":eQ,"tag:yaml.org,2002:set":e6,"tag:yaml.org,2002:timestamp":te};function ti(e,t,r){let n=tr.get(t);if(n&&!e)return r&&!n.includes(ed)?n.concat(ed):n.slice();let o=n;if(!o){if(Array.isArray(e))o=[];else{let e=Array.from(tr.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)o=o.concat(t);else"function"==typeof e&&(o=e(o.slice()));return r&&(o=o.concat(ed)),o.reduce((e,t)=>{let r="string"==typeof t?tn[t]:t;if(!r){let e=JSON.stringify(t),r=Object.keys(tn).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${r}`)}return!e.includes(r)&&e.push(r),e},[])}let ts=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class ta{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:o,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?ti(e,"compat"):e?ti(null,e):null,this.name="string"==typeof o&&o||"core",this.knownTags=n?to:{},this.tags=ti(t,this.name,r),this.toStringOptions=a??null,Object.defineProperty(this,s,{value:eC}),Object.defineProperty(this,l,{value:eS}),Object.defineProperty(this,u,{value:eD}),this.sortMapEntries="function"==typeof i?i:!0===i?ts:null}clone(){let e=Object.create(ta.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tl{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,c,{value:i});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:s}=o;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new N({version:s}),this.setSchema(s,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){let e=Object.create(tl.prototype,{[c]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=x(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){tu(this.contents)&&this.contents.add(e)}addIn(e,t){tu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=B(this);e.anchor=!t||r.has(t)?I(t||"a",r):t}return new R(e.anchor)}createNode(e,t,r){let n;if("function"==typeof t)e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),n=t}else void 0===r&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:o,anchorPrefix:i,flow:s,keepUndefined:a,onTagObj:l,tag:u}=r??{},{onAnchor:c,setAnchors:d,sourceObjects:p}=function(e,t){let r=[],n=new Map,o=null;return{onAnchor:n=>{r.push(n),o??(o=B(e));let i=I(t,o);return o.add(i),i},setAnchors:()=>{for(let e of r){let t=n.get(e);if("object"==typeof t&&t.anchor&&(m(t.node)||y(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:n}}(this,i||"a"),h={aliasDuplicateObjects:o??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:l,replacer:n,schema:this.schema,sourceObjects:p},f=W(e,u,h);return s&&y(f)&&(f.flow=!0),d(),f}createPair(e,t,r={}){let n=this.createNode(e,null,r);return new ev(n,this.createNode(t,null,r))}delete(e){return!!tu(this.contents)&&this.contents.delete(e)}deleteIn(e){if(H(e))return null!=this.contents&&(this.contents=null,!0);return!!tu(this.contents)&&this.contents.deleteIn(e)}get(e,t){return y(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return H(e)?!t&&m(this.contents)?this.contents.value:this.contents:y(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!y(this.contents)&&this.contents.has(e)}hasIn(e){return H(e)?void 0!==this.contents:!!y(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=V(this.schema,[e],t):tu(this.contents)&&this.contents.set(e,t)}setIn(e,t){H(e)?this.contents=t:null==this.contents?this.contents=V(this.schema,Array.from(e),t):tu(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new N({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new N({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new ta(Object.assign(r,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=F(this.contents,t??"",s);if("function"==typeof o)for(let{count:e,res:t}of s.anchors.values())o(t,e);return"function"==typeof i?L(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let r=[],n=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(r.push(t),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let o=el(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==r.length&&r.unshift("");let t=i(e.commentBefore);r.unshift(Y(t,""))}let s=!1,a=null;if(e.contents){if(x(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);r.push(Y(t,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>s=!0,l=eu(e.contents,o,()=>a=null,t);a&&(l+=Q(l,"",i(a))),("|"===l[0]||">"===l[0])&&"---"===r[r.length-1]?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(eu(e.contents,o));if(e.directives?.docEnd){if(e.comment){let t=i(e.comment);t.includes("\n")?(r.push("..."),r.push(Y(t,""))):r.push(`... ${t}`)}else r.push("...")}else{let t=e.comment;t&&s&&(t=t.replace(/^\n+/,"")),t&&((!s||a)&&""!==r[r.length-1]&&r.push(""),r.push(Y(i(t),"")))}return r.join("\n")+"\n"}(this,e)}}function tu(e){if(y(e))return!0;throw Error("Expected a YAML collection as document contents")}class tc extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}class td extends tc{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class tp extends tc{constructor(e,t,r){super("YAMLWarning",e,t,r)}}let th=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));let{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){let e=Math.min(i-39,s.length-79);s="…"+s.substring(e),i-=e-1}if(s.length>80&&(s=s.substring(0,79)+"…"),n>1&&/^ *$/.test(s.substring(0,i))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),s=r+s}if(/[^ ]/.test(s)){let e=1,t=r.linePos[1];t&&t.line===n&&t.col>o&&(e=Math.max(1,Math.min(t.col-o,80-i)));let a=" ".repeat(i)+"^".repeat(e);r.message+=`:
${s}
${a}
`}};function tf(e,{flow:t,indicator:r,next:n,offset:o,onError:i,parentIndent:s,startOnNewline:a}){let l=!1,u=a,c=a,d="",p="",h=!1,f=!1,m=null,g=null,y=null,x=null,b=null,w=null,_=null;for(let o of e)switch(f&&("space"!==o.type&&"newline"!==o.type&&"comma"!==o.type&&i(o.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),m&&(u&&"comment"!==o.type&&"newline"!==o.type&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),o.type){case"space":!t&&("doc-start"!==r||n?.type!=="flow-collection")&&o.source.includes(" ")&&(m=o),c=!0;break;case"comment":{!c&&i(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=o.source.substring(1)||" ";d?d+=p+e:d=e,p="",u=!1;break}case"newline":u?d?d+=o.source:(!w||"seq-item-ind"!==r)&&(l=!0):p+=o.source,u=!0,h=!0,(g||y)&&(x=o),c=!0;break;case"anchor":g&&i(o,"MULTIPLE_ANCHORS","A node can have at most one anchor"),o.source.endsWith(":")&&i(o.offset+o.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=o,_??(_=o.offset),u=!1,c=!1,f=!0;break;case"tag":y&&i(o,"MULTIPLE_TAGS","A node can have at most one tag"),y=o,_??(_=o.offset),u=!1,c=!1,f=!0;break;case r:(g||y)&&i(o,"BAD_PROP_ORDER",`Anchors and tags must be after the ${o.source} indicator`),w&&i(o,"UNEXPECTED_TOKEN",`Unexpected ${o.source} in ${t??"collection"}`),w=o,u="seq-item-ind"===r||"explicit-key-ind"===r,c=!1;break;case"comma":if(t){b&&i(o,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=o,u=!1,c=!1;break}default:i(o,"UNEXPECTED_TOKEN",`Unexpected ${o.type} token`),u=!1,c=!1}let k=e[e.length-1],C=k?k.offset+k.source.length:o;return f&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=s||n?.type==="block-map"||n?.type==="block-seq")&&i(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:w,spaceBefore:l,comment:d,hasNewline:h,anchor:g,tag:y,newlineAfterProp:x,end:C,start:_??C}}function tm(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(tm(t.key)||tm(t.value))return!0}return!1;default:return!0}}function tg(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&tm(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function tv(e,t,r){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let o="function"==typeof n?n:(e,t)=>e===t||m(e)&&m(t)&&e.value===t.value;return t.some(e=>o(e.key,r))}let ty="All mapping items must start at the same column";function tx(e,t,r,n){let o="";if(e){let i=!1,s="";for(let a of e){let{source:e,type:l}=a;switch(l){case"space":i=!0;break;case"comment":{r&&!i&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";o?o+=s+t:o=t,s="";break}case"newline":o&&(s+=e),i=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:o,offset:t}}let tb="Block collections are not allowed within flow collections",tw=e=>e&&("block-map"===e.type||"block-seq"===e.type);function t_(e,t,r,n,o,i){let s="block-map"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,o,i){let s=new(i?.nodeClass??ek)(r.schema);r.atRoot&&(r.atRoot=!1);let a=n.offset,l=null;for(let i of n.items){let{start:u,key:c,sep:d,value:p}=i,h=tf(u,{indicator:"explicit-key-ind",next:c??d?.[0],offset:a,onError:o,parentIndent:n.indent,startOnNewline:!0}),f=!h.found;if(f){if(c&&("block-seq"===c.type?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==n.indent&&o(a,"BAD_INDENT",ty)),!h.anchor&&!h.tag&&!d){l=h.end,h.comment&&(s.comment?s.comment+="\n"+h.comment:s.comment=h.comment);continue}(h.newlineAfterProp||tm(c))&&o(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&o(a,"BAD_INDENT",ty);r.atKey=!0;let m=h.end,g=c?e(r,c,h,o):t(r,m,u,null,h,o);r.schema.compat&&tg(n.indent,c,o),r.atKey=!1,tv(r,s.items,g)&&o(m,"DUPLICATE_KEY","Map keys must be unique");let y=tf(d??[],{indicator:"map-value-ind",next:p,offset:g.range[2],onError:o,parentIndent:n.indent,startOnNewline:!c||"block-scalar"===c.type});if(a=y.end,y.found){f&&(p?.type==="block-map"&&!y.hasNewline&&o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&h.start<y.found.offset-1024&&o(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=p?e(r,p,y,o):t(r,a,d,null,y,o);r.schema.compat&&tg(n.indent,p,o),a=l.range[2];let u=new ev(g,l);r.options.keepSourceTokens&&(u.srcToken=i),s.items.push(u)}else{f&&o(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);let e=new ev(g);r.options.keepSourceTokens&&(e.srcToken=i),s.items.push(e)}}return l&&l<a&&o(l,"IMPOSSIBLE","Map comment with trailing content"),s.range=[n.offset,a,l??a],s}(e,t,r,n,i):"block-seq"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,o,i){let s=new(i?.nodeClass??eA)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let a=n.offset,l=null;for(let{start:i,value:u}of n.items){let c=tf(i,{indicator:"seq-item-ind",next:u,offset:a,onError:o,parentIndent:n.indent,startOnNewline:!0});if(!c.found){if(c.anchor||c.tag||u)u&&"block-seq"===u.type?o(c.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{l=c.end,c.comment&&(s.comment=c.comment);continue}}let d=u?e(r,u,c,o):t(r,c.end,i,null,c,o);r.schema.compat&&tg(n.indent,u,o),a=d.range[2],s.items.push(d)}return s.range=[n.offset,a,l??a],s}(e,t,r,n,i):function({composeNode:e,composeEmptyNode:t},r,n,o,i){let s="{"===n.start.source,a=s?"flow map":"flow sequence",l=new(i?.nodeClass??(s?ek:eA))(r.schema);l.flow=!0;let u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset+n.start.source.length;for(let i=0;i<n.items.length;++i){let u=n.items[i],{start:d,key:p,sep:h,value:m}=u,g=tf(d,{flow:a,indicator:"explicit-key-ind",next:p??h?.[0],offset:c,onError:o,parentIndent:n.indent,startOnNewline:!1});if(!g.found){if(!g.anchor&&!g.tag&&!h&&!m){0===i&&g.comma?o(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):i<n.items.length-1&&o(g.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),g.comment&&(l.comment?l.comment+="\n"+g.comment:l.comment=g.comment),c=g.end;continue}!s&&r.options.strict&&tm(p)&&o(p,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===i)g.comma&&o(g.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(!g.comma&&o(g.start,"MISSING_CHAR",`Missing , between ${a} items`),g.comment){let e="";a:for(let t of d)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break a;default:break a}if(e){let t=l.items[l.items.length-1];f(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,g.comment=g.comment.substring(e.length+1)}}if(s||h||g.found){r.atKey=!0;let i=g.end,f=p?e(r,p,g,o):t(r,i,d,null,g,o);tw(p)&&o(f.range,"BLOCK_IN_FLOW",tb),r.atKey=!1;let y=tf(h??[],{flow:a,indicator:"map-value-ind",next:m,offset:f.range[2],onError:o,parentIndent:n.indent,startOnNewline:!1});if(y.found){if(!s&&!g.found&&r.options.strict){if(h)for(let e of h){if(e===y.found)break;if("newline"===e.type){o(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}g.start<y.found.offset-1024&&o(y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else m&&("source"in m&&m.source&&":"===m.source[0]?o(m,"MISSING_CHAR",`Missing space after : in ${a}`):o(y.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let x=m?e(r,m,y,o):y.found?t(r,y.end,h,null,y,o):null;x?tw(m)&&o(x.range,"BLOCK_IN_FLOW",tb):y.comment&&(f.comment?f.comment+="\n"+y.comment:f.comment=y.comment);let b=new ev(f,x);if(r.options.keepSourceTokens&&(b.srcToken=u),s)tv(r,l.items,f)&&o(i,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(b);else{let e=new ek(r.schema);e.flow=!0,e.items.push(b);let t=(x??f).range;e.range=[f.range[0],t[1],t[2]],l.items.push(e)}c=x?x.range[2]:y.end}else{let n=m?e(r,m,g,o):t(r,g.end,h,null,g,o);l.items.push(n),c=n.range[2],tw(m)&&o(n.range,"BLOCK_IN_FLOW",tb)}}let d=s?"}":"]",[p,...h]=n.end,m=c;if(p&&p.source===d)m=p.offset+p.source.length;else{let e=a[0].toUpperCase()+a.substring(1),t=u?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;o(c,u?"MISSING_CHAR":"BAD_INDENT",t),p&&1!==p.source.length&&h.unshift(p)}if(h.length>0){let e=tx(h,m,r.options.strict,o);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[n.offset,m,e.offset]}else l.range=[n.offset,m,m];return l}(e,t,r,n,i),a=s.constructor;return"!"===o||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function tk(e){let t,r;try{t=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),r=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let o=n[1],i=" ",s=t.lastIndex;for(r.lastIndex=s;n=r.exec(e);)""===n[1]?"\n"===i?o+=i:i="\n":(o+=i+n[1],i=" "),s=r.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=s,n=a.exec(e),o+i+(n?.[1]??"")}let tC={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function tA(e,t,r,n){let o,i;let{value:s,type:a,comment:u,range:c}="block-scalar"===t.type?function(e,t,r){let n=t.offset,o=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:o}=t[0],i=o[0],s=0,a="",l=-1;for(let t=1;t<o.length;++t){let r=o[t];if(a||"-"!==r&&"+"!==r){let n=Number(r);!s&&n?s=n:-1===l&&(l=e+t)}else a=r}-1!==l&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,c="",d=o.length;for(let e=1;e<t.length;++e){let o=t[e];switch(o.type){case"space":u=!0;case"newline":d+=o.source.length;break;case"comment":r&&!u&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=o.source.length,c=o.source.substring(1);break;case"error":n(o,"UNEXPECTED_TOKEN",o.message),d+=o.source.length;break;default:{let e=`Unexpected token in block scalar header: ${o.type}`;n(o,"UNEXPECTED_TOKEN",e);let t=o.source;t&&"string"==typeof t&&(d+=t.length)}}}return{mode:i,indent:s,chomp:a,comment:c,length:d}}(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};let i=">"===o.mode?Z.BLOCK_FOLDED:Z.BLOCK_LITERAL,s=t.source?function(e){let t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),o=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)o.push([t[e],t[e+1]]);return o}(t.source):[],a=s.length;for(let e=s.length-1;e>=0;--e){let t=s[e][1];if(""===t||"\r"===t)a=e;else break}if(0===a){let e="+"===o.chomp&&s.length>0?"\n".repeat(Math.max(1,s.length-1)):"",r=n+o.length;return t.source&&(r+=t.source.length),{value:e,type:i,comment:o.comment,range:[n,r,r]}}let l=t.indent+o.indent,u=t.offset+o.length,c=0;for(let t=0;t<a;++t){let[n,i]=s[t];if(""===i||"\r"===i)0===o.indent&&n.length>l&&(l=n.length);else{n.length<l&&r(u+n.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===o.indent&&(l=n.length),c=t,0===l&&!e.atRoot&&r(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=n.length+i.length+1}for(let e=s.length-1;e>=a;--e)s[e][0].length>l&&(a=e+1);let d="",p="",h=!1;for(let e=0;e<c;++e)d+=s[e][0].slice(l)+"\n";for(let e=c;e<a;++e){let[t,n]=s[e];u+=t.length+n.length+1;let a="\r"===n[n.length-1];if(a&&(n=n.slice(0,-1)),n&&t.length<l){let e=o.indent?"explicit indentation indicator":"first line",i=`Block scalar lines must not be less indented than their ${e}`;r(u-n.length-(a?2:1),"BAD_INDENT",i),t=""}i===Z.BLOCK_LITERAL?(d+=p+t.slice(l)+n,p="\n"):t.length>l||" "===n[0]?(" "===p?p="\n":!h&&"\n"===p&&(p="\n\n"),d+=p+t.slice(l)+n,p="\n",h=!0):""===n?"\n"===p?d+="\n":p="\n":(d+=p+n,p=" ",h=!1)}switch(o.chomp){case"-":break;case"+":for(let e=a;e<s.length;++e)d+="\n"+s[e][0].slice(l);"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}let f=n+o.length+t.source.length;return{value:d,type:i,comment:o.comment,range:[n,f,f]}}(e,t,n):function(e,t,r){let n,o;let{offset:i,type:s,source:a,end:l}=e,u=(e,t,n)=>r(i+e,t,n);switch(s){case"scalar":n=Z.PLAIN,o=function(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),tk(e)}(a,u);break;case"single-quoted-scalar":n=Z.QUOTE_SINGLE,o=function(e,t){return("'"!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),tk(e.slice(1,-1)).replace(/''/g,"'")}(a,u);break;case"double-quoted-scalar":n=Z.QUOTE_DOUBLE,o=function(e,t){let r="";for(let n=1;n<e.length-1;++n){let o=e[n];if("\r"!==o||"\n"!==e[n+1]){if("\n"===o){let{fold:t,offset:o}=function(e,t){let r="",n=e[t+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[t+2]);){;"\n"===n&&(r+="\n"),t+=1,n=e[t+1]}return!r&&(r=" "),{fold:r,offset:t}}(e,n);r+=t,n=o}else if("\\"===o){let o=e[++n],i=tC[o];if(i)r+=i;else if("\n"===o)for(o=e[n+1];" "===o||" "===o;)o=e[++n+1];else if("\r"===o&&"\n"===e[n+1])for(o=e[++n+1];" "===o||" "===o;)o=e[++n+1];else if("x"===o||"u"===o||"U"===o){let i={x:2,u:4,U:8}[o];r+=function(e,t,r,n){let o=e.substr(t,r),i=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){let o=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(i)}(e,n+1,i,t),n+=i}else{let o=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),r+=o}}else if(" "===o||" "===o){let t=n,i=e[n+1];for(;" "===i||" "===i;)i=e[++n+1];"\n"!==i&&!("\r"===i&&"\n"===e[n+2])&&(r+=n>t?e.slice(t,n+1):o)}else r+=o}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(a,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[i,i+a.length,i+a.length]}}let c=i+a.length,d=tx(l,c,t,r);return{value:o,type:n,comment:d.comment,range:[i,c,d.offset]}}(t,e.options.strict,n),d=r?e.directives.tagName(r.source,e=>n(r,"TAG_RESOLVE_FAILED",e)):null;o=e.options.stringKeys&&e.atKey?e.schema[l]:d?function(e,t,r,n,o){if("!"===r)return e[l];let i=[];for(let t of e.tags)if(!t.collection&&t.tag===r){if(!t.default||!t.test)return t;i.push(t)}for(let e of i)if(e.test?.test(t))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[l])}(e.schema,s,d,r,n):"scalar"===t.type?function({atKey:e,directives:t,schema:r},n,o,i){let s=r.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(n))||r[l];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(n))??r[l];if(s.tag!==e.tag){let r=t.tagString(s.tag),n=t.tagString(e.tag);i(o,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${r} or ${n}`,!0)}}return s}(e,s,t,n):e.schema[l];try{let a=o.resolve(s,e=>n(r??t,"TAG_RESOLVE_FAILED",e),e.options);i=m(a)?a:new Z(a)}catch(e){n(r??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),i=new Z(s)}return i.range=c,i.source=s,a&&(i.type=a),d&&(i.tag=d),o.format&&(i.format=o.format),u&&(i.comment=u),i}let tO={composeNode:tD,composeEmptyNode:tS};function tD(e,t,r,n){let o;let i=e.atKey,{spaceBefore:s,comment:a,anchor:l,tag:u}=r,c=!0;switch(t.type){case"alias":o=function({options:e},{offset:t,source:r,end:n},o){let i=new R(r.substring(1));""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+r.length,a=tx(n,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}(e,t,n),(l||u)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":o=tA(e,t,u,n),l&&(o.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":o=function(e,t,r,n,o){let i=n.tag,s=i?t.directives.tagName(i.source,e=>o(i,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===r.type){let{anchor:e,newlineAfterProp:t}=n,r=e&&i?e.offset>i.offset?e:i:e??i;r&&(!t||t.offset<r.offset)&&o(r,"MISSING_CHAR","Missing newline after block sequence props")}let a="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!i||!s||"!"===s||s===ek.tagName&&"map"===a||s===eA.tagName&&"seq"===a)return t_(e,t,r,o,s);let l=t.schema.tags.find(e=>e.tag===s&&e.collection===a);if(!l){let n=t.schema.knownTags[s];if(!n||n.collection!==a)return n?o(i,"BAD_COLLECTION_TYPE",`${n.tag} used for ${a} collection, but expects ${n.collection??"scalar"}`,!0):o(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),t_(e,t,r,o,s);t.schema.tags.push(Object.assign({},n,{default:!1})),l=n}let u=t_(e,t,r,o,s,l),c=l.resolve?.(u,e=>o(i,"TAG_RESOLVE_FAILED",e),t.options)??u,d=x(c)?c:new Z(c);return d.range=u.range,d.tag=s,l?.format&&(d.format=l.format),d}(tO,e,t,r,n),l&&(o.anchor=l.source.substring(1));break;default:{let i="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",i),o=tS(e,t.offset,void 0,null,r,n),c=!1}}return l&&""===o.anchor&&n(l,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!m(o)||"string"!=typeof o.value||o.tag&&"tag:yaml.org,2002:str"!==o.tag)&&n(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(o.spaceBefore=!0),a&&("scalar"===t.type&&""===t.source?o.comment=a:o.commentBefore=a),e.options.keepSourceTokens&&c&&(o.srcToken=t),o}function tS(e,t,r,n,{spaceBefore:o,comment:i,anchor:s,tag:a,end:l},u){let c=tA(e,{type:"scalar",offset:function(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];r?.type==="space";)e+=r.source.length,r=t[++n];break}}return e}(t,r,n),indent:-1,source:""},a,u);return s&&(c.anchor=s.source.substring(1),""===c.anchor&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(c.spaceBefore=!0),i&&(c.comment=i,c.range[2]=l),c}function tT(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function tE(e){let t="",r=!1,n=!1;for(let o=0;o<e.length;++o){let i=e[o];switch(i[0]){case"#":t+=(""===t?"":n?"\n\n":"\n")+(i.substring(1)||" "),r=!0,n=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),r=!1;break;default:!r&&(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}class tM{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,n)=>{let o=tT(e);n?this.warnings.push(new tp(o,t,r)):this.errors.push(new td(o,t,r))},this.directives=new N({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:r,afterEmptyLine:n}=tE(this.prelude);if(r){let o=e.contents;if(t)e.comment=e.comment?`${e.comment}
${r}`:r;else if(n||e.directives.docStart||!o)e.commentBefore=r;else if(y(o)&&!o.flow&&o.items.length>0){let e=o.items[0];f(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${r}
${t}`:r}else{let e=o.commentBefore;o.commentBefore=e?`${r}
${e}`:r}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:tE(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,r,n)=>{let o=tT(e);o[0]+=t,this.onError(o,"BAD_DIRECTIVE",r,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:r,start:n,value:o,end:i},s){let a=new tl(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},u=tf(n,{indicator:"doc-start",next:o??i?.[0],offset:r,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(a.directives.docStart=!0,o&&("block-map"===o.type||"block-seq"===o.type)&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=o?tD(l,o,u,s):tS(l,u.end,n,null,u,s);let c=a.contents.range[2],d=tx(i,c,!1,s);return d.comment&&(a.comment=d.comment),a.range=[r,c,d.offset],a}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new td(tT(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){this.errors.push(new td(tT(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=tx(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new td(tT(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new tl(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}let tj=Symbol("break visit"),tN=Symbol("skip children"),tP=Symbol("remove item");function tB(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,r,n){let o=n(r,t);if("symbol"==typeof o)return o;for(let i of["key","value"]){let s=r[i];if(s&&"items"in s){for(let r=0;r<s.items.length;++r){let o=e(Object.freeze(t.concat([[i,r]])),s.items[r],n);if("number"==typeof o)r=o-1;else{if(o===tj)return tj;o===tP&&(s.items.splice(r,1),r-=1)}}"function"==typeof o&&"key"===i&&(o=o(r,t))}}return"function"==typeof o?o(r,t):o}(Object.freeze([]),e,t)}tB.BREAK=tj,tB.SKIP=tN,tB.REMOVE=tP,tB.itemAtPath=(e,t)=>{let r=e;for(let[e,n]of t){let t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},tB.parentCollection=(e,t)=>{let r=tB.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r?.[n];if(o&&"items"in o)return o;throw Error("Parent collection not found")};function tI(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let tL=new Set("0123456789ABCDEFabcdef"),tF=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),tz=new Set(",[]{}"),tR=new Set(" ,[]{}\n\r "),tX=e=>!e||tR.has(e);class tZ{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){let t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"!==t&&!(r>=this.indentNext)&&(t||this.atEnd)?-1:e+r}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tI(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){let n=e[r-1];if(" "===n||" "===n){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){let r=e[t-1];if(" "===r||" "===r)t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&tI(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!tI(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&tI(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(tX),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==n[0]||0===r&&(n.startsWith("---")||n.startsWith("..."))&&tI(n[3]))&&!(r===this.indentNext-1&&1===this.flowLevel&&("]"===n[0]||"}"===n[0])))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let o=0;for(;","===n[o];)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n[o+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(tX),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tI(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let r=this.buffer.substring(0,t),n=r.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){let e=this.continueScalar(n+1);if(-1===e)break;n=r.indexOf("\n",e)}-1!==n&&(t=n-("\r"===r[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>tI(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;a:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break a}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let o=e;for(;" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+r>o)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(tI(e)||t&&tz.has(e))break;r=n}else if(tI(e)){let o=this.buffer[n+1];if("\r"===e&&("\n"===o?(n+=1,e="\n",o=this.buffer[n+1]):r=n),"#"===o||t&&tz.has(o))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(t&&tz.has(e))break;r=n}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(r+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(tX))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(tI(t)||e&&tz.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tI(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(tF.has(t))t=this.buffer[++e];else if("%"===t&&tL.has(this.buffer[e+1])&&tL.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do t=this.buffer[++r];while(" "===t||e&&" "===t);let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function tW(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function tV(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function tH(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function tU(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function tq(e){if(0===e.length)return[];let t=e.length;a:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break a}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function tY(e){if("flow-seq-start"===e.start.type)for(let t of e.items)t.sep&&!t.value&&!tW(t.start,"explicit-key-ind")&&!tW(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,tH(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class tQ{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new tZ,this.onNewLine=e}*parse(e,t=!1){for(let r of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(r);!t&&(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=function(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&tY(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{let r=e.items[e.items.length-1];!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===tV(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==tV(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t;let r=tq(tU(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;n?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let r=!this.onKeyLine&&this.indent===e.indent,n=r&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,o=[];if(n&&t.sep&&!t.value){let r=[];for(let n=0;n<t.sep.length;++n){let o=t.sep[n];switch(o.type){case"newline":r.push(n);break;case"space":break;case"comment":o.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(o=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?n||t.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(tW(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(tH(t.key)&&!tW(t.sep,"newline")){let e=tq(t.start),r=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else o.length>0?t.sep=t.sep.concat(o,this.sourceToken):t.sep.push(this.sourceToken)}else if(tW(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=tq(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||n?e.items.push({start:o,key:null,sep:[this.sourceToken]}):tW(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);n||t.value?(e.items.push({start:o,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!t.explicitKey&&t.sep&&!tW(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&e.items.push({start:o});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;n?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||tW(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let r=tq(tU(t));tY(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=tq(tU(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=tq(tU(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class tG{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){let n=t+r>>1;this.lineStarts[n]<e?t=n+1:r=n}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}function t$(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);let o=function(e,t={}){let{lineCounter:r,prettyErrors:n}=function(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new tG||null,prettyErrors:t}}(t),o=new tQ(r?.addNewLine),i=new tM(t),s=null;for(let t of i.compose(o.parse(e),!0,e.length))if(s){if("silent"!==s.options.logLevel){s.errors.push(new td(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else s=t;return n&&r&&(s.errors.forEach(th(e,r)),s.warnings.forEach(th(e,r))),s}(e,r);if(!o)return null;if(o.warnings.forEach(e=>ec(o.options.logLevel,e)),o.errors.length>0){if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function tK(e,t,r){let n=null;if("function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t),"string"==typeof r&&(r=r.length),"number"==typeof r){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=r??t??{};if(!e)return}return p(e)&&!n?e.toString(r):new tl(e,n,r).toString(r)}}}]);
//# sourceMappingURL=7830.3554c497.js.map