@techdocs/cli 1.11.1 → 1.11.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/embedded-app/.config-schema.json +1967 -1200
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/123.bcb96abf.chunk.js +2 -0
- package/dist/embedded-app/static/123.bcb96abf.chunk.js.map +1 -0
- package/dist/embedded-app/static/1659.fe3e020b.chunk.js +2 -0
- package/dist/embedded-app/static/1659.fe3e020b.chunk.js.map +1 -0
- package/dist/embedded-app/static/3641.2f6dbbcb.chunk.js +2 -0
- package/dist/embedded-app/static/3641.2f6dbbcb.chunk.js.map +1 -0
- package/dist/embedded-app/static/3641.3641.9c1b1a2e.css +2 -0
- package/dist/embedded-app/static/3641.3641.9c1b1a2e.css.map +1 -0
- package/dist/embedded-app/static/4587.9946f651.chunk.js +2 -0
- package/dist/embedded-app/static/4587.9946f651.chunk.js.map +1 -0
- package/dist/embedded-app/static/{5443.fa47af87.chunk.js → 5443.835e027f.chunk.js} +2 -2
- package/dist/embedded-app/static/{5443.fa47af87.chunk.js.map → 5443.835e027f.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3939.3939.44355183.css → 5954.5954.8056ed76.css} +1 -1
- package/dist/embedded-app/static/{3939.3939.44355183.css.map → 5954.5954.8056ed76.css.map} +1 -1
- package/dist/embedded-app/static/5954.f0710c0b.chunk.js +2 -0
- package/dist/embedded-app/static/5954.f0710c0b.chunk.js.map +1 -0
- package/dist/embedded-app/static/{4815.b2bde1a3.chunk.js → 7213.e2116c72.chunk.js} +2 -2
- package/dist/embedded-app/static/7213.e2116c72.chunk.js.map +1 -0
- package/dist/embedded-app/static/{7226.8c68c3d3.chunk.js → 7226.07a43ca6.chunk.js} +2 -2
- package/dist/embedded-app/static/7226.07a43ca6.chunk.js.map +1 -0
- package/dist/embedded-app/static/{7477.a970d20a.chunk.js → 7227.69beafef.chunk.js} +5 -5
- package/dist/embedded-app/static/7227.69beafef.chunk.js.map +1 -0
- package/dist/embedded-app/static/{main.728cdf6e.css → main.2a45aed3.css} +2 -2
- package/dist/embedded-app/static/main.2a45aed3.css.map +1 -0
- package/dist/embedded-app/static/main.3aa6c085.js +523 -0
- package/dist/embedded-app/static/main.3aa6c085.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.972bd852.js → module-material-ui.0bea4977.js} +2 -2
- package/dist/embedded-app/static/module-material-ui.0bea4977.js.map +1 -0
- package/dist/embedded-app/static/module-react-aria-components.edebf589.js +2 -0
- package/dist/embedded-app/static/module-react-aria-components.edebf589.js.map +1 -0
- package/dist/embedded-app/static/module-react-aria.84a78dd1.js +13 -0
- package/dist/embedded-app/static/module-react-aria.84a78dd1.js.map +1 -0
- package/dist/embedded-app/static/{module-react-stately.97fc37eb.js → module-react-stately.3db88231.js} +2 -2
- package/dist/embedded-app/static/module-react-stately.3db88231.js.map +1 -0
- package/dist/embedded-app/static/module-remixicon.4e40b5b6.js +2 -0
- package/dist/embedded-app/static/{module-remixicon.0feb7353.js.map → module-remixicon.4e40b5b6.js.map} +1 -1
- package/dist/embedded-app/static/{runtime.8fda57a9.js → runtime.9fcbc8ae.js} +2 -2
- package/dist/embedded-app/static/runtime.9fcbc8ae.js.map +1 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +7 -7
- package/dist/embedded-app/static/123.59719fa4.chunk.js +0 -2
- package/dist/embedded-app/static/123.59719fa4.chunk.js.map +0 -1
- package/dist/embedded-app/static/1659.6b3694d1.chunk.js +0 -2
- package/dist/embedded-app/static/1659.6b3694d1.chunk.js.map +0 -1
- package/dist/embedded-app/static/3939.265160c5.chunk.js +0 -2
- package/dist/embedded-app/static/3939.265160c5.chunk.js.map +0 -1
- package/dist/embedded-app/static/4587.baab3514.chunk.js +0 -2
- package/dist/embedded-app/static/4587.baab3514.chunk.js.map +0 -1
- package/dist/embedded-app/static/4815.b2bde1a3.chunk.js.map +0 -1
- package/dist/embedded-app/static/7226.8c68c3d3.chunk.js.map +0 -1
- package/dist/embedded-app/static/7477.a970d20a.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.728cdf6e.css.map +0 -1
- package/dist/embedded-app/static/main.fbc1b502.js +0 -523
- package/dist/embedded-app/static/main.fbc1b502.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.972bd852.js.map +0 -1
- package/dist/embedded-app/static/module-react-aria-components.ab7cc6df.js +0 -2
- package/dist/embedded-app/static/module-react-aria-components.ab7cc6df.js.map +0 -1
- package/dist/embedded-app/static/module-react-aria.e3e38de1.js +0 -13
- package/dist/embedded-app/static/module-react-aria.e3e38de1.js.map +0 -1
- package/dist/embedded-app/static/module-react-stately.97fc37eb.js.map +0 -1
- package/dist/embedded-app/static/module-remixicon.0feb7353.js +0 -2
- package/dist/embedded-app/static/runtime.8fda57a9.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["7477"],{71407(e,t,n){"use strict";var s=n(4293),i=n(78920);t.default=void 0;var r=i(n(14041));t.default=(0,s(n(74044)).default)(r.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert")},86912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73788(e){e.exports=function(e,t,n,s){for(var i=-1,r=null==e?0:e.length;++i<r;){var o=e[i];t(s,o,n(o),e)}return s}},82226(e,t,n){var s=n(84570);e.exports=function(e,t,n,i){return s(e,function(e,s,r){t(i,e,n(e),r)}),i}},84570(e,t,n){var s=n(47170);e.exports=n(45770)(s)},90313(e,t,n){var s=n(11129),i=n(20714);e.exports=function e(t,n,r,o,l){var a=-1,c=t.length;for(r||(r=i),l||(l=[]);++a<c;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,o,l):s(l,u):o||(l[l.length]=u)}return l}},41393(e,t,n){var s=n(84570),i=n(36529);e.exports=function(e,t){var n=-1,r=i(e)?Array(e.length):[];return s(e,function(e,s,i){r[++n]=t(e,s,i)}),r}},70310(e,t,n){var s=n(65111),i=n(57923),r=n(3334),o=n(41393),l=n(50642),a=n(49460),c=n(46775),u=n(22053),f=n(53142);e.exports=function(e,t,n){t=t.length?s(t,function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[u];var h=-1;return t=s(t,a(r)),l(o(e,function(e,n,i){return{criteria:s(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return c(e,t,n)})}},23945(e,t,n){var s=n(22053),i=n(75234),r=n(80796);e.exports=function(e,t){return r(i(e,t,s),e+"")}},47403(e,t,n){var s=n(82619),i=n(72532),r=n(22053);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:s(t),writable:!0})}:r},50642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},63521(e,t,n){var s=n(51187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,o=s(e),l=void 0!==t,a=null===t,c=t==t,u=s(t);if(!a&&!u&&!o&&e>t||o&&l&&c&&!a&&!u||i&&l&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||a&&n&&r||!l&&r||!c)return -1}return 0}},46775(e,t,n){var s=n(63521);e.exports=function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,l=r.length,a=n.length;++i<l;){var c=s(r[i],o[i]);if(c){if(i>=a)return c;return c*("desc"==n[i]?-1:1)}}return e.index-t.index}},72195(e,t,n){var s=n(73788),i=n(82226),r=n(3334),o=n(53142);e.exports=function(e,t){return function(n,l){var a=o(n)?s:i,c=t?t():{};return a(n,e,r(l,2),c)}}},45770(e,t,n){var s=n(36529);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!s(n))return e(n,i);for(var r=n.length,o=t?r:-1,l=Object(n);(t?o--:++o<r)&&!1!==i(l[o],o,l););return n}}},20714(e,t,n){var s=n(65650),i=n(3283),r=n(53142),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||i(e)||!!(o&&e&&e[o])}},74535(e,t,n){var s=n(46285),i=n(36529),r=n(69632),o=n(41580);e.exports=function(e,t,n){if(!o(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&r(t,n.length)):"string"==l&&t in n)&&s(n[t],e)}},75234(e,t,n){var s=n(86912),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,l=i(r.length-t,0),a=Array(l);++o<l;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),s(e,this,c)}}},80796(e,t,n){var s=n(47403);e.exports=n(3316)(s)},3316(e){var t=Date.now;e.exports=function(e){var n=0,s=0;return function(){var i=t(),r=16-(i-s);if(s=i,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},82619(e){e.exports=function(e){return function(){return e}}},87809(e,t,n){var s=n(57073),i=n(72195),r=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){r.call(e,n)?e[n].push(t):s(e,n,[t])})},40074(e,t,n){var s=n(90313),i=n(70310),r=n(23945),o=n(74535);e.exports=r(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,s(t,1),[])})},15784(e,t,n){"use strict";n.d(t,{vw:()=>et,LY:()=>Z,CR:()=>Q});var s=n(57873),i=n(95288),r=n(87313),o=n(41181),l=n(82072),a=n(23413),c=n(91832),u=n(84351),f=n(94816),h=n(59878);let d=new WeakMap;function p(e,t){var n;let{id:s}=d.get(e)??{};if(!s)throw Error("Unknown list");return`${s}-${"string"==typeof(n=t)?n.replace(/\s*/g,""):""+n}`}var m=n(28052),y=n(65095),g=n(46713),b=n(57648),v=n(47499),k=n(36794),w=n(33875),S=n(64306),E=n(28176),N=n(66030),O=n(14041);let A=new WeakMap;var L={};L={"ar-AE":{removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."},"bg-BG":{removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xedm kl\xe1vesy Delete odeberete značku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xe5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf „L\xf6schen“ dr\xfccken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’\xe9tiquette."},"he-IL":{removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xe1vol\xedt\xe1s",removeDescription:"Nyomja meg a Delete billentyűt a c\xedmke elt\xe1vol\xedt\xe1s\xe1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"},"ko-KR":{removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."},"lt-LT":{removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."},"lv-LV":{removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xe5 Slett for \xe5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xcendepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."},"sk-SK":{removeButtonLabel:"Odstr\xe1niť",removeDescription:"Ak chcete odstr\xe1niť značku, stlačte kl\xe1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xe5 Radera f\xf6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak i\xe7in Sil tuşuna basın."},"uk-UA":{removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."},"zh-CN":{removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"},"zh-TW":{removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"}};var x=n(38919),T=n(73817),I=n(23977),$=n(78484),D=n(34122),C=n(56059),B=n(21317),_=n(81901),M=n(25435),K=n(95783),P=n(90970);let j={ltr:"ArrowRight",rtl:"ArrowLeft"},q={ltr:"ArrowLeft",rtl:"ArrowRight"};function R(e){let t=null,n=null;do(n=e.lastChild())&&(t=n);while(n);return t}var U=n(44018),F=n(87426),V=n(3453),J=n(7553),W=n(86414),z=n(44031),Y=n(54469);let G=(0,O.createContext)(null),H=(0,O.createContext)(null),Q=(0,O.forwardRef)(function(e,t){return[e,t]=(0,i.JT)(e,t,G),O.createElement(l.DN.Provider,{value:null},O.createElement(F.GQ,{content:e.children},n=>O.createElement(X,{props:e,forwardedRef:t,collection:n})))});function X({props:e,forwardedRef:t,collection:n}){let s=(0,O.useRef)(null),{id:r,...c}=e;[c,s]=(0,i.JT)(c,s,a.Co);let{filter:u,shouldUseVirtualFocus:p,...L}=c,[x,T]=(0,i._E)(!e["aria-label"]&&!e["aria-labelledby"]),I=(0,J.p)({...L,children:void 0,collection:n}),$=(0,J.Z)(I,u),D=(0,h.$)(c,{global:!0}),C=Object.fromEntries(Object.entries(D).map(([e,t])=>[e,"id"===e?t:void 0])),{gridProps:B,labelProps:_,descriptionProps:M,errorMessageProps:K}=function(e,t,n){let{direction:s}=(0,N.Y)(),i=e.keyboardDelegate||new(0,w.n)({collection:t.collection,ref:n,orientation:"horizontal",direction:s,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:o,descriptionProps:l,errorMessageProps:a}=(0,S.M)({...e,labelElementType:"span"}),{gridProps:c}=function(e,t,n){let{isVirtualized:s,keyboardDelegate:i,layoutDelegate:r,onAction:o,disallowTypeAhead:l,linkBehavior:a="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:f}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}=(0,k.y)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:r,isVirtualized:s,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:a,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:u}),w=(0,v.Bi)(e.id);d.set(t,{id:w,onAction:o,linkBehavior:a,keyboardNavigationBehavior:c,shouldSelectOnPressUp:f});let S=(0,b.m)({selectionManager:t.selectionManager,hasItemActions:!!o}),E=(0,g.$)(n,{isDisabled:0!==t.collection.size}),N=(0,h.$)(e,{labelable:!0}),O=(0,m.v)(N,{role:"grid",id:w,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:E?-1:0}:p,S);return s&&(O["aria-rowcount"]=t.collection.size,O["aria-colcount"]=1),(0,y.H)({},t),{gridProps:O}}({...e,...o,keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,n),[u,f]=(0,O.useState)(!1),{focusWithinProps:p}=(0,E.R)({onFocusWithinChange:f}),L=(0,h.$)(e),x=(0,O.useRef)(t.collection.size);return(0,O.useEffect)(()=>{n.current&&x.current>0&&0===t.collection.size&&u&&n.current.focus(),x.current=t.collection.size},[t.collection.size,u,n]),A.set(t,{onRemove:e.onRemove}),{gridProps:(0,m.v)(c,L,{role:t.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...p,...o}),labelProps:r,descriptionProps:l,errorMessageProps:a}}({...L,...C,label:T},$,s);return O.createElement(i.tT.div,{render:e.render,...D,id:r,ref:t,slot:e.slot||void 0,className:e.className??"react-aria-TagGroup",style:e.style},O.createElement(i.Kq,{values:[[o.I,{..._,elementType:"span",ref:x}],[H,{...B,ref:s}],[l.DN,$],[f.h,{slots:{description:M,errorMessage:K}}]]},e.children))}let Z=(0,O.forwardRef)(function(e,t){return(0,O.useContext)(l.DN)?O.createElement(ee,{props:e,forwardedRef:t}):O.createElement(F.pM,e)});function ee({props:e,forwardedRef:t}){let n=(0,O.useContext)(l.DN),{CollectionRoot:s}=(0,O.useContext)(r.zL),[o,a]=(0,i.JT)({},t,H),{focusProps:c,isFocused:f,isFocusVisible:d}=(0,W.o)(),p={isEmpty:0===n.collection.size,isFocused:f,isFocusVisible:d,state:n},y=(0,i.Sl)({...e,children:void 0,defaultClassName:"react-aria-TagList",values:p}),g=(0,r.l2)(n.selectionManager.focusedKey),b=(0,h.$)(e,{global:!0});return O.createElement(i.tT.div,{...(0,m.v)(b,y,o,c),ref:a,"data-empty":0===n.collection.size||void 0,"data-focused":f||void 0,"data-focus-visible":d||void 0},O.createElement(u.D,null,0===n.collection.size&&e.renderEmptyState?e.renderEmptyState(p):O.createElement(s,{collection:n.collection,persistedKeys:g})))}let et=(0,F.KU)(V._B,(e,t,n)=>{let o=(0,O.useContext)(l.DN),a=(0,Y.U)(t),{focusProps:u,isFocusVisible:f}=(0,W.o)({within:!1}),{rowProps:y,gridCellProps:g,removeButtonProps:b,...k}=function(e,t,n){var s;let{item:i}=e,r=(0,U.o)((s=L)&&s.__esModule?s.default:s,"@react-aria/tag"),o=(0,v.Bi)(),{onRemove:l}=A.get(t)||{},{rowProps:a,gridCellProps:c,...u}=function(e,t,n){let{node:s,isVirtualized:i}=e,{direction:r}=(0,N.Y)(),{onAction:o,linkBehavior:l,keyboardNavigationBehavior:a,shouldSelectOnPressUp:c}=d.get(t),u=(0,v.X1)(),f=(0,O.useRef)(null),h={},y=e.hasChildItems,g=t.selectionManager.isLink(s.key);if(null!=s&&"expandedKeys"in t){let e=t.collection.getChildren?.(s.key);y=y||[...e??[]].length>1,null==o&&!g&&"none"===t.selectionManager.selectionMode&&y&&(o=()=>t.toggleKey(s.key));let n=y?t.expandedKeys.has(s.key):void 0,i=1,r=s.index;if(s.level>=0&&s?.parentKey!=null){let e=t.collection.getItem(s.parentKey);if(e){let n=function(e,t){let n=t.getChildren?.(e.key),s=n?Array.from(n):[],i=s.length>0?s[0]:null,r=[];for(;i;)r.push(i),i=null!=i.nextKey?t.getItem(i.nextKey):null;return r}(e,t.collection);i=[...n].filter(e=>"item"===e.type).length,r>0&&"item"!==n[0].type&&(r-=1)}}else i=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;h={"aria-expanded":n,"aria-level":s.level+1,"aria-posinset":r+1,"aria-setsize":i}}let{itemProps:b,...k}=(0,K.p)({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||c,onAction:o||s.props?.onAction?(0,I.c)(s.props?.onAction,o?()=>o(s.key):void 0):void 0,focus:()=>{null===n.current||(null==f.current||s.key===f.current)&&(0,D.ae)(n.current)||(0,$.l)(n.current)},linkBehavior:l}),w=(0,P.HI)(s.props),S=k.hasAction?w:{},E=(0,m.v)(b,S,{role:"row",onKeyDownCapture:e=>{let i=(0,D.bq)();if(!(0,D.sD)(e.currentTarget,(0,D.wt)(e))||!n.current||!i)return;let o=(0,C.N$)(n.current);if(o.currentNode=i,"expandedKeys"in t&&i===n.current){if(e.key===j[r]&&t.selectionManager.focusedKey===s.key&&y&&!t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(e.key===q[r]&&t.selectionManager.focusedKey===s.key){if(y&&t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(!t.expandedKeys.has(s.key)&&s.parentKey){t.selectionManager.setFocusedKey(s.parentKey),e.stopPropagation();return}}}switch(e.key){case"ArrowLeft":if("arrow"===a){let t="rtl"===r?o.nextNode():o.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,M.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===r)(0,$.l)(n.current),(0,M.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,M.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowRight":if("arrow"===a){let t="rtl"===r?o.previousNode():o.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,M.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===r)(0,$.l)(n.current),(0,M.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,M.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&(0,D.sD)(n.current,(0,D.wt)(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onKeyDown:e=>{let t=(0,D.bq)();if((0,D.sD)(e.currentTarget,(0,D.wt)(e))&&n.current&&t&&"Tab"===e.key&&"tab"===a){let s=(0,C.N$)(n.current,{tabbable:!0});s.currentNode=t,(e.shiftKey?s.previousNode():s.nextNode())&&e.stopPropagation()}},onFocus:e=>{if(f.current=s.key,(0,D.wt)(e)!==n.current){(0,_.pP)()||t.selectionManager.setFocusedKey(s.key);return}},"aria-label":s["aria-label"]||s.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(s.key)?t.selectionManager.isSelected(s.key):void 0,"aria-disabled":t.selectionManager.isDisabled(s.key)||void 0,"aria-labelledby":u&&(s["aria-label"]||s.textValue)?`${p(t,s.key)} ${u}`:void 0,id:p(t,s.key)});if(i){let{collection:e}=t,n=[...e];E["aria-rowindex"]=n.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!=="section").findIndex(e=>e===s.key)+1:s.index+1}return{rowProps:{...(0,m.v)(E,h)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:u},...k}}({node:i},t,n),{descriptionProps:f,...y}=u,g=t.disabledKeys.has(i.key)||i.props.isDisabled,b=(0,_.lb)();"virtual"===b&&"u">typeof window&&"ontouchstart"in window&&(b="pointer");let k=l&&("keyboard"===b||"virtual"===b)?r.format("removeDescription"):"",w=(0,x.I)(k),S=i.key===t.selectionManager.focusedKey,E=null!=t.selectionManager.focusedKey,F=-1;g||!S&&E||(F=0);let V=(0,h.$)(i.props),J=(0,P.HI)(i.props),{focusableProps:W}=(0,T.Wc)({...i.props,isDisabled:g},n);return{removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${o} ${a.id}`,isDisabled:g,id:o,onPress:()=>l?l(new Set([i.key])):null},rowProps:(0,m.v)(W,a,V,J,{tabIndex:F,onKeyDown:l?e=>{("Delete"===e.key||"Backspace"===e.key)&&(g||(e.preventDefault(),t.selectionManager.isSelected(i.key)?l?.(new Set(t.selectionManager.selectedKeys)):l?.(new Set([i.key]))))}:void 0,"aria-describedby":w["aria-describedby"]}),gridCellProps:(0,m.v)(c,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...y,allowsRemoving:!!l}}({item:n},o,a),{hoverProps:w,isHovered:S}=(0,z.M)({isDisabled:!k.allowsSelection&&!k.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),E=(0,i.Sl)({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...k,isFocusVisible:f,isHovered:S,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior}});(0,O.useEffect)(()=>{n.textValue},[n.textValue]);let F=(0,h.$)(e,{global:!0});return delete F.id,delete F.onClick,O.createElement(i.tT.div,{ref:a,...(0,m.v)(F,E,y,u,w),"data-selected":k.isSelected||void 0,"data-disabled":k.isDisabled||void 0,"data-hovered":S||void 0,"data-focused":k.isFocused||void 0,"data-focus-visible":f||void 0,"data-pressed":k.isPressed||void 0,"data-allows-removing":k.allowsRemoving||void 0,"data-selection-mode":"none"===o.selectionManager.selectionMode?void 0:o.selectionManager.selectionMode},O.createElement("div",{...g,style:{display:"contents"}},O.createElement(i.Kq,{values:[[s.k,{slots:{remove:b}}],[r.zL,r.N],[c.r,{isSelected:k.isSelected}]]},E.children)))})},64402(e,t,n){"use strict";let s;n.d(t,{Ay:()=>nl});var i={};n.r(i),n.d(i,{BOM:()=>tU,DOCUMENT:()=>tF,FLOW_END:()=>tV,SCALAR:()=>tJ,createScalarToken:()=>t$,isCollection:()=>tW,isScalar:()=>tz,prettyToken:()=>tY,resolveAsScalar:()=>tI,setScalarValue:()=>tD,stringify:()=>t_,tokenType:()=>tG,visit:()=>tR});var r={};n.r(r),n.d(r,{Alias:()=>R,CST:()=>i,Composer:()=>tT,Document:()=>ti,Lexer:()=>t2,LineCounter:()=>t9,Pair:()=>ey,Parser:()=>nt,Scalar:()=>F,Schema:()=>ts,YAMLError:()=>to,YAMLMap:()=>ek,YAMLParseError:()=>tl,YAMLSeq:()=>eS,YAMLWarning:()=>ta,isAlias:()=>d,isCollection:()=>v,isDocument:()=>p,isMap:()=>m,isNode:()=>k,isPair:()=>y,isScalar:()=>g,isSeq:()=>b,parse:()=>nr,parseAllDocuments:()=>ns,parseDocument:()=>ni,stringify:()=>no,visit:()=>O,visitAsync:()=>L});let o=Symbol.for("yaml.alias"),l=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[h]===o,p=e=>!!e&&"object"==typeof e&&e[h]===l,m=e=>!!e&&"object"==typeof e&&e[h]===a,y=e=>!!e&&"object"==typeof e&&e[h]===c,g=e=>!!e&&"object"==typeof e&&e[h]===u,b=e=>!!e&&"object"==typeof e&&e[h]===f;function v(e){if(e&&"object"==typeof e)switch(e[h]){case a:case f:return!0}return!1}function k(e){if(e&&"object"==typeof e)switch(e[h]){case o:case a:case u:case f:return!0}return!1}let w=e=>(g(e)||v(e))&&!!e.anchor,S=Symbol("break visit"),E=Symbol("skip children"),N=Symbol("remove node");function O(e,t){let n=T(t);p(e)?A(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):A(null,e,n,Object.freeze([]))}function A(e,t,n,s){let i=I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),A(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=A(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=A("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=A("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}async function L(e,t){let n=T(t);p(e)?await x(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):await x(null,e,n,Object.freeze([]))}async function x(e,t,n,s){let i=await I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),x(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=await x(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=await x("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=await x("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}function T(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 I(e,t,n,s){return"function"==typeof n?n(e,t,s):m(t)?n.Map?.(e,t,s):b(t)?n.Seq?.(e,t,s):y(t)?n.Pair?.(e,t,s):g(t)?n.Scalar?.(e,t,s):d(t)?n.Alias?.(e,t,s):void 0}function $(e,t,n){let s=t[t.length-1];if(v(s))s.items[e]=n;else if(y(s))"key"===e?s.key=n:s.value=n;else if(p(s))s.contents=n;else{let e=d(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}O.BREAK=S,O.SKIP=E,O.REMOVE=N,L.BREAK=S,L.SKIP=E,L.REMOVE=N;let D={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>D[e]);class B{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},B.defaultYaml,e),this.tags=Object.assign({},B.defaultTags,t)}clone(){let e=new B(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new B(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:B.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},B.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:B.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},B.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&k(e.contents)){let n={};O(e.contents,(e,t)=>{k(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,r]of s)("!!"!==i||"tag:yaml.org,2002:"!==r)&&(!e||t.some(e=>e.startsWith(r)))&&n.push(`%TAG ${i} ${r}`);return n.join("\n")}}function _(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 M(e){let t=new Set;return O(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function K(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function P(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],i=P(e,s,String(t),n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),i=P(e,s,t,n);void 0===i?s.delete(t):i!==n&&s.set(t,i)}else if(s instanceof Set)for(let t of Array.from(s)){let n=P(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let i=P(e,s,t,n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}return e.call(t,n,s)}function j(e,t,n){if(Array.isArray(e))return e.map((e,t)=>j(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!w(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}B.defaultYaml={explicit:!1,version:"1.2"},B.defaultTags={"!!":"tag:yaml.org,2002:"};class q{constructor(e){Object.defineProperty(this,h,{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:n,onAnchor:s,reviver:i}={}){if(!p(e))throw TypeError("A document argument is required");let r={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=j(this,"",r);if("function"==typeof s)for(let{count:e,res:t}of r.anchors.values())s(t,e);return"function"==typeof i?P(i,{"":o},"",o):o}}class R extends q{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],O(e,{Node:(e,t)=>{(d(t)||w(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:s,maxAliasCount:i}=t,r=this.resolve(s,t);if(!r)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(r);if(o||(j(r,null,t),o=n.get(r)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,n,s){if(d(n)){let e=n.resolve(t),i=s&&e&&s.get(e);return i?i.count*i.aliasCount:0}if(v(n)){let i=0;for(let r of n.items){let n=e(t,r,s);n>i&&(i=n)}return i}return y(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(s,r,n)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){let s=`*${this.source}`;if(e){if(_(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`${s} `}return s}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends q{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:j(this.value,e,t)}toString(){return String(this.value)}}function V(e,t,n){let s;if(p(e)&&(e=e.contents),k(e))return e;if(y(e)){let t=n.schema[a].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:l,sourceObjects:c}=n;if(i&&e&&"object"==typeof e){if(s=c.get(e))return s.anchor??(s.anchor=r(e)),new R(s.anchor);s={anchor:null,node:null},c.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return s&&(s.node=t),t}u=e instanceof Map?l[a]:Symbol.iterator in Object(e)?l[f]:l[a]}o&&(o(u),delete n.onTagObj);let h=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new F(e);return t?h.tag=t:u.default||(h.tag=u.tag),s&&(s.node=h),h}function J(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return V(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let W=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class z extends q{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=>k(t)||y(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(W(e))this.add(t);else{let[n,...s]=e,i=this.get(n,!0);if(v(i))i.addIn(s,t);else if(void 0===i&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(v(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,i=this.get(n,!0);return 0===s.length?!t&&g(i)?i.value:i:v(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!y(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!v(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(v(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let Y=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?G(n,t):n.includes("\n")?"\n"+G(n,t):(e.endsWith(" ")?"":" ")+n,Q="block",X="quoted";function Z(e,t,n="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){let a,c,u;if(!i||i<0)return e;i<r&&(r=0);let f=Math.max(1+r,1+i-t.length);if(e.length<=f)return e;let h=[],d={},p=i-t.length;"number"==typeof s&&(s>i-Math.max(2,r)?h.push(0):p=i-s);let m=!1,y=-1,g=-1,b=-1;for(n===Q&&-1!==(y=ee(e,y,t.length))&&(p=y+f);u=e[y+=1];){if(n===X&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===u)n===Q&&(y=ee(e,y,t.length)),p=y+t.length+f,a=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=y)}if(y>=p)if(a)h.push(a),p=a+f,a=void 0;else if(n===X){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(d[t])return e;h.push(t),d[t]=!0,p=t+f,a=void 0}else m=!0}c=u}if(m&&l&&l(),0===h.length)return e;o&&o();let v=e.slice(0,h[0]);for(let s=0;s<h.length;++s){let i=h[s],r=h[s+1]||e.length;0===i?v=`
|
|
1
|
+
(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["7227"],{86912(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73788(e){e.exports=function(e,t,n,s){for(var i=-1,r=null==e?0:e.length;++i<r;){var o=e[i];t(s,o,n(o),e)}return s}},82226(e,t,n){var s=n(84570);e.exports=function(e,t,n,i){return s(e,function(e,s,r){t(i,e,n(e),r)}),i}},84570(e,t,n){var s=n(47170);e.exports=n(45770)(s)},90313(e,t,n){var s=n(11129),i=n(20714);e.exports=function e(t,n,r,o,l){var a=-1,c=t.length;for(r||(r=i),l||(l=[]);++a<c;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,o,l):s(l,u):o||(l[l.length]=u)}return l}},41393(e,t,n){var s=n(84570),i=n(36529);e.exports=function(e,t){var n=-1,r=i(e)?Array(e.length):[];return s(e,function(e,s,i){r[++n]=t(e,s,i)}),r}},70310(e,t,n){var s=n(65111),i=n(57923),r=n(3334),o=n(41393),l=n(50642),a=n(49460),c=n(46775),u=n(22053),f=n(53142);e.exports=function(e,t,n){t=t.length?s(t,function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[u];var h=-1;return t=s(t,a(r)),l(o(e,function(e,n,i){return{criteria:s(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return c(e,t,n)})}},23945(e,t,n){var s=n(22053),i=n(75234),r=n(80796);e.exports=function(e,t){return r(i(e,t,s),e+"")}},47403(e,t,n){var s=n(82619),i=n(72532),r=n(22053);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:s(t),writable:!0})}:r},50642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},63521(e,t,n){var s=n(51187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,o=s(e),l=void 0!==t,a=null===t,c=t==t,u=s(t);if(!a&&!u&&!o&&e>t||o&&l&&c&&!a&&!u||i&&l&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||a&&n&&r||!l&&r||!c)return -1}return 0}},46775(e,t,n){var s=n(63521);e.exports=function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,l=r.length,a=n.length;++i<l;){var c=s(r[i],o[i]);if(c){if(i>=a)return c;return c*("desc"==n[i]?-1:1)}}return e.index-t.index}},72195(e,t,n){var s=n(73788),i=n(82226),r=n(3334),o=n(53142);e.exports=function(e,t){return function(n,l){var a=o(n)?s:i,c=t?t():{};return a(n,e,r(l,2),c)}}},45770(e,t,n){var s=n(36529);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!s(n))return e(n,i);for(var r=n.length,o=t?r:-1,l=Object(n);(t?o--:++o<r)&&!1!==i(l[o],o,l););return n}}},20714(e,t,n){var s=n(65650),i=n(3283),r=n(53142),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||i(e)||!!(o&&e&&e[o])}},74535(e,t,n){var s=n(46285),i=n(36529),r=n(69632),o=n(41580);e.exports=function(e,t,n){if(!o(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&r(t,n.length)):"string"==l&&t in n)&&s(n[t],e)}},75234(e,t,n){var s=n(86912),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,l=i(r.length-t,0),a=Array(l);++o<l;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),s(e,this,c)}}},80796(e,t,n){var s=n(47403);e.exports=n(3316)(s)},3316(e){var t=Date.now;e.exports=function(e){var n=0,s=0;return function(){var i=t(),r=16-(i-s);if(s=i,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},82619(e){e.exports=function(e){return function(){return e}}},87809(e,t,n){var s=n(57073),i=n(72195),r=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){r.call(e,n)?e[n].push(t):s(e,n,[t])})},40074(e,t,n){var s=n(90313),i=n(70310),r=n(23945),o=n(74535);e.exports=r(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,s(t,1),[])})},15784(e,t,n){"use strict";n.d(t,{vw:()=>et,LY:()=>Z,CR:()=>Q});var s=n(57873),i=n(95288),r=n(87313),o=n(41181),l=n(82072),a=n(23413),c=n(91832),u=n(84351),f=n(94816),h=n(59878);let d=new WeakMap;function p(e,t){var n;let{id:s}=d.get(e)??{};if(!s)throw Error("Unknown list");return`${s}-${"string"==typeof(n=t)?n.replace(/\s*/g,""):""+n}`}var m=n(28052),y=n(65095),g=n(46713),b=n(57648),v=n(47499),k=n(36794),w=n(33875),S=n(64306),E=n(28176),N=n(66030),O=n(14041);let A=new WeakMap;var L={};L={"ar-AE":{removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."},"bg-BG":{removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xedm kl\xe1vesy Delete odeberete značku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xe5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf „L\xf6schen“ dr\xfccken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’\xe9tiquette."},"he-IL":{removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xe1vol\xedt\xe1s",removeDescription:"Nyomja meg a Delete billentyűt a c\xedmke elt\xe1vol\xedt\xe1s\xe1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"},"ko-KR":{removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."},"lt-LT":{removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."},"lv-LV":{removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xe5 Slett for \xe5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xcendepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."},"sk-SK":{removeButtonLabel:"Odstr\xe1niť",removeDescription:"Ak chcete odstr\xe1niť značku, stlačte kl\xe1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xe5 Radera f\xf6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak i\xe7in Sil tuşuna basın."},"uk-UA":{removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."},"zh-CN":{removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"},"zh-TW":{removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"}};var x=n(38919),T=n(73817),I=n(23977),$=n(78484),D=n(34122),C=n(56059),B=n(21317),_=n(81901),K=n(25435),M=n(95783),P=n(90970);let j={ltr:"ArrowRight",rtl:"ArrowLeft"},q={ltr:"ArrowLeft",rtl:"ArrowRight"};function R(e){let t=null,n=null;do(n=e.lastChild())&&(t=n);while(n);return t}var U=n(44018),F=n(87426),V=n(3453),J=n(7553),W=n(86414),z=n(44031),Y=n(54469);let G=(0,O.createContext)(null),H=(0,O.createContext)(null),Q=(0,O.forwardRef)(function(e,t){return[e,t]=(0,i.JT)(e,t,G),O.createElement(l.DN.Provider,{value:null},O.createElement(F.GQ,{content:e.children},n=>O.createElement(X,{props:e,forwardedRef:t,collection:n})))});function X({props:e,forwardedRef:t,collection:n}){let s=(0,O.useRef)(null),{id:r,...c}=e;[c,s]=(0,i.JT)(c,s,a.Co);let{filter:u,shouldUseVirtualFocus:p,...L}=c,[x,T]=(0,i._E)(!e["aria-label"]&&!e["aria-labelledby"]),I=(0,J.p)({...L,children:void 0,collection:n}),$=(0,J.Z)(I,u),D=(0,h.$)(c,{global:!0}),C=Object.fromEntries(Object.entries(D).map(([e,t])=>[e,"id"===e?t:void 0])),{gridProps:B,labelProps:_,descriptionProps:K,errorMessageProps:M}=function(e,t,n){let{direction:s}=(0,N.Y)(),i=e.keyboardDelegate||new(0,w.n)({collection:t.collection,ref:n,orientation:"horizontal",direction:s,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:o,descriptionProps:l,errorMessageProps:a}=(0,S.M)({...e,labelElementType:"span"}),{gridProps:c}=function(e,t,n){let{isVirtualized:s,keyboardDelegate:i,layoutDelegate:r,onAction:o,disallowTypeAhead:l,linkBehavior:a="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:f}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}=(0,k.y)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:r,isVirtualized:s,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:a,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:u}),w=(0,v.Bi)(e.id);d.set(t,{id:w,onAction:o,linkBehavior:a,keyboardNavigationBehavior:c,shouldSelectOnPressUp:f});let S=(0,b.m)({selectionManager:t.selectionManager,hasItemActions:!!o}),E=(0,g.$)(n,{isDisabled:0!==t.collection.size}),N=(0,h.$)(e,{labelable:!0}),O=(0,m.v)(N,{role:"grid",id:w,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:E?-1:0}:p,S);return s&&(O["aria-rowcount"]=t.collection.size,O["aria-colcount"]=1),(0,y.H)({},t),{gridProps:O}}({...e,...o,keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,n),[u,f]=(0,O.useState)(!1),{focusWithinProps:p}=(0,E.R)({onFocusWithinChange:f}),L=(0,h.$)(e),x=(0,O.useRef)(t.collection.size);return(0,O.useEffect)(()=>{n.current&&x.current>0&&0===t.collection.size&&u&&n.current.focus(),x.current=t.collection.size},[t.collection.size,u,n]),A.set(t,{onRemove:e.onRemove}),{gridProps:(0,m.v)(c,L,{role:t.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...p,...o}),labelProps:r,descriptionProps:l,errorMessageProps:a}}({...L,...C,label:T},$,s);return O.createElement(i.tT.div,{render:e.render,...D,id:r,ref:t,slot:e.slot||void 0,className:e.className??"react-aria-TagGroup",style:e.style},O.createElement(i.Kq,{values:[[o.I,{..._,elementType:"span",ref:x}],[H,{...B,ref:s}],[l.DN,$],[f.h,{slots:{description:K,errorMessage:M}}]]},e.children))}let Z=(0,O.forwardRef)(function(e,t){return(0,O.useContext)(l.DN)?O.createElement(ee,{props:e,forwardedRef:t}):O.createElement(F.pM,e)});function ee({props:e,forwardedRef:t}){let n=(0,O.useContext)(l.DN),{CollectionRoot:s}=(0,O.useContext)(r.zL),[o,a]=(0,i.JT)({},t,H),{focusProps:c,isFocused:f,isFocusVisible:d}=(0,W.o)(),p={isEmpty:0===n.collection.size,isFocused:f,isFocusVisible:d,state:n},y=(0,i.Sl)({...e,children:void 0,defaultClassName:"react-aria-TagList",values:p}),g=(0,r.l2)(n.selectionManager.focusedKey),b=(0,h.$)(e,{global:!0});return O.createElement(i.tT.div,{...(0,m.v)(b,y,o,c),ref:a,"data-empty":0===n.collection.size||void 0,"data-focused":f||void 0,"data-focus-visible":d||void 0},O.createElement(u.D,null,0===n.collection.size&&e.renderEmptyState?e.renderEmptyState(p):O.createElement(s,{collection:n.collection,persistedKeys:g})))}let et=(0,F.KU)(V._B,(e,t,n)=>{let o=(0,O.useContext)(l.DN),a=(0,Y.U)(t),{focusProps:u,isFocusVisible:f}=(0,W.o)({within:!1}),{rowProps:y,gridCellProps:g,removeButtonProps:b,...k}=function(e,t,n){var s;let{item:i}=e,r=(0,U.o)((s=L)&&s.__esModule?s.default:s,"@react-aria/tag"),o=(0,v.Bi)(),{onRemove:l}=A.get(t)||{},{rowProps:a,gridCellProps:c,...u}=function(e,t,n){let{node:s,isVirtualized:i}=e,{direction:r}=(0,N.Y)(),{onAction:o,linkBehavior:l,keyboardNavigationBehavior:a,shouldSelectOnPressUp:c}=d.get(t),u=(0,v.X1)(),f=(0,O.useRef)(null),h={},y=e.hasChildItems,g=t.selectionManager.isLink(s.key);if(null!=s&&"expandedKeys"in t){let e=t.collection.getChildren?.(s.key);y=y||[...e??[]].length>1,null==o&&!g&&"none"===t.selectionManager.selectionMode&&y&&(o=()=>t.toggleKey(s.key));let n=y?t.expandedKeys.has(s.key):void 0,i=1,r=s.index;if(s.level>=0&&s?.parentKey!=null){let e=t.collection.getItem(s.parentKey);if(e){let n=function(e,t){let n=t.getChildren?.(e.key),s=n?Array.from(n):[],i=s.length>0?s[0]:null,r=[];for(;i;)r.push(i),i=null!=i.nextKey?t.getItem(i.nextKey):null;return r}(e,t.collection);i=[...n].filter(e=>"item"===e.type).length,r>0&&"item"!==n[0].type&&(r-=1)}}else i=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;h={"aria-expanded":n,"aria-level":s.level+1,"aria-posinset":r+1,"aria-setsize":i}}let{itemProps:b,...k}=(0,M.p)({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||c,onAction:o||s.props?.onAction?(0,I.c)(s.props?.onAction,o?()=>o(s.key):void 0):void 0,focus:()=>{null===n.current||(null==f.current||s.key===f.current)&&(0,D.ae)(n.current)||(0,$.l)(n.current)},linkBehavior:l}),w=(0,P.HI)(s.props),S=k.hasAction?w:{},E=(0,m.v)(b,S,{role:"row",onKeyDownCapture:e=>{let i=(0,D.bq)();if(!(0,D.sD)(e.currentTarget,(0,D.wt)(e))||!n.current||!i)return;let o=(0,C.N$)(n.current);if(o.currentNode=i,"expandedKeys"in t&&i===n.current){if(e.key===j[r]&&t.selectionManager.focusedKey===s.key&&y&&!t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(e.key===q[r]&&t.selectionManager.focusedKey===s.key){if(y&&t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(!t.expandedKeys.has(s.key)&&s.parentKey){t.selectionManager.setFocusedKey(s.parentKey),e.stopPropagation();return}}}switch(e.key){case"ArrowLeft":if("arrow"===a){let t="rtl"===r?o.nextNode():o.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,K.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===r)(0,$.l)(n.current),(0,K.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,K.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowRight":if("arrow"===a){let t="rtl"===r?o.previousNode():o.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,K.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===r)(0,$.l)(n.current),(0,K.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,K.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&(0,D.sD)(n.current,(0,D.wt)(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onKeyDown:e=>{let t=(0,D.bq)();if((0,D.sD)(e.currentTarget,(0,D.wt)(e))&&n.current&&t&&"Tab"===e.key&&"tab"===a){let s=(0,C.N$)(n.current,{tabbable:!0});s.currentNode=t,(e.shiftKey?s.previousNode():s.nextNode())&&e.stopPropagation()}},onFocus:e=>{if(f.current=s.key,(0,D.wt)(e)!==n.current){(0,_.pP)()||t.selectionManager.setFocusedKey(s.key);return}},"aria-label":s["aria-label"]||s.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(s.key)?t.selectionManager.isSelected(s.key):void 0,"aria-disabled":t.selectionManager.isDisabled(s.key)||void 0,"aria-labelledby":u&&(s["aria-label"]||s.textValue)?`${p(t,s.key)} ${u}`:void 0,id:p(t,s.key)});if(i){let{collection:e}=t,n=[...e];E["aria-rowindex"]=n.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!=="section").findIndex(e=>e===s.key)+1:s.index+1}return{rowProps:{...(0,m.v)(E,h)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:u},...k}}({node:i},t,n),{descriptionProps:f,...y}=u,g=t.disabledKeys.has(i.key)||i.props.isDisabled,b=(0,_.lb)();"virtual"===b&&"u">typeof window&&"ontouchstart"in window&&(b="pointer");let k=l&&("keyboard"===b||"virtual"===b)?r.format("removeDescription"):"",w=(0,x.I)(k),S=i.key===t.selectionManager.focusedKey,E=null!=t.selectionManager.focusedKey,F=-1;g||!S&&E||(F=0);let V=(0,h.$)(i.props),J=(0,P.HI)(i.props),{focusableProps:W}=(0,T.Wc)({...i.props,isDisabled:g},n);return{removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${o} ${a.id}`,isDisabled:g,id:o,onPress:()=>l?l(new Set([i.key])):null},rowProps:(0,m.v)(W,a,V,J,{tabIndex:F,onKeyDown:l?e=>{("Delete"===e.key||"Backspace"===e.key)&&(g||(e.preventDefault(),t.selectionManager.isSelected(i.key)?l?.(new Set(t.selectionManager.selectedKeys)):l?.(new Set([i.key]))))}:void 0,"aria-describedby":w["aria-describedby"]}),gridCellProps:(0,m.v)(c,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...y,allowsRemoving:!!l}}({item:n},o,a),{hoverProps:w,isHovered:S}=(0,z.M)({isDisabled:!k.allowsSelection&&!k.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),E=(0,i.Sl)({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...k,isFocusVisible:f,isHovered:S,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior}});(0,O.useEffect)(()=>{n.textValue},[n.textValue]);let F=(0,h.$)(e,{global:!0});return delete F.id,delete F.onClick,O.createElement(i.tT.div,{ref:a,...(0,m.v)(F,E,y,u,w),"data-selected":k.isSelected||void 0,"data-disabled":k.isDisabled||void 0,"data-hovered":S||void 0,"data-focused":k.isFocused||void 0,"data-focus-visible":f||void 0,"data-pressed":k.isPressed||void 0,"data-allows-removing":k.allowsRemoving||void 0,"data-selection-mode":"none"===o.selectionManager.selectionMode?void 0:o.selectionManager.selectionMode},O.createElement("div",{...g,style:{display:"contents"}},O.createElement(i.Kq,{values:[[s.k,{slots:{remove:b}}],[r.zL,r.N],[c.r,{isSelected:k.isSelected}]]},E.children)))})},64402(e,t,n){"use strict";let s;n.d(t,{Ay:()=>nl});var i={};n.r(i),n.d(i,{BOM:()=>tU,DOCUMENT:()=>tF,FLOW_END:()=>tV,SCALAR:()=>tJ,createScalarToken:()=>t$,isCollection:()=>tW,isScalar:()=>tz,prettyToken:()=>tY,resolveAsScalar:()=>tI,setScalarValue:()=>tD,stringify:()=>t_,tokenType:()=>tG,visit:()=>tR});var r={};n.r(r),n.d(r,{Alias:()=>R,CST:()=>i,Composer:()=>tT,Document:()=>ti,Lexer:()=>t2,LineCounter:()=>t9,Pair:()=>ey,Parser:()=>nt,Scalar:()=>F,Schema:()=>ts,YAMLError:()=>to,YAMLMap:()=>ek,YAMLParseError:()=>tl,YAMLSeq:()=>eS,YAMLWarning:()=>ta,isAlias:()=>d,isCollection:()=>v,isDocument:()=>p,isMap:()=>m,isNode:()=>k,isPair:()=>y,isScalar:()=>g,isSeq:()=>b,parse:()=>nr,parseAllDocuments:()=>ns,parseDocument:()=>ni,stringify:()=>no,visit:()=>O,visitAsync:()=>L});let o=Symbol.for("yaml.alias"),l=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[h]===o,p=e=>!!e&&"object"==typeof e&&e[h]===l,m=e=>!!e&&"object"==typeof e&&e[h]===a,y=e=>!!e&&"object"==typeof e&&e[h]===c,g=e=>!!e&&"object"==typeof e&&e[h]===u,b=e=>!!e&&"object"==typeof e&&e[h]===f;function v(e){if(e&&"object"==typeof e)switch(e[h]){case a:case f:return!0}return!1}function k(e){if(e&&"object"==typeof e)switch(e[h]){case o:case a:case u:case f:return!0}return!1}let w=e=>(g(e)||v(e))&&!!e.anchor,S=Symbol("break visit"),E=Symbol("skip children"),N=Symbol("remove node");function O(e,t){let n=T(t);p(e)?A(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):A(null,e,n,Object.freeze([]))}function A(e,t,n,s){let i=I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),A(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=A(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=A("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=A("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}async function L(e,t){let n=T(t);p(e)?await x(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):await x(null,e,n,Object.freeze([]))}async function x(e,t,n,s){let i=await I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),x(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=await x(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=await x("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=await x("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}function T(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 I(e,t,n,s){return"function"==typeof n?n(e,t,s):m(t)?n.Map?.(e,t,s):b(t)?n.Seq?.(e,t,s):y(t)?n.Pair?.(e,t,s):g(t)?n.Scalar?.(e,t,s):d(t)?n.Alias?.(e,t,s):void 0}function $(e,t,n){let s=t[t.length-1];if(v(s))s.items[e]=n;else if(y(s))"key"===e?s.key=n:s.value=n;else if(p(s))s.contents=n;else{let e=d(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}O.BREAK=S,O.SKIP=E,O.REMOVE=N,L.BREAK=S,L.SKIP=E,L.REMOVE=N;let D={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>D[e]);class B{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},B.defaultYaml,e),this.tags=Object.assign({},B.defaultTags,t)}clone(){let e=new B(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new B(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:B.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},B.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:B.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},B.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&k(e.contents)){let n={};O(e.contents,(e,t)=>{k(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,r]of s)("!!"!==i||"tag:yaml.org,2002:"!==r)&&(!e||t.some(e=>e.startsWith(r)))&&n.push(`%TAG ${i} ${r}`);return n.join("\n")}}function _(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 K(e){let t=new Set;return O(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function M(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function P(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],i=P(e,s,String(t),n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),i=P(e,s,t,n);void 0===i?s.delete(t):i!==n&&s.set(t,i)}else if(s instanceof Set)for(let t of Array.from(s)){let n=P(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let i=P(e,s,t,n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}return e.call(t,n,s)}function j(e,t,n){if(Array.isArray(e))return e.map((e,t)=>j(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!w(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}B.defaultYaml={explicit:!1,version:"1.2"},B.defaultTags={"!!":"tag:yaml.org,2002:"};class q{constructor(e){Object.defineProperty(this,h,{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:n,onAnchor:s,reviver:i}={}){if(!p(e))throw TypeError("A document argument is required");let r={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=j(this,"",r);if("function"==typeof s)for(let{count:e,res:t}of r.anchors.values())s(t,e);return"function"==typeof i?P(i,{"":o},"",o):o}}class R extends q{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],O(e,{Node:(e,t)=>{(d(t)||w(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:s,maxAliasCount:i}=t,r=this.resolve(s,t);if(!r)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(r);if(o||(j(r,null,t),o=n.get(r)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,n,s){if(d(n)){let e=n.resolve(t),i=s&&e&&s.get(e);return i?i.count*i.aliasCount:0}if(v(n)){let i=0;for(let r of n.items){let n=e(t,r,s);n>i&&(i=n)}return i}return y(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(s,r,n)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){let s=`*${this.source}`;if(e){if(_(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`${s} `}return s}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends q{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:j(this.value,e,t)}toString(){return String(this.value)}}function V(e,t,n){let s;if(p(e)&&(e=e.contents),k(e))return e;if(y(e)){let t=n.schema[a].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:l,sourceObjects:c}=n;if(i&&e&&"object"==typeof e){if(s=c.get(e))return s.anchor??(s.anchor=r(e)),new R(s.anchor);s={anchor:null,node:null},c.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return s&&(s.node=t),t}u=e instanceof Map?l[a]:Symbol.iterator in Object(e)?l[f]:l[a]}o&&(o(u),delete n.onTagObj);let h=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new F(e);return t?h.tag=t:u.default||(h.tag=u.tag),s&&(s.node=h),h}function J(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return V(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let W=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class z extends q{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=>k(t)||y(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(W(e))this.add(t);else{let[n,...s]=e,i=this.get(n,!0);if(v(i))i.addIn(s,t);else if(void 0===i&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(v(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,i=this.get(n,!0);return 0===s.length?!t&&g(i)?i.value:i:v(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!y(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!v(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(v(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let Y=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?G(n,t):n.includes("\n")?"\n"+G(n,t):(e.endsWith(" ")?"":" ")+n,Q="block",X="quoted";function Z(e,t,n="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){let a,c,u;if(!i||i<0)return e;i<r&&(r=0);let f=Math.max(1+r,1+i-t.length);if(e.length<=f)return e;let h=[],d={},p=i-t.length;"number"==typeof s&&(s>i-Math.max(2,r)?h.push(0):p=i-s);let m=!1,y=-1,g=-1,b=-1;for(n===Q&&-1!==(y=ee(e,y,t.length))&&(p=y+f);u=e[y+=1];){if(n===X&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===u)n===Q&&(y=ee(e,y,t.length)),p=y+t.length+f,a=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=y)}if(y>=p)if(a)h.push(a),p=a+f,a=void 0;else if(n===X){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(d[t])return e;h.push(t),d[t]=!0,p=t+f,a=void 0}else m=!0}c=u}if(m&&l&&l(),0===h.length)return e;o&&o();let v=e.slice(0,h[0]);for(let s=0;s<h.length;++s){let i=h[s],r=h[s+1]||e.length;0===i?v=`
|
|
2
2
|
${t}${e.slice(0,r)}`:(n===X&&d[i]&&(v+=`${e[i]}\\`),v+=`
|
|
3
3
|
${t}${e.slice(i+1,r)}`)}return v}function ee(e,t,n){let s=t,i=t+1,r=e[i];for(;" "===r||" "===r;)if(t<i+n)r=e[++t];else{do r=e[++t];while(r&&"\n"!==r);s=t,r=e[i=t+1]}return s}let et=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function en(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:s}=t,i=t.options.doubleQuotedMinMultiLineLength,r=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",l=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(l,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,l=e+1}break;case"n":if(s||'"'===n[e+2]||n.length<i)e+=1;else{for(o+=n.slice(l,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=r," "===n[e+2]&&(o+="\\"),e+=1,l=e+1}break;default:e+=1}return o=l?o+n.slice(l):n,s?o:Z(o,r,"quoted",et(t,!1))}function es(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let n=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
4
4
|
${n}`)+"'";return t.implicitKey?s:Z(s,n,"flow",et(t,!1))}function ei(e,t){let n,{singleQuote:s}=t.options;if(!1===s)n=en;else{let t=e.includes('"'),i=e.includes("'");n=t&&!i?es:i&&!t?en:s?es:en}return n(e,t)}try{s=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{s=/\n+(?!\n|$)/g}function er({comment:e,type:t,value:n},i,r,o){let l,a,c,u,{blockQuote:f,commentString:h,lineWidth:d}=i.options;if(!f||/\n[\t ]+$/.test(n))return ei(n,i);let p=i.indent||(i.forceBlockIndent||(u=n,/^(%|---|\.\.\.)/m.test(u))?" ":""),m="literal"===f||"folded"!==f&&t!==F.BLOCK_FOLDED&&(t===F.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let s=t-n,i=e.length;if(i<=s)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>s)return!0;if(i-(n=t+1)<=s)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";for(a=n.length;a>0;--a){let e=n[a-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=n.substring(a),g=y.indexOf("\n");-1===g?l="-":n===y||g!==y.length-1?(l="+",o&&o()):l="",y&&(n=n.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(s,`$&${p}`));let b=!1,v=-1;for(c=0;c<n.length;++c){let e=n[c];if(" "===e)b=!0;else if("\n"===e)v=c;else break}let k=n.substring(0,v<c?v+1:c);k&&(n=n.substring(k.length),k=k.replace(/\n+/g,`$&${p}`));let w=p?"2":"1",S=(b?w:"")+l;if(e&&(S+=" "+h(e.replace(/ ?[\r\n]+/g," ")),r&&r()),!m){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),s=!1,r=et(i,!0);"folded"!==f&&t!==F.BLOCK_FOLDED&&(r.onOverflow=()=>{s=!0});let o=Z(`${k}${e}${y}`,p,"block",r);if(!s)return`>${S}
|
|
@@ -12,9 +12,9 @@ ${n.indent}`:"\n"===A&&l&&(A="\n\n")}else if(!y&&v(t)){let e=O[0],s=O.indexOf("\
|
|
|
12
12
|
${n.indent}`)}}else(""===O||"\n"===O[0])&&(A="");return E+=A+O,n.inFlow?N&&s&&s():l&&!N?E+=H(E,n.indent,h(l)):S&&i&&i(),E}(this,e,t,n):JSON.stringify(this)}}function eg(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:s}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=t,a=Object.assign({},t,{indent:s+=r,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let n=0;n<e.length;++n){let i=e[n],r=null;if(k(i))i.spaceBefore&&f.push(""),eb(t,f,i.commentBefore,!1),i.comment&&(r=i.comment);else if(y(i)){let e=k(i.key)?i.key:null;e&&(e.spaceBefore&&f.push(""),eb(t,f,e.commentBefore,!1),e.comment&&(c=!0));let n=k(i.value)?i.value:null;n?(n.comment&&(r=n.comment),n.commentBefore&&(c=!0)):null==i.value&&e?.comment&&(r=e.comment)}r&&(c=!0);let o=ea(i,a,()=>r=null);c||(c=f.length>u||o.includes("\n")),n<e.length-1?o+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth)),c&&(o+=",")),r&&(o+=H(o,s,l(r))),f.push(o),u=f.length}let{start:h,end:d}=n;if(0===f.length)return h+d;if(!c){let e=f.reduce((e,t)=>e+t.length+2,2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(!c)return`${h}${o}${f.join(" ")}${o}${d}`;{let e=h;for(let t of f)e+=t?`
|
|
13
13
|
${r}${i}${t}`:"\n";return`${e}
|
|
14
14
|
${i}${d}`}}:function({comment:e,items:t},n,{blockItemPrefix:s,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){let a,{indent:c,options:{commentString:u}}=n,f=Object.assign({},n,{indent:r,type:null}),h=!1,d=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(k(i))!h&&i.spaceBefore&&d.push(""),eb(n,d,i.commentBefore,h),i.comment&&(o=i.comment);else if(y(i)){let e=k(i.key)?i.key:null;e&&(!h&&e.spaceBefore&&d.push(""),eb(n,d,e.commentBefore,h))}h=!1;let l=ea(i,f,()=>o=null,()=>h=!0);o&&(l+=H(l,r,u(o))),h&&o&&(h=!1),d.push(s+l)}if(0===d.length)a=i.start+i.end;else{a=d[0];for(let e=1;e<d.length;++e){let t=d[e];a+=t?`
|
|
15
|
-
${c}${t}`:"\n"}}return e?(a+="\n"+G(u(e),c),l&&l()):h&&o&&o(),a})(e,t,n)}function eb({indent:e,options:{commentString:t}},n,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){let i=G(t(s),e);n.push(i.trimStart())}}function ev(e,t){let n=g(t)?t.value:t;for(let s of e)if(y(s)&&(s.key===t||s.key===n||g(s.key)&&s.key.value===n))return s}class ek extends z{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(a,e),this.items=[]}static from(e,t,n){let{keepUndefined:s,replacer:i}=n,r=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||s)&&r.items.push(em(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r}add(e,t){let n;n=y(e)?e:e&&"object"==typeof e&&"key"in e?new ey(e.key,e.value):new ey(e,e?.value);let s=ev(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${n.key} already set`);g(s.value)&&U(n.value)?s.value.value=n.value:s.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ev(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ev(this.items,e),s=n?.value;return(!t&&g(s)?s.value:s)??void 0}has(e){return!!ev(this.items,e)}set(e,t){this.add(new ey(e,t),!0)}toJSON(e,t,n){let s=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))ep(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!y(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})),eg(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ew={collection:"map",default:!0,nodeClass:ek,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(m(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>ek.from(e,t,n)};class eS extends z{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eE(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eE(e);if("number"!=typeof n)return;let s=this.items[n];return!t&&g(s)?s.value:s}has(e){let t=eE(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eE(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[n];g(s)&&U(t)?s.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let s=0;for(let e of this.items)n.push(j(e,String(s++),t));return n}toString(e,t,n){return e?eg(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:s}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let r of t){if("function"==typeof s){let n=t instanceof Set?r:String(e++);r=s.call(t,n,r)}i.items.push(V(r,void 0,n))}}return i}}function eE(e){let t=g(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eN={collection:"seq",default:!0,nodeClass:eS,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(b(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eS.from(e,t,n)},eO={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>eo(e,t=Object.assign({actualString:!0},t),n,s)},eA={identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new F(null),stringify:({source:e},t)=>"string"==typeof e&&eA.test.test(e)?e:t.options.nullStr},eL={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new F("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eL.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function ex({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);let i="number"==typeof s?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(r)&&!r.includes("e")){let e=r.indexOf(".");e<0&&(e=r.length,r+=".");let n=t-(r.length-e-1);for(;n-- >0;)r+="0"}return r}let eT={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]?-1/0:1/0,stringify:ex},eI={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():ex(e)}},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 F(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:ex},eD=e=>"bigint"==typeof e||Number.isInteger(e),eC=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function eB(e,t,n){let{value:s}=e;return eD(s)&&s>=0?n+s.toString(t):ex(e)}let e_={identify:e=>eD(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eC(e,2,8,n),stringify:e=>eB(e,8,"0o")},
|
|
15
|
+
${c}${t}`:"\n"}}return e?(a+="\n"+G(u(e),c),l&&l()):h&&o&&o(),a})(e,t,n)}function eb({indent:e,options:{commentString:t}},n,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){let i=G(t(s),e);n.push(i.trimStart())}}function ev(e,t){let n=g(t)?t.value:t;for(let s of e)if(y(s)&&(s.key===t||s.key===n||g(s.key)&&s.key.value===n))return s}class ek extends z{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(a,e),this.items=[]}static from(e,t,n){let{keepUndefined:s,replacer:i}=n,r=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||s)&&r.items.push(em(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r}add(e,t){let n;n=y(e)?e:e&&"object"==typeof e&&"key"in e?new ey(e.key,e.value):new ey(e,e?.value);let s=ev(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${n.key} already set`);g(s.value)&&U(n.value)?s.value.value=n.value:s.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ev(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ev(this.items,e),s=n?.value;return(!t&&g(s)?s.value:s)??void 0}has(e){return!!ev(this.items,e)}set(e,t){this.add(new ey(e,t),!0)}toJSON(e,t,n){let s=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))ep(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!y(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})),eg(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ew={collection:"map",default:!0,nodeClass:ek,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(m(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>ek.from(e,t,n)};class eS extends z{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eE(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eE(e);if("number"!=typeof n)return;let s=this.items[n];return!t&&g(s)?s.value:s}has(e){let t=eE(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eE(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[n];g(s)&&U(t)?s.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let s=0;for(let e of this.items)n.push(j(e,String(s++),t));return n}toString(e,t,n){return e?eg(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:s}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let r of t){if("function"==typeof s){let n=t instanceof Set?r:String(e++);r=s.call(t,n,r)}i.items.push(V(r,void 0,n))}}return i}}function eE(e){let t=g(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eN={collection:"seq",default:!0,nodeClass:eS,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(b(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eS.from(e,t,n)},eO={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>eo(e,t=Object.assign({actualString:!0},t),n,s)},eA={identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new F(null),stringify:({source:e},t)=>"string"==typeof e&&eA.test.test(e)?e:t.options.nullStr},eL={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new F("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eL.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function ex({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);let i="number"==typeof s?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(r)&&!r.includes("e")){let e=r.indexOf(".");e<0&&(e=r.length,r+=".");let n=t-(r.length-e-1);for(;n-- >0;)r+="0"}return r}let eT={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]?-1/0:1/0,stringify:ex},eI={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():ex(e)}},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 F(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:ex},eD=e=>"bigint"==typeof e||Number.isInteger(e),eC=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function eB(e,t,n){let{value:s}=e;return eD(s)&&s>=0?n+s.toString(t):ex(e)}let e_={identify:e=>eD(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eC(e,2,8,n),stringify:e=>eB(e,8,"0o")},eK={identify:eD,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eC(e,0,10,n),stringify:ex},eM={identify:e=>eD(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>eC(e,2,16,n),stringify:e=>eB(e,16,"0x")},eP=[ew,eN,eO,eA,eL,e_,eK,eM,eT,eI,e$];function ej(e){return"bigint"==typeof e||Number.isInteger(e)}let eq=({value:e})=>JSON.stringify(e),eR=[ew,eN].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eq},{identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eq},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eq},{identify:ej,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>ej(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:eq}],{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,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},s,i,r){let o;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);o=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=F.BLOCK_LITERAL),t!==F.QUOTE_DOUBLE){let e=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),n=Math.ceil(o.length/e),i=Array(n);for(let t=0,s=0;t<n;++t,s+=e)i[t]=o.substr(s,e);o=i.join(t===F.BLOCK_LITERAL?"\n":" ")}return eo({comment:e,type:t,value:o},s,i,r)}};function eF(e,t){if(b(e))for(let n=0;n<e.items.length;++n){let s=e.items[n];if(!y(s)){if(m(s)){s.items.length>1&&t("Each pair must have its own sequence indicator");let e=s.items[0]||new ey(new F(null));if(s.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${s.commentBefore}
|
|
16
16
|
${e.key.commentBefore}`:s.commentBefore),s.comment){let t=e.value??e.key;t.comment=t.comment?`${s.comment}
|
|
17
|
-
${t.comment}`:s.comment}s=e}e.items[n]=y(s)?s:new ey(s)}}else t("Expected a sequence for this tag");return e}function eV(e,t,n){let{replacer:s}=n,i=new eS(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,l;if("function"==typeof s&&(e=s.call(t,String(r++),e)),Array.isArray(e))if(2===e.length)o=e[0],l=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)l=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(em(o,l,n))}return i}let eJ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eF,createNode:eV};class eW extends eS{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=eW.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let s,i;if(y(e)?(s=j(e.key,"",t),i=j(e.value,s,t)):s=j(e,"",t),n.has(s))throw Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){let s=eV(e,t,n),i=new this;return i.items=s.items,i}}eW.tag="tag:yaml.org,2002:omap";let ez={collection:"seq",identify:e=>e instanceof Map,nodeClass:eW,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eF(e,t),s=[];for(let{key:e}of n.items)g(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new eW,n)},createNode:(e,t,n)=>eW.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eG:eH).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eG={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 F(!0),stringify:eY},eH={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 F(!1),stringify:eY},eQ=e=>"bigint"==typeof e||Number.isInteger(e);function eX(e,t,n,{intAsBigInt:s}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let r=parseInt(e,n);return"-"===i?-1*r:r}function eZ(e,t,n){let{value:s}=e;if(eQ(s)){let e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return ex(e)}class e0 extends ek{constructor(e){super(e),this.tag=e0.tag}add(e){let t;t=y(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ey(e.key,null):new ey(e,null),ev(this.items,t.key)||this.items.push(t)}get(e,t){let n=ev(this.items,e);return!t&&y(n)?g(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ev(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ey(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:s}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),i.items.push(em(e,null,n));return i}}e0.tag="tag:yaml.org,2002:set";let e1={collection:"map",identify:e=>e instanceof Set,nodeClass:e0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e0.from(e,t,n),resolve(e,t){if(m(e))if(e.hasAllNullValues(!0))return Object.assign(new e0,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e2(e,t){let n=e[0],s="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),r=s.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*r:r}function e9(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return ex(e);let s="";t<0&&(s="-",t*=n(-1));let i=n(60),r=[t%i];return t<60?r.unshift(0):(t=(t-r[0])/i,r.unshift(t%i),t>=60&&(t=(t-r[0])/i,r.unshift(t))),s+r.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e3={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:n})=>e2(e,n),stringify:e9},e4={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=>e2(e,!1),stringify:e9},e7={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(e7.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,s,i,r,o,l]=t.map(Number),a=Date.UTC(n,s-1,i,r||0,o||0,l||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=e2(c,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e8=[ew,eN,eO,eA,eG,eH,{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eX(e,2,2,n),stringify:e=>eZ(e,2,"0b")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eX(e,1,8,n),stringify:e=>eZ(e,8,"0")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eX(e,0,10,n),stringify:ex},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eX(e,2,16,n),stringify:e=>eZ(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]?-1/0:1/0,stringify:ex},{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():ex(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 F(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:ex},eU,eu,ez,eJ,e1,e3,e4,e7],e5=new Map([["core",eP],["failsafe",[ew,eN,eO]],["json",eR],["yaml11",e8],["yaml-1.1",e8]]),e6={binary:eU,bool:eL,float:e$,floatExp:eI,floatNaN:eT,floatTime:e4,int:eM,intHex:eK,intOct:e_,intTime:e3,map:ew,merge:eu,null:eA,omap:ez,pairs:eJ,seq:eN,set:e1,timestamp:e7},te={"tag:yaml.org,2002:binary":eU,"tag:yaml.org,2002:merge":eu,"tag:yaml.org,2002:omap":ez,"tag:yaml.org,2002:pairs":eJ,"tag:yaml.org,2002:set":e1,"tag:yaml.org,2002:timestamp":e7};function tt(e,t,n){let s=e5.get(t);if(s&&!e)return n&&!s.includes(eu)?s.concat(eu):s.slice();let i=s;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(e5.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)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(eu)),i.reduce((e,t)=>{let n="string"==typeof t?e6[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e6).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tn=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class ts{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:r,toStringDefaults:o}){this.compat=Array.isArray(e)?tt(e,"compat"):e?tt(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=s?te:{},this.tags=tt(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,a,{value:ew}),Object.defineProperty(this,u,{value:eO}),Object.defineProperty(this,f,{value:eN}),this.sortMapEntries="function"==typeof r?r:!0===r?tn:null}clone(){let e=Object.create(ts.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class ti{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:l});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:r}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(r=this.directives.yaml.version)):this.directives=new B({version:r}),this.setSchema(r,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){let e=Object.create(ti.prototype,{[h]:{value:l}});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=k(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){tr(this.contents)&&this.contents.add(e)}addIn(e,t){tr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=M(this);e.anchor=!t||n.has(t)?K(t||"a",n):t}return new R(e.anchor)}createNode(e,t,n){var s,i;let r,o,l,a;if("function"==typeof t)e=t.call({"":e},"",e),r=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)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:c,anchorPrefix:u,flow:f,keepUndefined:h,onTagObj:d,tag:p}=n??{},{onAnchor:m,setAnchors:y,sourceObjects:b}=(s=this,i=u||"a",o=[],l=new Map,a=null,{onAnchor:e=>{o.push(e),a??(a=M(s));let t=K(i,a);return a.add(t),t},setAnchors:()=>{for(let e of o){let t=l.get(e);if("object"==typeof t&&t.anchor&&(g(t.node)||v(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:l}),k={aliasDuplicateObjects:c??!0,keepUndefined:h??!1,onAnchor:m,onTagObj:d,replacer:r,schema:this.schema,sourceObjects:b},w=V(e,p,k);return f&&v(w)&&(w.flow=!0),y(),w}createPair(e,t,n={}){return new ey(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!tr(this.contents)&&this.contents.delete(e)}deleteIn(e){return W(e)?null!=this.contents&&(this.contents=null,!0):!!tr(this.contents)&&this.contents.deleteIn(e)}get(e,t){return v(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return W(e)?!t&&g(this.contents)?this.contents.value:this.contents:v(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!v(this.contents)&&this.contents.has(e)}hasIn(e){return W(e)?void 0!==this.contents:!!v(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=J(this.schema,[e],t):tr(this.contents)&&this.contents.set(e,t)}setIn(e,t){W(e)?this.contents=t:null==this.contents?this.contents=J(this.schema,Array.from(e),t):tr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new B({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new B({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=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(n)this.schema=new ts(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:r}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},l=j(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof r?P(r,{"":l},"",l):l}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 n=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");let i=el(e,t),{commentString:r}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=r(e.commentBefore);n.unshift(G(t,""))}let o=!1,l=null;if(e.contents){if(k(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){let t=r(e.contents.commentBefore);n.push(G(t,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let t=l?void 0:()=>o=!0,a=ea(e.contents,i,()=>l=null,t);l&&(a+=H(a,"",r(l))),("|"===a[0]||">"===a[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${a}`:n.push(a)}else n.push(ea(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=r(e.comment);t.includes("\n")?(n.push("..."),n.push(G(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||l)&&""!==n[n.length-1]&&n.push(""),n.push(G(r(t),"")))}return n.join("\n")+"\n"}(this,e)}}function tr(e){if(v(e))return!0;throw Error("Expected a YAML collection as document contents")}class to extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class tl extends to{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class ta extends to{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let tc=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:s,col:i}=n.linePos[0];n.message+=` at line ${s}, column ${i}`;let r=i-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let e=Math.min(r-39,o.length-79);o="…"+o.substring(e),r-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,r))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===s&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-r)));let l=" ".repeat(r)+"^".repeat(e);n.message+=`:
|
|
17
|
+
${t.comment}`:s.comment}s=e}e.items[n]=y(s)?s:new ey(s)}}else t("Expected a sequence for this tag");return e}function eV(e,t,n){let{replacer:s}=n,i=new eS(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,l;if("function"==typeof s&&(e=s.call(t,String(r++),e)),Array.isArray(e))if(2===e.length)o=e[0],l=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)l=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(em(o,l,n))}return i}let eJ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eF,createNode:eV};class eW extends eS{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=eW.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let s,i;if(y(e)?(s=j(e.key,"",t),i=j(e.value,s,t)):s=j(e,"",t),n.has(s))throw Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){let s=eV(e,t,n),i=new this;return i.items=s.items,i}}eW.tag="tag:yaml.org,2002:omap";let ez={collection:"seq",identify:e=>e instanceof Map,nodeClass:eW,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eF(e,t),s=[];for(let{key:e}of n.items)g(e)&&(s.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):s.push(e.value));return Object.assign(new eW,n)},createNode:(e,t,n)=>eW.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eG:eH).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eG={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 F(!0),stringify:eY},eH={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 F(!1),stringify:eY},eQ=e=>"bigint"==typeof e||Number.isInteger(e);function eX(e,t,n,{intAsBigInt:s}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),s){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let r=parseInt(e,n);return"-"===i?-1*r:r}function eZ(e,t,n){let{value:s}=e;if(eQ(s)){let e=s.toString(t);return s<0?"-"+n+e.substr(1):n+e}return ex(e)}class e0 extends ek{constructor(e){super(e),this.tag=e0.tag}add(e){let t;t=y(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new ey(e.key,null):new ey(e,null),ev(this.items,t.key)||this.items.push(t)}get(e,t){let n=ev(this.items,e);return!t&&y(n)?g(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ev(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ey(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:s}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof s&&(e=s.call(t,e,e)),i.items.push(em(e,null,n));return i}}e0.tag="tag:yaml.org,2002:set";let e1={collection:"map",identify:e=>e instanceof Set,nodeClass:e0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>e0.from(e,t,n),resolve(e,t){if(m(e))if(e.hasAllNullValues(!0))return Object.assign(new e0,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e2(e,t){let n=e[0],s="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),r=s.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*r:r}function e9(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return ex(e);let s="";t<0&&(s="-",t*=n(-1));let i=n(60),r=[t%i];return t<60?r.unshift(0):(t=(t-r[0])/i,r.unshift(t%i),t>=60&&(t=(t-r[0])/i,r.unshift(t))),s+r.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e3={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:n})=>e2(e,n),stringify:e9},e4={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=>e2(e,!1),stringify:e9},e7={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(e7.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,s,i,r,o,l]=t.map(Number),a=Date.UTC(n,s-1,i,r||0,o||0,l||0,t[7]?Number((t[7]+"00").substr(1,3)):0),c=t[8];if(c&&"Z"!==c){let e=e2(c,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e8=[ew,eN,eO,eA,eG,eH,{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eX(e,2,2,n),stringify:e=>eZ(e,2,"0b")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eX(e,1,8,n),stringify:e=>eZ(e,8,"0")},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eX(e,0,10,n),stringify:ex},{identify:eQ,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eX(e,2,16,n),stringify:e=>eZ(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]?-1/0:1/0,stringify:ex},{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():ex(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 F(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let s=e.substring(n+1).replace(/_/g,"");"0"===s[s.length-1]&&(t.minFractionDigits=s.length)}return t},stringify:ex},eU,eu,ez,eJ,e1,e3,e4,e7],e5=new Map([["core",eP],["failsafe",[ew,eN,eO]],["json",eR],["yaml11",e8],["yaml-1.1",e8]]),e6={binary:eU,bool:eL,float:e$,floatExp:eI,floatNaN:eT,floatTime:e4,int:eK,intHex:eM,intOct:e_,intTime:e3,map:ew,merge:eu,null:eA,omap:ez,pairs:eJ,seq:eN,set:e1,timestamp:e7},te={"tag:yaml.org,2002:binary":eU,"tag:yaml.org,2002:merge":eu,"tag:yaml.org,2002:omap":ez,"tag:yaml.org,2002:pairs":eJ,"tag:yaml.org,2002:set":e1,"tag:yaml.org,2002:timestamp":e7};function tt(e,t,n){let s=e5.get(t);if(s&&!e)return n&&!s.includes(eu)?s.concat(eu):s.slice();let i=s;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(e5.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)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(eu)),i.reduce((e,t)=>{let n="string"==typeof t?e6[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e6).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tn=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class ts{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:r,toStringDefaults:o}){this.compat=Array.isArray(e)?tt(e,"compat"):e?tt(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=s?te:{},this.tags=tt(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,a,{value:ew}),Object.defineProperty(this,u,{value:eO}),Object.defineProperty(this,f,{value:eN}),this.sortMapEntries="function"==typeof r?r:!0===r?tn:null}clone(){let e=Object.create(ts.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class ti{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,h,{value:l});let s=null;"function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:r}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(r=this.directives.yaml.version)):this.directives=new B({version:r}),this.setSchema(r,n),this.contents=void 0===e?null:this.createNode(e,s,n)}clone(){let e=Object.create(ti.prototype,{[h]:{value:l}});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=k(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){tr(this.contents)&&this.contents.add(e)}addIn(e,t){tr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=K(this);e.anchor=!t||n.has(t)?M(t||"a",n):t}return new R(e.anchor)}createNode(e,t,n){var s,i;let r,o,l,a;if("function"==typeof t)e=t.call({"":e},"",e),r=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)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:c,anchorPrefix:u,flow:f,keepUndefined:h,onTagObj:d,tag:p}=n??{},{onAnchor:m,setAnchors:y,sourceObjects:b}=(s=this,i=u||"a",o=[],l=new Map,a=null,{onAnchor:e=>{o.push(e),a??(a=K(s));let t=M(i,a);return a.add(t),t},setAnchors:()=>{for(let e of o){let t=l.get(e);if("object"==typeof t&&t.anchor&&(g(t.node)||v(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:l}),k={aliasDuplicateObjects:c??!0,keepUndefined:h??!1,onAnchor:m,onTagObj:d,replacer:r,schema:this.schema,sourceObjects:b},w=V(e,p,k);return f&&v(w)&&(w.flow=!0),y(),w}createPair(e,t,n={}){return new ey(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!tr(this.contents)&&this.contents.delete(e)}deleteIn(e){return W(e)?null!=this.contents&&(this.contents=null,!0):!!tr(this.contents)&&this.contents.deleteIn(e)}get(e,t){return v(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return W(e)?!t&&g(this.contents)?this.contents.value:this.contents:v(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!v(this.contents)&&this.contents.has(e)}hasIn(e){return W(e)?void 0!==this.contents:!!v(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=J(this.schema,[e],t):tr(this.contents)&&this.contents.set(e,t)}setIn(e,t){W(e)?this.contents=t:null==this.contents?this.contents=J(this.schema,Array.from(e),t):tr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new B({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new B({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=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(n)this.schema=new ts(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:r}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof s?s:100},l=j(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof r?P(r,{"":l},"",l):l}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 n=[],s=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),s=!0):e.directives.docStart&&(s=!0)}s&&n.push("---");let i=el(e,t),{commentString:r}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=r(e.commentBefore);n.unshift(G(t,""))}let o=!1,l=null;if(e.contents){if(k(e.contents)){if(e.contents.spaceBefore&&s&&n.push(""),e.contents.commentBefore){let t=r(e.contents.commentBefore);n.push(G(t,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let t=l?void 0:()=>o=!0,a=ea(e.contents,i,()=>l=null,t);l&&(a+=H(a,"",r(l))),("|"===a[0]||">"===a[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${a}`:n.push(a)}else n.push(ea(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=r(e.comment);t.includes("\n")?(n.push("..."),n.push(G(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||l)&&""!==n[n.length-1]&&n.push(""),n.push(G(r(t),"")))}return n.join("\n")+"\n"}(this,e)}}function tr(e){if(v(e))return!0;throw Error("Expected a YAML collection as document contents")}class to extends Error{constructor(e,t,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=t}}class tl extends to{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class ta extends to{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let tc=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:s,col:i}=n.linePos[0];n.message+=` at line ${s}, column ${i}`;let r=i-1,o=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let e=Math.min(r-39,o.length-79);o="…"+o.substring(e),r-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,r))){let n=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===s&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-r)));let l=" ".repeat(r)+"^".repeat(e);n.message+=`:
|
|
18
18
|
|
|
19
19
|
${o}
|
|
20
20
|
${l}
|
|
@@ -22,5 +22,5 @@ ${l}
|
|
|
22
22
|
${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(v(i)&&!i.flow&&i.items.length>0){let e=i.items[0];y(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}
|
|
23
23
|
${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}
|
|
24
24
|
${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:tx(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,s)=>{let i=tL(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:s,value:i,end:r},o){let l=new ti(void 0,Object.assign({_directives:t},e)),a={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=tu(s,{indicator:"doc-start",next:i??r?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(l.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!c.hasNewline&&o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?tO(a,i,c,o):tA(a,c.end,s,null,c,o);let u=l.contents.range[2],f=tm(r,u,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,u,f.offset],l}(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,n=new tl(tL(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new tl(tL(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=tm(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}
|
|
25
|
-
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new tl(tL(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 ti(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}}}function tI(e,t=!0,n){if(e){let s=(e,t,s)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,s);else throw new tl([i,i+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tk(e,t,s);case"block-scalar":return tv({options:{strict:t}},e,s)}}return null}function t$(e,t){let{implicitKey:n=!1,indent:s,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=t,l=eo({type:o,value:e},{implicitKey:n,indent:s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(l[0]){case"|":case">":{let e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:r,indent:s,source:t}];return tC(i,a)||i.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:r,indent:s,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:r,indent:s,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:r,indent:s,source:l,end:a};default:return{type:"scalar",offset:r,indent:s,source:l,end:a}}}function tD(e,t,n={}){let{afterKey:s=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=n,l="indent"in e?e.indent:null;if(s&&"number"==typeof l&&(l+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=eo({type:o,value:t},{implicitKey:i||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),s=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=s,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,r=[{type:"block-scalar-header",offset:t,indent:n,source:s}];for(let t of(tC(r,"end"in e?e.end:void 0)||r.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:r,source:i})}}(e,a);break;case'"':tB(e,a,"double-quoted-scalar");break;case"'":tB(e,a,"single-quoted-scalar");break;default:tB(e,a,"scalar")}}function tC(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function tB(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let s=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),s))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:s});break}case"block-map":case"block-seq":{let s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[s]});break}default:{let s="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:s,source:t,end:i})}}}let t_=e=>"type"in e?tM(e):tK(e);function tM(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=tM(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=tK(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=tK(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=tK(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function tK({start:e,key:t,sep:n,value:s}){let i="";for(let t of e)i+=t.source;if(t&&(i+=tM(t)),n)for(let e of n)i+=e.source;return s&&(i+=tM(s)),i}let tP=Symbol("break visit"),tj=Symbol("skip children"),tq=Symbol("remove item");function tR(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,s){let i=s(n,t);if("symbol"==typeof i)return i;for(let r of["key","value"]){let o=n[r];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let i=e(Object.freeze(t.concat([[r,n]])),o.items[n],s);if("number"==typeof i)n=i-1;else{if(i===tP)return tP;i===tq&&(o.items.splice(n,1),n-=1)}}"function"==typeof i&&"key"===r&&(i=i(n,t))}}return"function"==typeof i?i(n,t):i}(Object.freeze([]),e,t)}tR.BREAK=tP,tR.SKIP=tj,tR.REMOVE=tq,tR.itemAtPath=(e,t)=>{let n=e;for(let[e,s]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},tR.parentCollection=(e,t)=>{let n=tR.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],i=n?.[s];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let tU="\uFEFF",tF="\x02",tV="\x18",tJ="\x1f",tW=e=>!!e&&"items"in e,tz=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function tY(e){switch(e){case tU:return"<BOM>";case tF:return"<DOC>";case tV:return"<FLOW_END>";case tJ:return"<SCALAR>";default:return JSON.stringify(e)}}function tG(e){switch(e){case tU:return"byte-order-mark";case tF:return"doc-mode";case tV:return"flow-error-end";case tJ: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}function tH(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let tQ=new Set("0123456789ABCDEFabcdef"),tX=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),tZ=new Set(",[]{}"),t0=new Set(" ,[]{}\n\r "),t1=e=>!e||t0.has(e);class t2{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 n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}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 n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tH(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(e[0]===tU&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let s=e[n-1];if(" "===s||" "===s){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),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 tF,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)&&tH(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&&!tH(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)&&tH(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}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(t1),"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,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&tH(s[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield tV,yield*this.parseLineStart();let i=0;for(;","===s[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"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(t1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tH(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 n=this.buffer.substring(0,t),s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-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=>tH(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n: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 s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let i=e;for(;" "===s;)s=this.buffer[--e];if("\n"===s&&e>=this.pos&&e+1+n>i)t=e;else break}return yield tJ,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(tH(e)||t&&tZ.has(e))break;n=s}else if(tH(e)){let i=this.buffer[s+1];if("\r"===e&&("\n"===i?(s+=1,e="\n",i=this.buffer[s+1]):n=s),"#"===i||t&&tZ.has(i))break;if("\n"===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&tZ.has(e))break;n=s}return e||this.atEnd?(yield tJ,yield*this.pushToIndex(n+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 n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(t1),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(tH(n)||t&&tZ.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tH(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(tX.has(t))t=this.buffer[++e];else if("%"===t&&tQ.has(this.buffer[e+1])&&tQ.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,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class t9{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function t3(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function t4(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 t7(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 t8(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 t5(e){if(0===e.length)return[];let t=e.length;e: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 e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function t6(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function ne(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||t3(t.start,"explicit-key-ind")||t3(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,t7(t.value)?t.value.end?t6(t.value.end,t.sep):t.value.end=t.sep:t6(t.start,t.sep),delete t.sep)}class nt{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 t2,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);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=tG(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?.type!=="doc-end"){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&&ne(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{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 n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===t4(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.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!==t4(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,n=t5(t8(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}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 n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.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 n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){t6(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(s&&t.sep&&!t.value){let n=[];for(let s=0;s<t.sep.length;++s){let i=t.sep[s];switch(i.type){case"newline":n.push(s);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(i.push(this.sourceToken),e.items.push({start:i,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(t3(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(t7(t.key)&&!t3(t.sep,"newline")){let e=t5(t.start),n=t.key,s=t.sep;s.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:n,sep:s}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(t3(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=t5(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||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):t3(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 n=this.flowScalar(this.type);s||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!t3(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:i});this.stack.push(s);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 n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.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 n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){t6(s,t.start),s.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||t3(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)return void this.stack.push(t)}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?.type==="flow-collection")}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 n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(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 n=t5(t8(t));ne(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}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=t5(t8(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=t5(t8(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())}}}function nn(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new t9||null,prettyErrors:t}}function ns(e,t={}){let{lineCounter:n,prettyErrors:s}=nn(t),i=new nt(n?.addNewLine),r=new tT(t),o=Array.from(r.compose(i.parse(e)));if(s&&n)for(let t of o)t.errors.forEach(tc(e,n)),t.warnings.forEach(tc(e,n));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function ni(e,t={}){let{lineCounter:n,prettyErrors:s}=nn(t),i=new nt(n?.addNewLine),r=new tT(t),o=null;for(let t of r.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new tl(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&n&&(o.errors.forEach(tc(e,n)),o.warnings.forEach(tc(e,n))),o}function nr(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=ni(e,n);if(!i)return null;if(i.warnings.forEach(e=>ec(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:s},n))}function no(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return p(e)&&!s?e.toString(n):new ti(e,s,n).toString(n)}let nl=r}}]);
|
|
26
|
-
//# sourceMappingURL=
|
|
25
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new tl(tL(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 ti(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}}}function tI(e,t=!0,n){if(e){let s=(e,t,s)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,s);else throw new tl([i,i+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return tk(e,t,s);case"block-scalar":return tv({options:{strict:t}},e,s)}}return null}function t$(e,t){let{implicitKey:n=!1,indent:s,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=t,l=eo({type:o,value:e},{implicitKey:n,indent:s>0?" ".repeat(s):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(l[0]){case"|":case">":{let e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:r,indent:s,source:t}];return tC(i,a)||i.push({type:"newline",offset:-1,indent:s,source:"\n"}),{type:"block-scalar",offset:r,indent:s,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:r,indent:s,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:r,indent:s,source:l,end:a};default:return{type:"scalar",offset:r,indent:s,source:l,end:a}}}function tD(e,t,n={}){let{afterKey:s=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=n,l="indent"in e?e.indent:null;if(s&&"number"==typeof l&&(l+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=eo({type:o,value:t},{implicitKey:i||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),s=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=s,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,r=[{type:"block-scalar-header",offset:t,indent:n,source:s}];for(let t of(tC(r,"end"in e?e.end:void 0)||r.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:r,source:i})}}(e,a);break;case'"':tB(e,a,"double-quoted-scalar");break;case"'":tB(e,a,"single-quoted-scalar");break;default:tB(e,a,"scalar")}}function tC(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function tB(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let s=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),s))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:s});break}case"block-map":case"block-seq":{let s={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[s]});break}default:{let s="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:s,source:t,end:i})}}}let t_=e=>"type"in e?tK(e):tM(e);function tK(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=tK(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=tM(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=tM(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=tM(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function tM({start:e,key:t,sep:n,value:s}){let i="";for(let t of e)i+=t.source;if(t&&(i+=tK(t)),n)for(let e of n)i+=e.source;return s&&(i+=tK(s)),i}let tP=Symbol("break visit"),tj=Symbol("skip children"),tq=Symbol("remove item");function tR(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,s){let i=s(n,t);if("symbol"==typeof i)return i;for(let r of["key","value"]){let o=n[r];if(o&&"items"in o){for(let n=0;n<o.items.length;++n){let i=e(Object.freeze(t.concat([[r,n]])),o.items[n],s);if("number"==typeof i)n=i-1;else{if(i===tP)return tP;i===tq&&(o.items.splice(n,1),n-=1)}}"function"==typeof i&&"key"===r&&(i=i(n,t))}}return"function"==typeof i?i(n,t):i}(Object.freeze([]),e,t)}tR.BREAK=tP,tR.SKIP=tj,tR.REMOVE=tq,tR.itemAtPath=(e,t)=>{let n=e;for(let[e,s]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[s]}return n},tR.parentCollection=(e,t)=>{let n=tR.itemAtPath(e,t.slice(0,-1)),s=t[t.length-1][0],i=n?.[s];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let tU="\uFEFF",tF="\x02",tV="\x18",tJ="\x1f",tW=e=>!!e&&"items"in e,tz=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function tY(e){switch(e){case tU:return"<BOM>";case tF:return"<DOC>";case tV:return"<FLOW_END>";case tJ:return"<SCALAR>";default:return JSON.stringify(e)}}function tG(e){switch(e){case tU:return"byte-order-mark";case tF:return"doc-mode";case tV:return"flow-error-end";case tJ: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}function tH(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let tQ=new Set("0123456789ABCDEFabcdef"),tX=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),tZ=new Set(",[]{}"),t0=new Set(" ,[]{}\n\r "),t1=e=>!e||t0.has(e);class t2{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 n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}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 n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&tH(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(e[0]===tU&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let s=e[n-1];if(" "===s||" "===s){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),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 tF,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)&&tH(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&&!tH(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)&&tH(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}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(t1),"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,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(null===s)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==s[0]||0===n&&(s.startsWith("---")||s.startsWith("..."))&&tH(s[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==s[0]&&"}"!==s[0]))return this.flowLevel=0,yield tV,yield*this.parseLineStart();let i=0;for(;","===s[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"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(t1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||tH(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 n=this.buffer.substring(0,t),s=n.indexOf("\n",this.pos);if(-1!==s){for(;-1!==s;){let e=this.continueScalar(s+1);if(-1===e)break;s=n.indexOf("\n",e)}-1!==s&&(t=s-("\r"===n[s-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=>tH(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":n+=1;break;case"\n":t=s,n=0;break;case"\r":{let e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n: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 s=t+1;for(e=this.buffer[s];" "===e;)e=this.buffer[++s];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,s=this.buffer[e];"\r"===s&&(s=this.buffer[--e]);let i=e;for(;" "===s;)s=this.buffer[--e];if("\n"===s&&e>=this.pos&&e+1+n>i)t=e;else break}return yield tJ,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,s=this.pos-1;for(;e=this.buffer[++s];)if(":"===e){let e=this.buffer[s+1];if(tH(e)||t&&tZ.has(e))break;n=s}else if(tH(e)){let i=this.buffer[s+1];if("\r"===e&&("\n"===i?(s+=1,e="\n",i=this.buffer[s+1]):n=s),"#"===i||t&&tZ.has(i))break;if("\n"===e){let e=this.continueScalar(s+1);if(-1===e)break;s=Math.max(s,e-2)}}else{if(t&&tZ.has(e))break;n=s}return e||this.atEnd?(yield tJ,yield*this.pushToIndex(n+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 n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(t1),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(tH(n)||t&&tZ.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!tH(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(tX.has(t))t=this.buffer[++e];else if("%"===t&&tQ.has(this.buffer[e+1])&&tQ.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,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class t9{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let s=this.lineStarts[t-1];return{line:t,col:e-s+1}}}}function t3(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function t4(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 t7(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 t8(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 t5(e){if(0===e.length)return[];let t=e.length;e: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 e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function t6(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function ne(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||t3(t.start,"explicit-key-ind")||t3(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,t7(t.value)?t.value.end?t6(t.value.end,t.sep):t.value.end=t.sep:t6(t.start,t.sep),delete t.sep)}class nt{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 t2,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);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=tG(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?.type!=="doc-end"){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&&ne(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{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 n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===t4(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.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!==t4(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,n=t5(t8(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}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 n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.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 n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){t6(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,s=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(s&&t.sep&&!t.value){let n=[];for(let s=0;s<t.sep.length;++s){let i=t.sep[s];switch(i.type){case"newline":n.push(s);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":s||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?s||t.value?(i.push(this.sourceToken),e.items.push({start:i,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(t3(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(t7(t.key)&&!t3(t.sep,"newline")){let e=t5(t.start),n=t.key,s=t.sep;s.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:n,sep:s}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(t3(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=t5(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||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):t3(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 n=this.flowScalar(this.type);s||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(e);if(s){if("block-seq"===s.type){if(!t.explicitKey&&t.sep&&!t3(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:i});this.stack.push(s);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 n="end"in t.value?t.value.end:void 0,s=Array.isArray(n)?n[n.length-1]:void 0;s?.type==="comment"?n?.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 n=e.items[e.items.length-2],s=n?.value?.end;if(Array.isArray(s)){t6(s,t.start),s.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||t3(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)return void this.stack.push(t)}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?.type==="flow-collection")}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 n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(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 n=t5(t8(t));ne(e);let s=e.end.splice(1,e.end.length);s.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}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=t5(t8(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=t5(t8(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())}}}function nn(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new t9||null,prettyErrors:t}}function ns(e,t={}){let{lineCounter:n,prettyErrors:s}=nn(t),i=new nt(n?.addNewLine),r=new tT(t),o=Array.from(r.compose(i.parse(e)));if(s&&n)for(let t of o)t.errors.forEach(tc(e,n)),t.warnings.forEach(tc(e,n));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function ni(e,t={}){let{lineCounter:n,prettyErrors:s}=nn(t),i=new nt(n?.addNewLine),r=new tT(t),o=null;for(let t of r.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new tl(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return s&&n&&(o.errors.forEach(tc(e,n)),o.warnings.forEach(tc(e,n))),o}function nr(e,t,n){let s;"function"==typeof t?s=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=ni(e,n);if(!i)return null;if(i.warnings.forEach(e=>ec(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:s},n))}function no(e,t,n){let s=null;if("function"==typeof t||Array.isArray(t)?s=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return p(e)&&!s?e.toString(n):new ti(e,s,n).toString(n)}let nl=r}}]);
|
|
26
|
+
//# sourceMappingURL=7227.69beafef.chunk.js.map
|