PageSourceSearch

https://voidpoint.io/assets/webpack/pages.projects.show.92cd669a.chunk.js

js voidpoint.io collected 2026-10-02 19:15:36 UTC 353,896 bytes, 8 lines download raw bytes

1(this.webpackJsonp=this.webpackJsonp||[]).push([["pages.projects.show","d60a47a6","67e5e2cb"],{"+MIs":function(e,t,n){"use strict";var i=n("yi8e"),r=n("J7NB"),a=n("CbCZ"),o=n("hxHM"),s=n("+wZC"),l=n("Jx7q"),c=n("9/Bc"),d=n("b49+"),u=n("iat5"),p={name:"CodeNavigationPopover",components:{GlButton:a.a,GlTabs:o.a,GlTab:s.a,GlLink:l.a,GlBadge:c.a,DocLine:u.a,Markdown:d.a},props:{position:{type:Object,required:!0},data:{type:Object,required:!0},definitionPathPrefix:{type:String,required:!0},blobPath:{type:String,required:!0}},data:()=>({offsetLeft:0}),computed:{isCurrentDefinition(){return this.data.definitionLineNumber-1===this.position.lineIndex},positionStyles(){return{left:this.position.x-this.offsetLeft+"px",top:this.position.y+this.position.height+"px"}},definitionPath(){return this.data.definition_path?this.isDefinitionCurrentBlob?"#L"+this.data.definitionLineNumber:`${this.definitionPathPrefix}/${this.data.definition_path}`:null},isDefinitionCurrentBlob(){return 0===this.data.definition_path.indexOf(this.blobPath)},references(){return this.data.references||[]}},watch:{position:{handler(){var e=this;this.$nextTick((function(){return e.updateOffsetLeft()}))},deep:!0,immediate:!0}},methods:{updateOffsetLeft(){this.offsetLeft=Math.max(0,this.$el.offsetLeft+this.$el.offsetWidth-window.innerWidth+20)}}},h=n("tBpV"),f={name:"CodeNavigationApp",components:{Popover:Object(h.a)(p,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"popover code-navigation-popover popover-font-size-normal gl-popover bs-popover-bottom show",style:e.positionStyles},[t("div",{staticClass:"arrow",style:{left:e.offsetLeft+"px"}}),e._v(" "),t("gl-tabs",{attrs:{"content-class":"gl-py-0"}},[t("gl-tab",{attrs:{title:e.__("Definition")}},[t("div",{staticClass:"code-navigation-popover-container !gl-overflow-auto"},e._l(e.data.hover,(function(n,i){return t("div",{key:i,class:{"!gl-border-b !gl-border-b-gray-300":i!==e.data.hover.length-1}},[n.language?t("pre",{ref:"code-output",refInFor:!0,staticClass:"code code-syntax-highlight-theme highlight !gl-m-0 !gl-whitespace-normal !gl-border-0 !gl-bg-transparent"},e._l(n.tokens,(function(e,i){return t("doc-line",{key:i,attrs:{language:n.language,tokens:e}})})),1):t("markdown",{ref:"doc-output",refInFor:!0,staticClass:"gl-p-3",attrs:{markdown:n.value}})],1)})),0),e._v(" "),e.definitionPath||e.isCurrentDefinition?t("div",{staticClass:"popover-body !gl-border-t !gl-border-t-gray-300"},[e.isCurrentDefinition?t("span",{staticClass:"gl-text-base gl-font-bold"},[e._v("\n          "+e._s(e.s__("CodeIntelligence|This is the definition"))+"\n        ")]):t("gl-button",{staticClass:"gl-w-full",attrs:{href:e.definitionPath,target:e.isDefinitionCurrentBlob?null:"_blank",variant:"default","data-testid":"go-to-definition-btn"}},[e._v("\n          "+e._s(e.__("Go to definition"))+"\n        ")])],1):e._e()]),e._v(" "),t("gl-tab",{staticClass:"!gl-py-3",attrs:{"data-testid":"references-tab"},scopedSlots:e._u([{key:"title",fn:function(){return[e._v("\n        "+e._s(e.__("References"))+"\n        "),t("gl-badge",{staticClass:"gl-tab-counter-badge"},[e._v(e._s(e.references.length))])]},proxy:!0}])},[e._v(" "),e.references.length?e._l(e.references,(function(n,i){return t("div",{key:i,staticClass:"gl-dropdown-item"},[t("gl-link",{staticClass:"dropdown-item",attrs:{href:`${e.definitionPathPrefix}/${n.path}`,"data-testid":"reference-link"}},[e._v("\n            "+e._s(n.path)+"\n          ")])],1)})):t("p",{staticClass:"gl-my-4 gl-px-4"},[e._v("\n        "+e._s(e.s__("CodeNavigation|No references found"))+"\n      ")])],2)],1)],1)}),[],!1,null,null,null).exports},props:{codeNavigationPath:{type:String,required:!1,default:null},blobPath:{type:String,required:!1,default:null},pathPrefix:{type:String,required:!1,default:null},wrapTextNodes:{type:Boolean,required:!1,default:!1}},computed:{...Object(i.f)(["currentDefinition","currentDefinitionPosition","currentBlobPath","definitionPathPrefix","data"])},mounted(){if(this.codeNavigationPath&&this.blobPath&&this.pathPrefix){const e={blobs:[{path:this.blobPath,codeNavigationPath:this.codeNavigationPath}],definitionPathPrefix:this.pathPrefix,wrapTextNodes:this.wrapTextNodes};this.setInitialData(e)}this.body=document.body,r.a.$on("show-blob-interaction-zones",this.showCodeNavigation),this.addGlobalEventListeners(),this.fetchData()},beforeDestroy(){r.a.$off("show-blob-interaction-zones",this.showCodeNavigation),this.removeGlobalEventListeners()},methods:{...Object(i.c)(["fetchData","showDefinition","showBlobInteractionZones","setInitialData"]),showCodeNavigation(e){var t,n=this;if(null!==(t=this.data)&&void 0!==t&&t[e])this.showBlobInteractionZones(e);else{const t=this.$watch("data",(function(){t(),n.showBlobInteractionZones(e)}))}},addGlobalEventListeners(){this.body&&this.body.addEventListener("click",this.showDefinition)},removeGlobalEventListeners(){this.body&&this.body.removeEventListener("click",this.showDefinition)}}},m=Object(h.a)(f,(function(){var e=this._self._c;return this.currentDefinition?e("popover",{attrs:{position:this.currentDefinitionPosition,data:this.currentDefinition,"definition-path-prefix":this.definitionPathPrefix,"blob-path":this.currentBlobPath}}):this._e()}),[],!1,null,null,null);t.a=m.exports},"+wZC":function(e,t,n){"use strict";var i=n("yzEV"),r=n("zNqO"),a=n("n64d"),o=n("pTIT"),s=n("/2q6"),l=n("eOJu"),c=n("tslw"),d=n("slyf"),u=n("Ccns");const p=o.P+"active",h=Object(l.m)({...c.b,active:{type:Boolean,required:!1,default:!1},buttonId:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},noBody:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"},title:{type:String,required:!1,default:void 0},titleItemClass:{type:[Array,Object,String],required:!1,default:void 0},titleLinkAttributes:{type:Object,required:!1,default:void 0},titleLinkClass:{type:[Array,Object,String],required:!1,default:void 0}}),f=Object(r.c)({name:a.z,mixins:[c.a,d.a],inject:{getBvTabs:{default:function(){return function(){return{}}}}},props:h,data(){return{localActive:this.active&&!this.disabled}},computed:{bvTabs(){return this.getBvTabs()},_isTab:()=>!0,tabClasses(){const{localActive:e,disabled:t}=this;return[{active:e,disabled:t,"card-body":this.bvTabs.card&&!this.noBody},e?this.bvTabs.activeTabClass:null]},controlledBy(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade(){return!this.bvTabs.fade},computedLazy(){return this.bvTabs.lazy||this.lazy}},watch:{active(e,t){e!==t&&(e?this.activate():this.deactivate()||this.$emit(p,this.localActive))},disabled(e,t){if(e!==t){const{firstTab:t}=this.bvTabs;e&&this.localActive&&t&&(this.localActive=!1,t())}},localActive(e){this.$emit(p,e)}},mounted(){this.registerTab()},updated(){const{updateButton:e}=this.bvTabs;e&&this.hasNormalizedSlot(s.y)&&e(this)},beforeDestroy(){this.unregisterTab()},methods:{registerTab(){const{registerTab:e}=this.bvTabs;e&&e(this)},unregisterTab(){const{unregisterTab:e}=this.bvTabs;e&&e(this)},activate(){const{activateTab:e}=this.bvTabs;return!(!e||this.disabled)&&e(this)},deactivate(){const{deactivateTab:e}=this.bvTabs;return!(!e||!this.localActive)&&e(this)}},render(e){const{localActive:t}=this,n=e(this.tag,{staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",value:t}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":t?"false":"true","aria-labelledby":this.controlledBy||null},ref:"panel"},[t||!this.computedLazy?this.normalizeSlot():e()]);return e(u.a,{props:{mode:"out-in",noFade:this.computedNoFade}},[n])}});var m=n("9/Bc"),g=n("mpVB"),b=n("OJiF"),v={name:"GlTab",components:{BTab:f,GlBadge:m.a},inheritAttrs:!1,props:{titleLinkClass:{type:[String,Array,Object],required:!1,default:""},queryParamValue:{type:String,required:!1,default:null},tabCount:{type:Number,required:!1,default:null},tabCountSrText:{type:String,required:!1,default:null}},computed:{linkClass(){const{titleLinkClass:e}=this;return Array.isArray(e)?[...e,b.a]:Object(i.a)(e)?{...e,[b.a]:!0}:`${e} ${b.a}`.trim()},hasTabCount(){return null!=this.tabCount&&this.tabCount>=0}},created(){this.hasTabCount&&!this.tabCountSrText&&Object(g.i)('When using "tab-count", you should also provide "tab-count-sr-text" for screen reader accessibility. Example: :tab-count-sr-text="n__(\'%d item\', \'%d items\', count)"',{name:"GlTab"})}},k=n("tBpV"),y=Object(k.a)(v,(function(){var e=this,t=e._self._c;return t("b-tab",e._g(e._b({attrs:{title:e.hasTabCount?null:e.$attrs.title,"title-link-class":e.linkClass,"query-param-value":e.queryParamValue},scopedSlots:e._u([e.hasTabCount?{key:"title",fn:function(){return[e._t("title",(function(){return[e._v(e._s(e.$attrs.title))]})),e._v(" "),t("gl-badge",{staticClass:"gl-ml-2",attrs:{variant:"neutral","aria-hidden":"true","data-testid":"tab-counter-badge"}},[e._v("\n      "+e._s(e.tabCount)+"\n    ")]),e._v(" "),e.tabCountSrText?t("span",{staticClass:"gl-sr-only"}
1,[e._v(e._s(e.tabCountSrText))]):e._e()]},proxy:!0}:null,e._l(Object.keys(e.$scopedSlots),(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}}))],null,!0)},"b-tab",e.$attrs,!1),e.$listeners))}),[],!1,null,null,null);t.a=y.exports},"0Ypr":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n("jlnU"),r=n("CzKS"),a=n("3twG"),o=n("/lV4"),s=n("1OWu");const l={GROUP:"group",PROJECT:"project"};async function c(e){if(!e)throw new Error("namespaceType not provided");if(!Object(a.q)("leave"))return;Object(r.b)();const t=e===l.GROUP?"#group-more-action-dropdown .js-leave-link":".js-leave-link";try{(await Object(s.o)(t)).click()}catch(t){Object(i.createAlert)({message:Object(o.j)(Object(o.a)("You do not have permission to leave this %{namespaceType}."),{namespaceType:e})})}}},"0hIY":function(e,t,n){"use strict";n("ZzK0"),n("z6RN"),n("BzOf"),n("UezY"),n("hG7+");var i=n("qjHl"),r=n("tsC0"),a=n("QBfH");const o=function(e={}){e.highlightLineClass=e.highlightLineClass||"hll",e.fileHolderSelector=e.fileHolderSelector||".file-holder",e.scrollFileHolder=e.scrollFileHolder||!1,e.hash=e.hash||window.location.hash,e.scrollBehavior=e.scrollBehavior||"smooth",this.options=e,this._hash=e.hash,this.highlightLineClass=e.highlightLineClass,this.setHash=this.setHash.bind(this),this.highlightLine=this.highlightLine.bind(this),this.clickHandler=this.clickHandler.bind(this),this.highlightHash=this.highlightHash.bind(this),this.bindEvents(),this.highlightHash()};o.prototype.bindEvents=function(){var e=this;const t=document.querySelector(this.options.fileHolderSelector);t&&(t.addEventListener("click",this.clickHandler),t.addEventListener("highlight:line",this.highlightHash),window.addEventListener("hashchange",(function(t){return e.highlightHash(t.target.location.hash)})))},o.prototype.highlightHash=function(e,t=!0){let n;if(e&&"string"==typeof e&&(this._hash=e),this.clearHighlight(),""!==this._hash&&(n=this.hashToRange(this._hash),n[0])){this.highlightRange(n);const e="#L"+n[0];t&&Object(i.h)(e,{offset:-100,behavior:this.options.scrollBehavior})}},o.prototype.clickHandler=function(e){if(e.target.matches("a[data-line-number]")){let t;e.preventDefault(),this.clearHighlight();const n=parseInt(e.target.dataset.lineNumber,10),i=this.hashToRange(this._hash);if(!i[0]||!e.shiftKey)return this.setHash(n),this.highlightLine(n);if(e.shiftKey)return t=n<i[0]?[n,i[0]]:[i[0],n],this.setHash(t[0],t[1]),this.highlightRange(t)}},o.prototype.clearHighlight=function(){var e=this;document.querySelectorAll(`.${this.highlightLineClass}, .${a.e}, .${a.c}`).forEach((function(t){t.classList.remove(e.highlightLineClass,a.e,a.c)}))},o.prototype.hashToRange=function(e){const t=e.match(/^#?L(\d+)(?:-L?(\d+))?$/);if(t&&t.length){return[parseInt(t[1],10),t[2]?parseInt(t[2],10):null]}return[null,null]},o.prototype.lineElements=function(e){const t=document.getElementById("LC"+e),n=document.getElementById("L"+e);return[t,(null==n?void 0:n.closest(".diff-line-num"))||n].filter(Boolean)},o.prototype.highlightLine=function(e){var t=this;this.lineElements(e).forEach((function(e){e.classList.add(t.highlightLineClass,a.e,a.c)}))},o.prototype.highlightRange=function(e){var t=this;if(e[1]){const n=[],i=e[0]<=e[1]?e:e.reverse();for(let e=i[0];e<=i[1];e+=1)this.lineElements(e).forEach((function(r){r.classList.add(t.highlightLineClass),e===i[0]&&r.classList.add(a.e),e===i[1]&&r.classList.add(a.c),n.push(r)}));return n}return this.highlightLine(e[0])},o.prototype.setHash=function(e,t){let n;return n=t?`#L${e}-${t}`:"#L"+e,this._hash=n,Object(r.b)(n),this.__setLocationHash__(n)},o.prototype.__setLocationHash__=function(e){return window.history.pushState({url:e},document.title,e)},t.a=o},"1oPb":function(e,t,n){"use strict";var i={name:"TableHeader",data(){var e;return{showCommitColumns:!1!==(null===(e=window.gon)||void 0===e?void 0:e.show_commit_columns)}}},r=n("tBpV"),a=Object(r.a)(i,(function(){var e=this,t=e._self._c;return t("thead",[t("tr",[t("th",{attrs:{id:"name",scope:"col"}},[e._v(e._s(e.s__("ProjectFileTree|Name")))]),e._v(" "),e.showCommitColumns?t("th",{staticClass:"gl-hidden @sm/panel:gl-table-cell",attrs:{id:"last-commit",scope:"col"}}
1,[e._v("\n      "+e._s(e.__("Last commit"))+"\n    ")]):e._e(),e._v(" "),e.showCommitColumns?t("th",{staticClass:"!gl-text-right",attrs:{id:"last-update",scope:"col"}},[e._v("\n      "+e._s(e.__("Last update"))+"\n    ")]):e._e()])])}),[],!1,null,null,null);t.a=a.exports},"20aQ":function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getBlobControls"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filePath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ref"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"refType"}},type:{kind:"NamedType",name:{kind:"Name",value:"RefType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userPermissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pushCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createMergeRequestIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkProject"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"empty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blobs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paths"}
1,value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"filePath"}}]}},{kind:"Argument",name:{kind:"Name",value:"ref"},value:{kind:"Variable",name:{kind:"Name",value:"ref"}}},{kind:"Argument",name:{kind:"Name",value:"refType"},value:{kind:"Variable",name:{kind:"Name",value:"refType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blamePath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"permalinkPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"storedExternally"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalStorage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"environmentFormattedExternalUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"environmentExternalUrlForRouteMap"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawTextBlob"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"replacePath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canCurrentUserPushToBranch"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canModifyBlob"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canModifyBlobWithWebIde"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkAndViewPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"editBlobPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ideEditPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pipelineEditorPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gitpodBlobUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"simpleViewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tooLarge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderError"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"richViewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tooLarge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderError"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1303}};n.loc.source={body:"query getBlobControls($projectPath: ID!, $filePath: String!, $ref: String!, $refType: RefType) {\n  project(fullPath: $projectPath) {\n    __typename\n    id\n    userPermissions {\n      __typename\n      pushCode\n      downloadCode\n      createMergeRequestIn\n      forkProject\n    }\n    repository {\n      __typename\n      empty\n      blobs(paths: [$filePath], ref: $ref, refType: $refType) {\n        __typename\n        nodes {\n          __typename\n          id\n          name\n          blamePath\n          permalinkPath\n          storedExternally\n          externalStorage\n          environmentFormattedExternalUrl\n          environmentExternalUrlForRouteMap\n          path\n          rawPath\n          rawTextBlob\n          archived\n          replacePath\n          webPath\n          canCurrentUserPushToBranch\n          canModifyBlob\n          canModifyBlobWithWebIde\n          forkAndViewPath\n          editBlobPath\n          ideEditPath\n          pipelineEditorPath\n          gitpodBlobUrl\n          simpleViewer {\n            __typename\n            fileType\n            tooLarge\n            type\n            renderError\n          }\n          richViewer {\n            __typename\n            fileType\n            tooLarge\n            type\n            renderError\n          }\n        }\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
1else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getBlobControls=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getBlobControls")},"2XS0":function(e,t,n){(e.exports=n("VNgF")(!1)).push([e.i,"\n/* This is to override a margin caused by bootstrap */\n.non-gfm-markdown-block[data-v-32c56741] {\n[data-v-32c56741] p:last-of-type {\n    margin-bottom: 0;\n}\n  /* All code blocks here should break to avoid overflow issues in consumer components */\n[data-v-32c56741] code {\n    word-break: break-all;\n}\n[data-v-32c56741] pre {\n    white-space: pre-wrap;\n}\n}\n",""])},"2o4f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("3twG"),r=n("w/32");function a(e,t,n){const a=new URL(window.location.href),o=a.pathname;let s,l=null,c="/-/tree",d=n;const u=n.match(/^refs\/(heads|tags)\/(.+)/);u&&([,l,d]=u),l?a.searchParams.set("ref_type",l.toLowerCase()):a.searchParams.delete("ref_type");const p=function(e){const t=Object(r.a)(e);return new RegExp(`(/-/(blob|tree|commits)|/blob)/${t}/?(.*)`)}(t).exec(o);return p&&([,c,,s]=p),a.pathname=Object(i.A)(e,c,encodeURI(d).replace(/#/g,"%23"),s),a.toString()}},328:function(e,t,n){n("HVBj"),n("gjpc"),e.exports=n("PkLN")},"3gfG":function(e,t,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getProjectByPath"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"fullPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Project"},directives:[]}]}}]}}],loc:{start:0,end:199}};i.loc.source={body:'#import "~/graphql_shared/fragments/project.fragment.graphql"\n\n# @feature_category: groups_and_projects\nquery getProjectByPath($fullPath: ID!) {\n  project(fullPath: $fullPath) {\n    ...Project\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};i.definitions=i.definitions.concat(n("FGEe").definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!r[t]&&(r[t]=!0,!0)})));var a={};function o(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),a[e.name.value]=t}})),e.exports=i,e.exports.getProjectByPath=function(e,t){var n={kind:e.kind,definitions:[o(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var i=a[t]||new Set,r=new Set,s=new Set;for(i.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach((function(e){s.add(e)})))}))}return r.forEach((function(t){var i=o(e,t);i&&n.definitions.push(i)})),n}(i,"getProjectByPath")},"4oYX":function(e,t,n){"use strict";var i=n("AxB5"),r=n("L78D"),a=n("E3sI"),o=n("CbCZ"),s=n("zIFf"),l=n("0Q6N"),c=n("/lV4"),d=n("ygVz"),u={name:"CodeDropdownCloneItem",components:{GlDisclosureDropdownItem:i.a,GlFormGroup:r.a,GlFormInputGroup:a.a,GlButton:o.a},directives:{GlTooltip:s.a},mixins:[d.a.mixin(),l.a],props:{label:{type:String,required:!0},link:{type:String,required:!0},inputId:{type:String,required:!1,default:""},name:{type:String,required:!1,default:null},testId:{type:String,required:!0},tracking:{type:Object,required:!1,default:function(){return{action:null}}}},methods:{onCopyUrl(){this.$toast.show(Object(c.a)("Copied")),this.trackCopyClick()},trackCopyClick(){const{action:e}=this.tracking;e&&this.trackEvent(e)}},copyURLTooltip:Object(c.a)("Copy URL")},p=n("tBpV"),h=Object(p.a)(u,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-item",[t("gl-form-group",{staticClass:"gl-mb-3 gl-px-3 gl-text-left",attrs:{label:e.label,"label-class":"!gl-text-sm !gl-pt-2","label-for":e.inputId}},[t("gl-form-input-group",{attrs:{id:e.inputId,value:e.link,name:e.name,"data-testid":e.inputId,label:e.label,readonly:"","select-on-click":"","
1input-class":"!gl-border"},scopedSlots:e._u([{key:"append",fn:function(){return[t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.hover",modifiers:{hover:!0}}],staticClass:"gl-inline-flex",attrs:{title:e.$options.copyURLTooltip,"aria-label":e.$options.copyURLTooltip,"data-clipboard-text":e.link,"data-testid":e.testId,icon:"copy-to-clipboard"},on:{click:e.onCopyUrl}})]},proxy:!0}])})],1)],1)}),[],!1,null,null,null);t.a=h.exports},"5lKJ":function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var i=n("n64d"),r=n("pTIT"),a=n("Ld9G"),o=n("MGi3"),s=n("LTP3"),l=n("dJQL"),c=n("eOJu"),d=n("OlxA"),u=n("NL6M");const p=Object(s.d)(i.u,r.J),h="__bv_modal_directive__",f=function({modifiers:e={},arg:t,value:n}){return Object(l.m)(n)?n:Object(l.m)(t)?t:Object(c.h)(e).reverse()[0]},m=function(e){return e&&Object(o.w)(e,".dropdown-menu > li, li.nav-item")&&Object(o.B)("a, button",e)||e},g=function(e){e&&"BUTTON"!==e.tagName&&(Object(o.o)(e,"role")||Object(o.D)(e,"role","button"),"A"===e.tagName||Object(o.o)(e,"tabindex")||Object(o.D)(e,"tabindex","0"))},b=function(e){const t=e[h]||{},n=t.trigger,i=t.handler;n&&i&&(Object(s.a)(n,"click",i,r.O),Object(s.a)(n,"keydown",i,r.O),Object(s.a)(e,"click",i,r.O),Object(s.a)(e,"keydown",i,r.O)),delete e[h]},v=function(e,t,n){const i=e[h]||{},l=f(t),c=m(e);l===i.target&&c===i.trigger||(b(e),function(e,t,n){const i=f(t),l=m(e);if(i&&l){const c=function(e){const r=e.currentTarget;if(!Object(o.r)(r)){const o=e.type,s=e.keyCode;"click"!==o&&("keydown"!==o||s!==a.c&&s!==a.h)||Object(d.a)(Object(u.a)(n,t)).$emit(p,i,r)}};e[h]={handler:c,target:i,trigger:l},g(l),Object(s.b)(l,"click",c,r.O),"BUTTON"!==l.tagName&&"button"===Object(o.h)(l,"role")&&Object(s.b)(l,"keydown",c,r.O)}}(e,t,n)),g(c)},k={inserted:v,componentUpdated:v,unbind:b}},"8T/f":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ee})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return Z})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return X})),n.d(t,"f",(function(){return Y})),n.d(t,"g",(function(){return o}));var i=n("CqvA"),r=n("kiQP");
2/*!
3 * pinia v2.2.2
4 * (c) 2024 Eduardo San Martin Morote
5 * @license MIT
6 */
7let a;const o=e=>a=e,s=()=>Object(i.hasInjectionContext)()&&Object(i.inject)(l)||a,l=Symbol();function c(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var d;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(d||(d={}));const u="undefined"!=typeof window,p=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof e&&e.global===e?e:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function h(e,t,n){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){v(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function f(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function m(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");
7n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const g="object"==typeof navigator?navigator:{userAgent:""},b=(()=>/Macintosh/.test(g.userAgent)&&/AppleWebKit/.test(g.userAgent)&&!/Safari/.test(g.userAgent))(),v=u?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!b?function(e,t="download",n){const i=document.createElement("a");i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?f(i.href)?h(e,t,n):(i.target="_blank",m(i)):m(i)):(i.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(i.href)}),4e4),setTimeout((function(){m(i)}),0))}:"msSaveOrOpenBlob"in g?function(e,t="download",n){if("string"==typeof e)if(f(e))h(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){m(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){(i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading...");if("string"==typeof e)return h(e,t,n);const r="application/octet-stream"===e.type,a=/constructor/i.test(String(p.HTMLElement))||"safari"in p,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&a||b)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw i=null,new Error("Wrong reader.result type");e=o?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location.assign(e),i=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);i?i.location.assign(t):location.href=t,i=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};function k(e,t){const n="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,t):"error"===t?console.error(n):"warn"===t?console.warn(n):console.log(n)}function y(e){return"_a"in e&&"install"in e}function w(){if(!("clipboard"in navigator))return k("Your browser doesn't support the Clipboard API","error"),!0}function _(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(k('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let j;async function S(e){try{const t=(j||(j=document.createElement("input"),j.type="file",j.accept=".json"),function(){return new Promise((e,t)=>{j.onchange=async()=>{const t=j.files;if(!t)return e(null);const n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},j.oncancel=()=>e(null),j.onerror=t,j.click()})}),n=await t();if(!n)return;const{text:i,file:r}=n;O(e,JSON.parse(i)),k(`Global state imported from "${r.name}".`)}catch(e){k("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function O(e,t){for(const n in t){const i=e.state.value[n];i?Object.assign(i,t[n]):e.state.value[n]=t[n]}}function x(e){return{_custom:{display:e}}}function P(e){return y(e)?{id:"_root",label:"🍍 Pinia (root)"}:{id:e.$id,label:e.$id}}function T(e){return e?Array.isArray(e)?e.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:x(e.type),key:x(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function C(e){switch(e){case d.direct:return"mutation";case d.patchFunction:case d.patchObject:return"$patch";default:return"unknown"}}let I=!0;const B=[],{assign:N}=Object,E=e=>"🍍 "+e;function F(e,t){Object(r.a)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:B,app:e},n=>{"function"!=typeof n.now&&k("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:"pinia:mutations",label:"Pinia 🍍",color:15064968}),n.addInspector({id:"pinia",label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(e){if(!w())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),k("Global state copied to clipboard.")}catch(e){if(_(e))return;k("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!w())try{O(e,JSON.parse(await navigator.clipboard.readText())),k("Global state pasted from clipboard.")}catch(e){if(_(e))return;k("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}(t),n.sendInspectorTree("pinia"),n.sendInspectorState("pinia")},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(e){try{v(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){k("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await S(t),n.sendInspectorTree("pinia"),n.sendInspectorState("pinia")},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:e=>{const n=t._s.get(e);n?"function"!=typeof n.$reset?k(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),k(`Store "${e}" reset.`)):k(`Cannot reset "${e}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((e,t)=>{const n=e.componentInstance&&e.componentInstance.proxy;if(n&&n._pStores){const t=e.componentInstance.proxy._pStores;Object.values(t).forEach(t=>{e.instanceData.state.push({type:E(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:Object(i.toRaw)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce((e,n)=>(e[n]=t.$state[n],e),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:E(t.$id),key:"getters",editable:!1,value:t._getters.reduce((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e},{})})})}}),n.on.getInspectorTree(n=>{if(n.app===e&&"pinia"===n.inspectorId){let e=[t];
7e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter(e=>"$id"in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):"🍍 Pinia (root)".toLowerCase().includes(n.filter.toLowerCase())):e).map(P)}}),globalThis.$pinia=t,n.on.getInspectorState(n=>{if(n.app===e&&"pinia"===n.inspectorId){const e="_root"===n.nodeId?t:t._s.get(n.nodeId);if(!e)return;e&&("_root"!==n.nodeId&&(globalThis.$store=Object(i.toRaw)(e)),n.state=function(e){if(y(e)){const t=Array.from(e._s.keys()),n=e._s;return{state:t.map(t=>({editable:!0,key:t,value:e.state.value[t]})),getters:t.filter(e=>n.get(e)._getters).map(e=>{const t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce((e,n)=>(e[n]=t[n],e),{})}})}}const t={state:Object.keys(e.$state).map(t=>({editable:!0,key:t,value:e.$state[t]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(t=>({editable:!1,key:t,value:e[t]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(t=>({editable:!0,key:t,value:e[t]}))),t}(e))}}),n.on.editInspectorState((n,i)=>{if(n.app===e&&"pinia"===n.inspectorId){const e="_root"===n.nodeId?t:t._s.get(n.nodeId);if(!e)return k(`store "${n.nodeId}" not found`,"error");const{path:i}=n;y(e)?i.unshift("state"):1===i.length&&e._customProperties.has(i[0])&&!(i[0]in e.$state)||i.unshift("$state"),I=!1,n.set(e,i,n.state.value),I=!0}}),n.on.editComponentState(e=>{if(e.type.startsWith("🍍")){const n=e.type.replace(/^🍍\s*/,""),i=t._s.get(n);if(!i)return k(`store "${n}" not found`,"error");const{path:r}=e;if("state"!==r[0])return k(`Invalid path for store "${n}":\n${r}\nOnly state can be modified.`);r[0]="$state",I=!1,e.set(i,r,e.state.value),I=!0}})})}let q,D=0;function A(e,t,n){const r=t.reduce((t,n)=>(t[n]=Object(i.toRaw)(e)[n],t),{});for(const t in r)e[t]=function(){const i=D,a=n?new Proxy(e,{get:(...e)=>(q=i,Reflect.get(...e)),set:(...e)=>(q=i,Reflect.set(...e))}):e;q=i;const o=r[t].apply(a,arguments);return q=void 0,o}}function $({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){A(t,Object.keys(n.actions),t._isOptionsAPI);const e=t._hotUpdate;Object(i.toRaw)(t)._hotUpdate=function(n){e.apply(this,arguments),A(t,Object.keys(n._hmrPayload.actions),!!t._isOptionsAPI)}}!function(e,t){B.includes(E(t.$id))||B.push(E(t.$id)),Object(r.a)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:B,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},e=>{const n="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction(({after:i,onError:r,name:a,args:o})=>{const s=D++;e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🛫 "+a,subtitle:"start",data:{store:x(t.$id),action:x(a),args:o},groupId:s}}),i(i=>{q=void 0,e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🛬 "+a,subtitle:"end",data:{store:x(t.$id),action:x(a),args:o,result:i},groupId:s}})}),r(i=>{q=void 0,e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:x(t.$id),action:x(a),args:o,error:i},groupId:s}})})},!0),t._customProperties.forEach(r=>{Object(i.watch)(()=>Object(i.unref)(t[r]),(t,i)=>{e.notifyComponentUpdate(),e.sendInspectorState("pinia"),I&&e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"Change",subtitle:r,data:{newValue:t,oldValue:i},groupId:q}})},{deep:!0})}),t.$subscribe(({events:i,type:r},a)=>{if(e.notifyComponentUpdate(),e.sendInspectorState("pinia"),!I)return;const o={time:n(),title:C(r),data:N({store:x(t.$id)},T(i)),groupId:q};r===d.patchFunction?o.subtitle="⤵️":r===d.patchObject?o.subtitle="🧩":i&&!Array.isArray(i)&&(o.subtitle=i.type),i&&(o.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),e.addTimelineEvent({layerId:"pinia:mutations",event:o})},{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=Object(i.markRaw)(i=>{r(i),e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:x(t.$id),info:x("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia")});const{$dispose:a}=t;t.$dispose=()=>{a(),e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia"),e.getSettings().logStoreChanges&&k(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia"),e.getSettings().logStoreChanges&&k(`"${t.$id}" store installed 🆕`)})}(e,t)}}function R(){const e=Object(i.effectScope)(!0),t=e.run(()=>Object(i.ref)({}));let n=[],r=[];const a=Object(i.markRaw)({install(e){o(a),i.isVue2||(a._a=e,e.provide(l,a),e.config.globalProperties.$pinia=a,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u&&F(e,a),r.forEach(e
7=>n.push(e)),r=[])},use(e){return this._a||i.isVue2?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&"undefined"!=typeof Proxy&&a.use($),a}const L=()=>{};function V(e,t,n,r=L){e.push(t);const a=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Object(i.getCurrentScope)()&&Object(i.onScopeDispose)(a),a}function U(e,...t){e.slice().forEach(e=>{e(...t)})}const G=e=>e(),M=Symbol(),z=Symbol();function H(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],a=e[n];c(a)&&c(r)&&e.hasOwnProperty(n)&&!Object(i.isRef)(r)&&!Object(i.isReactive)(r)?e[n]=H(a,r):e[n]=r}return e}const W=Symbol(),Q=new WeakMap;const{assign:K}=Object;function J(e,t,n={},r,a,s){let l;const p=K({actions:{}},n);const h={deep:!0};let f,m;let g=[],b=[];const v=r.state.value[e];s||v||(i.isVue2?Object(i.set)(r.state.value,e,{}):r.state.value[e]={});const k=Object(i.ref)({});let y;function w(t){let n;f=m=!1,"function"==typeof t?(t(r.state.value[e]),n={type:d.patchFunction,storeId:e,events:void 0}):(H(r.state.value[e],t),n={type:d.patchObject,payload:t,storeId:e,events:void 0});const a=y=Symbol();Object(i.nextTick)().then(()=>{y===a&&(f=!0)}),m=!0,U(g,n,r.state.value[e])}const _=s?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{K(e,t)})}:L;const j=(t,n="")=>{if(M in t)return t[z]=n,t;const i=function(){o(r);const n=Array.from(arguments),a=[],s=[];function l(e){a.push(e)}function c(e){s.push(e)}let d;U(b,{args:n,name:i[z],store:x,after:l,onError:c});try{d=t.apply(this&&this.$id===e?this:x,n)}catch(e){throw U(s,e),e}return d instanceof Promise?d.then(e=>(U(a,e),e)).catch(e=>(U(s,e),Promise.reject(e))):(U(a,d),d)};return i[M]=!0,i[z]=n,i},S=Object(i.markRaw)({actions:{},getters:{},state:[],hotState:k}),O={_p:r,$id:e,$onAction:V.bind(null,b),$patch:w,$reset:_,$subscribe(t,n={}){const a=V(g,t,n.detached,()=>o()),o=l.run(()=>Object(i.watch)(()=>r.state.value[e],i=>{("sync"===n.flush?m:f)&&t({storeId:e,type:d.direct,events:void 0},i)},K({},h,n)));return a},$dispose:function(){l.stop(),g=[],b=[],r._s.delete(e)}};i.isVue2&&(O._r=!1);const x=Object(i.reactive)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u?K({_hmrPayload:S,_customProperties:Object(i.markRaw)(new Set)},O):O);r._s.set(e,x);const P=(r._a&&r._a.runWithContext||G)(()=>r._e.run(()=>(l=Object(i.effectScope)()).run(()=>t({action:j}))));for(const t in P){const n=P[t];if(Object(i.isRef)(n)&&(C=n,!Object(i.isRef)(C)||!C.effect)||Object(i.isReactive)(n))s||(!v||(T=n,i.isVue2?Q.has(T):c(T)&&T.hasOwnProperty(W))||(Object(i.isRef)(n)?n.value=v[t]:H(n,v[t])),i.isVue2?Object(i.set)(r.state.value[e],t,n):r.state.value[e][t]=n);else if("function"==typeof n){const e=j(n,t);i.isVue2?Object(i.set)(P,t,e):P[t]=e,p.actions[t]=n}else 0}var T,C;if(i.isVue2?Object.keys(P).forEach(e=>{Object(i.set)(x,e,P[e])}):(K(x,P),K(Object(i.toRaw)(x),P)),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:e=>{w(t=>{K(t,e)})}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(x,t,K({value:x[t]},e))})}return i.isVue2&&(x._r=!0),r._p.forEach(e=>{if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u){const t=l.run(()=>e({store:x,app:r._a,pinia:r,options:p}));Object.keys(t||{}).forEach(e=>x._customProperties.add(e)),K(x,t)}else K(x,l.run(()=>e({store:x,app:r._a,pinia:r,options:p})))}),v&&s&&n.hydrate&&n.hydrate(x.$state,v),f=!0,m=!0,x}function Z(e,t,n){let r,s;const c="function"==typeof t;function d(e,n){const d=Object(i.hasInjectionContext)();(e=e||(d?Object(i.inject)(l,null):null))&&o(e),(e=a)._s.has(r)||(c?J(r,t,s,e):function(e,t,n,r){const{state:a,actions:s,getters:l}=t,c=n.state.value[e];let d;d=J(e,(function(){c||(i.isVue2?Object(i.set)(n.state.value,e,a?a():{}):n.state.value[e]=a?a():{});const t=Object(i.toRefs)(n.state.value[e]);return K(t,s,Object.keys(l||{}).reduce((t,r)=>(t[r]=Object(i.markRaw)(Object(i.computed)(()=>{o(n);const t=n._s.get(e);if(!i.isVue2||t._r)return l[r].call(t,t)})),t),{}))}),t,n,r,!0)}(r,s,e));return e._s.get(r)}return"string"==typeof e?(r=e,s=c?n:t):(s=e,r=e.id),d.$id=r,d}function Y(e,t){return Array.isArray(t)?t.reduce((t,n)=>(t[n]=function(){return e(this.$pinia)[n]},t),{}):Object.keys(t).reduce((n,i)=>(n[i]=function(){const n=e(this.$pinia),r=t[i];return"function"==typeof r?r.call(this,n):n[r]},n),{})}function X(e,t){return Array.isArray(t)?t.reduce((t,n)=>(t[n]=function(...t){return e(this.$pinia)[n](...t)},t),{}):Object.keys(t).reduce((n,i)=>(n[i]=function(...n){return e(this.$pinia)[t[i]](...n)},n),{})}const ee=function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[l]=t,this.$pinia||(this.$pinia=t),t._a=this,u&&o(t),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u&&F(t._a,t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})}}).call(this,n("uKge"))},"8eye":function(e,t){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CiIcon"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DetailedStatus"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailsPath"},arguments:[],directives:[]}]}}],loc:{start:0,end:71}};n.loc.source={body:"fragment CiIcon on DetailedStatus {\n  id\n  icon\n  text\n  detailsPath\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
7else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.CiIcon=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"CiIcon")},"9kO9":function(e,t,n){"use strict";var i=n("bQv4"),r=n("1Sua"),a=n("9vN7"),o=n("hz+A");var s=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},l=n("4H6Q"),c=n("fjNL");var d=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,a=Object(c.a)(e),o=void 0!==t,s=null===t,l=t==t,d=Object(c.a)(t);if(!s&&!d&&!a&&e>t||a&&o&&l&&!s&&!d||i&&o&&l||!n&&l||!r)return 1;if(!i&&!a&&!d&&e<t||d&&n&&r&&!i&&!a||s&&n&&r||!o&&r||!l)return-1}return 0};var u=function(e,t,n){for(var i=-1,r=e.criteria,a=t.criteria,o=r.length,s=n.length;++i<o;){var l=d(r[i],a[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index},p=n("mVAr"),h=n("/iFl");t.a=function(e,t,n){t=t.length?Object(i.a)(t,(function(e){return Object(h.a)(e)?function(t){return Object(r.a)(t,1===e.length?e[0]:e)}:e})):[p.a];var c=-1;t=Object(i.a)(t,Object(l.a)(a.a));var d=Object(o.a)(e,(function(e,n,r){return{criteria:Object(i.a)(t,(function(t){return t(e)})),index:++c,value:e}}));return s(d,(function(e,t){return u(e,t,n)}))}},Am6h:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("YSE1"),n("z6RN"),n("b+iX"),n("3UXl"),n("iyoE"),n("B++/"),n("47t/");const i=["readme","index","_index"],r=["ad","adoc","asciidoc","creole","markdown","md","mdown","mediawiki","mkd","mkdn","org","rdoc","rst","textile","wiki"],a=[...i.flatMap((function(e){return r.map((function(t){return new RegExp(`^${e}\\.${t}$`,"i")}))})),...i.map((function(e){return new RegExp(`^${e}(\\.txt)?$`,"i")}))];function o(e){if(e&&e instanceof Array&&e.length)for(const t of a){const n=e.find((function(e){return t.test(e.name)}));if(n)return n}}},BXoq:function(e,t,n){(e.exports=n("VNgF")(!1)).push([e.i,"\n.orbit-panel[data-v-2cb14926] {\n  width: 30%;\n  top: calc(var(--header-height, 56px) + 8px);\n  max-height: calc(100vh - var(--header-height, 56px) - 8px);\n}\n",""])},C1HF:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));const i=function({storedExternally:e,externalStorage:t}){return{isExternallyStored:e,isLfs:Boolean(e)&&"lfs"===t}},r=function(e){const{isExternallyStored:t,isLfs:n}=i(e);return!t&&!n},a=function(e){return i(e).isLfs}},CSd6:function(e,t,n){"use strict";var i=n("CbCZ"),r=n("9dZE"),a=n("2ibD"),o=n("8Igx"),s=n("Y0p+"),l=n("SNRI"),c=n("3twG"),d=n("/lV4"),u=n("OR9K"),p=n("O4EH"),h=n("ygVz"),f={name:"UploadBlobModal",components:{GlButton:i.a,UploadDropzone:u.a,FileIcon:r.a,CommitChangesModal:p.a},i18n:{REMOVE_FILE_TEXT:Object(d.a)("Remove file"),ERROR_MESSAGE:Object(d.a)("Error uploading file. Please try again."),DIRECTORY_FILE_ERROR:Object(d.a)("Directories cannot be uploaded. Please upload a single file instead.")},mixins:[h.a.mixin()],props:{modalId:{type:String,required:!0},commitMessage:{type:String,required:!0},targetBranch:{type:String,required:!0},originalBranch:{type:String,required:!0},canPushCode:{type:Boolean,required:!0},canPushToBranch:{type:Boolean,required:!0},path:{type:String,required:!0},replacePath:{type:String,default:null,required:!1},emptyRepo:{type:Boolean,required:!1,default:!1},uploadPath:{type:String,default:null,required:!1}},data:()=>({file:null,filePreviewURL:null,loading:!1,hasDirectoryUploadError:!1,error:null}),computed:{formattedFileSize(){return Object(l.f)(this.file.size)},isValid(){return Boolean(this.file)}},methods:{show(){this.$refs[this.modalId].show()},setFile(e){var t=this;this.file=e,this.error=null;const n=new FileReader;n.readAsDataURL(this.file),n.onload=function(e){var n;t.filePreviewURL=null===(n=e.target)||void 0===n?void 0:n.result,t.hasDirectoryUploadError=!1,t.trackEvent("file_upload_placement_successful_in_upload_blob_modal")},n.onerror=function(e){var n,i;const r=null===(n=e.target)||void 0===n?void 0:n.error;Boolean(null===(i=t.file)||void 0===i?void 0:i.type)||(t.file=null,t.hasDirectoryUploadError=!0),Object(o.b)(`Failed to ${t.replacePath?"replace":"upload"} file. See exception details for more information.`,r)}},removeFile(){this.file=null,this.filePreviewURL=null},submitForm(e){return this.error=null,this.replacePath?this.replaceFile(e):this.uploadFile(e)},submitRequest(e,t,n){var i=this;return this.loading=!0,n.append("file",this.file),Object(a.a)({method:e,url:t,data:n,headers:{...s.a}}).then((function(e){i.trackEvent("file_upload_successful_in_upload_blob_modal"),Object(c.T)(e.data.filePath)})).catch((function(e){var t,n;Object(o.b)(`Failed to ${i.replacePath?"replace":"upload"} file. See exception details for more information.`,e),i.error=(null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.message)||(null===(n=e.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.error)||i.$options.i18n.ERROR_MESSAGE})).finally((function(){i.loading=!1}))},replaceFile(e){return this.submitRequest("put",this.replacePath,e)},uploadFile(e){const t=this.uploadPath||Object(c.A)(this.path,this.$route.params.path);return this.submitRequest("post",t,e)},handleModalClose(){this.error=null,this.hasDirectoryUploadError=!1}},validFileMimetypes:[]},m=n("tBpV"),g=Object(m.a)(f,(function(){var e=this,t=e._self._c;
7return t("commit-changes-modal",{ref:e.modalId,attrs:{"modal-id":e.modalId,"commit-message":e.commitMessage,"target-branch":e.targetBranch,"original-branch":e.originalBranch,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,valid:e.isValid,loading:e.loading,"empty-repo":e.emptyRepo,error:e.error,"data-testid":"upload-blob-modal"},on:{"close-commit-changes-modal":e.handleModalClose,"submit-form":e.submitForm},scopedSlots:e._u([{key:"body",fn:function(){return[t("upload-dropzone",{class:["gl-h-26",e.hasDirectoryUploadError?"gl-mb-3":"gl-mb-6"],attrs:{"single-file-selection":"","valid-file-mimetypes":e.$options.validFileMimetypes,"is-file-valid":function(){return!0},"has-upload-error":e.hasDirectoryUploadError},on:{change:e.setFile}},[e.file?t("div",{staticClass:"card upload-dropzone-card upload-dropzone-border gl-h-full gl-w-full gl-items-center gl-justify-center gl-p-3"},[t("file-icon",{attrs:{"file-name":e.file.name,size:24}}),e._v(" "),t("div",{staticClass:"gl-mb-2"},[e._v("\n          "+e._s(e.file.name)+"\n          ·\n          "),t("span",{staticClass:"gl-text-subtle"},[e._v(e._s(e.formattedFileSize))])]),e._v(" "),t("gl-button",{attrs:{category:"tertiary",variant:"confirm",disabled:e.loading},on:{click:e.removeFile}},[e._v(e._s(e.$options.i18n.REMOVE_FILE_TEXT))])],1):e._e()]),e._v(" "),e.hasDirectoryUploadError?t("div",{staticClass:"gl-mb-6 gl-text-left gl-text-danger"},[e._v("\n      "+e._s(e.$options.i18n.DIRECTORY_FILE_ERROR)+"\n    ")]):e._e()]},proxy:!0}])})}),[],!1,null,null,null);t.a=g.exports},CqvA:function(e,t,n){var i=n("ewH8"),r=i.default||i;t.Vue=r,t.Vue2=r,t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.warn=r.util.warn,t.createApp=function(e,t){var n,i={},a={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(e,t){return i[e]=t,this},directive:function(e,t){return t?(r.directive(e,t),a):r.directive(e)},mount:function(a,o){return n||((n=new r(Object.assign({propsData:t},e,{provide:Object.assign(i,e.provide)}))).$mount(a,o),n)},unmount:function(){n&&(n.$destroy(),n=void 0)}};return a}
7,Object.keys(i).forEach((function(e){t[e]=i[e]})),t.hasInjectionContext=function(){return!!i.getCurrentInstance()}},Czxp:function(e,t,n){"use strict";var i=n("zNqO"),r=n("n64d"),a=n("pTIT"),o=n("MGi3"),s=n("eOJu"),l=n("Cn4y"),c=n("nbER"),d=n("slyf"),u=n("+18S");const p=Object(s.j)(u.b,["event","routerTag"]),h=Object(s.m)({...p,linkClass:{type:[Array,Object,String],required:!1,default:void 0},variant:{type:String,required:!1,default:void 0}}),f=Object(i.c)({name:r.h,mixins:[c.a,d.a],inject:{getBvDropdown:{default:function(){return function(){return null}}}},inheritAttrs:!1,props:h,computed:{bvDropdown(){return this.getBvDropdown()},computedAttrs(){return{...this.bvAttrs,role:"menuitem"}}},methods:{closeDropdown(){var e=this;Object(o.A)((function(){e.bvDropdown&&e.bvDropdown.hide(!0)}))},onClick(e){this.$emit(a.e,e),this.closeDropdown()}},render(e){const{linkClass:t,variant:n,active:i,disabled:r,onClick:a,bvAttrs:o}=this;return e("li",{class:o.class,style:o.style,attrs:{role:"presentation"}},[e(u.a,{staticClass:"dropdown-item",class:[t,{["text-"+n]:n&&!(i||r)}],props:Object(l.b)(p,this.$props),attrs:this.computedAttrs,on:{click:a},ref:"item"},this.normalizeSlot())])}}),m={active:{type:Boolean,required:!1,default:!1},activeClass:{type:String,required:!1,default:"active"},buttonClass:{type:[Array,Object,String],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},variant:{type:String,required:!1,default:void 0},role:{type:String,required:!1,default:"menuitem"}},g=Object(i.c)({name:r.i,mixins:[c.a,d.a],inject:{getBvDropdown:{default:function(){return function(){return null}}}},inheritAttrs:!1,props:m,computed:{bvDropdown(){return this.getBvDropdown()},computedAttrs(){return{...this.bvAttrs,role:this.role,type:"button",disabled:this.disabled,"aria-selected":this.active?"true":null}}},methods:{closeDropdown(){this.bvDropdown&&this.bvDropdown.hide(!0)},onClick(e){this.$emit(a.e,e),this.closeDropdown()}},render(e){const{active:t,variant:n,bvAttrs:i}=this;return e("li",{class:i.class,style:i.style,attrs:{role:"presentation"}},[e("button",{staticClass:"dropdown-item",class:[this.buttonClass,{[this.activeClass]:t,["text-"+n]:n&&!(t||this.disabled)}],attrs:this.computedAttrs,on:{click:this.onClick},ref:"button"},this.normalizeSlot())])}});var b=n("q3oM"),v=n("HTBS"),k=n("CbCZ"),y={name:"GlDropdownItem",components:{GlIcon:n("d85j").a,GlAvatar:v.a,GlButton:k.a},inheritAttrs:!1,props:{avatarUrl:{type:String,required:!1,default:""},iconColor:{type:String,required:!1,default:""},iconName:{type:String,required:!1,default:""},iconRightAriaLabel:{type:String,required:!1,default:""},iconRightName:{type:String,required:!1,default:""},isChecked:{type:Boolean,required:!1,default:!1},isCheckItem:{type:Boolean,required:!1,default:!1},isCheckCentered:{type:Boolean,required:!1,default:!1},secondaryText:{type:String,required:!1,default:""},role:{type:String,required:!1,default:null}},computed:{bootstrapComponent(){const{href:e,to:t}=this.$attrs;return e||t?f:g},bootstrapComponentProps(){const e={...this.$attrs};return this.role&&(e.role=this.role),e},iconColorCss(){return b.V[this.iconColor]||"gl-fill-icon-default"},shouldShowCheckIcon(){return this.isChecked||this.isCheckItem},checkedClasses(){return this.isCheckCentered?"":"gl-mt-3 gl-self-start"}},methods:{handleClickIconRight(){this.$emit("click-icon-right")}}},w=n("tBpV"),_=Object(w.a)(y,(function(){var e=this,t=e._self._c;return t(e.bootstrapComponent,e._g(e._b({tag:"component",staticClass:"gl-dropdown-item"},"component",e.bootstrapComponentProps,!1),e.$listeners),[e.shouldShowCheckIcon?t("gl-icon",{class:["gl-dropdown-item-check-icon",{"gl-invisible":!e.isChecked},e.checkedClasses],attrs:{name:"check","data-testid":"dropdown-item-checkbox"}}):e._e(),e._v(" "),e.iconName?t("gl-icon",{class:["gl-dropdown-item-icon",e.iconColorCss],attrs:{name:e.iconName}}):e._e(),e._v(" "),e.avatarUrl?t("gl-avatar",{attrs:{size:32,src:e.avatarUrl}}):e._e(),e._v(" "),t("div",{staticClass:"gl-dropdown-item-text-wrapper"},[t("p",{staticClass:"gl-dropdown-item-text-primary"},[e._t("default")],2),e._v(" "),e.secondaryText?t("p",{staticClass:"gl-dropdown-item-text-secondary"}
7,[e._v(e._s(e.secondaryText))]):e._e()]),e._v(" "),e.iconRightName?t("gl-button",{attrs:{size:"small",icon:e.iconRightName,"aria-label":e.iconRightAriaLabel||e.iconRightName},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleClickIconRight.apply(null,arguments)}}}):e._e()],1)}),[],!1,null,null,null);t.a=_.exports},D9dR:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("UezY"),n("z6RN"),n("hG7+");var i=n("3twG"),r=n("C5t3");const a=function(e,t,n={}){const a=Object(i.H)(e,Object(i.l)()),o=t||"",s=Object(r.a)(o),l=Object(r.b)(a,s),c=Object.fromEntries(Object.entries(n).filter((function([,e]){return null!=e&&""!==e})));s&&(c.page=s);let d="";o.trim()&&(d=o.startsWith("#")?o:"#"+o);return Object.keys(c).length>0?Object(i.B)(c,`${a}${d}`):`${a}${l}${d}`}},E3sI:function(e,t,n){"use strict";n("LdIe"),n("z6RN"),n("PTOk");var i=n("PZST"),r=n("Czxp"),a=n("hvGG"),o=n("ivn1"),s={name:"GlFormInputGroup",components:{GlFormInput:a.a,GlDropdown:i.a,GlDropdownItem:r.a},mixins:[o.a],inheritAttrs:!1,props:{selectOnClick:{type:Boolean,required:!1,default:!1},predefinedOptions:{type:Array,required:!1,default:function(){return[{value:"",name:""}]},validator:function(e){return e.every((function(e){return Object.keys(e).includes("name","value")}))}},label:{type:String,required:!1,default:void 0},inputClass:{type:[String,Array,Object],required:!1,default:""},wrapperAttributes:{type:Object,required:!1,default:function(){return{}}}},data(){return{activeOption:this.predefinedOptions&&this.predefinedOptions[0].name}},methods:{handleClick(){this.selectOnClick&&this.$refs.input.$el.select()},updateValue(e){const{name:t,value:n}=e;this.activeOption=t,this.localValue=n}}},l=n("tBpV"),c=Object(l.a)(s,(function(){var e=this,t=e._self._c;return t("div",e._b({staticClass:"input-group",attrs:{role:"group"}},"div",e.wrapperAttributes,!1),[e.activeOption||e.$scopedSlots.prepend?t("div",{staticClass:"input-group-prepend"},[e._t("prepend"),e._v(" "),e.activeOption?t("gl-dropdown",{attrs:{text:e.activeOption}},e._l(e.predefinedOptions,(function(n){return t("gl-dropdown-item",{key:n.value,attrs:{"is-check-item":"","is-checked":e.activeOption===n.name},on:{click:function(t){return e.updateValue(n)}}},[e._v("\n        "+e._s(n.name)+"\n      ")])})),1):e._e()],2):e._e(),e._v(" "),e._t("default",(function(){return[t("gl-form-input",e._g(e._b({ref:"input",class:e.inputClass,attrs:{"aria-label":e.label},on:{click:e.handleClick},model:{value:e.localValue,callback:function(t){e.localValue=t},expression:"localValue"}},"gl-form-input",e.$attrs,!1),e.$listeners))]})),e._v(" "),e.$scopedSlots.append?t("div",{staticClass:"input-group-append"},[e._t("append")],2):e._e()],2)}),[],!1,null,null,null);t.a=c.exports},F2z7:function(e,t,n){"use strict";var i=n("zNqO"),r=n("n64d"),a=n("MGi3"),o=n("eOJu");const s={id:{type:String,required:!1,default:void 0},tag:{type:String,required:!1,default:"header"},variant:{type:String,required:!1,default:void 0}};var l={name:"GlDropdownHeader",components:{BDropdownHeader:Object(i.c)({name:r.g,functional:!0,props:s,render(e,{props:t,data:n,children:r}){const{tag:s,variant:l}=t;return e("li",Object(i.e)(Object(o.j)(n,["attrs"]),{attrs:{role:"presentation"}}),[e(s,{staticClass:"dropdown-header",class:{["text-"+l]:l},attrs:{...n.attrs||{},id:t.id||null,role:Object(a.u)(s,"header")?null:"heading"},ref:"header"},r)])}})},inheritAttrs:!1},c=n("tBpV"),d=Object(c.a)(l,(function(){return(0,this._self._c)("b-dropdown-header",this._g(this._b({staticClass:"gl-dropdown-section-header"},"b-dropdown-header",this.$attrs,!1),this.$listeners),[this._t("default")],2)}),[],!1,null,null,null);t.a=d.exports},FGEe:function(e,t,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Project"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Project"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProjectInterface"},directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"editPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSelfArchived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topics"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forksCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"starCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openMergeRequestsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openIssuesCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastActivityAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergeRequestsAccessLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stringValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"issuesAccessLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stringValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"forkingAccessLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stringValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"maxAccessLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"integerValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isCatalogResource"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"exploreCatalogPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPublished"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"gl_introduced"},arguments:[{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"StringValue",value:"18.6.0",block:!1}}]}]},{kind:"Field",name:{kind:"Name",value:"pipeline"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailedStatus"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CiIcon"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"markedForDeletion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSelfDeletionInProgress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isSelfDeletionScheduled"},arguments:[],directives:[]}
7,{kind:"Field",name:{kind:"Name",value:"permanentDeletionDate"},arguments:[],directives:[]}]}}],loc:{start:0,end:811}};i.loc.source={body:'#import "~/graphql_shared/fragments/ci_icon.fragment.graphql"\n#import "~/graphql_shared/fragments/project_interface.fragment.graphql"\n\nfragment Project on Project {\n  ...ProjectInterface\n  path\n  editPath\n  archived\n  isSelfArchived\n  topics\n  forksCount\n  starCount\n  visibility\n  openMergeRequestsCount\n  openIssuesCount\n  descriptionHtml\n  createdAt\n  updatedAt\n  lastActivityAt\n  mergeRequestsAccessLevel {\n    stringValue\n  }\n  issuesAccessLevel {\n    stringValue\n  }\n  forkingAccessLevel {\n    stringValue\n  }\n  maxAccessLevel {\n    integerValue\n  }\n  isCatalogResource\n  exploreCatalogPath\n  isPublished @gl_introduced(version: "18.6.0")\n  pipeline {\n    id\n    detailedStatus {\n      ...CiIcon\n    }\n  }\n  markedForDeletion\n  isSelfDeletionInProgress\n  isSelfDeletionScheduled\n  permanentDeletionDate\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var r={};function a(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!r[t]&&(r[t]=!0,!0)}))}i.definitions=i.definitions.concat(a(n("8eye").definitions)),i.definitions=i.definitions.concat(a(n("HPq9").definitions));var o={};function s(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}i.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),o[e.name.value]=t}})),e.exports=i,e.exports.Project=function(e,t){var n={kind:e.kind,definitions:[s(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var i=o[t]||new Set,r=new Set,a=new Set;for(i.forEach((function(e){a.add(e)}));a.size>0;){var l=a;a=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(o[e]||new Set).forEach((function(e){a.add(e)})))}))}return r.forEach((function(t){var i=s(e,t);i&&n.definitions.push(i)})),n}(i,"Project")},FIKT:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getProjectShortPath"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectShortPath"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:57}};n.loc.source={body:"query getProjectShortPath {\n  projectShortPath @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getProjectShortPath=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getProjectShortPath")},G4YM:function(e,t,n){"use strict";var i=n("OGDS"),r=n.n(i),a=n("h6C7"),o=n.n(a),s=n("ITU6"),l=n("jEr0");t.a={mixins:[l.a],apollo:{projectPath:{query:o.a}},data:()=>({projectPath:"",loadingPath:null}),beforeRouteUpdate(e,t,n){this.preload(e.params.path,n)},methods:{preload(e="/",t){return this.loadingPath=e.replace(/^\//,""),this.$apollo.query({query:r.a,variables:{projectPath:this.projectPath,ref:this.ref,refType:Object(s.a)(this.refType),path:this.loadingPath,nextPageCursor:"",pageSize:100}}).then((function(){return t()}))}}}},G6B1:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));n("ZzK0"),n("z6RN"),n("BzOf");var i=n("ho4C"),r=n("NmEs"),a=n("GuZl");const o=Object.freeze(["active","gl-tab-nav-item-active"]),s="gl-tab-shown",l="hash",c=[l];class d{constructor(e,{history:t=null}={}){if(!e)throw new Error("Cannot instantiate GlTabsBehavior without an element");this.destroyFns=[],this.tabList=e,this.tabs=this.getTabs(),this.activeTab=null,this.history=c.includes(t)?t:null,this.setAccessibilityAttrs(),this.bindEvents(),this.history===l&&this.loadInitialTab()}setAccessibilityAttrs(){var e=this;
7this.tabList.setAttribute("role","tablist"),this.tabs.forEach((function(t){t.hasAttribute("id")||t.setAttribute("id",Object(i.a)("gl_tab_nav__tab_")),!e.activeTab&&t.classList.contains(o[0])?(e.activeTab=t,t.setAttribute("aria-selected","true"),t.removeAttribute("tabindex")):(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")),t.setAttribute("role","tab"),t.closest(".nav-item").setAttribute("role","presentation");const n=e.getPanelForTab(t);t.hasAttribute("aria-controls")||t.setAttribute("aria-controls",n.id),n.classList.add(a.l),n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",t.id)}))}bindEvents(){var e=this;this.tabs.forEach((function(t){e.bindEvent(t,"click",(function(n){n.preventDefault(),t!==e.activeTab&&e.activateTab(t)})),e.bindEvent(t,"keydown",(function(t){const{code:n}=t;"ArrowUp"===n||"ArrowLeft"===n?(t.preventDefault(),e.activatePreviousTab()):"ArrowDown"!==n&&"ArrowRight"!==n||(t.preventDefault(),e.activateNextTab())}))}))}bindEvent(e,...t){e.addEventListener(...t),this.destroyFns.push((function(){e.removeEventListener(...t)}))}loadInitialTab(){const e=this.tabList.querySelector(`a[href="${CSS.escape(window.location.hash)}"]`);this.activateTab(e||this.activeTab)}activatePreviousTab(){const e=this.tabs.indexOf(this.activeTab);if(e<=0)return;const t=this.tabs[e-1];this.activateTab(t),t.focus()}activateNextTab(){const e=this.tabs.indexOf(this.activeTab);if(e>=this.tabs.length-1)return;const t=this.tabs[e+1];this.activateTab(t),t.focus()}getTabs(){return Array.from(this.tabList.querySelectorAll(".gl-tab-nav-item"))}getPanelForTab(e){const t=e.getAttribute("aria-controls");return t?document.querySelector("#"+t):document.querySelector(e.getAttribute("href"))}activateTab(e){this.activeTab.setAttribute("aria-selected","false"),this.activeTab.setAttribute("tabindex","-1"),this.activeTab.classList.remove(...o);this.getPanelForTab(this.activeTab).classList.remove("active"),e.setAttribute("aria-selected","true"),e.removeAttribute("tabindex"),e.classList.add(...o);const t=this.getPanelForTab(e);t.classList.add("active"),this.history===l&&Object(r.p)(e.getAttribute("href")),this.activeTab=e,this.dispatchTabShown(e,t)}dispatchTabShown(e,t){const n=new CustomEvent(s,{bubbles:!0,detail:{activeTabPanel:t}});e.dispatchEvent(n)}destroy(){this.destroyFns.forEach((function(e){return e()}))}}},HPq9:function(e,t){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProjectInterface"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProjectInterface"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nameWithNamespace"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userPermissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"archiveProject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"removeProject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewEditPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canLeave"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"gl_introduced"},arguments:[{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"StringValue",value:"18.9.0",block:!1}}]}]},{kind:"Field",name:{kind:"Name",value:"changeNamespace"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:259}};n.loc.source={body:'fragment ProjectInterface on ProjectInterface {\n  id\n  fullPath\n  avatarUrl\n  name\n  nameWithNamespace\n  webUrl\n  userPermissions {\n    archiveProject\n    removeProject\n    viewEditPage\n    canLeave @gl_introduced(version: "18.9.0")\n    changeNamespace\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
7else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.ProjectInterface=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"ProjectInterface")},HX8k:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("P35d");const r=function({type:e}){return(e.match(i.b.regex)||[]).length>0}},Idki:function(e,t,n){var i,r,a;function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("Jh6P"),n("3UXl"),n("iyoE"),n("UezY"),n("z6RN"),n("hG7+"),n("aFm2"),n("R9qC"),n("2rQv"),n("ZzK0"),n("BzOf"),n("dHQd"),n("yoDG"),n("KeS/"),n("tWNI"),n("8d6S"),n("VwWG"),n("IYHS"),n("rIA9"),n("MViX"),n("zglm"),n("GDOA"),n("hlbI"),n("a0mT"),n("u3H1"),n("ta8/"),n("IKCR"),n("nmTw"),n("W2kU"),n("58fc"),n("7dtT"),n("Rhav"),n("uhEP"),n("eppl"),typeof globalThis<"u"?globalThis:typeof self<"u"&&self,a=function(){var e,t,n={},i=n,r={exports:n},a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d={};function u(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}!function(e,t){for(var n in t)a(e,n,{get:t[n],enumerable:!0})}(d,{Hooks:function(){return _e},Lexer:function(){return ve},Marked:function(){return je},Parser:function(){return we},Renderer:function(){return ke},TextRenderer:function(){return ye},Tokenizer:function(){return be},defaults:function(){return p},getDefaults:function(){return u},lexer:function(){return Ee},marked:function(){return Oe},options:function(){return xe},parse:function(){return Be},parseInline:function(){return Ie},parser:function(){return Ne},setOptions:function(){return Pe},use:function(){return Te},walkTokens:function(){return Ce}}),r.exports=(t=d,function(e,t,n,i){if(t&&"object"==typeof t||"function"==typeof t)for(let r of l(t))!c.call(e,r)&&r!==n&&a(e,r,{get:function(){return t[r]},enumerable:!(i=s(t,r))||i.enumerable});return e}(a({},"__esModule",{value:!0}),t));var p={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function h(e){p=e}var f={exec:function(){return null}};function m(e,t=""){let n="string"==typeof e?e:e.source,i={replace:function(e,t){let r="string"==typeof t?t:t.source;return r=r.replace(b.caret,"$1"),n=n.replace(e,r),i},getRegex:function(){return new RegExp(n,t)}};return i}var g=function(){try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}}(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:function(e){return new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`)},nextBulletRegex:function(e){return new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)},hrRegex:function(e){return new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)},fencesBeginRegex:function(e){return new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`)},headingBeginRegex:function(e){return new RegExp(`^ {0,${Math.min(3,e-1)}}#`)},htmlBeginRegex:function(e){return new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")}},v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,k=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,w=m(y).replace(/bull/g,k).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_=m(y).replace(/bull/g,k).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),j=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O=m(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=m(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k).getRegex(),P="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",T=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=m("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
7)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",T).replace("tag",P).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I=m(j).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",P).getRegex(),B={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",I).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:O,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:v,html:C,lheading:w,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:I,table:f,text:/^[^\n]+/},N=m("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",P).getRegex(),E={...B,lheading:_,table:N,paragraph:m(j).replace("hr",v).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",P).getRegex()},F={...B,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",T).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:f,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(j).replace("hr",v).replace("heading"," *#{1,6} *[^\n]").replace("lheading",w).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q=/^( {2,}|\\)\n(?!\s*$)/,D=/[\p{P}\p{S}]/u,A=/[\s\p{P}\p{S}]/u,$=/[^\s\p{P}\p{S}]/u,R=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,A).getRegex(),L=/(?!~)[\p{P}\p{S}]/u,V=m(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",g?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,G=m(U,"u").replace(/punct/g,D).getRegex(),M=m(U,"u").replace(/punct/g,L).getRegex(),z="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=m(z,"gu").replace(/notPunctSpace/g,$).replace(/punctSpace/g,A).replace(/punct/g,D).getRegex(),W=m(z,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,L).getRegex(),Q=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$).replace(/punctSpace/g,A).replace(/punct/g,D).getRegex(),K=m(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),J=m(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Z=m(T).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=m("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),X=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ee=m(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",X).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),te=m(/^!?\[(label)\]\[(ref)\]/).replace("label",X).replace("ref",S).getRegex(),ne=m(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,re={_backpedal:f,anyPunctuation:K,autolink:J,blockSkip:V,br:q,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:f,emStrongLDelim:G,emStrongRDelimAst:H,emStrongRDelimUnd:Q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ee,nolink:ne,punctuation:R,reflink:te,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",te).replace("nolink",ne).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:f},ae={...re,link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",X).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X).getRegex()},oe={...re,emStrongRDelimAst:W,emStrongLDelim:M,url:m(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ie).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ie).getRegex()},se={...oe,br:m(q).replace("{2,}","*").getRegex(),text:m(oe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},le={normal:B,gfm:E,pedantic:F},ce={normal:re,gfm:oe,breaks:se,pedantic:ae},de={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ue=function(e){return de[e]};function pe(e,t){if(t){if(b.escapeTest.test(e))return e.replace(b.escapeReplace,ue)}else if(b.escapeTestNoEncode.test(e))return e.replace(b.escapeReplaceNoEncode,ue);return e}function he(e){try{e=encodeURI(e).replace(b.percentDecode,"%")}catch{return null}return e}function fe(e,t){var n;let i=e.replace(b.findPipe,(function(e,t,n){let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(b.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!(null!==(n=i.at(-1))&&void 0!==n&&n.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(b.slashPipe,"|");return i}function me(e,t,n){let i=e.length;if(0===i)return"";let r=0;for(;r<i;){let a=e.charAt(i-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.slice(0,i-r)}function ge(e,t,n,i,r){let a=t.href,o=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:i.inl
7ineTokens(s)};return i.state.inLink=!1,l}var be=class{constructor(e){o(this,"options",void 0),o(this,"rules",void 0),o(this,"lexer",void 0),this.options=e||p}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:me(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(null===i)return t;let r=i[1];return t.split("\n").map((function(e){let t=e.match(n.other.beginningSpace);if(null===t)return e;let[i]=t;return i.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=me(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:me(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=me(t[0],"\n").split("\n"),n="",i="",r=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,i=i?`${i}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,r,!0),this.lexer.state.top=c,0===e.length)break;let d=r.at(-1);if("code"===(null==d?void 0:d.type))break;if("blockquote"===(null==d?void 0:d.type)){let t=d,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);r[r.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,i=i.substring(0,i.length-t.text.length)+o.text;break}if("list"!==(null==d?void 0:d.type));else{let t=d,a=t.raw+"\n"+e.join("\n"),o=this.list(a);r[r.length-1]=o,n=n.substring(0,n.length-d.raw.length)+o.raw,i=i.substring(0,i.length-t.raw.length)+o.raw,e=a.substring(r.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:r,text:i}}}list(e){var t=this;let n=this.rules.block.list.exec(e);if(n){let i=n[1].trim(),r=i.length>1,a={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?"\\d{1,9}\\"+i.slice(-1):"\\"+i,this.options.pedantic&&(i=r?i:"[*+-]");let o=this.rules.other.listItemRegex(i),s=!1;for(;e;){let t=!1,i="",r="";if(!(n=o.exec(e))||this.rules.block.hr.test(e))break;i=n[0],e=e.substring(i.length);let l=n[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(function(e){return" ".repeat(3*e.length)})),c=e.split("\n",1)[0],d=!l.trim(),u=0;if(this.options.pedantic?(u=2,r=l.trimStart()):d?u=n[1].length+1:(u=n[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,r=l.slice(u),u+=n[1].length),d&&this.rules.other.blankLine.test(c)&&(i+=c+"\n",e=e.substring(c.length+1),t=!0),!t){let t=this.rules.other.nextBulletRegex(u),n=this.rules.other.hrRegex(u),a=this.rules.other.fencesBeginRegex(u),o=this.rules.other.headingBeginRegex(u),s=this.rules.other.htmlBeginRegex(u);for(;e;){let p,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting,"  "),p=c):p=c.replace(this.rules.other.tabCharGlobal,"    "),a.test(c)||o.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())r+="\n"+p.slice(u);else{if(d||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||o.test(l)||n.test(l))break;r+="\n"+c}!d&&!c.trim()&&(d=!0),i+=h+"\n",e=e.substring(h.length+1),l=p.slice(u)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(s=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(r),h&&(p="[ ] "!==h[0],r=r.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:i,task:!!h,checked:p,loose:!1,text:r,tokens:[]}),a.raw+=i}let l=a.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),a.raw=a.raw.trimEnd();for(let e=0;e<a.items.length;e++)if(this.lexer.state.top=!1,a.items[e].tokens=this.lexer.blockTokens(a.items[e].text,[]),!a.loose){let n=a.items[e].tokens.filter((function(e){return"space"
vendor: 6,951 bytes, line 7
7===e.type})),i=n.length>0&&n.some((function(e){return t.rules.other.anyLine.test(e.raw)}));a.loose=i}if(a.loose)for(let e=0;e<a.items.length;e++)a.items[e].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:i}}}table(e){var t,n=this;let i=this.rules.block.table.exec(e);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=fe(i[1]),a=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=null!==(t=i[3])&&void 0!==t&&t.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(r.length===a.length){for(let e of a)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<r.length;e++)s.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:s.align[e]});for(let e of o)s.rows.push(fe(e,s.header.length).map((function(e,t){return{text:e,tokens:n.lexer.inline(e),header:!1,align:s.align[t]}})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=me(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ge(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ge(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!n||this.rules.inline.punctuation.exec(n))){let n,r,a=[...i[0]].length-1,o=a,s=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(i=l.exec(t));){if(n=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!n)continue;if(r=[...n].length,i[3]||i[4]){o+=r;continue}if((i[5]||i[6])&&a%3&&!((a+r)%3)){s+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+s);let t=[...i[0]][0].length,l=e.slice(0,a+i.index+t+r);if(Math.min(a,r)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])e=t[0],r="mailto:"+e;else{let a;do{var n,i;a=t[0],t[0]=null!==(n=null===(i=this.rules.inline._backpedal.exec(t[0]))||void 0===i?void 0:i[0])&&void 0!==n?n:""}while(a!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ve=class e{constructor(e){o(this,"tokens",void 0),o(this,"options",void 0),o(this,"state",void 0),o(this,"tokenizer",void 0),o(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||p,this.options.tokenizer=this.options.tokenizer||new be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:b,block:le.normal,inline:ce.normal};this.options.pedantic?(t.block=le.pedantic,t.inline=ce.pedantic):this.options.gfm&&(t.block=le.gfm,this.options.breaks?t.inline=ce.breaks:t.inline=ce.gfm),this.tokenizer.rules=t}static get rules(){return{block:le,inline:ce}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(b.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;
7e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var i=this;for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal,"    ").replace(b.spaceLine,""));e;){var r,a;let o;if(null!==(r=this.options.extensions)&&void 0!==r&&null!==(r=r.block)&&void 0!==r&&r.some((function(n){return!!(o=n.call({lexer:i},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)})))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null!==(a=this.options.extensions)&&void 0!==a&&a.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach((function(e){t=e.call({lexer:i},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let i=t.at(-1);n&&"paragraph"===(null==i?void 0:i.type)?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+o.raw,i.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(o),n=s.length!==e.length,e=e.substring(o.raw.length)}else if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,i,r=this;let a,o=e,s=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(o));)a=s[2]?s[2].length:0,o=o.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=null!==(n=null===(i=this.options.hooks)||void 0===i||null===(i=i.emStrongMask)||void 0===i?void 0:i.call({lexer:this},o))&&void 0!==n?n:o;let l=!1,c="";for(;e;){var d,u;let n;if(l||(c=""),l=!1,null!==(d=this.options.extensions)&&void 0!==d&&null!==(d=d.inline)&&void 0!==d&&d.some((function(i){return!!(n=i.call({lexer:r},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)})))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let i=t.at(-1);"text"===n.type&&"text"===(null==i?void 0:i.type)?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,o,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(null!==(u=this.options.extensions)&&void 0!==u&&u.startInline){let t,n=1/0,a=e.slice(1);this.options.extensions.startInline.forEach((function(e){t=e.call({lexer:r},a),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(c=n.raw.slice(-1)),l=!0;let i=t.at(-1);"text"===(null==i?void 0:i.type)?(i.raw+=n.raw,i.text+=n.text):t.push(n)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},ke=class{constructor(e){o(this,"options",void 0),o(this,"parser",void 0),this.options=e||p}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let r=null===(i=(t||"").match(b.notSpaceStart))||void 0===i?void 0:i[0],a=e.replace(b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+pe(r)+'">'+(n?a:pe(a,!0))+"</code></pre>\n":"<pre><code>"+(n?a:pe(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,i="";for(let t=0;t<e.items.length;t++){let n=e.items[t];i+=this.listitem(n)}let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+i+"</"+r+">\n"}listitem(e){let t="";if(e.task){var n;let i=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null===(n=e.tokens[0])||void 0===n?void 0:n.type)?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+pe(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let i="";for(let t=0;t<e.rows.length;t++){let r=e.rows[t];n="";for(let e=0;e<r.length;e++)n+=this.tablecell(r[e]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+i+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${pe(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),r=he(e);if(null===r)return i;let a='<a href="'+(e=r)+'"';return t&&(a+=' title="'+pe(t)+'"'),a+=">"+i+"</a>",a}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let r=he(e);if(null===r)return pe(n);let a=`<img src="${e=r}" alt="${n}"`;return t&&(a+=` title="${pe(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:pe(e.text)}},ye=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},we=class e{constructor(e){o(this,"options",void 0),o(this,"renderer",void 0),o(this,"textRenderer",void 0),this.options=e||p,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ye}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){var i;let a=e[r];if(null!==(i=this.options.extensions)&&void 0!==i&&null!==(i=i.renderers)&&void 0!==i&&i[a.type]){let e=a,t=this.options.extensions.renderers[e.type].call({parser:this},e);
7if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){n+=t||"";continue}}let o=a;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"def":n+=this.renderer.def(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,a=this.renderer.text(i);for(;r+1<e.length&&"text"===e[r+1].type;)i=e[++r],a+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){var i;let a=e[r];if(null!==(i=this.options.extensions)&&void 0!==i&&null!==(i=i.renderers)&&void 0!==i&&i[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=e||"";continue}}let o=a;switch(o.type){case"escape":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;case"text":n+=t.text(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},_e=(e=class{constructor(e){o(this,"options",void 0),o(this,"block",void 0),this.options=e||p}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ve.lex:ve.lexInline}provideParser(){return this.block?we.parse:we.parseInline}},o(e,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(e,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),e),je=class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",we),o(this,"Renderer",ke),o(this,"TextRenderer",ye),o(this,"Lexer",ve),o(this,"Tokenizer",be),o(this,"Hooks",_e),this.use(...e)}walkTokens(e,t){var n=this;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let n of e.header)i=i.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{var r;let e=a;null!==(r=this.defaults.extensions)&&void 0!==r&&null!==(r=r.childTokens)&&void 0!==r&&r[e.type]?this.defaults.extensions.childTokens[e.type].forEach((function(r){let a=e[r].flat(1/0);i=i.concat(n.walkTokens(a,t))})):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){var t=this;let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((function(e){let i={...e};if(i.async=t.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if("renderer"in e){let t=n.renderers[e.name];n.renderers[e.name]=t?function(...n){let i=e.renderer.apply(this,n);return!1===i&&(i=t.apply(this,n)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let t=n[e.level];t?t.unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(n.childTokens[e.name]=e.childTokens)})),i.extensions=n),e.renderer){let n=t.defaults.renderer||new ke(t.defaults);for(let t in e.renderer){if(!(t in n))throw new Error(`renderer '${t}' does not exist`);if(["options","parser"].includes(t))continue;let i=t,r=e.renderer[i],a=n[i];n[i]=function(...e){let t=r.apply(n,e);return!1===t&&(t=a.apply(n,e)),t||""}}i.renderer=n}if(e.tokenizer){let n=t.defaults.tokenizer||new be(t.defaults);for(let t in e.tokenizer){if(!(t in n))throw new Error(`tokenizer '${t}' does not exist`);if(["options","rules","lexer"].includes(t))continue;let i=t,r=e.tokenizer[i],a=n[i];n[i]=function(...e){let t=r.apply(n,e);return!1===t&&(t=a.apply(n,e)),t}}i.tokenizer=n}if(e.hooks){let n=t.defaults.hooks||new _e;for(let i in e.hooks){if(!(i in n))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let r=i,a=e.hooks[r],o=n[r];_e.passThroughHooks.has(i)?n[r]=function(e){if(t.defaults.async&&_e.passThroughHooksRespectAsync.has(i))return async function(){let t=await a.call(n,e);return o.call(n,t)}();let r=a.call(n,e);return o.call(n,r)}:n[r]=function(...e){if(t.defaults.async)return async function(){let t=await a.apply(n,e);return!1===t&&(t=await o.apply(n,e)),t}();let i=a.apply(n,e);return!1===i&&(i=o.apply(n,e)),i}}i.hooks=n}if(e.walkTokens){let n=t.defaults.walkTokens,r=e.walkTokens;i.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}t.defaults={...t.defaults,...i}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ve.lex(e,null!=t?t:this.defaults)}parser(e,t){return we.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){var t=this;return function(n,i){let r={...i},a={...t.defaults,...r},o=t.onError(!!a.silent,!!a.async);if(!0===t.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||null===n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return async function(){let i=a.hooks?await a.hooks.preprocess(n):n,r=await(a.hooks?await a.hooks.provideLexer():e?ve.lex:ve.lexInline)(i,a),o=a.hooks?await a.hooks.processAllTokens(r):r;a.walkTokens&&await Promise.all(t.walkTokens(o,a.walkTokens));let s=await(a.hooks?await a.hooks.provideParser():e?we.parse:we.parseInline)(o,a);return a.hooks?await a.hooks.postprocess(s):s}().catch(o);try{a.hooks&&(n=a.hooks.preprocess(n));let i=(a.hooks?a.hooks.provideLexer():e?ve.lex:ve.lexInline)(n,a);a.hooks&&(i=a.hooks.processAllTokens(i)),a.walkTokens&&t.walkTokens(i,a.walkTokens);let r=(a.hooks?a.hooks.provideParser():e?we.parse:we.parseInline)(i,a);return a.hooks&&(r=a.hooks.postprocess(r)),r}catch(e){return o(e)}}}onError(e,t){return function(n){if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+pe(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Se=new je;function Oe(e,t){return Se.parse(e,t)}Oe.options=Oe.setOptions=function(e){return Se.setOptions(e),Oe.defaults=Se.defaults,h(Oe.defaults),Oe},Oe.getDefaults=u,Oe.defaults=p,Oe.use=function(...e){return Se.use(...e),Oe.defaults=Se.defaults,h(Oe.defaults),Oe},Oe.walkTokens=function(e,t){return Se.walkTokens(e,t)},Oe.parseInline=Se.parseInline,Oe.Parser=we,Oe.parser=we.parse,Oe.Renderer=ke,Oe.TextRenderer=ye,Oe.Lexer=ve,Oe.lexer=ve.lex,Oe.Tokenizer=be,Oe.Hooks=_e,Oe.parse=Oe;var xe=Oe.options,Pe=Oe.setOptions,Te=Oe.use,Ce=Oe.walkTokens,Ie=Oe.parseInline,Be=Oe,Ne=we.parse,Ee=ve.lex;return i!=n&&(r.exports=n),r.exports},typeof e<"u"?e.exports=a():void 0===(r="function"==typeof(i=a)?i.call(t,n,t,e):i)||(e.exports=r)}
7,Ihdd:function(e,t,n){(e.exports=n("VNgF")(!1)).push([e.i,"\n/* Temporary override until we have\n   * widths available in GlDisclosureDropdown\n   * https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/issues/2439\n   */\n.code-dropdown .gl-new-dropdown-panel {\n  width: 100%;\n  max-width: 348px;\n}\n",""])},JYQl:function(e,t,n){"use strict";var i=n("7xOh");t.a=Object(i.a)()},NHYh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("3UXl"),n("iyoE");const i=function(e,t){return e.map((function(e,t){return[t,e]})).sort(function(e,t){return this(e[1],t[1])||e[0]-t[0]}.bind(t)).map((function(e){return e[1]}))}},Nqn5:function(e,t,n){"use strict";var i=n("Vnt5"),r=n("9kO9"),a=n("9peN"),o=n("LNsH"),s=Object(a.a)((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Object(o.a)(e,t[0],t[1])?t=[]:n>2&&Object(o.a)(t[0],t[1],t[2])&&(t=[t[0]]),Object(r.a)(e,Object(i.a)(t,1),[])}));t.a=s},OGDS:function(e,t){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TreeEntry"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sha"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"flatPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPaginatedTree"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ref"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nextPageCursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"refType"}},type:{kind:"NamedType",name:{kind:"Name",value:"RefType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paginatedTree"},arguments:[{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"ref"},value:{kind:"Variable",name:{kind:"Name",value:"ref"}}},{kind:"Argument",name:{kind:"Name",value:"refType"},value:{kind:"Variable",name:{kind:"Name",value:"refType"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"nextPageCursor"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trees"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TreeEntry"},directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"submodules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TreeEntry"},directives:[]},{kind:"Field",name:{kind:"Name",value:"webUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"treeUrl"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"blobs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TreeEntry"},directives:[]},{kind:"Field",name:{kind:"Name",value:"mode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lfsOid"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1114}};n.loc.source={body:"# @feature_category: source_code_management\nfragment TreeEntry on Entry {\n  __typename\n  id\n  sha\n  name\n  flatPath\n  type\n  path\n}\n\nquery getPaginatedTree(\n  $projectPath: ID!\n  $path: String\n  $ref: String!\n  $nextPageCursor: String\n  $refType: RefType\n) {\n  project(fullPath: $projectPath) {\n    id\n    __typename\n    repository {\n      __typename\n      paginatedTree(path: $path, ref: $ref, refType: $refType, after: $nextPageCursor) {\n        __typename\n        pageInfo {\n          __typename\n          endCursor\n          startCursor\n          hasNextPage\n        }\n        nodes {\n          __typename\n          trees {\n            __typename\n            nodes {\n              ...TreeEntry\n              webPath\n            }\n          }\n          submodules {\n            __typename\n            nodes {\n              ...TreeEntry\n              webUrl\n              treeUrl\n            }\n          }\n          blobs {\n            __typename\n            nodes {\n              ...TreeEntry\n              mode\n              webPath\n              lfsOid\n            }\n          }\n        }\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}function a(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;
7for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.TreeEntry=a(n,"TreeEntry"),e.exports.getPaginatedTree=a(n,"getPaginatedTree")},OJiF:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i="gl-tab-nav-item"},OR9K:function(e,t,n){"use strict";n("LdIe"),n("z6RN"),n("PTOk"),n("aFm2"),n("R9qC");var i=n("Jx7q"),r=n("dIEn"),a=n("ljRM"),o=n("/lV4"),s=n("P35d"),l=n("HX8k"),c={name:"UploadDropzone",components:{GlLink:i.a,GlSprintf:r.a,GlAnimatedUploadIcon:a.a},props:{displayAsCard:{type:Boolean,required:!1,default:!1},enableDragBehavior:{type:Boolean,required:!1,default:!1},uploadSingleMessage:{type:String,required:!1,default:Object(o.a)("Drop or %{linkStart}upload%{linkEnd} file to attach")},uploadMultipleMessage:{type:String,required:!1,default:Object(o.a)("Drop or %{linkStart}upload%{linkEnd} files to attach")},dropToStartMessage:{type:String,required:!1,default:Object(o.a)("Drop your files to start your upload.")},isFileValid:{type:Function,required:!1,default:l.a},validFileMimetypes:{type:Array,required:!1,default:function(){return[s.b.mimetype]}},singleFileSelection:{type:Boolean,required:!1,default:!1},inputFieldName:{type:String,required:!1,default:"upload_file"},inputFieldId:{type:String,required:!1,default:void 0},shouldUpdateInputOnFileDrop:{type:Boolean,required:!1,default:!1},showUploadDesignOverlay:{type:Boolean,required:!1,default:!1},uploadDesignOverlayText:{type:String,required:!1,default:""},validateDesignUploadOnDragover:{type:Boolean,required:!1,default:!1},acceptDesignFormats:{type:String,required:!1,default:""},hideUploadTextOnDragging:{type:Boolean,required:!1,default:!1},hasUploadError:{type:Boolean,required:!1,default:!1}},emits:["change","dragenter","dragleave","error"],data:()=>({dragCounter:0,isDragDataValid:!0,animateUploadIcon:!1}),computed:{dragging(){return 0!==this.dragCounter},iconStyles(){return{class:this.displayAsCard?"gl-mb-3":"gl-mr-3"}},showDropzoneOverlay(){return this.validateDesignUploadOnDragover&&this.acceptDesignFormats?this.dragging&&this.isDragDataValid&&!this.enableDragBehavior:this.dragging&&!this.enableDragBehavior}},methods:{isValidUpload(e){return e.every(this.isFileValid)},isValidDragDataType:({dataTransfer:e})=>Boolean(e&&e.types.some((function(e){return e===s.a}))),ondrop({dataTransfer:e={}}){if(this.dragCounter=0,!this.isDragDataValid)return;const{files:t}=e;if(this.isValidUpload(Array.from(t))){if(this.shouldUpdateInputOnFileDrop){if(this.singleFileSelection&&t.length>1)return void this.$emit("error");this.$refs.fileUpload.files=t}this.$emit("change",this.singleFileSelection?t[0]:t)}else this.$emit("error")},ondragenter(e){this.$emit("dragenter",e),this.dragCounter+=1,this.isDragDataValid=this.isValidDragDataType(e)},ondragover({dataTransfer:e}){var t=this;this.validateDesignUploadOnDragover&&(this.isDragDataValid=Array.from(e.items).some((function(e){return t.acceptDesignFormats.includes(e.type)})))},ondragleave(e){this.$emit("dragleave",e),this.dragCounter-=1},openFileUpload(){this.$refs.fileUpload.click()},clearInputFiles(){this.$refs.fileUpload&&(this.$refs.fileUpload.value="")},onFileInputChange(e){if(!this.isValidUpload(Array.from(e.target.files)))return this.clearInputFiles(),void this.$emit("error");this.$emit("change",this.singleFileSelection?e.target.files[0]:e.target.files)},onMouseEnter(){this.animateUploadIcon=!0},onMouseLeave(){this.animateUploadIcon=!1}}},d=n("tBpV"),u=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-w-full",class:{"gl-relative":!e.showU
7ploadDesignOverlay},on:{dragstart:function(e){e.preventDefault(),e.stopPropagation()},dragend:function(e){e.preventDefault(),e.stopPropagation()},dragover:function(t){return t.preventDefault(),t.stopPropagation(),e.ondragover.apply(null,arguments)},dragenter:function(t){return t.preventDefault(),t.stopPropagation(),e.ondragenter.apply(null,arguments)},dragleave:function(t){return t.preventDefault(),t.stopPropagation(),e.ondragleave.apply(null,arguments)},drop:function(t){return t.preventDefault(),t.stopPropagation(),e.ondrop.apply(null,arguments)}}},[e._t("default",(function(){return[t("button",{staticClass:"upload-dropzone-card gl-mb-0 gl-h-full gl-w-full gl-items-center gl-justify-center gl-rounded-base gl-border-0 gl-bg-default gl-px-5 gl-py-4",class:e.hasUploadError?"upload-dropzone-border-error":"upload-dropzone-border",attrs:{type:"button"},on:{click:e.openFileUpload,mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[t("div",{staticClass:"gl-flex gl-items-center gl-justify-center gl-text-center",class:{"gl-flex-col":e.displayAsCard},attrs:{"data-testid":"dropzone-area"}},[t("gl-animated-upload-icon",{class:e.iconStyles.class,attrs:{"is-on":e.animateUploadIcon||e.hideUploadTextOnDragging}}),e._v(" "),e.hideUploadTextOnDragging&&e.dragging?e._e():t("p",{staticClass:"gl-mb-0",attrs:{"data-testid":"upload-text"}},[e._t("upload-text",(function(){return[t("gl-sprintf",{attrs:{message:e.singleFileSelection?e.uploadSingleMessage:e.uploadMultipleMessage},scopedSlots:e._u([{key:"link",fn:function({content:n}){return[t("gl-link",{on:{click:function(t){return t.stopPropagation(),e.openFileUpload.apply(null,arguments)}}},[e._v(e._s(n))])]}}],null,!1,40519920)})]}),{openFileUpload:e.openFileUpload})],2),e._v(" "),e.hideUploadTextOnDragging&&e.dragging?t("span",[e._v("\n          "+e._s(e.s__("DesignManagement|Drop your images to start the upload."))+"\n        ")]):e._e()],1)]),e._v(" "),t("input",{ref:"fileUpload",staticClass:"hide",attrs:{id:e.inputFieldId,type:"file",name:e.inputFieldName,accept:e.validFileMimetypes,multiple:!e.singleFileSelection},on:{change:e.onFileInputChange}})]})),e._v(" "),t("transition",{attrs:{name:"upload-dropzone-fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showDropzoneOverlay,expression:"showDropzoneOverlay"}],staticClass:"gl-absolute gl-flex gl-h-full gl-w-full gl-items-center gl-justify-center gl-p-4",class:{"design-upload-dropzone-overlay gl-z-200":e.showUploadDesignOverlay&&e.isDragDataValid,"upload-dropzone-overlay upload-dropzone-border":!e.showUploadDesignOverlay}},[e.showUploadDesignOverlay?[e.isDragDataValid&&!e.hideUploadTextOnDragging?t("div",{staticClass:"gl-absolute gl-bottom-6 gl-flex gl-items-center gl-rounded-base gl-bg-feedback-strong gl-px-3 gl-py-2 gl-text-feedback-strong gl-shadow-sm",attrs:{"data-testid":"design-upload-overlay"}},[t("gl-animated-upload-icon",{attrs:{"is-on":!0,name:"upload"}}),e._v(" "),t("span",{staticClass:"gl-ml-2"},[e._v(e._s(e.uploadDesignOverlayText))])],1):e._e()]:[e.isDragDataValid?t("div",{key:"_vif_1_0",staticClass:"gl-max-w-1/2 gl-text-center"},[e._t("valid-drag-data-slot",(function(){return[t("h3",{class:{"gl-inline gl-text-base":!e.displayAsCard}},[e._v("\n              "+e._s(e.__("Incoming!"))+"\n            ")]),e._v(" "),t("span",[e._v(e._s(e.dropToStartMessage))])]}))],2):t("div",{key:"_vif_1_1",staticClass:"gl-max-w-1/2 gl-text-center"},[e._t("invalid-drag-data-slot",(function(){return[t("h3",{class:{"gl-inline gl-text-base":!e.displayAsCard}},[e._v("\n              "+e._s(e.__("Oh no!"))+"\n            ")]),e._v(" "),t("span",[e._v(e._s(e.__("You are trying to upload something other than an image. Please upload a .png, .jpg, .jpeg, .gif, .bmp, .tiff or .ico.")))])]}))],2)]],2)])],2)}),[],!1,null,null,null);t.a=u.exports},OgoU:function(e,t,n){"use strict";var i={name:"CodeBlock",props:{code:{type:String,required:!1,default:""},maxHeight:{type:String,required:!1,default:"initial"}},computed:{styleObject(){const{maxHeight:e}=this;return"initial"!==e?{maxHeight:e,overflowY:"auto"}:null}}},r=n("tBpV"),a=Object(r.a)(i,(function(){var e=this,t=e._self._c;return t("pre",{staticClass:"code-block code code-syntax-highlight-theme !gl-rounded-base",style:e.styleObject},[e._t("default",(function(){return[t("code",{staticClass:"gl-block"},[e._v(e._s(e.code))])]}))],2)}),[],!1,null,null,null);t.a=a.exports},OvWE:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getProjectInfo"}
7,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userPermissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pushCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createMergeRequestIn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkProject"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rootRef"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:235}};n.loc.source={body:"query getProjectInfo($projectPath: ID!) {\n  project(fullPath: $projectPath) {\n    id\n    userPermissions {\n      pushCode\n      downloadCode\n      createMergeRequestIn\n      forkProject\n    }\n    repository {\n      rootRef\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getProjectInfo=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getProjectInfo")},P35d:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const i={mimetype:"image/*",regex:/image\/.+/},r="Files"},PZST:function(e,t,n){"use strict";var i=n("ewH8"),r=n("XLeO"),a=n("MGi3"),o=n("zNqO"),s=n("n64d"),l=n("/2q6"),c=n("S6lQ"),d=n("Z48/"),u=(n("UezY"),n("z6RN"),n("hG7+"),n("B++/"),n("47t/"),n("Z4o9")),p=n("pTIT"),h=n("Ld9G"),f=n("OloL"),m=n("p+x1"),g=n("Zwln"),b=n("LTP3"),v=n("eOJu"),k=n("w1kk");const y=Object(o.c)({data:()=>({listenForClickOut:!1}),watch:{listenForClickOut(e,t){e!==t&&(Object(b.a)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,p.N),e&&Object(b.b)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,p.N))}},beforeCreate(){this.clickOutElement=null,this.clickOutEventName=null},mounted(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Object(b.b)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,p.N)},beforeDestroy(){Object(b.a)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,p.N)},methods:{isClickOut(e){return!Object(a.f)(this.$el,e.target)},_clickOutHandler(e){this.clickOutHandler&&this.isClickOut(e)&&this.clickOutHandler(e)}}}),w=Object(o.c)({data:()=>({listenForFocusIn:!1}),watch:{listenForFocusIn(e,t){e!==t&&(Object(b.a)(this.focusInElement,"focusin",this._focusInHandler,p.N),e&&Object(b.b)(this.focusInElement,"focusin",this._focusInHandler,p.N))}},beforeCreate(){this.focusInElement=null},mounted(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Object(b.b)(this.focusInElement,"focusin",this._focusInHandler,p.N)},beforeDestroy(){Object(b.a)(this.focusInElement,"focusin",this._focusInHandler,p.N)},methods:{_focusInHandler(e){this.focusInHandler&&this.focusInHandler(e)}}});var _=n("tslw"),j=n("Crmr"),S=n("7Q3u");const O=Object(b.e)(s.d,p.K),x=Object(b.e)(s.d,p.q),P=[".dropdown-item",".b-dropdown-form"].map((function(e){return e+":not(.disabled):not([disabled])"})).join(", "),T=Object(v.m)({..._.b,boundary:{type:[m.c,String],required:!1,default:"scrollParent"},disabled:{type:Boolean,required:!1,default:!1},dropleft:{type:Boolean,required:!1,default:!1},dropright:{type:Boolean,required:!1,default:!1},dropup:{type:Boolean,required:!1,default:!1},noFlip:{type:Boolean,required:!1,default:!1},offset:{type:[Number,String],required:!1,default:0},popperOpts:{type:Object,required:!1,default:function(){return{}}},right:{type:Boolean,required:!1,default:!1}}),C=Object(o.c)({mixins:[_.a,j.a,y,w],provide(){var e=this;return{getBvDropdown:function(){return e}}},props:T,data:()=>({visible:!1,visibleChangePrevented:!1}),computed:{toggler(){const{toggle:e}=this.$refs;return e?e.$el||e:null},directionClass(){return this.dropup?"dropup":this.dropright?"dropright":this.dropleft?"dropleft":""},boundaryClass(){return"scrollParent"!==this.boundary?"gl-static":""}},watch:{visible(e,t){if(this.visibleChangePrevented)this.visibleChangePrevented=!1;else if(e!==t){const n=e?p.J:p.r,i=new g.a(n,{cancelable:!0,vueTarget:this,target:this.$refs.menu,relatedTarget:null,componentId:this.safeId?this.safeId():this.id||null});if(this.emitEvent(i),i.defaultPrevented)return this.visibleChangePrevented=!0,this.visible=t,void(this.$_focusOnHidden=!1);e?this.showMenu():this.hideMenu()}},disabled(e,t){e!==t&&e&&this.visible&&(this.visible=!1)}},created(){this.$_popper=null},deactivated(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},mounted(){Object(S.b)(this.$el,this)},beforeDestroy(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper(),Object(S.c)(this.$el)},methods:{emitEvent(e){const{type:t}=e;this.emitOnRoot(Object(b.e)(s.d,t),e),this.$emit(t,e)},showMenu(){var e=this;if(!this.disabled){if(void 0===u.a)Object(k.a)("Popper.js not found. Falling back to CSS positioning",s.d);else{let e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.emitOnRoot(O,this),this.whileOpenListen(!0),this.$nextTick((function(){e.focusMenu(),e.$emit(p.K)}))}},hideMenu(){this.whileOpenListen(!1),this.emitOnRoot(x,this),this.$emit(p.q),this.destroyPopper(),this.$_focusOnHidden&&(this.$_focusOnHidden=!1,this.focusToggler())},createPopper(e){this.destroyPopper(),this.$_popper=new u.a(e,this.$refs.menu,this.getPopperConfig())},destroyPopper(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper(){try{this.$_popper.scheduleUpdate()}catch{}},getPopperConfig(){let e=f.b;this.dropup?e=this.right?f.e:f.f:this.dropright?e=f.d:this.dropleft?e=f.c:this.right&&(e=f.a);const t={placement:e,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}},n=this.boundary;return n&&(t.modifiers.preventOverflow={boundariesElement:n}),Object(v.i)(t,this.popperOpts||{})},whileOpenListen(e){this.listenForClickOut=e,this.listenForFocusIn=e;this[e?"listenOnRoot":"listenOffRoot"](O,this.rootCloseListener)},rootCloseListener(e){e!==this&&(this.visible=!1)},show(){var e=this;this.disabled||Object(a.A)((function(){e.visible=!0}))},hide(e=!1){this.disabled||(this.visible=!1,e&&(this.$_focusOnHidden=!0))},toggle(e){e=e||{};const{type:t,keyCode:n}=e;("click"===t||"keydown"===t&&-1!==[h.c,h.h,h.a].indexOf(n))&&(this.disabled?this.visible=!1:(this.$emit(p.M,e),Object(b.f)(e),this.visible?this.hide(!0):this.show()))},onMousedown(e){Object(b.f)(e,{propagation:!1})},onKeydown(e){const{keyCode:t}=e;t===h.d?this.onEsc(e):t===h.a?this.focusNext(e,!1):t===h.i&&this.focusNext(e,!0)},onEsc(e){this.visible&&(this.visible=!1,Object(b.f)(e),this.$_focusOnHidden=!0)},onSplitClick(e){this.disabled?this.visible=!1:this.$emit(p.e,e)},hideHandler(e){const{target:t}=e;!this.visible||Object(a.f)(this.$refs.menu,t)||Object(a.f)(this.toggler,t)||this.hide()},clickOutHandler(e){this.hideHandler(e)},focusInHandler(e){this.hideHandler(e)},focusNext(e,t){var n=this;const{target:i}=e;!this.visible||e&&Object(a.e)(".dropdown form",i)||(Object(b.f)(e),this.$nextTick((function(){const e=n.getItems();if(e.length<1)return;let r=e.indexOf(i);t&&r>0?r--:!t&&r<e.length-1&&r++,r<0&&(r=0),n.focusItem(r,e)})))},focusItem(e,t){const n=t.find((function(t,n){return n===e}));Object(a.d)(n)},getItems(){return(Object(a.C)(P,this.$refs.menu)||[]).filter(a.v)},focusMenu(){Object(a.d)(this.$refs.menu)},focusToggler(){var e=this;this.$nextTick((function(){Object(a.d)(e.toggler)}))}}});var I=n("slyf"),B=n("WKs9");const N=Object(v.m)({..._.b,...T,block:{type:Boolean,required:!1,default:!1},html:{type:String,required:!1,default:void 0},lazy:{type:Boolean,required:!1,default:!1},menuClass:{type:[Array,Object,String],required:!1,default:void 0},noCaret:{type:Boolean,required:!1,default:!1},role:{type:String,required:!1,default:"menu"},size:{type:String,required:!1,default:void 0},split:{type:Boolean,required:!1,default:!1},splitButtonType:{type:String,required:!1,default:"button",validator:function(e){return["button","submit","reset"].includes(e)}},splitClass:{type:[Array,Object,String],required:!1,default:void 0},splitHref:{type:String,required:!1,default:void 0},splitTo:{type:[Object,String],required:!1,default:void 0},splitVariant:{type:String,required:!1,default:void 0},text:{type:String,required:!1,default:void 0},toggleAttrs:{type:Object,required:!1,default:function(){return{}}},toggleClass:{type:[Array,Object,String],required:!1,default:void 0},toggleTag:{type:String,required:!1,default:"button"},toggleText:{type:String,required:!1,default:"Toggle dropdown"},variant:{type:String,required:!1,default:"secondary"}}),E=Object(o.c)({name:s.d,mixins:[_.a,C,I.a],props:N,computed:{dropdownClasse
7s(){const{block:e,split:t}=this;return[this.directionClass,this.boundaryClass,{show:this.visible,"btn-group":t||!e,"gl-flex":e&&t}]},menuClasses(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses(){const{split:e}=this;return[this.toggleClass,{"dropdown-toggle-split":e,"dropdown-toggle-no-caret":this.noCaret&&!e}]}},render(e){const{visible:t,variant:n,size:i,block:r,disabled:a,split:o,role:s,hide:u,toggle:p}=this,h={variant:n,size:i,block:r,disabled:a};let f=this.normalizeSlot(l.b),m=this.hasNormalizedSlot(l.b)?{}:Object(c.a)(this.html,this.text),g=e();if(o){const{splitTo:t,splitHref:i,splitButtonType:r}=this,a={...h,variant:this.splitVariant||n};t?a.to=t:i?a.href=i:r&&(a.type=r),g=e(B.a,{class:this.splitClass,attrs:{id:this.safeId("_BV_button_")},props:a,domProps:m,on:{click:this.onSplitClick},ref:"button"},f),f=[e("span",{class:["gl-sr-only"]},[this.toggleText])],m={}}const b=e(B.a,{staticClass:"dropdown-toggle",class:this.toggleClasses,attrs:{...this.toggleAttrs,id:this.safeId("_BV_toggle_"),"aria-haspopup":["menu","listbox","tree","grid","dialog"].includes(s)?s:"false","aria-expanded":Object(d.e)(t)},props:{...h,tag:this.toggleTag,block:r&&!o},domProps:m,on:{mousedown:this.onMousedown,click:p,keydown:p},ref:"toggle"},f),v=e("ul",{staticClass:"dropdown-menu",class:this.menuClasses,attrs:{role:s,tabindex:"-1","aria-labelledby":this.safeId(o?"_BV_button_":"_BV_toggle_")},on:{keydown:this.onKeydown},ref:"menu"},[!this.lazy||t?this.normalizeSlot(l.d,{hide:u}):e()]);return e("div",{staticClass:"dropdown b-dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[g,b,v])}});var F=n("q3oM"),q=n("mpVB"),D=n("NRS2"),A=n("CbCZ"),$=n("d85j"),R=n("NnjE"),L=n("pDO9");const V=".dropdown-item:not(.disabled):not([disabled]),.form-control:not(.disabled):not([disabled])",U=i.default.extend(E,{name:"ExtendedBDropdown",methods:{getItems(){return Object(q.c)(Object(a.C)(V,this.$refs.menu))}}}),G={modifiers:{flip:{flipVariationsByContent:!0,padding:28}}};var M={name:"GlDropdown",components:{BDropdown:U,GlButton:A.a,GlDropdownDivider:L.a,GlIcon:$.a,GlLoadingIcon:R.a},mixins:[D.a],inheritAttrs:!1,props:{headerText:{type:String,required:!1,default:""},hideHeaderBorder:{type:Boolean,required:!1,default:!0},showClearAll:{type:Boolean,required:!1,default:!1},clearAllText:{type:String,required:!1,default:"Clear all"},clearAllTextClass:{type:String,required:!1,default:"gl-px-5"},text:{type:String,required:!1,default:""},showHighlightedItemsTitle:{type:Boolean,required:!1,default:!1},highlightedItemsTitle:{type:String,required:!1,default:"Selected"},highlightedItemsTitleClass:{type:String,required:!1,default:"gl-px-5"},textSrOnly:{type:Boolean,required:!1,default:!1},split:{type:Boolean,required:!1,default:!1},category:{type:String,required:!1,default:F.q.primary,validator:function(e){return Object.keys(F.q).includes(e)}},variant:{type:String,required:!1,default:F.z.default,validator:function(e){return Object.keys(F.z).includes(e)}},size:{type:String,required:!1,default:"medium",validator:function(e){return Object.keys(F.r).includes(e)}},icon:{type:String,required:!1,default:null},block:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},toggleClass:{type:[String,Array,Object],required:!1,default:null},right:{type:Boolean,required:!1,default:!1},popperOpts:{type:Object,required:!1,default:null},noFlip:{type:Boolean,required:!1,default:!1},splitHref:{type:String,required:!1,default:""}},computed:{renderCaret(){return!this.split},isIconOnly(){var e;return Boolean(this.icon&&(!(null!==(e=this.text)&&void 0!==e&&e.length)||this.textSrOnly)&&!this.hasSlotContents("button-text"))},isIconWithText(){var e;return Boolean(this.icon&&(null===(e=this.text)||void 0===e?void 0:e.length)&&!this.textSrOnly)},toggleButtonClasses(){return[this.toggleClass,{"gl-button":!0,"gl-dropdown-toggle":!0,[`btn-${this.variant}-secondary`]:this.category===F.q.secondary||this.category===F.q.tertiary&&this.split,[`btn-${this.variant}-tertiary`]:this.category===F.q.tertiary&&!this.split,"dropdown-icon-only":this.isIconOnly,"dropdown-icon-text":this.isIconWithText}]}
7,splitButtonClasses(){return[this.toggleClass,{"gl-button":!0,"split-content-button":Boolean(this.text),"icon-split-content-button":Boolean(this.icon),[`btn-${this.variant}-secondary`]:this.category===F.q.secondary||this.category===F.q.tertiary}]},buttonText(){return this.split&&this.icon?null:this.text},hasHighlightedItemsContent(){return this.hasSlotContents("highlighted-items")},hasHighlightedItemsOrClearAll(){return this.hasHighlightedItemsContent&&this.showHighlightedItemsTitle||this.showClearAll},popperOptions(){return Object(r.a)({},G,this.popperOpts)}},methods:{hasSlotContents(e){var t,n;return Boolean(null===(t=(n=this.$scopedSlots)[e])||void 0===t?void 0:t.call(n))},show(...e){this.$refs.dropdown.show(...e)},hide(...e){this.$refs.dropdown.hide(...e)}}},z=n("tBpV"),H=Object(z.a)(M,(function(){var e=this,t=e._self._c;return t("b-dropdown",e._g(e._b({ref:"dropdown",staticClass:"gl-dropdown",attrs:{split:e.split,variant:e.variant,size:e.buttonSize,"toggle-class":[e.toggleButtonClasses],"split-class":e.splitButtonClasses,block:e.block,disabled:e.disabled||e.loading,right:e.right,"popper-opts":e.popperOptions,"no-flip":e.noFlip,"split-href":e.splitHref},scopedSlots:e._u([{key:"button-content",fn:function(){return[e._t("button-content",(function(){return[e.loading?t("gl-loading-icon",{class:{"gl-mr-2":!e.isIconOnly}}):e._e(),e._v(" "),!e.icon||e.isIconOnly&&e.loading?e._e():t("gl-icon",{staticClass:"dropdown-icon",attrs:{name:e.icon}}),e._v(" "),t("span",{staticClass:"gl-dropdown-button-text",class:{"gl-sr-only":e.textSrOnly}},[e._t("button-text",(function(){return[e._v(e._s(e.buttonText))]}))],2),e._v(" "),e.renderCaret?t("gl-icon",{staticClass:"gl-button-icon dropdown-chevron",attrs:{name:"chevron-down"}}):e._e()]}))]},proxy:!0}],null,!0)},"b-dropdown",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"gl-dropdown-inner"},[e.hasSlotContents("header")||e.headerText?t("div",{staticClass:"gl-dropdown-header",class:{"!gl-border-b-0":e.hideHeaderBorder}},[e.headerText?t("p",{staticClass:"gl-dropdown-header-top"},[e._v("\n        "+e._s(e.headerText)+"\n      ")]):e._e(),e._v(" "),e._t("header")],2):e._e(),e._v(" "),e.hasHighlightedItemsOrClearAll?t("div",{staticClass:"gl-flex gl-flex-row gl-items-center gl-justify-between"},[e.hasHighlightedItemsContent&&e.showHighlightedItemsTitle?t("div",{staticClass:"gl-justify-content-flex-start gl-flex gl-grow",class:e.highlightedItemsTitleClass},[t("span",{staticClass:"gl-font-bold gl-text-strong",attrs:{"data-testid":"highlighted-items-title"}},[e._v(e._s(e.highlightedItemsTitle))])]):e._e(),e._v(" "),e.showClearAll?t("div",{staticClass:"gl-flex gl-grow gl-justify-end",class:e.clearAllTextClass},[t("gl-button",{attrs:{size:"small",category:"tertiary",variant:"link","data-testid":"clear-all-button"},on:{click:function(t){return e.$emit("clear-all",t)}}},[e._v(e._s(e.clearAllText))])],1):e._e()]):e._e(),e._v(" "),t("div",{staticClass:"gl-dropdown-contents"},[e.hasHighlightedItemsContent?t("div",{staticClass:"gl-overflow-visible",attrs:{"data-testid":"highlighted-items"}},[e._t("highlighted-items"),e._v(" "),t("gl-dropdown-divider")],2):e._e(),e._v(" "),e._t("default")],2),e._v(" "),e.hasSlotContents("footer")?t("div",{staticClass:"gl-dropdown-footer"},[e._t("footer")],2):e._e()])])}),[],!1,null,null,null);t.a=H.exports},PkLN:function(e,t,n){"use strict";n.r(t);n("byxs");var i=n("hcsH"),r=n("Erny"),a=n("CX32"),o=n("QRtj"),s=n("lCTV"),l=n("dIEn"),c=n("Jx7q"),d=n("qLpH"),u={name:"ClustersDeprecationAlert",components:{GlAlert:s.a,GlSprintf:l.a,GlLink:c.a},inject:["message"],docsLink:Object(d.a)("user/infrastructure/clusters/migrate_to_gitlab_agent.md"),deprecationEpic:"https://gitlab.com/groups/gitlab-org/configure/-/epics/8"},p=n("tBpV"),h=Object(p.a)(u,(function(){var e=this,t=e._self._c;return t("gl-alert",{staticClass:"gl-mt-5",attrs:{dismissible:!1,variant:"warning"}},[t("gl-sprintf",{attrs:{message:e.message},scopedSlots:e._u([{key:"link",fn:function({content:n}){return[t("gl-link",{attrs:{href:e.$options.docsLink}},[e._v(e._s(n))])]}},{key:"deprecationLink",fn:function({content:n}){return[t("gl-link",{attrs:{href:e.$options.deprecationEpic}},[e._v(e._s(n))])]}}])})],1)}),[],!1,null,null,null).exports,f=n("0Ypr"),m=n("NmEs"),g=n("htAy"),b=n("CbCZ"),v=n("5lKJ"),k=n("CSd6");var y={name:"UploadButton",components:{GlButton:b.a,UploadBlobModal:k.a},directives:{GlModal:v.a},inject:{targetBranch:{default:""},originalBranch:{default:""},canPushCode:{default:!1},canPushToBranch:{default:!1},path:{default:""},emptyRepo:{default:!1}},uploadBlobModalId:"details-modal-upload-blob"},w=Object(p.a)(y,(function(){var e=this,t=e._self._c;return t("span",[t("gl-button",{directives:[{name:"gl-modal",rawName:"v-gl-modal",value:e.$options.uploadBlobModalId,expression:"$options.uploadBlobModalId"}],staticClass:"stat-link !gl-px-0",attrs:{variant:"link",icon:"upload","button-text-classes":"gl-ml-2","data-testid":"upload-file-button"}},[e._v(e._s(e.__("Upload File")))]),e._v(" "),t("upload-blob-modal",{attrs:{"modal
7-id":e.$options.uploadBlobModalId,"commit-message":e.__("Upload New File"),"target-branch":e.targetBranch,"original-branch":e.originalBranch,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,path:e.path,"empty-repo":e.emptyRepo}})],1)}),[],!1,null,null,null).exports;var _=n("bGfL"),j=n("3TwV"),S=n("hMg/"),O=n("x5Io"),x=n("jpoG"),P=n("WLsB"),T=n("QJd2"),C=n("EJYk"),I=n("ewH8"),B=n("GiFX"),N=n("5v28"),E=n("zIFf"),F=n("/lV4"),q=n("4Fqu"),D={name:"ForksButton",components:{GlButtonGroup:q.a,GlButton:b.a},directives:{GlTooltip:E.a},inject:{forksCount:{default:0},projectForksUrl:{default:""},userForkUrl:{default:""},newForkUrl:{default:""},canReadCode:{default:!1},canForkProject:{default:!1}},computed:{forkButtonUrl(){return this.userForkUrl||this.newForkUrl},userHasForkAccess(){return Boolean(this.userForkUrl)&&this.canReadCode},userCanFork(){return this.canReadCode&&this.canForkProject},forkButtonEnabled(){return this.userHasForkAccess||this.userCanFork},forkButtonTooltip(){return this.canForkProject?this.userHasForkAccess?Object(F.i)("ProjectOverview|Go to your fork"):Object(F.i)("ProjectOverview|Create new fork"):Object(F.i)("ProjectOverview|You don't have permission to fork this project")}}},A=Object(p.a)(D,(function(){var e=this,t=e._self._c;return t("gl-button-group",[t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],attrs:{"data-testid":"fork-button",disabled:!e.forkButtonEnabled,href:e.forkButtonUrl,icon:"fork",title:e.forkButtonTooltip}},[e._v(e._s(e.s__("ProjectOverview|Fork")))]),e._v(" "),t("gl-button",{attrs:{"data-testid":"forks-count",disabled:!e.canReadCode,href:e.projectForksUrl}},[e._v(e._s(e.forksCount))])],1)}),[],!1,null,null,null).exports,$=n("UFYv"),R=n("d85j"),L=n("0Q6N"),V=n("puZj"),U=n("FxFN"),G=n("4wgn"),M=n("tnyU"),z=n.n(M),H={name:"StarCount",components:{GlButton:b.a,GlButtonGroup:q.a,GlIcon:R.a},directives:{GlTooltip:E.a},mixins:[L.a],inject:{projectId:{default:null},signInPath:{default:""},starCount:{default:0},starred:{default:!1},starrersPath:{default:""}},data(){return{isLoading:!1,count:this.starCount,isStarred:this.starred}},computed:{starIcon(){return this.isStarred?"star":"star-o"},starText(){return this.isStarred?Object(F.i)("ProjectOverview|Unstar"):Object(F.i)("ProjectOverview|Star")},starHref(){return Object(m.z)()?null:this.signInPath},tooltip:()=>Object(m.z)()?"":Object(F.i)("ProjectOverview|You must sign in to star a project")},methods:{showToastMessage(){const e={text:Object(F.i)("ProjectOverview|Star toggle failed. Try again later."),variant:"danger"};this.$toast.show(e.text,{variant:e.variant})},async setStarStatus(){if(Object(m.z)())try{var e;this.isLoading=!0;const{data:t}=await this.$apollo.mutate({mutation:z.a,variables:{projectId:Object(U.c)(G.K,this.projectId),starred:!this.isStarred}});(null===(e=t.errors)||void 0===e?void 0:e.length)>0?(Object(V.b)(this.$options.name,new Error(t.errors.join(", "))),this.showToastMessage()):(this.count=t.starProject.count,this.isStarred=!this.isStarred)}catch(e){Object(V.b)(this.$options.name,e),this.showToastMessage()}finally{this.isLoading=!1}}},modalId:"custom-notifications-modal"},W=Object(p.a)(H,(function(){var e=this,t=e._self._c;return t("gl-button-group",[t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"star-btn",attrs:{size:"medium","data-testid":"star-button",title:e.tooltip,href:e.starHref,disabled:e.isLoading},on:{click:function(t){return e.setStarStatus()}}},[t("gl-icon",{attrs:{name:e.starIcon,size:16}}),e._v("\n    "+e._s(e.starText)+"\n  ")],1),e._v(" "),t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"star-count",attrs:{"data-testid":"star-count",size:"medium",href:e.starrersPath,title:e.s__("ProjectOverview|Starrers")}},[e._v("\n    "+e._s(e.count)+"\n  ")])],1)}),[],!1,null,null,null).exports,Q=n("3gfG"),K=n.n(Q),J=n("vLO8"),Z=n("jlnU"),Y=n("uLzL");function X({availableActions:e},{canWithdrawAccessRequest:t,canRequestAccess:n,withdrawAccessRequestPath:i,requestAccessPath:r}){return t&&i?[...e,J.k]:n&&r?[...e,J.g]:e}var ee=n("pcda"),te=n("3twG"),ne=n("PoqZ"),ie={name:"ProjectHeaderActions",components:{ProjectListItemActions:ee.a},props:{project:{type:Object,required:!0},dashboardPath:{type:String,required:!0}},computed:{redirectConfig(){const e=Object(F.j)(Object(F.a)("%{project_name}
7 moved to pending deletion."),{project_name:this.project.name}),t=Object(F.j)(Object(F.a)("%{project_name} is being deleted."),{project_name:this.project.name}),n=Object(F.j)(Object(F.i)('Projects|You left the "%{nameWithNamespace}" project.'),{nameWithNamespace:this.project.nameWithNamespace});return Object(ne.a)({path:this.dashboardPath,deleteScheduledMessage:e,deleteMessage:t,leaveMessage:n})}},methods:{handleAction(e){const{alerts:t=[],path:n=this.project.fullPath}=this.redirectConfig[e]||{},i=new URL(n,window.location.origin);Object(te.U)(i.href,t)}}},re=Object(p.a)(ie,(function(){return(0,this._self._c)("project-list-item-actions",{attrs:{id:"project-more-action-dropdown",project:this.project},on:{action:this.handleAction}})}),[],!1,null,null,null).exports,ae={name:"HomePanelApp",components:{ForksButton:A,GlButton:b.a,ProjectHeaderActions:re,NotificationsDropdown:$.a,StarCount:W},directives:{GlTooltip:E.a},inject:{adminPath:{default:""},canReadProject:{default:!1},isProjectEmpty:{default:!1},projectId:{default:""},projectFullPath:{default:""}},props:{canRequestAccess:{type:Boolean,required:!0},canWithdrawAccessRequest:{type:Boolean,required:!0},requestAccessPath:{type:String,required:!0},withdrawAccessRequestPath:{type:String,required:!0},dashboardPath:{type:String,required:!0}},apollo:{project:{query:K.a,update(e){return function(e,{canWithdrawAccessRequest:t,canRequestAccess:n,requestAccessPath:i,withdrawAccessRequestPath:r}={}){return Object(Y.a)(e,(function(e){return{availableActions:X(e,{canWithdrawAccessRequest:t,canRequestAccess:n,withdrawAccessRequestPath:r,requestAccessPath:i}),withdrawAccessRequestPath:r,requestAccessPath:i}}))}(e.project,{canWithdrawAccessRequest:this.canWithdrawAccessRequest,canRequestAccess:this.canRequestAccess,requestAccessPath:this.requestAccessPath,withdrawAccessRequestPath:this.withdrawAccessRequestPath})},variables(){return{fullPath:this.projectFullPath}},error(){Object(Z.createAlert)({message:Object(F.i)("GroupProjectActions|Something went wrong while loading the actions dropdown list. Please refresh the page and try again.")})},skip:()=>!Object(m.z)()}},data(){return{isLoggedIn:Object(m.z)(),project:{id:this.projectId,availableActions:[J.b]}}},computed:{canForkProject(){return!this.isProjectEmpty&&Object(m.z)()&&this.canReadProject},copyProjectId(){return Object(F.j)(Object(F.i)("ProjectPage|Project ID: %{id}"),{id:this.projectId})},showActions(){return this.project&&!this.$apollo.queries.project.loading}},i18n:{adminButtonTooltip:Object(F.a)("View project in admin area")}},oe=Object(p.a)(ae,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-justify-content-md-end project-repo-buttons gl-flex gl-flex-wrap gl-items-center gl-gap-3"},[e.adminPath?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],attrs:{"aria-label":e.$options.i18n.adminButtonTooltip,href:e.adminPath,title:e.$options.i18n.adminButtonTooltip,"data-testid":"admin-button",icon:"admin"}}):e._e(),e._v(" "),e.isLoggedIn&&e.canReadProject?[t("notifications-dropdown")]:e._e(),e._v(" "),t("star-count"),e._v(" "),e.canForkProject?t("forks-button"):e._e(),e._v(" "),e.canReadProject?[t("span",{staticClass:"gl-sr-only",attrs:{itemprop:"identifier","data-testid":"project-id-content"}},[e._v("\n      "+e._s(e.copyProjectId)+"\n    ")])]:e._e(),e._v(" "),e.showActions?t("project-header-actions",{attrs:{project:e.project,"dashboard-path":e.dashboardPath}}):e._e()],2)}),[],!1,null,null,null).exports;I.default.use(B.a);const se=new B.a({defaultClient:Object(N.c)()});document.getElementById("js-tree-list")&&Promise.all([n.e("2a2971ea"),n.e("ab0bdf92"),n.e("7eda1a06"),n.e("9f42c377"),n.e("treeList")]).then(n.bind(null,"WyuF")).then((function({default:e}){e()})).catch((function(){})),document.querySelector(".blob-viewer")&&Promise.all([n.e("2a2971ea"),n.e("ab0bdf92"),n.e("7eda1a06"),n.e("a66b50b9"),n.e("blobViewer")]).then(n.bind(null,"MA/v")).then((function({BlobViewer:e}){new e,Object(O.a)({isReadmeView:!0})})).catch((function(){})),document.querySelector(".project-show-activity")&&Promise.all([n.e("2a2971ea"),n.e("ab0bdf92"),n.e("7eda1a06"),n.e("commons-activitiesList-pages.groups.activity.vue3-pages.projects.activity.vue3"),n.e("activitiesList")]).then(n.bind(null,"XSeh")).then((function({default:e}){new e})).catch((function(){})),Object(r.a)(a.a),function(){const e=document.querySelector(".js-upload-file-trigger");if(!e)return!1;const{targetBranch:t,originalBranch:n,canPushCode:r,canPushToBranch:a,path:o,projectPath:s,fullName:l}=e.dataset;Object(i.a)({el:e,name:"UploadButtonRoot",router:Object(g.a)(s,n,l),provide:{targetBranch:t,originalBranch:n,canPushCode:Object(m.G)(r),canPushToBranch:Object(m.G)(a),path:o,emptyRepo:!0},component:w})}(),function(){const e=document.querySelector(".js-clusters-deprecation-alert");if(!e)return!1;const{message:t}=e.dataset;
7Object(i.a)({el:e,name:"ClustersDeprecationAlertRoot",provide:{message:t},component:h})}(),Object(_.a)(),Object(j.a)(),function(){const e=document.getElementById("js-home-panel");if(null===e)return null;const{adminPath:t,canReadProject:n,isProjectEmpty:r,projectId:a,projectFullPath:o,canRequestAccess:s,canWithdrawAccessRequest:l,requestAccessPath:c,withdrawAccessRequestPath:d,dashboardPath:u,canForkProject:p,canReadCode:h,forksCount:f,newForkUrl:g,projectForksUrl:b,userForkUrl:v,emailsDisabled:k,notificationDropdownItems:y,notificationHelpPagePath:w,notificationLevel:_,signInPath:j,starCount:S,starred:O,starrersPath:x}=e.dataset;Object(i.a)({apolloProvider:se,el:e,name:"HomePanelRoot",provide:{adminPath:t,canReadProject:Object(m.G)(n),isProjectEmpty:Object(m.G)(r),projectId:parseInt(a,10),projectFullPath:o,triggerDeleteLocation:"header",triggerRestoreLocation:"header",canForkProject:Object(m.G)(p),canReadCode:Object(m.G)(h),forksCount:parseInt(f,10)||0,newForkUrl:g,projectForksUrl:b,userForkUrl:v,dropdownItems:JSON.parse(y||null),emailsDisabled:Object(m.G)(k),helpPagePath:w,initialNotificationLevel:_,signInPath:j,starCount:parseInt(S,10)||0,starred:Object(m.G)(O),starrersPath:x},component:oe,props:{canRequestAccess:Object(m.G)(s),canWithdrawAccessRequest:Object(m.G)(l),requestAccessPath:c,withdrawAccessRequestPath:d,dashboardPath:u}})}(),document.querySelector(".js-autodevops-banner")&&n.e("userCallOut").then(n.bind(null,"eRnp")).then((function({default:e}){new e({setCalloutPerProject:!1,className:"js-autodevops-banner"})})).catch((function(){})),Object(f.b)(f.a.PROJECT);!function(){const e=document.querySelector("#js-project-show-empty-page #js-code-dropdown");if(!e)return!1;const{sshUrl:t,httpUrl:n,kerberosUrl:r,xcodeUrl:a,ideData:o,directoryDownloadLinks:s,showNoSshKeyMessage:l,userSettingsSshKeysPath:c,newWorkspacePath:d,projectId:u,projectPath:p,organizationId:h}=e.dataset,{gitpodEnabled:f,showWebIdeButton:g,showGitpodButton:b,webIdeUrl:v,gitpodUrl:k}=Object(m.g)(o?JSON.parse(o):{});Object(i.a)({el:e,name:"CompactCodeDropdownRoot",provide:{newWorkspacePath:d,organizationId:h},apolloProvider:T.a,component:P.default,props:{sshUrl:t,httpUrl:n,kerberosUrl:r,xcodeUrl:a,webIdeUrl:v,gitpodUrl:k,showWebIdeButton:g,isGitpodEnabledForInstance:Object(m.G)(b),isGitpodEnabledForUser:Object(m.G)(f),directoryDownloadLinks:s?JSON.parse(s):[],showNoSshKeyMessage:Object(m.G)(l),userSettingsSshKeysPath:c,projectId:u,projectPath:p}})}(),Object(o.a)(),document.querySelector("#js-project-show-empty-page")&&new S.a,Object(x.a)({el:document.getElementById("js-tree-web-ide-link")}),function(){const e=document.querySelector(".js-wiki-content");e&&Object(C.a)(e)}()},PoqZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("vLO8");function r({path:e,deleteMessage:t,deleteScheduledMessage:n,leaveMessage:r}){return{[i.c]:{path:e,alerts:[{id:"namespace-delete-scheduled-success",message:n,variant:"info"}]},[i.d]:{path:e,alerts:[{id:"namespace-delete-success",message:t,variant:"info"}]},[i.f]:{path:e,alerts:[{id:"namespace-leave-success",message:r,variant:"info"}]}}}},QJd2:function(e,t,n){"use strict";var i=n("ewH8"),r=n("GiFX"),a=n("5v28"),o=n("2ibD"),s=(n("B++/"),n("z6RN"),n("47t/"),n("ZzK0"),n("BzOf"),n("b9Gi")),l=n("AiXD"),c=n("3twG"),d=n("6qJk"),u=n("k6Do"),p=n.n(u),h=n("h6C7"),f=n.n(h),m=n("f/vg"),g=n.n(m);const b={},v={};let k,y,w;function _(e){y=e||null}function j(e,t,n,i=null,r=null){r&&(k=r),w&&w===t||_(null),w=t;const a=Number(n);if(!y&&a>k)return _(a-25),Promise.resolve();if(i&&(v[t]?v[t].push(i):v[t]=[i]),b[t])return b[t];const{projectPath:u}=e.readQuery({query:f.a}),{escapedRef:h}=e.readQuery({query:g.a});return b[t]=o.a.get(Object(d.b)(u,h,t.replace(/^\//,"")),{params:{format:"json",offset:y||n}}).then((function({data:n,headers:i}){const r=i["more-logs-offset"],a=e.readQuery({query:p.a}),o=Object(s.a)(a,(function(e){e.commits.push(...Object(l.a)(n,t))}));e.writeQuery({query:p.a,data:o}),v[t].forEach((function(e){return function(e,t,{resolve:n,entry:i}){const r=e.find((function(e){return e.filePath===Object(c.A)(t,i.name)}));r&&n(r)}(o.commits,t,e)})),delete b[t],r?(_(null),j(e,t,r)):(delete v[t],k=null,_(null))})),b[t]}i.default.use(r.a);const S=Object(a.c)({Query:{commit:(e,{path:t,fileName:n,maxOffset:i})=>new Promise((function(e){j(S,t,"0",{resolve:e,entry:{name:n}},i)})),readme:(e,{url:t})=>o.a.get(t,{params:{format:"json",viewer:"rich"}}).then((function({data:e}){return{...e,__typename:"ReadmeFile"}}))}},{cacheConfig:{typePolicies:{Project:{fields:{userPermissions:{merge:!0}}}},dataIdFromObject:function(e){switch(e.__typename){case"TreeEntry":case"Submodule":case"Blob":return`${encodeURIComponent(e.flatPath)}-${e.id}`;default:return e.id||e._id}}}});t.a=new r.a({defaultClient:S})},QRtj:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("v+Mp");const r=function(){const e=document.querySelector(".shortcuts-find-file");
7e&&e.addEventListener("click",i.default.focusSearchFile)}},QUS0:function(e,t,n){"use strict";t.a=function(){return{inject:{glAbilities:{from:"glAbilities",default:function(){return{}}}}}}},SXCz:function(e,t,n){"use strict";n("UezY"),n("z6RN"),n("hG7+"),n("RFHG"),n("xuo1"),n("3UXl"),n("iyoE");var i=n("m0YE"),r=n("3twG"),a=n("jEr0"),o=n("FIKT"),s=n.n(o),l={name:"RepositoryBreadcrumbs",components:{GlBreadcrumb:i.a},apollo:{projectShortPath:{query:s.a}},mixins:[a.a],inject:{projectRootPath:{default:""}},props:{currentPath:{type:String,required:!1,default:""},refType:{type:String,required:!1,default:null}},data:()=>({projectShortPath:""}),computed:{currentDirectoryPath(){const e=this.currentPath.split("/").filter((function(e){return e}));return this.isBlobPath&&e.pop(),Object(r.A)(...e)},pathLinks(){var e=this;return this.currentPath.split("/").filter((function(e){return""!==e})).reduce((function(t,n,i){const a=Object(r.A)(i>0?t[i].path:"",Object(r.k)(n)),o=i===e.currentPath.split("/").length-1,s=e.isBlobPath&&o?"/-/blob/"+Object(r.A)(e.escapedRef,a):"/-/tree/"+Object(r.A)(e.escapedRef,a);return t.concat({name:n,path:a,to:Object(r.d)({path:s,refType:e.refType})})}),[{name:this.projectShortPath,path:"/",to:Object(r.d)({path:Object(r.A)("/-/tree",this.escapedRef),refType:this.refType})}])},isBlobPath(){return["blobPath","blobPathDecoded","blobPathEncoded"].includes(this.$route.name)},hasCurrentPath(){var e;return Boolean(null===(e=this.currentPath)||void 0===e?void 0:e.trim().length)},crumbs(){return this.pathLinks.map((function({name:e,url:t,...n}){return{text:e,href:t,...n}}))}}},c=n("tBpV"),d=Object(c.a)(l,(function(){var e=this._self._c;return e("div",{staticClass:"repo-breadcrumb gl-flex-grow"},[e("gl-breadcrumb",{staticClass:"breadcrumb-item",attrs:{items:this.crumbs,"data-current-path":this.currentDirectoryPath,"aria-label":this.__("Files breadcrumb"),"show-clipboard-button":this.hasCurrentPath,"path-to-copy":this.currentPath,"clipboard-tooltip-text":this.__("Copy file path"),size:"md"}})],1)}),[],!1,null,null,null);t.a=d.exports},SbXM:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("ewH8"),r=n("8T/f"),a=n("rmfK");i.default.use(r.a);const o=Object(r.b)();Object(r.g)(o),o._a=o._a||{},o.use(a.b),o.use(a.a)},TE0g:function(e,t,n){"use strict";var i=n("tBpV"),r=Object(i.a)({},(function(){return(0,this._self._c)("div",{staticClass:"gl-animate-skeleton-loader gl-mt-2 gl-h-4 gl-w-full gl-rounded-default"})}),[],!1,null,null,null);t.a=r.exports},U5ZW:function(e,t,n){"use strict";function i(){const{url:e}=gon.sourcegraph||{};if(!e)return;const t=new URL("/assets/webpack/sourcegraph/0.0.96/",window.location.href),n=new URL("scripts/integration.bundle.js",t).href;window.SOURCEGRAPH_ASSETS_URL=t.href,window.SOURCEGRAPH_URL=e,window.SOURCEGRAPH_INTEGRATION="gitlab-integration",function(e){const t=document.createElement("script");t.type="application/javascript",t.src=e,t.defer=!0,document.head.appendChild(t)}(n)}n.d(t,"a",(function(){return i}))},UFYv:function(e,t,n){"use strict";n("3UXl"),n("iyoE");var i=n("93nq"),r=n("4Fqu"),a=n("CbCZ"),o=n("zIFf"),s=n("0Q6N"),l=n("qPgm"),c=n("/lV4"),d=n("W/vc"),u=(n("UezY"),n("z6RN"),n("hG7+"),n("vxCR")),p=n("Oxu3"),h=n("dIEn"),f=n("Jx7q"),m=n("NnjE"),g=n("K6VW"),b=n("Nqn5"),v=n("CGBp"),k={name:"CustomNotificationsModal",components:{GlCard:u.a,GlModal:p.a,GlSprintf:h.a,GlLink:f.a,GlLoadingIcon:m.a,GlToggle:g.a},mixins:[v.a,s.a],inject:{projectId:{default:null},groupId:{default:null},helpPagePath:{default:""}},model:{prop:"visible",event:"change"},props:{modalId:{type:String,required:!1,default:"custom-notifications-modal"},visible:{type:Boolean,required:!1,default:!1}},data:()=>({isLoading:!1,events:[]}),methods:{buildEvents(e){var t=this;const n=Object.keys(e).filter((function(e){return e in t.$options.i18n.eventNames})).map((function(n){return{id:n,enabled:Boolean(e[n]),name:t.$options.i18n.eventNames[n]||"",loading:!1}}));return Object(b.a)(n,"name")},async onOpen(){this.events.length||await this.loadNotificationSettings()},async loadNotificationSettings(){this.isLoading=!0;try{const{data:{events:e}}=await l.b.getNotificationSettings(this.projectId,this.groupId);this.events=this.buildEvents(e)}catch(e){this.$toast.show(this.$options.i18n.loadNotificationLevelErrorMessage)}finally{this.isLoading=!1}},async updateEvent(e,t){const n=this.events.findIndex((function(e){return e.id===t.id}));this.events.splice(n,1,{...this.events[n],loading:!0});try{const{data:{events:n}}=await l.b.updateNotificationSettings(this.projectId,this.groupId,{[t.id]:e});this.events=this.buildEvents(n)}catch(e){this.$toast.show(this.$options.i18n.updateNotificationLevelErrorMessage)}}},i18n:d.b},y=n("tBpV"),w=Object(y.a)(k,(function(){var e=this,t=e._self._c;return t("gl-modal",e._g({ref:"modal",attrs:{visible:e.visible,"modal-id":e.modalId,scrollable:"","hide-footer":"",title:e.$options.i18n.customNotificationsModal.title},on:{show:e.onOpen}},e.glListeners()),[t("gl-sprintf",{attrs:{message:e.$options.i18n.customNotificationsModal.bodyMessage},scopedSlots:e._u([{key:"notificationLink",fn:function({content:n}){return[t("gl-link",{attrs:{href:e.helpPagePath,target:"_blank"}},[e._v(e._s(n))])]}}])}),e._v(" "),e.isLoading?t("gl-loading-icon",{staticClass:"gl-mt-3",attrs:{size:"lg"}}):[t("gl-card",{staticClass:"gl-mt-5",attrs:{"body-class":"gl-py-0"},scopedSlots:e._u([{key:"header",fn:function(){return[t("h3",[e._v(e._s(e.__("Notification events")))])]},proxy:!0}])},[e._v(" "),t("ul",{staticClass:"gl-m-0 gl-flex gl-flex-col gl-p-0"},e._l(e.events,(function(n){return t("li",{key:n.id,staticClass:"gl-border-b gl-flex gl-items-center gl-justify-between gl-p-4 last:gl-border-none",on:{click:function(t){return e.updateEvent(!n.enabled,n)}}},[t("span",{staticClass:"gl-font-bold"},[e._v(e._s(n.name))]),e._v(" "),t("span",{on:{click:function(e){e.stopPropagation()}}},[t("gl-toggle",{attrs:{value:n.enabled,label:n.name,"label-position":"hidden","is-loading":n.loading,"data-testid":"notification-setting-"+n.id},on:{change:function(t){return e.updateEvent(t,n)}}}
7)],1)])})),0)])]],2)}),[],!1,null,null,null).exports,_={name:"NotificationsDropdown",components:{GlCollapsibleListbox:i.a,GlButtonGroup:r.a,GlButton:a.a,CustomNotificationsModal:w},directives:{GlTooltip:o.a},mixins:[s.a],inject:{containerClass:{default:""},emailsDisabled:{default:!1},dropdownItems:{default:[]},buttonSize:{default:"medium"},initialNotificationLevel:{default:""},projectId:{default:null},groupId:{default:null},showLabel:{default:!1}},data(){return{selectedNotificationLevel:this.initialNotificationLevel,isLoading:!1,notificationsModalVisible:!1}},computed:{notificationLevels(){var e=this;return[{text:"",options:this.dropdownItems.map((function(t){return{value:t,text:e.$options.i18n.notificationTitles[t]||"",secondaryText:e.$options.i18n.notificationDescriptions[t]||""}}))},{text:this.$options.i18n.notificationTitles.custom,textSrOnly:!0,options:[{value:this.$options.customLevel,text:this.$options.i18n.notificationTitles.custom,secondaryText:this.$options.i18n.notificationDescriptions.custom}]}]},isCustomNotification(){return this.selectedNotificationLevel===d.a},buttonIcon(){return this.isLoading?"":"disabled"===this.selectedNotificationLevel?"notifications-off":"notifications"},buttonText(){const e=this.$options.i18n.notificationTitles[this.selectedNotificationLevel]||this.selectedNotificationLevel;return this.showLabel?e:this.emailsDisabled?this.$options.i18n.notificationDescriptions.owner_disabled:Object(c.j)(this.$options.i18n.notificationTooltipTitle,{notification_title:e})},ariaLabel(){return Object(c.j)(this.$options.i18n.notificationTooltipTitle,{notification_title:this.$options.i18n.notificationTitles[this.selectedNotificationLevel]})}},methods:{openNotificationsModal(){this.isCustomNotification&&(this.notificationsModalVisible=!0)},selectItem(e){e!==this.selectedNotificationLevel&&this.updateNotificationLevel(e)},async updateNotificationLevel(e){this.isLoading=!0;try{await l.b.updateNotificationSettings(this.projectId,this.groupId,{level:e}),this.selectedNotificationLevel=e,this.openNotificationsModal()}catch(e){this.$toast.show(this.$options.i18n.updateNotificationLevelErrorMessage)}finally{this.isLoading=!1}}},customLevel:d.a,i18n:d.b,modalId:"custom-notifications-modal"},j=Object(y.a)(_,(function(){var e=this,t=e._self._c;return t("div",{class:e.containerClass},[t("gl-button-group",[e.isCustomNotification?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:{title:e.buttonText},expression:"{ title: buttonText }"}],attrs:{"data-testid":"notification-split-icon",category:"primary",variant:"default","aria-label":e.__("Notification setting - Custom"),size:e.buttonSize,icon:e.buttonIcon},on:{click:e.openNotificationsModal}}):e._e(),e._v(" "),t("gl-collapsible-listbox",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:{title:e.buttonText},expression:"{ title: buttonText }"}],attrs:{"data-testid":"notification-dropdown",size:e.buttonSize,icon:e.isCustomNotification?"":e.buttonIcon,items:e.notificationLevels,"toggle-text":e.buttonText,loading:e.isLoading,disabled:e.emailsDisabled,"aria-label":e.ariaLabel,selected:e.selectedNotificationLevel,"text-sr-only":!e.showLabel||e.isCustomNotification},on:{select:e.selectItem},scopedSlots:e._u([{key:"list-item",fn:function({item:n}){return[t("div",{staticClass:"gl-flex gl-flex-col"},[t("span",{staticClass:"gl-font-bold"},[e._v(e._s(n.text))]),e._v(" "),t("span",{staticClass:"gl-text-sm gl-text-subtle"},[e._v(e._s(n.secondaryText))])])]}}])})],1),e._v(" "),t("custom-notifications-modal",{attrs:{"modal-id":e.$options.modalId},model:{value:e.notificationsModalVisible,callback:function(t){e.notificationsModalVisible=t},expression:"notificationsModalVisible"}})],1)}),[],!1,null,null,null);t.a=j.exports},"Ua+i":function(e,t,n){(e.exports=n("VNgF")(!1)).push([e.i,"\n.file-browser-toggle-tooltip .tooltip-inner {\n  max-width: none;\n}\n",""])},VQLg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d}));var i=n("/lV4");const r="click_add_dropdown",a="click_new_file",o="click_upload_file",s="click_new_directory",l="click_new_branch",c="click_new_tag",d=Object(i.a)("You don't have permission to modify this file.")},"W/vc":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("/lV4");const r="custom",a={notificationTitles:{participating:Object(i.i)("NotificationLevel|Participate"),mention:Object(i.i)("NotificationLevel|On mention"),watch:Object(i.i)("NotificationLevel|Watch"),global:Object(i.i)("NotificationLevel|Global"),disabled:Object(i.i)("NotificationLevel|Disabled"),custom:Object(i.i)("NotificationLevel|Custom")},notificationTooltipTitle:Object(i.a)("Notification setting - %{notification_title}"),notificationDescriptions:{participating:Object(i.a)("You will only receive notifications for items 
7you have participated in"),mention:Object(i.a)("You will receive notifications only for comments in which you were @mentioned"),watch:Object(i.a)("You will receive notifications for most activity"),disabled:Object(i.a)("You will not get any notifications via email"),global:Object(i.a)("Use your global notification setting"),custom:Object(i.a)("You will only receive notifications for items you have participated in and the events you choose"),owner_disabled:Object(i.a)("Notifications have been disabled by the project or group owner")},updateNotificationLevelErrorMessage:Object(i.a)("An error occurred while updating the notification settings. Please try again."),loadNotificationLevelErrorMessage:Object(i.a)("An error occurred while loading the notification settings. Please try again."),customNotificationsModal:{title:Object(i.a)("Custom notification events"),bodyTitle:Object(i.a)("Notification events"),bodyMessage:Object(i.a)("With custom notification levels you receive notifications for the same events as in the Participate level, with additional selected events. For more information, see %{notificationLinkStart}notification emails%{notificationLinkEnd}.")},eventNames:{approver:Object(i.i)("NotificationEvent|Merge request you're eligible to approve is created"),change_reviewer_merge_request:Object(i.i)("NotificationEvent|Merge request reviewers are changed"),close_issue:Object(i.i)("NotificationEvent|Issue is closed"),close_merge_request:Object(i.i)("NotificationEvent|Merge request is closed"),failed_pipeline:Object(i.i)("NotificationEvent|Pipeline fails"),fixed_pipeline:Object(i.i)("NotificationEvent|Pipeline is fixed"),issue_due:Object(i.i)("NotificationEvent|Issue is due tomorrow"),merge_merge_request:Object(i.i)("NotificationEvent|Merge request is merged"),merge_when_pipeline_succeeds:Object(i.i)("NotificationEvent|Merge request is set to auto-merge"),moved_project:Object(i.i)("NotificationEvent|Project is moved"),new_epic:Object(i.i)("NotificationEvent|Epic is created"),new_issue:Object(i.i)("NotificationEvent|Issue is created"),new_merge_request:Object(i.i)("NotificationEvent|Merge request is created"),new_note:Object(i.i)("NotificationEvent|Comment is added"),new_release:Object(i.i)("NotificationEvent|Release is created"),push_to_merge_request:Object(i.i)("NotificationEvent|Merge request receives a push"),reassign_issue:Object(i.i)("NotificationEvent|Issue is reassigned"),reassign_merge_request:Object(i.i)("NotificationEvent|Merge request is reassigned"),reopen_issue:Object(i.i)("NotificationEvent|Issue is reopened"),reopen_merge_request:Object(i.i)("NotificationEvent|Merge request is reopened"),service_account_failed_pipeline:Object(i.i)("NotificationEvent|Pipeline by Service Account fails"),service_account_fixed_pipeline:Object(i.i)("NotificationEvent|Pipeline by Service Account is fixed"),service_account_success_pipeline:Object(i.i)("NotificationEvent|Pipeline by Service Account is successful"),success_pipeline:Object(i.i)("NotificationEvent|Pipeline is successful")}}},WHSv:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getWritableForks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibleForks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"minimumAccessLevel"},value:{kind:"EnumValue",value:"DEVELOPER"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webUrl"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:214}};n.loc.source={body:"query getWritableForks($projectPath: ID!) {\n  project(fullPath: $projectPath) {\n    id\n    visibleForks(minimumAccessLevel: DEVELOPER) {\n      nodes {\n        id\n        fullPath\n        webUrl\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
7else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getWritableForks=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getWritableForks")},WLsB:function(e,t,n){"use strict";n.r(t);n("3UXl"),n("iyoE"),n("RFHG"),n("z6RN"),n("xuo1");var i=n("Jx7q"),r=n("d85j"),a=n("2TqH"),o=n("nuJP"),s=n("3twG"),l=n("/lV4"),c=n("d08M"),d=n("ygVz"),u=n("4oYX"),p=n("CbCZ"),h=n("4Fqu"),f=n("AxB5"),m={name:"CodeDropdownDownloadItems",components:{GlButton:p.a,GlButtonGroup:h.a,GlDisclosureDropdownItem:f.a},props:{items:{type:Array,required:!0}},emits:["close-dropdown"]},g=n("tBpV"),b=Object(g.a)(m,(function(){var e=this,t=e._self._c;return e.items.length?t("gl-disclosure-dropdown-item",{staticClass:"gl-px-3 gl-py-2"},[t("gl-button-group",{staticClass:"gl-w-full"},e._l(e.items,(function(n,i){return t("gl-button",e._b({key:i,attrs:{href:n.href},on:{click:function(t){return e.$emit("close-dropdown")}}},"gl-button",n.extraAttrs,!1),[e._v("\n      "+e._s(n.text)+"\n    ")])})),1)],1):e._e()}),[],!1,null,null,null).exports,v=n("DCaA"),k={name:"CodeDropdownIdeItem",components:{GlButton:p.a,GlButtonGroup:h.a,GlDisclosureDropdownItem:f.a},mixins:[d.a.mixin()],props:{ideItem:{type:Object,required:!0}},emits:["close-dropdown"],computed:{shortcutsDisabled:()=>Object(v.a)()},methods:{closeDropdown(){this.$emit("close-dropdown")},trackAndClose({action:e,label:t}={}){e&&this.trackEvent(e,t&&{label:t}),this.closeDropdown()}}},y=Object(g.a)(k,(function(){var e=this,t=e._self._c;return e.ideItem.items?t("gl-disclosure-dropdown-item",{key:"_vif_1_0",staticClass:"gl-mb-3 gl-flex gl-w-full gl-items-center gl-justify-between gl-px-4 gl-py-2",attrs:{"data-testid":e.ideItem.testId}},[t("span",{staticClass:"gl-min-w-0"},[e._v(e._s(e.ideItem.text))]),e._v(" "),t("gl-button-group",e._l(e.ideItem.items,(function(n,i){return t("gl-button",{key:i,attrs:{href:n.href,"is-unsafe-link":"",target:"_blank",size:"small"},on:{click:function(t){return e.trackAndClose(n.tracking)}}},[e._v("\n      "+e._s(n.text)+"\n    ")])})),1)],1):e.ideItem.href?t("gl-disclosure-dropdown-item",{key:"_vif_1_1",attrs:{item:e.ideItem,"data-testid":e.ideItem.testId},on:{action:function(t){return e.trackAndClose(e.ideItem.tracking)}},scopedSlots:e._u([{key:"list-item",fn:function(){return[t("span",{staticClass:"gl-flex gl-items-center gl-justify-between"},[t("span",[e._v(e._s(e.ideItem.text))]),e._v(" "),e.ideItem.shortcut&&!e.shortcutsDisabled?t("kbd",{staticClass:"flat"},[e._v(e._s(e.ideItem.shortcut))]):e._e()])]},proxy:!0}])}):e._e()}),[],!1,null,null,null).exports,w=n("yGxX");const _={vscode:{ssh:w.j,https:w.i},intellij:{ssh:w.h,https:w.g}};var j={name:"CECompactCodeDropdown",components:{GlLink:i.a,GlIcon:r.a,GlDisclosureDropdown:a.a,GlDisclosureDropdownGroup:o.a,CodeDropdownCloneItem:u.a,CodeDropdownDownloadItems:b,CodeDropdownIdeItem:y},mixins:[d.a.mixin()],props:{sshUrl:{type:String,required:!1,default:""},httpUrl:{type:String,required:!1,default:""},kerberosUrl:{type:String,required:!1,default:null},xcodeUrl:{type:String,required:!1,default:""},webIdeUrl:{type:String,required:!1,default:""},gitpodUrl:{type:String,required:!1,default:""},currentPath:{type:String,required:!1,default:null},directoryDownloadLinks:{type:Array,required:!1,default:function(){return[]}},showWebIdeButton:{type:Boolean,required:!1,default:!0},isGitpodEnabledForInstance:{type:Boolean,required:!1,default:!1},isGitpodEnabledForUser:{type:Boolean,required:!1,default:!1},showNoSshKeyMessage:{type:Boolean,required:!1,default:!1},userSettingsSshKeysPath:{type:String,required:!1,default:""}},computed:{httpLabel(){var e;const t=null===(e=Object(s.m)(this.httpUrl))||void 0===e?void 0:e.toUpperCase();return Object(l.j)(Object(l.a)("Clone with %{protocol}"),{protocol:t})},sshUrlEncoded(){return encodeURIComponent(this.sshUrl)},httpUrlEncoded(){return encodeURIComponent(this.httpUrl)},webIdeActionShortcutKey:()=>Object(c.Mb)(c.B)[0],webIdeAction(){return{text:Object(l.a)("Web IDE"),shortcut:this.webIdeActionShortcutKey,tracking:{action:"click_consolidated_edit",label:"web_ide"},testId:"webide-menu-item",href:this.webIdeUrl,extraAttrs:{target:"_blank"}}},showGitpodButton(){return this.isGitpodEnabledForInstance&&this.isGitpodEnabledForUser&&this.gitpodUrl},gitPodAction(){return{text:Object(l.a)("Ona"),tracking:{action:"click_consolidated_edit",label:"gitpod"},href:this.gitpodUrl,extraAttrs:{target:"_blank"}}},ideGroup(){const e=[];return this.showWebIdeButton&&e.push(this.webIdeAction),this.showGitpodButton&&e.push(this.gitPodAction),(this.httpUrl||this.sshUrl)&&(e.push(this.createIdeGroup(Object(l.a)("Visual Studio Code"),w.k,w.e)),e.push(this.createIdeGroup(Object(l.a)("IntelliJ IDEA"),w.f,w.d))),this.xcodeUrl&&e.push({text:Object(l.a)("Xcode"),href:this.xcodeUrl,extraAttrs:{isUnsafeLink:!0}}),e},sourceCodeGroup(){return this.directoryDownloadLinks.map((function(e){return{text:e.text,href:e.path,extraAttrs:{rel:"nofollow",download:""}}}))},directoryDownloadGroup(){var e=this;return this.directoryDownloadLinks.map((function(t){const n=Object(s.B)({path:e.currentPath},t.path).replace(/%2F/g,"/");return{text:t.text,href:n,extraAttrs:{rel:"nofollow",download:""}}}))},groups(){let e=null;return[["sshUrl",this.sshUrl],["httpUrl",this.httpUrl],["kerberosUrl",this.kerberosUrl],["ideGroup",this.ideGroup.length>0],["downloadSourceCode",this.directoryDownloadLinks.length>0],["downloadDirectory",this.currentPath&&this.directoryDownloadLinks.length>0]].reduce((function(t,[n,i]){let r=Boolean(i);return!e&&i&&(e=n,r=!1),t[n]={show:i,bordered:r},t}),{})},trackingData:()=>({ssh:{action:w.c},https:{action:w.b}})},methods:{onDropdownShown(){this.trackEvent(w.a)},closeDropdown(){this.$refs.dropdown.close()},createIdeGroup(e,t,n){return{text:e,items:[...this.sshUrl?[{text:Object(l.a)("SSH"),href:`${t}${this.sshUrlEncoded}`,tracking:{action:_[n].ssh},extraAttrs:{isUnsafeLink:!0}}]:[],...this.httpUrl?[{text:Object(l.a)("HTTPS"),href:`${t}${this.httpUrlEncoded}`,tracking:{action:_[n].https},extraAttrs:{isUnsafeLink:!0}}]:[]]}}}},S=n("LPAU"),O=n.n(S),x=n("Ihdd"),P=n.n(x),T={insert:"head",singleton:!1},C=(O()(P.a,T),P.a.locals,Object(g.a)(j,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown",{ref:"dropdown",staticClass:"code-dropdown",attrs:{"toggle-text":e.__("Code"),variant:"confirm",placement:"bottom-end","fluid-width":"","auto-close":!1,"data-testid":"code-dropdown"},on:{shown:e.onDropdownShown}},[e.groups.sshUrl.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.sshUrl.bordered}},[t("code-dropdown-clone-item",{attrs:{label:e.__("Clone with SSH"),link:e.sshUrl,
7name:"ssh_project_clone","input-id":"copy-ssh-url-input","test-id":"copy-ssh-url-button",tracking:e.trackingData.ssh}}),e._v(" "),e.showNoSshKeyMessage?t("li",{staticClass:"gl-mb-3 gl-flex gl-gap-3 gl-px-4"},[t("gl-icon",{staticClass:"gl-mt-2 gl-shrink-0",attrs:{name:"warning",variant:"warning"}}),e._v(" "),t("div",{staticClass:"gl-flex gl-flex-wrap gl-gap-1"},[t("p",{staticClass:"gl-m-0",attrs:{"data-testid":"ssh-key-warning-text"}},[e._v("\n          "+e._s(e.s__("MissingSSHKeyWarningLink|Your account does not have an SSH key."))+"\n        ")]),e._v(" "),e.userSettingsSshKeysPath?t("gl-link",{attrs:{href:e.userSettingsSshKeysPath,"data-testid":"ssh-key-warning-url"}},[e._v(e._s(e.s__("MissingSSHKeyWarningLink|Add SSH key")))]):e._e()],1)],1):e._e()],1):e._e(),e._v(" "),e.groups.httpUrl.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.httpUrl.bordered}},[t("code-dropdown-clone-item",{attrs:{label:e.httpLabel,link:e.httpUrl,name:"http_project_clone","input-id":"copy-http-url-input","test-id":"copy-http-url-button",tracking:e.trackingData.https}})],1):e._e(),e._v(" "),e.groups.kerberosUrl.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.kerberosUrl.bordered}},[t("code-dropdown-clone-item",{attrs:{label:e.__("Clone with KRB5"),link:e.kerberosUrl,name:"kerberos_project_clone","input-id":"copy-http-url-input","test-id":"copy-http-url-button"}})],1):e._e(),e._v(" "),e.groups.ideGroup.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.ideGroup.bordered},scopedSlots:e._u([{key:"group-label",fn:function(){return[e._v(e._s(e.__("Open with")))]},proxy:!0}],null,!1,397988243)},[e._v(" "),e._l(e.ideGroup,(function(n,i){return t("code-dropdown-ide-item",{key:i,attrs:{"ide-item":n,label:e.__("Open with")},on:{"close-dropdown":e.closeDropdown}})}))],2):e._e(),e._v(" "),e.groups.downloadSourceCode.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.downloadSourceCode.bordered},scopedSlots:e._u([{key:"group-label",fn:function(){return[e._v(e._s(e.__("Download source code")))]},proxy:!0}],null,!1,2425687393)},[e._v(" "),t("code-dropdown-download-items",{attrs:{items:e.sourceCodeGroup},on:{"close-dropdown":e.closeDropdown}})],1):e._e(),e._v(" "),e.groups.downloadDirectory.show?t("gl-disclosure-dropdown-group",{attrs:{bordered:e.groups.downloadDirectory.bordered},scopedSlots:e._u([{key:"group-label",fn:function(){return[e._v(e._s(e.__("Download directory")))]},proxy:!0}],null,!1,2889711192)},[e._v(" "),t("code-dropdown-download-items",{attrs:{items:e.directoryDownloadGroup},on:{"close-dropdown":e.closeDropdown}})],1):e._e(),e._v(" "),e._t("gl-ee-compact-code-dropdown")],2)}),[],!1,null,null,null));t.default=C.exports},XR1I:function(e,t,n){"use strict";t.a={computed:{computedPath(){var e;const t=null===(e=this.$route)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.path;return(Array.isArray(t)?t.join("/"):t)||"/"}}}},Xt54:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var i=n("NmEs");const r=function(e,t){const{createMergeRequestIn:n,forkProject:r}=e;return Object(i.z)()&&!t&&n&&r},a=function(e,t,n){return r(e,t)&&!n},o=function(e,t,n){return r(e,t)&&!n},s=function(e,t,n){return a(e,t,n.canModifyBlob)||o(e,t,n.canModifyBlobWithWebIde)},l=function(e){return"ide"===e},c=function(e,t,n){return l(e)?t:n}},YmFK:function(e,t,n){"use strict";t.a=function(){return{inject:{glLicensedFeatures:{from:"glLicensedFeatures",default:function(){return{}}}}}}},ZUW3:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n("ewH8");function r(e){return i.default.version.startsWith("2")?e:{...e,render(...t){const n=e.render.call(this,...t);return Array.isArray(n)&&1===n.length?n[0]:n}}}function a(e,t="default"){var n,i,r;return null!==(n=null===(i=e.$scopedSlots)||void 0===i?void 0:i[t])&&void 0!==n?n:null===(r=e.$slots)||void 0===r?void 0:r[t]}},"b49+":function(e,t,n){"use strict";var i=n("Idki"),r=n("mQrz"),a=n("Mp8J"),o=n("D+x4"),s=n("0AwG"),l=n("/lV4"),c=n("rg
7LS"),d={name:"NonGfmMarkdown",components:{CodeBlockHighlighted:r.a,SimpleCopyButton:c.a},directives:{SafeHtml:a.a},props:{markdown:{type:String,required:!0}},data:()=>({hoverMap:{}}),computed:{markdownBlocks(){const e=i.marked.lexer(this.markdown),t=[];for(const n of e){const e=t[t.length-1];"code"===n.type?t.push(n):"markdown"===(null==e?void 0:e.type)?e.raw+=n.raw:t.push({type:"markdown",raw:n.raw})}return t}},methods:{getSafeHtml:e=>Object(o.b)(i.marked.parse(e),s.A),setHoverOn(e){this.hoverMap={...this.hoverMap,[e]:!0}},setHoverOff(e){this.hoverMap={...this.hoverMap,[e]:!1}},isLastElement(e){return e===this.markdownBlocks.length-1}},safeHtmlConfig:{ADD_TAGS:["use","gl-emoji","copy-code"]},i18n:{copyCodeTitle:Object(l.a)("Copy code")},fallbackLanguage:"text"},u=n("LPAU"),p=n.n(u),h=n("2XS0"),f=n.n(h),m={insert:"head",singleton:!1},g=(p()(f.a,m),f.a.locals,n("tBpV")),b=Object(g.a)(d,(function(){var e=this,t=e._self._c;return t("div",[e._l(e.markdownBlocks,(function(n,i){return["code"===n.type?t("div",{key:"code-"+i,class:{"gl-relative":!0,"gl-mb-4":!e.isLastElement(i)},attrs:{"data-testid":"code-block-wrapper"},on:{mouseenter:function(t){return e.setHoverOn("code-"+i)},mouseleave:function(t){return e.setHoverOff("code-"+i)}}},[e.hoverMap["code-"+i]?t("simple-copy-button",{staticClass:"gl-absolute gl-right-3 gl-top-3 gl-z-1 gl-duration-medium",attrs:{title:e.$options.i18n.copyCodeTitle,text:n.text}}):e._e(),e._v(" "),t("code-block-highlighted",{staticClass:"gl-border gl-mb-0 gl-overflow-y-auto !gl-rounded-none gl-p-4",attrs:{language:n.lang||e.$options.fallbackLanguage,code:n.text}})],1):t("div",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.getSafeHtml(n.raw),expression:"getSafeHtml(block.raw)",arg:e.$options.safeHtmlConfig}],key:"text-"+i,class:{"non-gfm-markdown-block":!0,"gl-mb-4":!e.isLastElement(i)},attrs:{"data-testid":"non-code-markdown"}})]}))],2)}),[],!1,null,"32c56741",null);t.a=b.exports},b9Pe:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("8T/f"),r=n("ewH8"),a=n("ww+U");const o=Object(i.c)("mainContainerStore",(function(){const e=Object(r.ref)(a.a.getBreakpointSize()),t=Object(r.computed)((function(){return["xs","sm"].includes(e.value)})),n=Object(r.computed)((function(){return["md","lg"].includes(e.value)})),i=Object(r.computed)((function(){return"xl"===e.value}));return a.a.addResizeListener((function(){e.value=a.a.getBreakpointSize()})),{isCompact:t,isIntermediate:n,isWide:i,_setCurrentBreakpoint:function(t){e.value=t}}}))},bmCv:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPermalinkPath"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fullPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ref"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"fullPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paginatedTree"},arguments:[{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"ref"},value:{kind:"Variable",name:{kind:"Name",value:"ref"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"permalinkPath"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:310}};n.loc.source={body:"# @feature_category: source_code_management\nquery getPermalinkPath($fullPath: ID!, $path: String!, $ref: String!) {\n  project(fullPath: $fullPath) {\n    id\n    repository {\n      paginatedTree(path: $path, ref: $ref) {\n        nodes {\n          __typename\n          permalinkPath\n        }\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
7else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getPermalinkPath=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getPermalinkPath")},cnhR:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=function(){return{}}},emEv:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("8T/f"),r=n("ewH8"),a=n("n7CP"),o=n("NmEs"),s=n("8Igx"),l=n("b9Pe"),c=n("uQq6");const d=Object(i.c)("fileTreeVisibility",{state:function(){return{fileTreeBrowserIsExpanded:!1,fileTreeBrowserIsPeekOn:!1,shouldRestoreFocusToToggle:!1}},getters:{fileTreeBrowserIsVisible:function(e){return e.fileTreeBrowserIsExpanded||e.fileTreeBrowserIsPeekOn}},actions:{setFileTreeBrowserIsExpanded(e){if(this.fileTreeBrowserIsExpanded=e,a.a.canUseLocalStorage())try{localStorage.setItem(c.j,JSON.stringify(e))}catch(e){Object(s.b)(e)}},toggleFileTreeBrowserIsExpanded(){this.setFileTreeBrowserIsExpanded(!this.fileTreeBrowserIsExpanded)},setFileTreeBrowserIsPeekOn(e){this.fileTreeBrowserIsPeekOn=e},toggleFileTreeBrowserIsPeek(){this.setFileTreeBrowserIsPeekOn(!this.fileTreeBrowserIsPeekOn)},resetFileTreeBrowserAllStates(){this.fileTreeBrowserIsExpanded=!1,this.fileTreeBrowserIsPeekOn=!1},collapseForBlame(){this.setFileTreeBrowserIsExpanded(!1),this.fileTreeBrowserIsPeekOn=!1},loadFileTreeBrowserExpandedFromLocalStorage(){if(a.a.canUseLocalStorage())try{const e=localStorage.getItem(c.j);null!==e?this.setFileTreeBrowserIsExpanded(Object(o.G)(e)):this.setFileTreeBrowserIsExpanded(!0)}catch(e){Object(s.b)(e)}else this.setFileTreeBrowserIsExpanded(!0)},handleFileTreeBrowserToggleClick(){this.shouldRestoreFocusToToggle=!0,Object(l.a)().isCompact?this.toggleFileTreeBrowserIsPeek():this.toggleFileTreeBrowserIsExpanded()},clearRestoreFocusFlag(){this.shouldRestoreFocusToToggle=!1},initializeFileTreeBrowser(){Object(l.a)().isCompact||this.loadFileTreeBrowserExpandedFromLocalStorage(),this.setupMainContainerWatcher()},setupMainContainerWatcher(){var e=this;const t=Object(l.a)();Object(r.watch)((function(){return{isCompact:t.isCompact}}),(function({isCompact:t},n){if(!n)return;(e.fileTreeBrowserIsExpanded||e.fileTreeBrowserIsPeekOn)&&(e.fileTreeBrowserIsPeekOn=t,e.fileTreeBrowserIsExpanded=!t)}))}}})},fIfI:function(e,t,n){"use strict";var i=n("CbCZ"),r=n("4Qts"),a=n("8T/f"),o=n("/lV4"),s=n("emEv"),l=n("lMcJ"),c=n("DCaA"),d=n("d08M"),u=n("ygVz"),p=n("uQq6"),h={name:"FileTreeBrowserDrawerToggle",TOGGLE_FILE_TREE_BROWSER_VISIBILITY:d.Fb,components:{Shortcut:l.a,GlButton:i.a,GlTooltip:r.a},mixins:[u.a.mixin()],props:{isAnimating:{type:Boolean,required:!1,default:!1}},data:()=>({suppressTooltip:!1}),computed:{...Object(a.f)(s.a,["fileTreeBrowserIsVisible","shouldRestoreFocusToToggle"]),toggleFileBrowserTitle(){return this.fileTreeBrowserIsVisible?Object(o.a)("Hide file tree browser"):Object(o.a)("Show file tree browser")},shortcutsEnabled:()=>!Object(c.a)(),target(){var e=this;return function(){var t;return null===(t=e.$refs.toggle)||void 0===t?void 0:t.$el}}},watch:{shouldRestoreFocusToToggle(e){var t=this;e&&this.$nextTick((function(){return t.restoreToggleFocus()}))}},mounted(){var e=this;this.shouldRestoreFocusToToggle&&this.$nextTick((function(){return e.restoreToggleFocus()}))},methods:{...Object(a.e)(s.a,["handleFileTreeBrowserToggleClick","clearRestoreFocusFlag"]),restoreToggleFocus(){var e,t=this;null===(e=this.$refs.toggle)||void 0===e||null===(e=e.$el)||void 0===e||e.focus(),this.clearRestoreFocusFlag(),this.suppressTooltip=!0,setTimeout((function(){t.suppressTooltip=!1}),0)}
7,onClickToggle(){this.handleFileTreeBrowserToggleClick(),this.trackEvent(this.fileTreeBrowserIsVisible?p.g:p.f,{label:"click"})}}},f=n("LPAU"),m=n.n(f),g=n("Ua+i"),b=n.n(g),v={insert:"head",singleton:!1},k=(m()(b.a,v),b.a.locals,n("tBpV")),y=Object(k.a)(h,(function(){var e=this,t=e._self._c;return t("gl-button",{ref:"toggle",staticClass:"btn-icon",attrs:{icon:"file-tree","aria-label":e.toggleFileBrowserTitle},on:{click:e.onClickToggle}},[e.isAnimating||e.suppressTooltip?e._e():t("gl-tooltip",{attrs:{"custom-class":"gl-tooltip file-browser-toggle-tooltip",target:e.target,placement:"left",triggers:"hover focus"}},[e._v("\n    "+e._s(e.toggleFileBrowserTitle)+"\n    "),e.shortcutsEnabled?t("shortcut",{attrs:{shortcuts:e.$options.TOGGLE_FILE_TREE_BROWSER_VISIBILITY.defaultKeys}}):e._e()],1)],1)}),[],!1,null,null,null);t.a=y.exports},fVTn:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getUserGitpodInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gitpodEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"preferencesGitpodPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileEnableGitpodPath"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:142}};n.loc.source={body:"query getUserGitpodInfo {\n  currentUser {\n    __typename\n    id\n    gitpodEnabled\n    preferencesGitpodPath\n    profileEnableGitpodPath\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getUserGitpodInfo=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getUserGitpodInfo")},"hMg/":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("G6B1");class r{constructor(){this.configureGitTabsEl=document.querySelector(".js-configure-git-tabs"),this.emptyProjectTabsEl=document.querySelector(".js-empty-project-tabs"),new i.a(this.configureGitTabsEl,{history:i.b}),new i.a(this.emptyProjectTabsEl,{history:i.b})}}},hTgk:function(e,t,n){"use strict";n.r(t),n.d(t,"i18n",(function(){return _}));n("UezY"),n("z6RN"),n("hG7+");var i=n("2TqH"),r=n("nuJP"),a=n("AxB5"),o=n("zIFf"),s=n("/lV4"),l=n("3twG"),c=n("ygVz"),d=(n("3UXl"),n("iyoE"),n("Oxu3")),u=n("NnjE"),p=n("Jx7q"),h=n("WHSv"),f=n.n(h);const m={btnText:Object(s.a)("Create a new fork"),title:Object(s.a)("Fork project?"),message:Object(s.a)("You can’t edit files directly in this project."),existingForksMessage:Object(s.a)("To submit your changes in a merge request, switch to one of these forks or create a new fork."),newForkMessage:Object(s.a)("To submit your changes in a merge request, create a new fork.")};var g={name:"ConfirmForkModal",components:{GlModal:d.a,GlLoadingIcon:u.a,GlLink:p.a},inject:{projectPath:{default:""}},model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,required:!1,default:!1},modalId:{type:String,required:!0},forkPath:{type:String,required:!0}},emits:["change"],data:()=>({forks:[]}),apollo:{forks:{query:f.a,variables(){return{projectPath:this.projectPath}},update({project:e}={}){var t;return null==e||null===(t=e.visibleForks)||void 0===t?void 0:t.nodes.map((function(e){return{text:e.fullPath,href:e.webUrl}}))}}},computed:{isLoading(){return this.$apollo.queries.forks.loading},hasWritableForks(){return this.forks.length},btnActions(){return{cancel:{text:Object(s.a)("Cancel")},primary:{text:this.$options.i18n.btnText,attributes:{href:this.forkPath,variant:"confirm"}}}}},i18n:m},b=n("tBpV"),v=Object(b.a)(g,(function(){var e=this,t=e._self._c;return t("gl-modal",{attrs:{visible:e.visible,"modal-id":e.modalId,title:e.$options.i18n.title,"action-primary":e.btnActions.primary,"action-cancel":e.btnActions.cancel},on:{change:function(t){return e.$emit("change",t)}}},[t("p",[e._v(e._s(e.$options.i18n.message))]),e._v(" "),e.isLoading?t("gl-loading-icon"):e.hasWritableForks?[t("p",[e._v(e._s(e.$options.i18n.existingForksMessage))]),e._v(" "),e._l(e.forks,(function(n){return t("div",{key:n.text},[t("gl-link",{attrs:{href:n.href}},[e._v(e._s(n.text))])],1)}))]:t("p",[e._v(e._s(e.$options.i18n.newForkMessage))])],2)}),[],!1,null,null,null).exports,k=n("d08M"),y=n("DCaA"),w=n("ykpR");const _={webIdeText:Object(s.i)("WebIDE|Quickly and easily edit multiple files in your project."),webIdeTooltip:Object(s.i)("WebIDE|Quickly and easily edit multiple files in your project. Press . to open"),toggleText:Object(s.a)("Edit"),gitpodText:Object(s.a)("Launch a ready-to-code development environment for your project.")};var j={name:"CEWebIdeLink",components:{GlDisclosureDropdown:i.a,GlDisclosureDropdownGroup:r.a,GlDisclosureDropdownItem:a.a,ConfirmForkModal:v},directives:{GlTooltip:o.a},i18n:_,mixins:[c.b.mixin()],props:{isFork:{type:Boolean,required:!1,default:!1},needsToFork:{type:Boolean,required:!1,default:!1},needsToForkWithWebIde:{type:Boolean,required:!1,default:!1},isGitpodEnabledForUser:{type:Boolean,required:!1,default:!1},isBlob:{type:Boolean,required:!1,default:!1},showEditButton:{type:Boolean,required:!1,default:!0},showWebIdeButton:{type:Boolean,required:!1,default:!0},isGitpodEnabledForInstance:{type:Boolean,required:!1,default:!1},showPipelineEditorButton:{type:Boolean,required:!1,default:!1},editUrl:{type:String,required:!1,default:""},buttonVariant:{type:String,required:!1,default:null},pipelineEditorUrl:{type:String,required:!1,default:""},webIdeUrl:{type:String,required:!1,default:""},webIdeText:{type:String,required:!1,default:""},gitpodUrl:{type:String,required:!1,default:""},gitpodText:{type:String,required:!1,default:""},disableForkModal:{type:Boolean,required:!1,default:!1},forkPath:{type:String,required:!1,default:""},forkModalId:{type:String,required:!1,default:""}
7,cssClasses:{type:String,required:!1,default:"@sm/panel:gl-ml-3"},disabled:{type:Boolean,required:!1,default:!1},customTooltipText:{type:String,required:!1,default:Object(s.a)("You cannot edit this file")}},emits:["edit","hidden","shown"],data:()=>({showForkModal:!1}),computed:{actions(){return this.isBlob?[this.pipelineEditorAction,this.webIdeAction,this.editAction,this.gitpodAction].filter(Boolean):[this.pipelineEditorAction,this.editAction].filter(Boolean)},hasActions(){return this.actions.length>0},editButtonVariant(){return this.buttonVariant?this.buttonVariant:this.isBlob?"confirm":"default"},editAction(){var e=this;if(!this.showEditButton)return null;const t=this.needsToFork?{href:"#modal-confirm-fork-edit",handle:function(){e.disableForkModal?e.$emit("edit","simple"):e.showModal("showForkModal")}}:{href:this.editUrl};return{key:w.a,text:Object(s.a)("Edit single file"),secondaryText:Object(s.a)("Edit this file only."),tracking:{action:"click_consolidated_edit",label:"single_file"},...t}},shortcutsDisabled:()=>Object(y.a)(),webIdeActionShortcutKey:()=>Object(k.Mb)(k.B)[0],webIdeActionText(){return this.webIdeText?this.webIdeText:this.isFork?Object(s.a)("Edit fork in Web IDE"):Object(s.a)("Open in Web IDE")},webIdeAction(){var e=this;if(!this.showWebIdeButton)return null;const t=this.needsToForkWithWebIde?{handle:function(){e.disableForkModal?e.$emit("edit","ide"):e.showModal("showForkModal")}}:{handle:function(){const t=Object(l.c)(e.webIdeUrl);Object(l.T)(t,!0)}};return{key:w.d,text:this.webIdeActionText,secondaryText:this.$options.i18n.webIdeText,shortcut:this.webIdeActionShortcutKey,tracking:{action:"click_consolidated_edit",label:"web_ide"},...t}},gitpodActionText(){return this.gitpodText||Object(s.a)("Open in Ona")},computedShowGitpodButton(){return this.isGitpodEnabledForInstance&&this.isGitpodEnabledForUser&&this.gitpodUrl},pipelineEditorAction(){if(!this.showPipelineEditorButton)return null;const e=Object(s.a)("Edit, lint, and visualize your pipeline.");return{key:w.c,text:Object(s.a)("Edit in pipeline editor"),secondaryText:e,href:this.pipelineEditorUrl,tracking:{action:"click_consolidated_edit",label:"pipeline_editor"}}},gitpodAction(){var e=this;if(!this.computedShowGitpodButton)return null;const t={handle:function(){Object(l.T)(e.gitpodUrl,!0)}};return{key:w.b,text:this.gitpodActionText,secondaryText:this.$options.i18n.gitpodText,tracking:{action:"click_consolidated_edit",label:"gitpod"},...t}},mountForkModal(){const{disableForkModal:e,showWebIdeButton:t,showEditButton:n}=this;return!e&&(t||n)},tooltipText(){return this.disabled?this.customTooltipText:""}},methods:{showModal(e){this[e]=!0},executeAction(e){var t;this.track(e.tracking.action,{label:e.tracking.label}),null===(t=e.handle)||void 0===t||t.call(e)}}},S=Object(b.a)(j,(function(){var e=this,t=e._self._c;return e.hasActions?t("div",{class:e.cssClasses},[t("gl-disclosure-dropdown",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:e.tooltipText,expression:"tooltipText"}],attrs:{variant:e.editButtonVariant,category:e.isBlob?"primary":"secondary","toggle-text":e.$options.i18n.toggleText,disabled:e.disabled,"aria-label":e.tooltipText,"positioning-strategy":"fixed","data-testid":"action-dropdown","fluid-width":"",block:""},on:{shown:function(t){return e.$emit("shown")},hidden:function(t){return e.$emit("hidden")}}},[e._t("before-actions"),e._v(" "),t("gl-disclosure-dropdown-group",{staticClass:"edit-dropdown-group-width gl-z-[1039]"},e._l(e.actions,(function(n){return t("gl-disclosure-dropdown-item",{key:n.key,attrs:{item:n,"data-testid":n.key+"-menu-item"},on:{action:function(t){return e.executeAction(n)}},scopedSlots:e._u([{key:"list-item",fn:function(){return[t("div",{staticClass:"gl-flex gl-flex-col"},[t("span",{staticClass:"gl-mb-2 gl-flex gl-items-center gl-justify-between"},[t("span",{staticClass:"gl-font-bold",attrs:{"data-testid":"action-primary-text"}},[e._v(e._s(n.text))]),e._v(" "),n.shortcut&&!e.shortcutsDisabled?t("kbd",{staticClass:"flat"},[e._v(e._s(n.shortcut))]):e._e()]),e._v(" "),t("span",{staticClass:"gl-text-sm gl-text-subtle",attrs:{"data-testid":"action-secondary-text"}},[e._v("\n              "+e._s(n.secondaryText)+"\n            ")])])]},proxy:!0}],null,!0)})})),1),e._v(" "),e._t("after-actions")],2),e._v(" "),e.mountForkModal?t("confirm-fork-modal",{attrs:{"modal
7-id":e.forkModalId,"fork-path":e.forkPath},model:{value:e.showForkModal,callback:function(t){e.showForkModal=t},expression:"showForkModal"}}):e._e()],1):e._e()}),[],!1,null,null,null);t.default=S.exports},htAy:function(e,t,n){"use strict";n.d(t,"a",(function(){return Ge}));var i=n("b6er"),r=n("ewH8"),a=n("lRsd"),o=n("3twG"),s=n("6aXW"),l=n("w/32"),c=n("jHQk"),d=n("NnjE"),u=n("CbCZ"),p=n("l85A"),h=n("zIFf"),f=n("UfBS"),m=n("ho4C"),g=n("8T/f"),b=n("8Igx"),v=n("7F3p"),k=n("67aS"),y=n("6L/t"),w=n("7bJy"),_=n("jlnU"),j=n("2ibD"),S=n("NmEs"),O=n("5v28"),x=n("/lV4"),P=n("sHIo"),T=n("QUS0"),C=n("emEv"),I=n("+MIs"),B=n("0hIY"),N=n("ilhb"),E=n.n(N),F=(n("B++/"),n("z6RN"),n("47t/"),n("3UXl"),n("iyoE"),n("TPPX")),q=n("lA8v"),D=n("ktwE"),A=n("ygVz"),$=n("uQq6"),R={HLJS_MAX_SIZE:2e6,mixins:[A.b.mixin()],inject:{highlightWorker:{default:null}},data:()=>({chunks:[]}),methods:{trackViewSource(e,t){this.track(F.j,{label:e,property:t})},isUnsupportedLanguage(e){const t=F.p[e],n=!Object.keys(D.a).includes(t);return F.m.includes(e)||n},handleUnsupportedLanguage(e){this.trackViewSource(F.k,e),null==this||this.onError()},async handleLFSBlob(e,t,n){var i=this;await j.a.get(e||t).then((function({data:e}){return i.instructWorker(e,n)})).catch((function(){return i.$emit("error")}))},initHighlightWorker(e,t){const{rawTextBlob:n,name:i,fileType:r,externalStorageUrl:a,rawPath:o,simpleViewer:s}=e;let{language:l}=e;const c=Object.keys($.i).find((function(e){return i.endsWith(e)}));if(c&&(l=$.i[c]),(null==s?void 0:s.fileType)!==$.y)return;if(this.isUnsupportedLanguage(l))return void this.handleUnsupportedLanguage(l);if(this.highlightWorker.onmessage=this.handleWorkerMessage,t)return void this.handleLFSBlob(a,o,l);const d=n.split(/\r?\n/).slice(0,F.n).join("\n");this.chunks=Object(q.b)(l,d),this.instructWorker(d,l),this.instructWorker(n,l,r)},handleWorkerMessage({data:e}){e.length<this.chunks.length||(this.chunks=e,this.highlightHash())},instructWorker(e,t,n){this.highlightWorker.postMessage({content:e,language:t,fileType:n})},highlightHash(){const{hash:e}=this.$route;if(!e)return;const[t,n]=e.substring(e.indexOf("L")+1).split("-");this.chunks.map((function(e){const i=e,r=e.startingFrom+e.totalLines;return(t>=e.startingFrom||r<=n||function({startingFrom:e,totalLines:t},n){return e<=n&&e+t>=n}(e,n))&&(i.isHighlighted=!0),i}))}}},L=n("OvWE"),V=n.n(L),U=n("J7NB"),G=n("jEr0"),M=n("ITU6");const z={csv:function(){return Promise.all([n.e("e6cfe3ee"),n.e("f679dc34"),n.e("72dbd258")]).then(n.bind(null,"zn/t"))},download:function(){return n.e("17aa5bdc").then(n.bind(null,"om2A"))},image:function(){return n.e("59aecf48").then(n.bind(null,"xBnX"))},video:function(){return n.e("4ede1fe3").then(n.bind(null,"Ym/H"))},empty:function(){return n.e("ce78d168").then(n.bind(null,"wE6l"))},text:function(){return n.e("2b1e8dad").then(n.bind(null,"klTQ"))},pdf:function(){return n.e("551a6c85").then(n.bind(null,"i5f0"))},lfs:function(){return n.e("4a3dfe20").then(n.bind(null,"yGin"))},audio:function(){return n.e("b6bac29f").then(n.bind(null,"ku4I"))},svg:function(){return n.e("59aecf48").then(n.bind(null,"xBnX"))},sketch:function(){return Promise.all([n.e("8b44a7ac"),n.e("1da4db1e"),n.e("40727ae1")]).then(n.bind(null,"KtaJ"))},notebook:function(){return Promise.all([n.e("e6cfe3ee"),n.e("f679dc34"),n.e("9643b834"),n.e("0b1f7a27"),n.e("e587f5ba")]).then(n.bind(null,"6WvP"))},openapi:function(){return Promise.all([n.e("665079cc"),n.e("04b0fc93")]).then(n.bind(null,"myhX"))},geo_json:function(){return Promise.all([n.e("e188925e"),n.e("c761e9ea")]).then(n.bind(null,"s65y"))},too_large:function(){return n.e("bbbb1528").then(n.bind(null,"Uaao"))}},H=A.a.mixin();var W={name:"BlobContentViewer",components:{BlobHeader:y.a,BlobContent:k.a,GlLoadingIcon:d.a,GlButton:u.a,GlEmptyState:p.a,CodeIntelligence:I.a,AiGenie:Object(r.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"4b03"))})),OrbitCodePanel:Object(r.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"4b03"))}))},directives:{GlTooltip:h.a},mixins:[G.a,R,Object(T.a)(),Object(P.a)(),H],inject:{originalBranch:{default:""},explainCodeAvailable:{default:!1}},apollo:{projectInfo:{query:V.a,errorPolicy:O.b,variables(){return{projectPath:this.projectPath}},error(e){Object(b.b)("Unexpected error while fetching projectInfo query",e),Object(v.b)(e,{tags:{vue_component:"BlobContentViewer"}}),this.displayError()},update({project:e}){var t;this.userPermissions=(null==e?void 0:e.userPermissions)||$.d.userPermissions,this.defaultBranch=(null==e||null===(t=e.repository)||void 0===t?void 0:t.rootRef)||""}},project:{query:E.a,errorPolicy:O.b,variables(){return{projectPath:this.projectPath,filePath:[this.path],ref:this.currentRef,refType:Object(M.a)(this.refType),shouldFetchRawText:!0}},result({data:e}){var t,n,i,r;const a=(null===(t=e.project)||void 0===t?void 0:t.repository)||{},s=null===(n=a.blobs)||void 0===n?void 0:n.nodes[0];if(this.blobInfo=s||{},this.blobNotFound=!s,this.isEmptyRepository=a.empty,this.projectId=null===(i=e.project)||void 0===i?void 0:i.id,!s)return;
7if(!s.simpleViewer&&!s.richViewer)return void Object(v.c)("Blob exists but has no simpleViewer or richViewer",{level:"info",tags:{vue_component:"BlobContentViewer"},extra:{projectPath:this.projectPath,filePath:this.path,ref:this.currentRef}});const l="1"===(null===(r=this.$route)||void 0===r||null===(r=r.query)||void 0===r?void 0:r.plain),c=Object(o.o)(),d=l||(null==c?void 0:c.startsWith("L"))||!this.hasRichViewer;this.isTooLarge&&this.trackEvent($.h,{label:this.blobInfo.language,property:String(this.blobInfo.size)}),this.isUnsupportedLanguage(this.blobInfo.language)&&this.isTooLarge||(this.initHighlightWorker(this.blobInfo,this.isUsingLfs),this.isBlameAvailable?this.switchViewer(w.b):this.switchViewer(d?w.n:w.k))},error(e){Object(b.b)("Unexpected error while fetching blobInfo query",e),Object(v.b)(e,{tags:{vue_component:"BlobContentViewer"}}),this.displayError()}}},provide(){var e=this;return{blobHash:Object(m.a)(),currentRef:Object(r.computed)((function(){return e.currentRef})),fileType:Object(r.computed)((function(){var t;return null===(t=e.viewer)||void 0===t?void 0:t.fileType})),blameActions:{activateInlineBlame:this.activateInlineBlame}}},props:{path:{type:String,required:!0},projectPath:{type:String,required:!0},refType:{type:String,required:!1,default:null}},data(){var e;return{orbitPanelOpen:!1,legacyRichViewer:null,legacySimpleViewer:null,isBinary:!1,isLoadingLegacyViewer:!1,isRenderingLegacyTextViewer:!1,activeViewerType:w.n,project:$.d.project,useFallback:!1,userPermissions:$.d.userPermissions,defaultBranch:"",blobInfo:{},blobNotFound:!1,isEmptyRepository:!1,projectId:null,shouldPreloadBlame:!1,showBlame:"1"===(null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.blame)}},computed:{isLoggedIn:()=>Object(S.z)(),isLoading(){return this.$apollo.queries.project.loading},isBinaryFileType(){var e,t;return this.isBinary||(null===(e=this.blobInfo.simpleViewer)||void 0===e?void 0:e.fileType)!==$.y&&(null===(t=this.blobInfo.simpleViewer)||void 0===t?void 0:t.fileType)!==$.e},currentRef(){return this.originalBranch||this.ref},viewer(){const{richViewer:e,simpleViewer:t}=this.blobInfo;return this.activeViewerType===w.k?e:t},hasRichViewer(){return Boolean(this.blobInfo.richViewer)},hasRenderError(){var e;return Boolean(null===(e=this.viewer)||void 0===e?void 0:e.renderError)},isTooLarge(){const e=this.activeViewerType===w.n,{tooLarge:t,renderError:n}=this.viewer||{},i=t||"collapsed"===n||"too_large"===n;return e?this.isUnsupportedLanguage(this.blobInfo.language)?i:this.blobInfo.size>=this.$options.HLJS_MAX_SIZE:i},blobViewer(){const{fileType:e}=this.viewer||{},{isTooLarge:t}=this;return this.shouldLoadLegacyViewer?null:function(e,t,n){let i=z[e];return n?i=z.too_large:!i&&t&&(i=z.lfs),i}(e,this.isUsingLfs,t)},shouldLoadLegacyViewer(){return $.q.includes(this.blobInfo.fileType)||this.useFallback},legacyViewerLoaded(){return[w.n,w.b].includes(this.activeViewerType)&&this.legacySimpleViewer||this.activeViewerType===w.k&&this.legacyRichViewer},canFork(){const{createMergeRequestIn:e,forkProject:t}=this.userPermissions;return this.isLoggedIn&&!this.isUsingLfs&&e&&t},showSingleFileEditorForkSuggestion(){const{canModifyBlob:e}=this.blobInfo;return this.canFork&&!e},showWebIdeForkSuggestion(){const{canModifyBlobWithWebIde:e}=this.blobInfo;return this.canFork&&!e},isUsingLfs(){return this.blobInfo.storedExternally&&this.blobInfo.externalStorage===$.r},shouldRenderAiGenie(){return this.explainCodeAvailable&&"simple"===this.activeViewerType&&!this.isTooLarge},shouldHideViewerSwitcher(){var e;return this.isBinaryFileType||this.isUsingLfs||(null===(e=this.blobInfo.simpleViewer)||void 0===e?void 0:e.fileType)===$.e},isBlameAvailable(){return this.glFeatures.inlineBlame&&!this.isBinaryFileType&&this.showBlame},isOrbitCodeIntelligenceAvailable(){return this.glAbilities.readCodeNavigation&&this.isOnDefaultBranch},isOnDefaultBranch(){return Boolean(this.defaultBranch&&this.currentRef===this.defaultBranch)},emptyStateProps(){return this.blobNotFound?{title:Object(x.i)("BlobViewer|File not found"),description:Object(x.i)("BlobViewer|The file may have been moved, renamed, or deleted, or the link may be out of date."),primaryButtonText:Object(x.a)("Browse files"),primaryButtonLink:Object(s.h)(this.projectPath)}:{title:Object(x.i)("BlobViewer|Unable to display file"),description:Object(x.i)("BlobViewer|An error occurred while displaying the file. Try reloading the page.")}}},watch:{"$route.query.plain":{handler(e){const t="1"===e||!this.hasRichViewer;this.switchViewer(t?w.n:w.k)}},$route({query:e}){this.glFeatures.inlineBlame&&("1"===(null==e?void 0:e.blame)?this.setShowBlame(!0):this.setShowBlame(!1))},path(){this.legacyRichViewer=null,this.legacySimpleViewer=null}},methods:{onError(){this.useFallback=!0,this.loadLegacyViewer()},loadLegacyViewer(){var e=this;if(this.legacyViewerLoaded||this.isLoadingLegacyViewer)return;const t=this.activeViewerType;this.isLoadingLegacyViewer=!0;const n=new URL(this.blobInfo.webPath,window.location.origin);n.searchParams.set("format","json"),n.searchParams.set("viewer",t),j.a.get(n.pathname+n.search).then((async function({data:{html:n,binary:i}}){e.isRenderingLegacyTextViewer=!0,t===w.n||t===w.b?e.legacySimpleViewer=n:e.legacyRichViewer=n,e.isBinary=i,window.requestIdleCallback((function(){e.isRenderingLegacyTextViewer=!1,t===w.n&&new B.a})),await e.$nextTick(),Object(S.n)(),t===w.n&&U.a.$emit("show-blob-interaction-zones",e.blobInfo.path)})).catch((function(){return e.displayError()})).finally((function(){e.isLoadingLegacyViewer=!1}))},displayError(){Object(_.createAlert)({message:Object(x.a)("An error occurred while loading the file. Please try again.")})},reloadPage(){Object(o.F)()},switchViewer(e){this.activeViewerType=e||w.n,this.blobViewer||this.loadLegacyViewer()},handleViewerChanged(e){var t;this.showBlame=!1,this.switchViewer(e);const n=e===w.n?"1":"0",{blame:i,...r}=(null===(t=this.$route)||void 0===t?void 0:t.query)||{};(i||r.plain!==n)&&this.$router.push({path:this.$route.path,query:{...r,plain:n},hash:e===w.n?window.location.hash:""})},isIdeTarget:e=>"ide"===e,forkSuggestionForSelectedEditor(e){return this.isIdeTarget(e)?this.showWebIdeForkSuggestion:this.showSingleFileEditorForkSuggestion},editBlob(e){if(this.forkSuggestionForSelectedEditor(e))return;const{ideEditPath:t,editBlobPath:n}=this.blobInfo;Object(o.T)(this.isIdeTarget(e)?t:n)},...Object(g.e)(C.a,["collapseForBlame"]),onCopy(){navigator.clipboard.writeText(this.blobInfo.rawTextBlob)},handleToggleBlame(){this.switchViewer(w.n),this.showBlame?this.showBlame=!1:this.setShowBlame(!0)},setShowBlame(e,t=window.location.hash){var n;e&&this.collapseForBlame(),this.showBlame=e;const{blame:i,...r}=(null===(n=this.$route)||void 0===n?void 0:n.query)||{};if(e?"1"===i:!i)return;const a=e?{...r,blame:"1"}:r;this.$router.push({path:this.$route.path,query:a,hash:t})},activateInlineBlame(e){var t=this;this.switchViewer(w.n),this.setShowBlame(!0,"#L"+e),this.$nextTick((function(){var e,n;null===(e=t.$refs.blobViewerComponent)||void 0===e||null===(n=e.selectLine)||void 0===n||n.call(e)}))}},emptySearchSvg:f.a},Q=n("LPAU"),K=n.n(Q),J=n("BXoq"),Z=n.n(J),Y={insert:"head",singleton:!1},X=(K()(Z.a,Y),Z.a.locals,n("tBpV")),ee=Object(X.a)(W,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-relative"},[e.isLoading?t("gl-loading-icon",{attrs:{size:"sm"}}):e.viewer?t("div",{class:{"gl-flex gl-gap-3":e.orbitPanelOpen}},[t("div",{staticClass:"file-holder",class:{"gl-min-w-0 gl-flex-1":e.orbitPanelOpen},attrs:{id:"fileHolder"}},[t("blob-header",{attrs:{"is-blob-page":"",blob:e.blobInfo,"hide-viewer-switcher":e.shouldHideViewerSwitcher,"is-binary":e.isBinaryFileType,"active-viewer-type":e.activeViewerType,"has-render-error":e.hasRenderError,"show-path":!1,"override-copy":!0,"show-fork-suggestion":e.showSingleFileEditorForkSuggestion,"show-web-ide-fork-suggestion":e.showWebIdeForkSuggestion,"show-blame-toggle":e.glFeatures.inlineBlame,"show-blame-info":e.isBlameAvailable,"project-path":e.projectPath,"project-id":e.projectId,"is-using-lfs":e.isUsingLfs,"current-ref":e.currentRef},on:{"viewer-changed":e.handleViewerChanged,copy:e.onCopy,edit:e.editBlob,error:e.displayError,"preload-blame":function(t){e.shouldPreloadBlame=!0},blame:e.handleToggleBlame},scopedSlots:e._u([{key:"orbit-action",fn:function(){return[e.isOrbitCodeIntelligenceAvailable&&(e.blobViewer||e.legacyViewerLoaded)?t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],attrs:{"data-testid":"code-navigation-button",category:"primary",variant:"default",icon:"code","aria-label":e.__("Code navigation"),title:e.__("Code navigation")},on:{click:function(t){e.orbitPanelOpen=!e.orbitPanelOpen}}}
7):e._e()]},proxy:!0}])}),e._v(" "),e.blobViewer?t(e.blobViewer,{ref:"blobViewerComponent",tag:"component",staticClass:"blob-viewer",attrs:{blob:e.blobInfo,chunks:e.chunks,"show-blame":e.showBlame&&e.glFeatures.inlineBlame,"project-path":e.projectPath,"current-ref":e.currentRef,"should-preload-blame":e.shouldPreloadBlame},on:{error:e.onError}}):t("blob-content",{staticClass:"js-syntax-highlight",attrs:{"rich-viewer":e.legacyRichViewer,blob:e.blobInfo,content:e.legacySimpleViewer,"is-raw-content":!0,"active-viewer":e.viewer,"should-preload-blame":e.shouldPreloadBlame,"show-blame":e.showBlame&&e.glFeatures.inlineBlame,"current-ref":e.currentRef,loading:e.isLoadingLegacyViewer,"project-path":e.projectPath,"data-loading":e.isRenderingLegacyTextViewer}}),e._v(" "),e.blobViewer||e.legacyViewerLoaded?t("code-intelligence",{attrs:{"code-navigation-path":e.blobInfo.codeNavigationPath,"blob-path":e.blobInfo.path,"path-prefix":e.blobInfo.projectBlobPathRoot,"wrap-text-nodes":!0}}):e._e()],1),e._v(" "),e.isOrbitCodeIntelligenceAvailable&&e.orbitPanelOpen?t("div",{staticClass:"orbit-panel gl-sticky gl-shrink-0 gl-self-start gl-overflow-y-auto"},[t("orbit-code-panel",{attrs:{"project-id":e.projectId,"project-path":e.projectPath,"current-ref":e.currentRef,"file-path":e.blobInfo.path},on:{close:function(t){e.orbitPanelOpen=!1}}})],1):e._e()]):t("gl-empty-state",e._b({attrs:{"svg-path":e.$options.emptySearchSvg},scopedSlots:e._u([e.blobNotFound?null:{key:"actions",fn:function(){return[t("gl-button",{attrs:{variant:"confirm","data-testid":"reload-page-button"},on:{click:e.reloadPage}},[e._v("\n        "+e._s(e.__("Reload page"))+"\n      ")])]},proxy:!0}],null,!0)},"gl-empty-state",e.emptyStateProps,!1)),e._v(" "),e.shouldRenderAiGenie?t("ai-genie",{staticClass:"gl-ml-7",attrs:{"container-selector":".file-content","file-path":e.path}}):e._e()],1)}),[],!1,null,"2cb14926",null).exports,te=n("XR1I"),ne={name:"RepositoryBlob",components:{BlobContentViewer:ee},mixins:[te.a],props:{projectPath:{type:String,required:!0},refType:{type:String,required:!1,default:null}}},ie=Object(X.a)(ne,(function(){return(0,this._self._c)("blob-content-viewer",{key:this.$route.path,attrs:{path:this.computedPath,"project-path":this.projectPath,"ref-type":this.refType}})}),[],!1,null,null,null).exports,re=n("t8rf"),ae=(n("RFHG"),n("xuo1"),n("OGDS")),oe=n.n(ae),se=n("JYQl"),le=n("h6C7"),ce=n.n(le),de=n("Am6h"),ue=(n("ZzK0"),n("BzOf"),n("AiXD")),pe=n("6qJk");let he=[],fe=[];const me=function(e){return he.includes(e)},ge=function(){he=[],fe=[]},be=function(e){me(e)||e<0||he.push(e)},ve=function(e,t,n,i,r){if(fe.includes(i)||i<0)return[];fe.push(i);const a=Object(o.j)(Object(pe.b)(e,n,t));return j.a.get(a,{params:{format:"json",offset:i,ref_type:r}}).then((function({data:e}){return Object(ue.a)(e,t)})).catch((function(){return Object(_.createAlert)({message:$.p})}))};var ke=n("iCwi"),ye=(n("Tznw"),n("IYH6"),n("6yen"),n("OeRx"),n("l/dT"),n("RqS2"),n("Zy7a"),n("cjZU"),n("OAhk"),n("X42P"),n("mHhP"),n("fn0I"),n("UB/6"),n("imhG"),n("UezY"),n("hG7+"),n("YSE1"),n("b+iX"),n("zHLb")),we=n("CGBp"),_e=n("1oPb"),je={name:"ParentRow",components:{GlLoadingIcon:d.a},directives:{GlTooltip:h.a},inject:["refType"],props:{commitRef:{type:String,required:!0},path:{type:String,required:!0},loadingPath:{type:String,required:!1,default:null}},computed:{parentPath(){const e=this.path.split("/");return e.pop(),e.map((function(e){return encodeURIComponent(e)})).join("/")},parentRoute(){const e=Object(o.A)("/-/tree",this.commitRef,this.parentPath);return Object(o.d)({path:e,refType:this.refType})}},methods:{clickRow(){this.$router.push(this.parentRoute)}}},Se=Object(X.a)(je,(function(){var e=this,t=e._self._c;return t("tr",{staticClass:"tree-item"},[t("td",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.left.viewport",modifiers:{left:!0,viewport:!0}}],staticClass:"tree-item-file-name",attrs:{title:e.__("Go to parent directory"),colspan:"3"},on:{click:function(t){return t.target!==t.currentTarget?null:e.clickRow.apply(null,arguments)}}},[e.parentPath===e.loadingPath?t("gl-loading-icon",{staticClass:"gl-inline-block !gl-align-text-bottom",attrs:{size:"sm",inline:""}}):t("router-link",{attrs:{to:e.parentRoute,"aria-label":e.__("Go to parent")}},[e._v(" .. ")])],1)])}),[],!1,null,null,null).exports,Oe=n("9/Bc"),xe=n("Jx7q"),Pe=n("d85j"),Te=n("pmDQ"),Ce=n("s0v2"),Ie=n("Mp8J"),Be=n("9dZE"),Ne=n("Fsq/"),Ee=n("TE0g"),Fe={name:"TableRow",components:{GlBadge:Oe.a,GlLink:xe.a,SkeletonLoader:Ee.a,GlIcon:Pe.a,GlTruncate:Te.a,TimeagoTooltip:Ne.a,FileIcon:Be.a},directives:{GlTooltip:h.a,GlHoverLoad:Ce.a,SafeHtml:Ie.a},mixins:[G.a],inject:["refType"],inheritAttrs:!1,props:{commitInfo:{type:Object,required:!1,default:null},rowNumber:{type:Number,required:!1,default:null},sha:{type:String,required:!0},projectPath:{type:String,required:!0},currentPath:{type:String,required:!0},path:{type:String,required:!0},mode:{type:String,required:!1,default:""},type:{type:String,required:!0},url:{type:String,required:!1,default:null},lfsOid:{type:String,required:!1,default:null},submoduleTreeUrl:{type:String,required:!1,default:null},loadingPath:{type:String,required:!1,default:""}},emits:["row-appear"],data(){var e;return{delayedRowAppear:null,showCommitColumns:!1!==(null===(e=window.gon)||void 0===e?void 0:e.show_commit_columns)}},computed:{commitData(){return this.commitInfo},routerLinkTo(){return this.isBlob?Object(o.d)({path:Object(o.A)("/-/blob",this.escapedRef,encodeURI(this.path)),refType:this.refType}):this.isFolder?Object(o.d)({path:Object(o.A)("/-/tree",this.escapedRef,encodeURI(this.path)),refType:this.refType}):null},isBlob(){return"blob"===this.type},isFolder(){return"tree"===this.type},isSubmodule(){return"commit"===this.type},nameCellComponent(){return this.showCommitColumns?"th":"td"},linkComponent(){return this.isFolder||this.isBlob?"router-link":"a"},fullPath(){return this.path.replace(new RegExp(`^${Object(i.a)(this.currentPath)}/`),"")},shortSha(){return this.sha.slice(0,8)},hasLockLabel(){return this.commitData&&this.commitData.lockLabel},showSkeletonLoader(){return!this.commitData}},mounted(){this.rowAppeared()},beforeDestroy(){clearTimeout(this.delayedRowAppear)},methods:{handlePreload(){return this.isFolder?this.loadFolder():this.loadBlob()},loadFolder(){this.apolloQuery(oe.a,{projectPath:this.projectPath,ref:this.ref,refType:Object(M.a)(this.refType),path:this.path,nextPageCursor:"",pageSize:$.A})},loadBlob(){this.apolloQuery(E.a,{projectPath:this.projectPath,filePath:[this.path],ref:this.ref,refType:Object(M.a)(this.refType),shouldFetchRawText:!0})},apolloQuery(e,t){this.$apollo.query({query:e,variables:t})},rowAppeared(){var e=this;this.commitInfo||(this.delayedRowAppear=setTimeout((function(){return e.$emit("row-appear",e.rowNumber)}),$.x))}},safeHtmlConfig:{ADD_TAGS:["gl-emoji"]}},qe=Object(X.a)(Fe,(function(){var e=this,t=e._self._c;return t("tr",{staticClass:"tree-item",attrs:{"data-item-id":e.$attrs["data-item-id"],"data-event-tracking":"click_file_list_on_repository_page"}},[t(e.nameCellComponent,{tag:"component",staticClass:"tree-item-file-name gl-relative gl-cursor-default gl-font-normal",attrs:{scope:"row"}},[t(e.linkComponent,{directives:[{name:"gl-hover-load",rawName:"v-gl-hover-load",value:e.handlePreload,expression:"handlePreload"}],ref:"link",tag:"component",staticClass:"tree-item-link gl-inline-flex gl-min-w-0 gl-max-w-full",class:{"
7is-submodule":e.isSubmodule},attrs:{title:e.fullPath,to:e.routerLinkTo,href:e.url,"data-testid":"file-name-link"}},[t("file-icon",{staticClass:"gl-relative gl-mr-2 gl-text-subtle",attrs:{"file-name":e.fullPath,"file-mode":e.mode,folder:e.isFolder,submodule:e.isSubmodule,loading:e.path===e.loadingPath,"css-classes":"gl-relative file-icon"}}),t("gl-truncate",{staticClass:"gl-min-w-0 gl-grow hover:gl-underline",attrs:{text:e.fullPath,position:"end","with-tooltip":""}})],1),e._v(" "),e.lfsOid?t("gl-badge",{attrs:{variant:"neutral","data-testid":"label-lfs"}},[e._v("LFS")]):e._e(),e._v(" "),e.isSubmodule?[e._v("\n      @ "),t("gl-link",{staticClass:"commit-sha",attrs:{href:e.submoduleTreeUrl}},[e._v(e._s(e.shortSha))])]:e._e(),e._v(" "),e.hasLockLabel?t("gl-icon",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],staticClass:"gl-relative gl-z-1",attrs:{title:e.commitData.lockLabel,"aria-label":e.commitData.lockLabel,name:"lock",size:12}}):e._e()],2),e._v(" "),e.showCommitColumns?t("td",{staticClass:"tree-commit cursor-default gl-hidden @sm/panel:gl-table-cell"},[e.commitData?t("gl-link",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.commitData.titleHtml,expression:"commitData.titleHtml",arg:e.$options.safeHtmlConfig}],staticClass:"str-truncated-100 tree-commit-link gl-text-subtle",attrs:{href:e.commitData.commitPath,title:e.commitData.message}}):e._e(),e._v(" "),e.showSkeletonLoader?t("skeleton-loader"):e._e()],1):e._e(),e._v(" "),e.showCommitColumns?t("td",{staticClass:"tree-time-ago cursor-default gl-text-right gl-text-subtle"},[e.commitData?t("timeago-tooltip",{attrs:{time:e.commitData.committedDate,"show-date-when-over-a-year":!1}}):e._e(),e._v(" "),e.showSkeletonLoader?t("skeleton-loader"):e._e()],1):e._e()],1)}),[],!1,null,null,null).exports,De={name:"TableIndex",components:{SkeletonLoader:Ee.a,TableHeader:_e.a,TableRow:qe,ParentRow:Se,GlButton:u.a},mixins:[G.a,we.a],props:{commits:{type:Array,required:!1,default:function(){return[]}},path:{type:String,required:!0},entries:{type:Object,required:!1,default:function(){return{}}},isLoading:{type:Boolean,required:!0},loadingPath:{type:String,required:!1,default:""},hasMore:{type:Boolean,required:!0}},emits:["show-more"],apollo:{projectPath:{query:ce.a}},data:()=>({projectPath:"",rowNumbers:{},isProcessingShowMore:!1,appearedItems:{},itemObserver:null}),computed:{totalEntries(){return Object.values(this.entries).flat().length},tableCaption(){return this.isLoading?Object(x.j)(Object(x.a)("Loading files, directories, and submodules in the path %{path} for commit reference %{ref}"),{path:this.path,ref:this.ref}):Object(x.j)(Object(x.a)("Files, directories, and submodules in the path %{path} for commit reference %{ref}"),{path:this.path,ref:this.ref})},showParentRow(){return-1===["","/"].indexOf(this.path)},commitMap(){return new Map(this.commits.map((function(e){return[e.filePath,e]})))}},watch:{totalEntries(e,t){var n=this;e>t&&this.$nextTick((function(){return Object(ye.c)(n.$el,n.itemObserver,n.syncAppearedItems())}))}},mounted(){var e=this;this.itemObserver=Object(ye.a)((function(t){t&&t in e.appearedItems&&(e.appearedItems[t]=!0)}),{once:!0,rootElement:document.querySelector(".js-static-panel-inner")}),this.$nextTick((function(){return Object(ye.c)(e.$el,e.itemObserver,e.syncAppearedItems())}))},beforeDestroy(){var e;null===(e=this.itemObserver)||void 0===e||e.disconnect()},methods:{syncAppearedItems(){var e=this;const t=Object.values(this.entries).flatMap((function(t){return t.map((function(t,n){return[e.itemId(t,n),!1]}))})).filter((function([t]){return!(t in e.appearedItems)}));return t.length&&(this.appearedItems={...this.appearedItems,...Object.fromEntries(t)}),t.map((function([e]){return e}))},itemId:(e,t)=>`${e.flatPath}-${e.id}-${t}`,showMore(){var e=this;this.isProcessingShowMore=!0,setTimeout((function(){e.$emit("show-more"),e.isProcessingShowMore=!1}),0)},generateRowNumber(e,t){var n,i;const{flatPath:r,id:a}=e,o=`${r}-${a}-${t}`,s=(null===(n=this.entries)||void 0===n||null===(n=n.trees)||void 0===n?void 0:n.length)||0,l=(null===(i=this.entries)||void 0===i||null===(i=i.blobs)||void 0===i?void 0:i.length)||0;
7return this.rowNumbers[o]||0===this.rowNumbers[o]||("commit"===e.type?this.rowNumbers[o]=s+l+t:"blob"===e.type?this.rowNumbers[o]=s+t:this.rowNumbers[o]=t),this.rowNumbers[o]},getCommit(e){return this.commitMap.get(Object(o.A)(this.path,e))}}},Ae=Object(X.a)(De,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"tree-content-holder"},[t("div",{staticClass:"table-holder gl-border gl-rounded-lg gl-border-section"},[t("table",{staticClass:"table tree-table",class:{"gl-table-fixed":!e.showParentRow},attrs:{"aria-label":e.tableCaption,"aria-live":"polite","data-testid":"file-tree-table"}},[e._m(0),e._v(" "),t("tbody",[e.showParentRow?t("parent-row",{attrs:{"commit-ref":e.escapedRef,path:e.path,"loading-path":e.loadingPath}}):e._e(),e._v(" "),e._l(e.entries,(function(n){return[e._l(n,(function(n,i){return[e.appearedItems[e.itemId(n,i)]?t("table-row",e._g({key:e.itemId(n,i)+"-row",attrs:{"data-item-id":e.itemId(n,i),sha:n.sha,"project-path":e.projectPath,"current-path":e.path,path:n.flatPath,type:n.type,url:n.webUrl||n.webPath,mode:n.mode,"submodule-tree-url":n.treeUrl,"lfs-oid":n.lfsOid,"loading-path":e.loadingPath,"row-number":e.generateRowNumber(n,i),"commit-info":e.getCommit(n.name)}},e.glListeners())):t("tr",{key:e.itemId(n,i)+"-placeholder",staticClass:"tree-item",attrs:{"data-item-id":e.itemId(n,i),"aria-hidden":"true"}},[t("td",{staticClass:"tree-item-file-name gl-text-transparent"},[e._v(e._s(n.name))]),e._v(" "),t("td",{staticClass:"gl-hidden @sm/panel:gl-table-cell"}),e._v(" "),t("td")])]}))]})),e._v(" "),e.isLoading?e._l(3,(function(n){return t("tr",{key:n,attrs:{"aria-hidden":"true","data-testid":"loader"}},[t("td",[t("skeleton-loader")],1),e._v(" "),t("td",{staticClass:"gl-hidden @sm/panel:gl-block"},[t("skeleton-loader")],1),e._v(" "),t("td",[t("div",{staticClass:"gl-flex @lg/panel:gl-justify-end"},[t("skeleton-loader")],1)])])})):e._e(),e._v(" "),e.hasMore?[t("tr",[t("td",{attrs:{align:"center",colspan:"3"}},[t("gl-button",{attrs:{size:"small",loading:e.isProcessingShowMore||e.isLoading},on:{click:e.showMore}},[e._v("\n                "+e._s(e.s__("ProjectFileTree|Show more"))+"\n              ")])],1)])]:e._e()],2)],1)])])}),[function(){return(0,this._self._c)("table-header")}],!1,null,null,null).exports,$e={name:"TreeContent",i18n:$.B,components:{FileTable:Ae,FilePreview:ke.a},mixins:[G.a],apollo:{projectPath:{query:ce.a}},inject:["refType"],props:{path:{type:String,required:!1,default:"/"},loadingPath:{type:String,required:!1,default:""}},data:()=>({commits:[],projectPath:"",nextPageCursor:"",pagesLoaded:1,entries:{trees:[],submodules:[],blobs:[]},isLoadingFiles:!1,clickedShowMore:!1,fetchCounter:0}),computed:{totalEntries(){return Object.values(this.entries).flat().length},readme(){return Object(de.a)(this.entries.blobs)},pageLimitReached(){return this.totalEntries/this.pagesLoaded>=$.z},hasShowMore(){return!this.clickedShowMore&&this.pageLimitReached}},watch:{path(e,t){t&&e!==t&&(this.entries.trees=[],this.entries.submodules=[],this.entries.blobs=[],this.nextPageCursor="",ge(),this.fetchFiles())}},mounted(){var e=this;se.a.$on($.s,this.refreshCommitData),this.$nextTick((function(){ge(),e.fetchFiles()}))},beforeDestroy(){se.a.$off($.s,this.refreshCommitData)},methods:{fetchFiles(){var e=this;const t=this.path;return this.isLoadingFiles=!0,this.$apollo.query({query:oe.a,variables:{projectPath:this.projectPath,ref:this.ref,refType:Object(M.a)(this.refType),path:t,nextPageCursor:this.nextPageCursor,pageSize:$.A}}).then((function({data:n}){var i;if(n.errors)throw n.errors;if(null==n||null===(i=n.project)||void 0===i||!i.repository||t!==e.path)return;const{project:{repository:{paginatedTree:{pageInfo:r}}}}=n;e.isLoadingFiles=!1,e.entries=Object.keys(e.entries).reduce((function(t,i){return{...t,[i]:e.normalizeData(i,n.project.repository.paginatedTree.nodes[0][i])}}),{}),null!=r&&r.hasNextPage&&(e.nextPageCursor=r.endCursor,e.fetchCounter+=1,e.pageLimitReached&&!e.clickedShowMore||(e.fetchFiles(),e.clickedShowMore=!1))})).catch((function(t){let n;t.graphQLErrors&&(n=t.graphQLErrors.find((function(e){var t;return(null==e||null===(t=e.extensions)||void 0===t?void 0:t.code)===$.o})));const i=n?e.$options.i18n.gitalyError:e.$options.i18n.generalError;Object(_.createAlert)({message:i,captureError:!0})}
7))},normalizeData(e,t){return this.entries[e].concat(t.nodes)},handleRowAppear(e){var t;!1!==(null===(t=window.gon)||void 0===t?void 0:t.show_commit_columns)&&(me(e)||this.loadCommitData(e-e%$.a))},loadCommitData(e){(async function(e,t,n,i,r){if(me(i))return[];Array.from(Array($.a)).forEach((function(e,t){return be(i+t)}));return await ve(e,t,n,i,r)})(this.projectPath,this.path,this.ref,e,this.refType).then(this.setCommitData).catch((function(){}))},setCommitData(e){this.commits=this.commits.concat(e)},async refreshCommitData(){var e;!1!==(null===(e=window.gon)||void 0===e?void 0:e.show_commit_columns)&&(this.commits=await async function(e,t,n,i){const r=[...fe];ge();return(await Promise.all(r.map((function(r){return Array.from(Array($.a)).forEach((function(e,t){return be(r+t)})),ve(e,t,n,r,i)})))).flat()}(this.projectPath,this.path,this.ref,this.refType))},handleShowMore(){this.clickedShowMore=!0,this.pagesLoaded+=1,this.fetchFiles()}}},Re={name:"RepositoryTree",components:{TreeContent:Object(X.a)($e,(function(){var e=this,t=e._self._c;return t("div",[t("file-table",{attrs:{path:e.path,entries:e.entries,"is-loading":e.isLoadingFiles,"loading-path":e.loadingPath,"has-more":e.hasShowMore,commits:e.commits},on:{"show-more":e.handleShowMore,"row-appear":e.handleRowAppear}}),e._v(" "),e.readme?t("file-preview",{attrs:{blob:e.readme}}):e._e()],1)}),[],!1,null,null,null).exports},mixins:[n("G4YM").a,te.a],provide(){return{refType:this.refType}},props:{refType:{type:String,required:!1,default:""}},computed:{isRoot(){return"/"===this.computedPath}},watch:{isRoot:{immediate:!0,handler:"updateElements"}},methods:{updateElements(e){Object(re.a)(".js-show-on-root",e),Object(re.a)(".js-hide-on-root",!e)}}},Le=Object(X.a)(Re,(function(){return(0,this._self._c)("tree-content",{attrs:{path:this.computedPath,"loading-path":this.loadingPath}})}),[],!1,null,null,null).exports,Ve={name:"RepositoryIndex",components:{TreePage:Le},props:{refType:{type:String,required:!1,default:null}},mounted(){this.updateProjectElements(!0)},beforeDestroy(){this.updateProjectElements(!1)},methods:{updateProjectElements(e){Object(re.a)(".js-show-on-project-root",e)}}},Ue=Object(X.a)(Ve,(function(){return(0,this._self._c)("tree-page",{attrs:{"ref-type":this.refType}})}),[],!1,null,null,null).exports;r.default.use(a.a);function Ge(e,t,n){var r;const d={component:Le,props:function(e){return{refType:Object(M.a)(e.query.ref_type||null)}}},u={component:ie,props:function(t){return{projectPath:e,refType:Object(M.a)(t.query.ref_type||null)}}},p=new a.a({mode:"history",base:Object(s.h)(e),routes:[{name:"treePathDecoded",path:`/:dash(-)?/tree/${decodeURI(t)}/:path*`,...d},{name:"treePathEncoded",path:`/:dash(-)?/tree/${Object(l.a)(t)}/:path*`,...d},{name:"treePath",path:`/:dash(-)?/tree/${Object(i.a)(t)}/:path*`,...d},{name:"blobPathDecoded",path:`/:dash(-)?/blob/${decodeURI(t)}/:path*`,...u},{name:"blobPathEncoded",path:`/:dash(-)?/blob/${Object(l.a)(t)}/:path*`,...u},{name:"blobPath",path:`/:dash(-)?/blob/${Object(i.a)(t)}/:path*`,...u},{path:"/",name:"projectRoot",component:Ue,props:{refType:"HEADS"},meta:{refType:"HEADS"}}]}),h=null===(r=document.getElementById("content-body"))||void 0===r?void 0:r.parentElement;return p.afterEach((function({params:{path:i},name:r}){const a=!r.includes("blobPath"),s=(l=i,Array.isArray(l)?Object(o.A)(...l):(null==l?void 0:l.replace(/^\//,""))||"/");var l;window.gl.webIDEPath=Object(o.V)(Object(o.A)("/",e,"edit",decodeURI(t),"-",s,a&&"/"));const d=Array.isArray(i)?Object(o.A)(...i):i;if(Object(c.a)(d||"",t,n),h){const e=(null==r?void 0:r.startsWith("treePath"))||(null==r?void 0:r.startsWith("blobPath"));h.classList.toggle("repository-max-width",e)}})),p}},hxHM:function(e,t,n){"use strict";n("LdIe"),n("z6RN"),n("PTOk"),n("aFm2"),n("R9qC"),n("ZzK0"),n("BzOf"),n("3UXl"),n("iyoE"),n("UezY"),n("hG7+"),n("B++/"),n("47t/");var i=n("zNqO"),r=n("n64d"),a=n("1nO5"),o=n("pTIT"),s=n("Ld9G"),l=n("/2q6"),c=n("Zwln"),d=n("MGi3"),u=n("LTP3"),p=n("MHCW"),h=n("dJQL"),f=n("7I1/"),m=n("nf9o"),g=n("W1rz"),b=n("eOJu"),v=n("+tAD"),k=n("NHYh"),y=n("tslw"),w=n("slyf"),_=n("+18S");const j=o.s,S=function(e){return!e.disabled},O=Object(i.c)({name:r.E,inject:{getBvTabs:{default:function(){return function(){return{}}}}},props:{controls:{type:String,required:!1,default:void 0},id:{type:String,required:!1,default:void 0},noKeyNav:{type:Boolean,required:!1,default:!1},posInSet:{type:Number,required:!1,default:void 0},setSize:{type:Number,required:!1,default:void 0},tab:{required:!1,default:void 0},tabIndex:{type:Number,required:!1,default:void 0}},computed:{bvTabs(){return this.getBvTabs()}},methods:{focus(){Object(d.d)(this.$refs.link)},handleEvent(e){if(this.tab.disabled)return;const{type:t,keyCode:n,shiftKey:i}=e;"click"===t||"keydown"===t&&n===s.h?(Object(u.f)(e),this.$emit(o.e,e)):"keydown"!==t||this.noKeyNav||(-1!==[s.i,s.f,s.e].indexOf(n)?(Object(u.f)(e),i||n===s.e?this.$emit(o.m,e):this.$emit(o.z,e)):-1!==[s.a,s.g,s.b].indexOf(n)&&(Object(u.f)(e),i||n===s.b?this.$emit(o.t,e):this.$emit(o.w,e)))}},render(e){const{id:t,tabIndex:n,setSize:i,posInSet:r,controls:a,handleEvent:o}=this,{title:s,localActive:c,disabled:d,titleItemClass:u,titleLinkClass:p,titleLinkAttributes:h}=this.tab,f=e(_.a,{staticClass:"nav-link",class:[{active:c&&!d,disabled:d},p,c?this.bvTabs.activeNavItemClass:null],props:{disabled:d},attrs:{...h,id:t,role:"tab",tabindex:n,"aria-selected":c&&!d?"true":"false","aria-setsize":i,"aria-posinset":r,"aria-controls":a},on:{click:o,keydown:o},ref:"link"},[this.tab.normalizeSlot(l.y)||s]);return e("li",{staticClass:"nav-item",class:[u],attrs:{role:"presentation"}},[f])}}),x={align:{type:String,required:!1,default:void 0},fill:{type:Boolean,required:!1,default:!1},justified:{type:Boolean,required:!1,default:!1},pills:{type:Boolean,required:!1,default:!1},small:{type:Boolean,required:!1,default:!1}},P=Object(b.m)({...y.b,value:{type:Number},...x,activeNavItemClass:{type:[Array,Object,String],required:!1,default:void 0},activeTabClass:{type:[Array,Object,String],required:!1,default:void 0},contentClass:{type:[Array,Object,String],required:!1,default:void 0},end:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},navClass:{type:[Array,Object,String],required:!1,default:void 0},navWrapperClass:{type:[Array,Object,String],required:!1,default:void 0},noFade:{type:Boolean,required:!1,default:!1},noKeyNav:{type:Boolean,required:!1,default:!1},noNavStyle:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}}),T=Object(i.c)({name:r.D,mixins:[y.a,w.a],model:{prop:"value",event:j},provide(){var e=this;return{getBvTabs:function(){return e}}},props:P,data(){return{currentTab:Object(g.b)(this.value,-1),tabs:[],registeredTabs:[]}},computed:{fade(){return!this.noFade}},watch:{value(e,t){if(e!==t){e=Object(g.b)(e,-1),t=Object(g.b)(t,0);const n=this.tabs[e];
7n&&!n.disabled?this.activateTab(n):e<t?this.previousTab():this.nextTab()}},currentTab(e){let t=-1;this.tabs.forEach((function(n,i){i!==e||n.disabled?n.localActive=!1:(n.localActive=!0,t=i)})),this.$emit(j,t)},tabs(e,t){var n=this;Object(f.a)(e.map((function(e){return e[i.a]})),t.map((function(e){return e[i.a]})))||this.$nextTick((function(){n.$emit(o.d,e.slice(),t.slice())}))},registeredTabs(){this.updateTabs()}},created(){this.$_observer=null},mounted(){this.setObserver(!0)},beforeDestroy(){this.setObserver(!1),this.tabs=[]},methods:{registerTab(e){this.registeredTabs.includes(e)||this.registeredTabs.push(e)},unregisterTab(e){this.registeredTabs=this.registeredTabs.slice().filter((function(t){return t!==e}))},setObserver(e=!0){var t=this;if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e){const e=function(){t.$nextTick((function(){Object(d.A)((function(){t.updateTabs()}))}))};this.$_observer=Object(v.a)(this.$refs.content,e,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs(){const e=this.registeredTabs;let t=[];if(a.e&&e.length>0){const n=e.map((function(e){return"#"+e.safeId()})).join(", ");t=Object(d.C)(n,this.$el).map((function(e){return e.id})).filter(p.a)}return Object(k.a)(e,(function(e,n){return t.indexOf(e.safeId())-t.indexOf(n.safeId())}))},updateTabs(){const e=this.getTabs();let t=e.indexOf(e.slice().reverse().find((function(e){return e.localActive&&!e.disabled})));if(t<0){const{currentTab:n}=this;n>=e.length?t=e.indexOf(e.slice().reverse().find(S)):e[n]&&!e[n].disabled&&(t=n)}t<0&&(t=e.indexOf(e.find(S))),e.forEach((function(e,n){e.localActive=n===t})),this.tabs=e,this.currentTab=t},getButtonForTab(e){return(this.$refs.buttons||[]).find((function(t){return t.tab===e}))},updateButton(e){const t=this.getButtonForTab(e);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab(e){const{currentTab:t,tabs:n}=this;let i=!1;if(e){const r=n.indexOf(e);if(r!==t&&r>-1&&!e.disabled){const e=new c.a(o.a,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(e.type,r,t,e),e.defaultPrevented||(this.currentTab=r,i=!0)}}return i||this.value===t||this.$emit(j,t),i},deactivateTab(e){return!!e&&this.activateTab(this.tabs.filter((function(t){return t!==e})).find(S))},focusButton(e){var t=this;this.$nextTick((function(){Object(d.d)(t.getButtonForTab(e))}))},emitTabClick(e,t){Object(h.d)(t)&&e&&e.$emit&&!e.disabled&&e.$emit(o.e,t)},clickTab(e,t){this.activateTab(e),this.emitTabClick(e,t)},firstTab(e){const t=this.tabs.find(S);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))},previousTab(e){const t=Object(m.a)(this.currentTab,0),n=this.tabs.slice(0,t).reverse().find(S);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},nextTab(e){const t=Object(m.a)(this.currentTab,-1),n=this.tabs.slice(t+1).find(S);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},lastTab(e){const t=this.tabs.slice().reverse().find(S);this.activateTab(t)&&e&&(this.focusButton(t),this.emitTabClick(t,e))}},render(e){var t=this;const{align:n,end:r,fill:a,firstTab:s,justified:c,lastTab:d,nextTab:u,noKeyNav:p,noNavStyle:h,pills:f,previousTab:m,small:g,tabs:b}=this,v=b.find((function(e){return e.localActive&&!e.disabled})),k=b.find((function(e){return!e.disabled})),y=b.map((function(n,r){const{safeId:a}=n;let l=null;return p||(l=-1,(n===v||!v&&n===k)&&(l=null)),e(O,{props:{controls:a?a():null,id:n.controlledBy||(a?a("_BV_tab_button_"):null),noKeyNav:p,posInSet:r+1,setSize:b.length,tab:n,tabIndex:l},on:{[o.e]:function(e){t.clickTab(n,e)},[o.m]:s,[o.z]:m,[o.w]:u,[o.t]:d},key:n[i.a]||r,ref:"buttons",[i.b]:!0})}));let w=e("ul",{staticClass:"nav",class:[this.navClass,{"nav-tabs":!h&&!f,"nav-pills":!h&&f,"nav-fill":a,"nav-justified":c,[(_=n,"justify-content-"+(_="left"===_?"start":"right"===_?"end":_))]:n,small:g}],attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},ref:"nav"},[this.normalizeSlot(l.w)||e(),y,this.normalizeSlot(l.v)||e()]);var _;w=e("div",{class:this.navWrapperClass,key:"bv-tabs-nav"},[this.normalizeSlot(l.A)||e(),w,this.normalizeSlot(l.z)||e()]);const j=this.normalizeSlot()||[];let S=e();0===j.length&&(S=e("div",{class:["tab-pane","active"],key:"bv-empty-tab"},this.normalizeSlot(l.f)));const x=e("div",{staticClass:"tab-content",class:this.contentClass,attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[j,S]);return e(this.tag,{staticClass:"tabs",attrs:{id:this.safeId()}},[r?x:e(),w,r?e():x])}});var C=n("q3oM"),I=n("CbCZ");const B=function(e){return Object.keys(e).every((function(e){return"text"===e||"attributes"===e}))};var N={name:"GlTabs",components:{BTabs:T,GlButton:I.a},inheritAttrs:!1,props:{actionPrimary:{type:Object,required:!1,default:null,validator:function(e){return B(e)}},actionSecondary:{type:Object,required:!1,default:null,validator:function(e){return B(e)}},actionTertiary:{type:Object,required:!1,default:null,validator:function(e){return B(e)}},contentClass:{type:[String,Array,Object],required:!1,default:null},navClass:{type:[String,Array,Object],required:!1,default:null},justified:{type:Boolean,required:!1,default:!1},syncActiveTabWithQueryParams:{type:Boolean,required:!1,default:!1},queryParamName:{type:String,required:!1,default:"tab"},value:{type:Number,required:!1,default:0}},data:()=>({activeTabIndex:0}),computed:{hasActions(){return[this.actionPrimary,this.actionSecondary,this.actionTertiary].some(Boolean)}
7,listeners(){return{...this.$listeners,input:this.handleInput}}},watch:{value:{handler(e){this.activeTabIndex!==e&&(this.activeTabIndex=e)},immediate:!0}},mounted(){this.syncActiveTabWithQueryParams&&(this.syncActiveTabFromQueryParams(),window.addEventListener("popstate",this.syncActiveTabFromQueryParams)),this.$emit("input",this.activeTabIndex)},destroyed(){window.removeEventListener("popstate",this.syncActiveTabFromQueryParams)},methods:{buttonBinding:(e,t)=>e.attributes?e.attributes:C.R[t],primary(){this.$emit("primary")},secondary(){this.$emit("secondary")},tertiary(){this.$emit("tertiary")},async syncActiveTabFromQueryParams(){var e=this;await this.$nextTick();const t=this.getQueryParamValue(),n=this.getTabs().findIndex((function(n,i){return e.getTabQueryParamValue(i)===t}));this.activeTabIndex=-1!==n?n:0},getTabs(){return this.$refs.bTabs.getTabs()},getQueryParamValue(){return new URLSearchParams(window.location.search).get(this.queryParamName)},setQueryParamValueIfNecessary(e){const t=this.getQueryParamValue(),n=this.getTabQueryParamValue(e);if(0===e&&!t||0!==e&&t===n)return;const i=new URLSearchParams(window.location.search);i.set(this.queryParamName,n),window.history.pushState({},"",`${window.location.pathname}?${i.toString()}`)},getTabQueryParamValue(e){const t=this.getTabs()[e];return(null==t?void 0:t.$attrs["query-param-value"])||e.toString()},handleInput(e){this.$emit("input",e),this.activeTabIndex=e,this.syncActiveTabWithQueryParams&&this.setQueryParamValueIfNecessary(e)}}},E=n("tBpV"),F=Object(E.a)(N,(function(){var e=this,t=e._self._c;return t("b-tabs",e._g(e._b({ref:"bTabs",staticClass:"gl-tabs",attrs:{"no-nav-style":!0,"no-fade":!0,"active-nav-item-class":"gl-tab-nav-item-active","content-class":[e.contentClass,"gl-tab-content"],"nav-wrapper-class":"gl-tabs-wrapper","nav-class":[e.navClass,"gl-tabs-nav"],justified:e.justified,value:e.activeTabIndex},scopedSlots:e._u([e._l(Object.keys(e.$slots),(function(t){return{key:t,fn:function(){return[e._t(t)]},proxy:!0}})),e.hasActions?{key:"toolbar-start",fn:function(){return[t("div",{staticClass:"gl-actions-tabs-start",attrs:{role:"toolbar","data-testid":"actions-tabs-start"}},[e.actionPrimary?t("gl-button",e._b({attrs:{"data-testid":"action-primary"},on:{click:e.primary}},"gl-button",e.buttonBinding(e.actionPrimary,"actionPrimary"),!1),[e._v("\n        "+e._s(e.actionPrimary.text)+"\n      ")]):e._e(),e._v(" "),e.actionSecondary?t("gl-button",e._b({attrs:{"data-testid":"action-secondary"},on:{click:e.secondary}},"gl-button",e.buttonBinding(e.actionSecondary,"actionSecondary"),!1),[e._v("\n        "+e._s(e.actionSecondary.text)+"\n      ")]):e._e(),e._v(" "),e.actionTertiary?t("gl-button",e._b({attrs:{"data-testid":"action-tertiary"},on:{click:e.tertiary}},"gl-button",e.buttonBinding(e.actionTertiary,"actionTertiary"),!1),[e._v("\n        "+e._s(e.actionTertiary.text)+"\n      ")]):e._e()],1)]},proxy:!0}:null,e.hasActions?{key:"toolbar-end",fn:function(){return[t("div",{staticClass:"gl-actions-tabs-end",attrs:{role:"toolbar","data-testid":"actions-tabs-end"}},[e.actionPrimary?t("gl-button",e._b({attrs:{"data-testid":"action-primary"},on:{click:e.primary}},"gl-button",e.buttonBinding(e.actionPrimary,"actionPrimary"),!1),[e._v("\n        "+e._s(e.actionPrimary.text)+"\n      ")]):e._e(),e._v(" "),e.actionSecondary?t("gl-button",e._b({attrs:{"data-testid":"action-secondary"},on:{click:e.secondary}},"gl-button",e.buttonBinding(e.actionSecondary,"actionSecondary"),!1),[e._v("\n        "+e._s(e.actionSecondary.text)+"\n      ")]):e._e(),e._v(" "),e.actionTertiary?t("gl-button",e._b({attrs:{"data-testid":"action-tertiary"},on:{click:e.tertiary}},"gl-button",e.buttonBinding(e.actionTertiary,"actionTertiary"),!1),[e._v("\n        "+e._s(e.actionTertiary.text)+"\n      ")]):e._e()],1)]},proxy:!0}:null],null,!0)},"b-tabs",e.$attrs,!1),e.listeners))}),[],!1,null,null,null);t.a=F.exports},"hz+A":function(e,t,n){"use strict";var i=n("HUbu"),r=n("OV98");t.a=function(e,t){var n=-1,a=Object(r.a)(e)?Array(e.length):[];return Object(i.a)(e,(function(e,i,r){a[++n]=t(e,i,r)})),a}},iCwi:function(e,t,n){"use strict";var i=n("CbCZ"),r=n("d85j"),a=n("Jx7q"),o=n("NnjE"),s=n("Mp8J"),l=n("/lV4"),c=n("NmEs"),d=n("EJYk"),u=n("8Igx"),p=n("7F3p"),h=n("ITU6"),f=n("jEr0"),m=n("h6C7"),g=n.n(m),b=n("mvlC"),v=n.n(b),k=n("kytF"),y=n.n(k),w={name:"PreviewIndex",components:{GlButton:i.a,GlIcon:r.a,GlLink:a.a,GlLoadingIcon:o.a},directives:{SafeHtml:s.a},mixins:[f.a],apollo:{ref:f.b,readme:{query:y.a,variables(){return{url:this.blob.webPath}}},projectPath:{query:g.a},editBlob:{query:v.a,variables(){return{projectPath:this.projectPath,filePath:this.blob.path,ref:this.ref,refType:Object(h.a)(this.refType)}},skip(){return!(Object(c.z)()&&this.projectPath&&this.ref&&this.blob.path)},update:function(e){var t,n;return null!==(t=null===(n=e.project)||void 0===n||null===(n=n.repository)||void 0===n||null===(n=n.blobs)||void 0===n||null===(n=n.nodes)||void 0===n?void 0:n[0])&&void 0!==t?t:null},error(e){Object(u.b)("Unexpected error while fetching editBlob query",e),Object(p.b)(e)}}},inject:{refType:{default:null}},props:{blob:{type:Object,required:!0}},data:()=>({readme:null,projectPath:"",editBlob:null,ref:""}),computed:{isLoading(){return this.$apollo.queries.readme.loading},editPath(){var e;return null!==(e=this.editBlob)&&void 0!==e&&e.canModifyBlob?this.editBlob.editBlobPath:null},editButtonAriaLabel(){return Object(l.j)(Object(l.a)("Edit file %{fileName}"),{fileName:this.blob.name})}},watch:{readme(e){var t=this;e&&this.$nextTick((function(){Object(c.n)(),Object(d.a)(t.$refs.readme)}))}},safeHtmlConfig:{ADD_TAGS:["copy-code"]}},_=n("tBpV"),j=Object(_.a)(w,(function(){var e=this,t=e._self._c;return t("article",{staticClass:"file-holder limited-width-container readme-holder"},[t("div",{staticClass:"js-file-title file-title-flex-parent gl-px-4 gl-py-3"},[t("div",{staticClass:"file-header-content"},[t("gl-icon",{attrs:{name:"doc-text"}}),e._v(" "),t("gl-link",{attrs:{href:e.blob.webPath}}
7,[t("strong",[e._v(e._s(e.blob.name))])])],1),e._v(" "),e.editPath?t("gl-button",{attrs:{category:"tertiary",href:e.editPath,"aria-label":e.editButtonAriaLabel,"data-testid":"edit-readme-button"}},[e._v("\n      "+e._s(e.__("Edit file"))+"\n    ")]):e._e()],1),e._v(" "),t("div",{staticClass:"blob-viewer",attrs:{"data-testid":"blob-viewer-content",itemprop:"about"}},[e.isLoading?t("gl-loading-icon",{staticClass:"gl-mx-auto gl-my-6",attrs:{size:"lg",color:"dark"}}):e.readme?t("div",{directives:[{name:"safe-html",rawName:"v-safe-html:[$options.safeHtmlConfig]",value:e.readme.html,expression:"readme.html",arg:e.$options.safeHtmlConfig}],ref:"readme"}):e._e()],1)])}),[],!1,null,null,null);t.a=j.exports},iat5:function(e,t,n){"use strict";var i={name:"DocLine",props:{language:{type:String,required:!0},tokens:{type:Array,required:!0}}},r=n("tBpV"),a=Object(r.a)(i,(function(){var e=this,t=e._self._c;return t("span",{staticClass:"line",attrs:{"data-lang":e.language}},[e._l(e.tokens,(function(n,i){return t("span",{key:i,class:n.class},[e._v(e._s(n.value))])})),e._v(" "),t("br")],2)}),[],!1,null,null,null);t.a=a.exports},ilhb:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getBlobInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filePath"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ref"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"refType"}},type:{kind:"NamedType",name:{kind:"Name",value:"RefType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFetchRawText"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"empty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blobs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paths"},value:{kind:"Variable",name:{kind:"Name",value:"filePath"}}},{kind:"Argument",name:{kind:"Name",value:"ref"},value:{kind:"Variable",name:{kind:"Name",value:"ref"}}},{kind:"Argument",name:{kind:"Name",value:"refType"},value:{kind:"Variable",name:{kind:"Name",value:"refType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawTextBlob"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFetchRawText"}}}]}]},{kind:"Field",name:{kind:"Name",value:"fileType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"language"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blamePath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"editBlobPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"gitpodBlobUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ideEditPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkAndEditPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ideForkAndEditPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"codeNavigationPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"projectBlobPathRoot"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkAndViewPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"environmentFormattedExternalUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"environmentExternalUrlForRouteMap"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canModifyBlob"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canModifyBlobWithWebIde"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canCurrentUserPushToBranch"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"storedExternally"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalStorage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalStorageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rawPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"replacePath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pipelineEditorPath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"simpleViewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fileType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tooLarge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderError"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"richViewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fileType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tooLarge"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderError"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1437}};n.loc.source={body:"# @feature_category: source_code_management\nquery getBlobInfo(\n  $projectPath: ID!\n  $filePath: [String!]!\n  $ref: String!\n  $refType: RefType\n  $shouldFetchRawText: Boolean!\n) {\n  project(fullPath: $projectPath) {\n    __typename\n    id\n    repository {\n      __typename\n      empty\n      blobs(paths: $filePath, ref: $ref, refType: $refType) {\n        __typename\n        nodes {\n          __typename\n          id\n          webPath\n          name\n          size\n          rawSize\n          rawTextBlob @include(if: $shouldFetchRawText)\n          fileType\n          language\n          path\n          blamePath\n          editBlobPath\n          gitpodBlobUrl\n          ideEditPath\n          forkAndEditPath\n          ideForkAndEditPath\n          codeNavigationPath\n          projectBlobPathRoot\n          forkAndViewPath\n          environmentFormattedExternalUrl\n          environmentExternalUrlForRouteMap\n          canModifyBlob\n          canModifyBlobWithWebIde\n          canCurrentUserPushToBranch\n          archived\n          storedExternally\n          externalStorage\n          externalStorageUrl\n          rawPath\n          replacePath\n          pipelineEditorPath\n          simpleViewer {\n            fileType\n            tooLarge\n            type\n            renderError\n          }\n          richViewer {\n            fileType\n            tooLarge\n            type\n            renderError\n          }\n        }\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
7else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getBlobInfo=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getBlobInfo")},ivn1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("B++/"),n("z6RN"),n("47t/");const i={props:{value:{type:[String,Number],default:""}},data(){return{localValue:this.stringifyValue(this.value)}},watch:{value(e){e!==this.localValue&&(this.localValue=this.stringifyValue(e))},localValue(e){e!==this.value&&this.$emit("input",e)}},mounted(){var e=this;const t=this.stringifyValue(this.value);if(this.activeOption){const t=this.predefinedOptions.find((function(t){return t.name===e.activeOption}));this.localValue=t.value}else t!==this.localValue&&(this.localValue=t)},methods:{stringifyValue:e=>null==e?"":String(e)}}},jpoG:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("byxs");var i=n("ewH8"),r=n("GiFX"),a=n("cnhR"),o=n("NmEs"),s=n("3twG"),l=n("hTgk"),c=n("5v28");i.default.use(r.a);const d=new r.a({defaultClient:Object(c.c)()});function u({el:e,router:t}){if(!e)return;const{projectPath:n,ref:r,isBlob:c,webIdeUrl:u,showGitpodButton:p,gitpodEnabled:h,...f}=Object(o.g)(JSON.parse(e.dataset.options)),{cssClasses:m,defaultBranch:g}=e.dataset;new i.default({el:e,name:"WebIdeButtonRoot",router:t,apolloProvider:d,provide:{projectPath:n,...Object(a.a)(f)},render(e){var t;return e(l.default,{props:{isBlob:c,webIdeUrl:c?u:Object(s.V)(Object(s.A)("/",n,"edit",r||g,"-",(null===(t=this.$route)||void 0===t?void 0:t.params.path)||"","/")),projectPath:n,isGitpodEnabledForInstance:Object(o.G)(p),isGitpodEnabledForUser:Object(o.G)(h),cssClasse
7s:m,...f,gitRef:r}})}})}},kiQP:function(e,t,n){"use strict";function i(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}n.d(t,"a",(function(){return c}));const r="function"==typeof Proxy;let a,o;function s(){return void 0!==a||("undefined"!=typeof window&&window.performance?(a=!0,o=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(a=!0,o=globalThis.perf_hooks.performance):a=!1),a?o.now():Date.now();var e}class l{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const i=e.settings[t];n[t]=i.defaultValue}const i="__vue-devtools-plugin-settings__"+e.id;let r=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(r,t)}catch(e){}this.fallbacks={getSettings:()=>r,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(e){}r=e},now:()=>s()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function c(e,t){const n=e,a=i(),o=i().__VUE_DEVTOOLS_GLOBAL_HOOK__,s=r&&n.enableEarlyProxy;if(!o||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&s){const e=s?new l(n,o):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}},l85A:function(e,t,n){"use strict";var i=n("CbCZ"),r=n("fI8y"),a={name:"GlEmptyState",components:{GlButton:i.a,GlIllustration:r.a},props:{title:{type:String,required:!1,default:null},headerLevel:{type:Number,required:!1,default:2,validator:e=>e>0&&e<=6},illustrationName:{type:String,required:!1,default:null},svgPath:{type:String,required:!1,default:null},svgHeight:{type:Number,required:!1,default:144},description:{type:String,required:!1,default:null},primaryButtonLink:{type:String,required:!1,default:null},primaryButtonText:{type:String,required:!1,default:null},secondaryButtonLink:{type:String,required:!1,default:null},secondaryButtonText:{type:String,required:!1,default:null},compact:{type:Boolean,required:!1,default:!1},invertInDarkMode:{type:Boolean,required:!1,default:!0},contentClass:{type:[Array,String,Object],required:!1,default:function(){return[]}}},computed:{headerComponent(){return"h"+this.headerLevel},height(){return this.shouldPreventImageReflow?this.svgHeight:null},shouldPreventImageReflow(){return Boolean(this.svgHeight)&&!this.illustrationName},shouldRenderPrimaryButton(){return Boolean(this.primaryButtonLink&&this.primaryButtonText)},shouldRenderSecondaryButton(){return Boolean(this.secondaryButtonLink&&this.secondaryButtonText)},contentClasses(){return[this.compact?"gl-grow gl-basis-0 gl-px-4":"gl-m-auto gl-p-5",this.contentClass]}}},o=n("tBpV"),s=Object(o.a)(a,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"gl-flex",class:{"gl-empty-state gl-flex-col gl-text-center":!e.compact,"gl-flex-row":e.compact}},[t("div",{class:{"gl-hidden gl-px-4 @sm:gl-block":e.compact,"gl-max-w-full":!e.compact}},[e.illustrationName?t("gl-illustration",{attrs:{name:e.illustrationName}}):e.svgPath?t("img",{staticClass:"gl-max-w-full",class:{"gl-dark-invert-keep-hue":e.invertInDarkMode},attrs:{src:e.svgPath,alt:"",height:e.height}}):e._e()],1),e._v(" "),t("div",{staticClass:"gl-empty-state-content gl-mx-auto gl-my-0",class:e.contentClasses,attrs:{"data-testid":"gl-empty-state-content"}},[e._t("title",(function(){return[t(e.headerComponent,{tag:"component",staticClass:"gl-mb-0 gl-mt-0 gl-text-size-h-display gl-leading-36",class:e.compact?"h5":"h4"},[e._v("\n        "+e._s(e.title)+"\n      ")])]})),e._v(" "),e.description||e.$scopedSlots.description?t("p",{ref:"description",staticClass:"gl-mb-0 gl-mt-4 gl-text-subtle"},[e._t("description",(function(){return[e._v("\n        "+e._s(e.description)+"\n      ")]}))],2):e._e(),e._v(" "),t("div",{staticClass:"gl-mt-5 gl-flex gl-flex-wrap",class:{"gl-justify-center":!e.compact}},[e._t("actions",(function(){return[e.shouldRenderPrimaryButton?t("gl-button",{staticClass:"gl-mb-3",class:e.compact?"gl-mr-3":"gl-mx-2",attrs:{variant:"confirm",href:e.primaryButtonLink}}
7,[e._v(e._s(e.primaryButtonText))]):e._e(),e._v(" "),e.shouldRenderSecondaryButton?t("gl-button",{staticClass:"gl-mb-3 gl-mr-3",class:{"!gl-mx-2":!e.compact},attrs:{href:e.secondaryButtonLink}},[e._v(e._s(e.secondaryButtonText)+"\n        ")]):e._e()]}))],2)],2)])}),[],!1,null,null,null);t.a=s.exports},lMcJ:function(e,t,n){"use strict";n("RFHG"),n("z6RN"),n("xuo1"),n("ZzK0"),n("BzOf");var i=n("xPX6"),r=n("/lV4"),a=n("ZUW3");const o={"?":Object(r.i)("KeyboardKey|Question mark"),"/":Object(r.i)("KeyboardKey|Forward slash"),"\\":Object(r.i)("KeyboardKey|Backslash"),"[":Object(r.i)("KeyboardKey|Opening square bracket"),"]":Object(r.i)("KeyboardKey|Closing square bracket"),";":Object(r.i)("KeyboardKey|Semicolon")};var s=Object(a.b)({name:"KeyboardShortcut",functional:!0,props:{shortcuts:{type:Array,required:!0}},render(e,t){const n=function(){var e;const t={up:"↑",down:"↓",left:"←",right:"→",ctrl:Object(r.i)("KeyboardKey|Ctrl"),shift:Object(r.i)("KeyboardKey|Shift"),enter:Object(r.i)("KeyboardKey|Enter"),esc:Object(r.i)("KeyboardKey|Esc"),command:"⌘",option:null!==(e=window.gl)&&void 0!==e&&null!==(e=e.client)&&void 0!==e&&e.isMac?"⌥":Object(r.i)("KeyboardKey|Alt")};return t.meta=t.command,t.alt=t.option,t.mod=Object(i.i)(!0),t}(),{staticClass:a}=t.data,s=t.props.shortcuts.reduce((function(t,i,a){var s;if((null===(s=window.gl)||void 0===s||null===(s=s.client)||void 0===s||!s.isMac)&&(i.includes("command")||i.includes("meta")))return t;const l=i.split(/([ +])/);return 0!==a&&t.length&&(t.push(` ${Object(r.a)("or")} `),l.length>1&&t.push(e("br"))),l.forEach((function(i){if("+"===i)t.push(" + ");else if(" "===i)t.push(` ${Object(r.a)("then")} `);else{const r=o[i];var a,s;if(r)t.push(e("span",{attrs:{class:"gl-sr-only"}},r),e("kbd",{attrs:{"aria-hidden":!0}},[null!==(a=n[i])&&void 0!==a?a:i]));else t.push(e("kbd",{},[null!==(s=n[i])&&void 0!==s?s:i]))}})),t}),[]);return e("span",{staticClass:a},s)}}),l=n("tBpV"),c=Object(l.a)(s,void 0,void 0,!1,null,null,null);t.a=c.exports},ljRM:function(e,t,n){"use strict";var i={name:"GlAnimatedUploadIcon",extends:n("Vkrm").a},r=n("tBpV"),a=Object(r.a)(i,(function(){var e=this._self._c;return e("svg",{class:[this.iconStateClass,this.iconVariantClass],attrs:{"aria-label":this.ariaLabel,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{staticClass:"gl-animated-upload-base",attrs:{d:"M14.25 9.75V13C14.25 13.6904 13.6904 14.25 13 14.25L3 14.25C2.30964 14.25 1.75 13.6904 1.75 13L1.75 9.75",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}}),this._v(" "),e("path",{staticClass:"gl-animated-upload-line",attrs:{d:"M8 11.25V2.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}}),this._v(" "),e("path",{staticClass:"gl-animated-upload-arrow",attrs:{d:"M11.25 5.31066L8 2.06066L4.75 5.31066",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}})])}),[],!1,null,null,null);t.a=a.exports},mQrz:function(e,t,n){"use strict";var i=n("Je6X"),r=n("Mp8J"),a=n("ktwE"),o=n("OgoU"),s={name:"CodeBlockHighlighted",directives:{SafeHtml:r.a},components:{CodeBlock:o.a},props:{code:{type:String,required:!0},language:{type:String,required:!0},maxHeight:{type:String,required:!1,default:"initial"}},emits:["error"],data:()=>({hljs:null,languageLoaded:!1}),computed:{highlighted(){return this.hljs&&this.languageLoaded?this.hljs.default.highlight(this.code,{language:this.language}).value:Object(i.a)(this.code)}},async mounted(){this.hljs=await this.loadHighlightJS(),this.language&&await this.loadLanguage()},methods:{async loadLanguage(){try{const{default:e}=await a.a[this.language]();this.hljs.default.registerLanguage(this.language,e),this.languageLoaded=!0}catch(e){this.$emit("error",e)}},loadHighlightJS:()=>n.e("d009e65f").then(n.t.bind(null,"7XEj",7))}},l=n("tBpV"),c=Object(l.a)(s,(function(){var e=this._self._c;return e("code-block",{staticClass:"highlight",attrs:{"max-height":this.maxHeight}},[e("span",{directives:[{name:"safe-html",rawName:"v-safe-html",value:this.highlighted,expression:"highlighted"}]})])}),[],!1,null,null,null);t.a=c.exports},o5TZ:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPermissions"}
7,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fullPath"},value:{kind:"Variable",name:{kind:"Name",value:"projectPath"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userPermissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pushCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forkProject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createMergeRequestIn"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:211}};n.loc.source={body:"query getPermissions($projectPath: ID!) {\n  project(fullPath: $projectPath) {\n    id\n    __typename\n    userPermissions {\n      __typename\n      pushCode\n      forkProject\n      createMergeRequestIn\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getPermissions=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getPermissions")},puZj:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n("7F3p");const r=function(e,t){i.b(t,{tags:{component:e}})},a=function({sourceBranch:e,source:t,mergeRequestPath:n}={}){return[{Category:"merge_request",Content:JSON.stringify({url:n||""})},{Category:"pipeline",Content:JSON.stringify({source_branch:e||"",source:t||""})}]}},rgLS:function(e,t,n){"use strict";var i=n("CbCZ"),r=n("zIFf"),a=n("0Q6N"),o=n("ho4C"),s=n("GuZl"),l=n("/lV4"),c=n("9uJu"),d=n("7F3p"),u={name:"SimpleCopyButton",components:{GlButton:i.a},directives:{GlTooltip:r.a},mixins:[a.a],props:{id:{type:String,required:!1,default:function(){return Object(o.a)("clipboard-button-")}},text:{type:String,required:!0},title:{type:String,required:!1,default:Object(l.a)("Copy")},toastMessage:{type:[String,Boolean],required:!1,default:Object(l.a)("Copied to clipboard.")},tooltipPlacement:{type:String,required:!1,default:"top"},tooltipContainer:{type:String,required:!1,default:null},category:{type:String,required:!1,default:"secondary"},size:{type:String,required:!1,default:"medium"},variant:{type:String,required:!1,default:"default"},icon:{type:String,required:!1,default:"copy-to-clipboard"}},emits:["copied","error"],methods:{async onClick(){try{var e;if(await Object(c.a)(this.text,this.$el),"string"==typeof this.toastMessage&&this.toastMessage)null===(e=this.$toast)||void 0===e||e.show(this.toastMessage);this.$emit("copied")}catch(e){this.$emit("error",e),d.b(e)}},onMouseout(){this.$root.$emit(s.b,this.id)}}},p=n("tBpV"),h=Object(p.a)(u,(function(){var e=this;return(0,e._self._c)("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:{title:e.title,placement:e.tooltipPlacement,container:e.tooltipContainer},expression:"{\n    title,\n    placement: tooltipPlacement,\n    container: tooltipContainer,\n  }"}],attrs:{id:e.id,"aria-live":"polite","aria-label":e.$attrs.ariaLabel||e.title,category:e.category,size:e.size,icon:e.icon,variant:e.variant},on:{click:e.onClick,mouseout:e.onMouseout}})}),[],!1,null,null,null);t.a=h.exports},rmfK:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}
7));n("ZzK0"),n("z6RN"),n("BzOf");var i=n("dLPT"),r=n("9MU8");const a=function(e){e.store.tryStore=function(t){const n=e.pinia._s.get(t);if(!n){const e="use"+(t.charAt(0).toUpperCase()+t.slice(1));throw new ReferenceError(`Store '${t}' doesn't exist. Ensure you have called ${e}.`)}return n}},o=function(e){let t,n;const a=function(a){var o,s;null===(o=t)||void 0===o||o(),null===(s=n)||void 0===s||s();const{store:l,name:c,namespaced:d}=a,u=c?function(){return l.state[c]}:function(){return l.state};Object(i.a)(e.store.$state,u())||Object.entries(u()).forEach((function([t,n]){e.store[t]=Object(r.a)(n)}));let p=!1;t=l.subscribe((function(t){if(p)return;const{payload:n,type:i}=t,[a,o]=i.split("/");p=!0,!o&&a in e.store?e.store[a](Object(r.a)(n)):a===c&&o in e.store&&e.store[o](Object(r.a)(n)),p=!1}),{prepend:!0}),n=e.store.$onAction((function({name:e,args:t}){if(p)return;const n=d?`${c}/${e}`:e;n in l._mutations&&(p=!0,l.commit(n,...Object(r.a)(t)),p=!1)}))},o=e.options.syncWith;return o&&a(o),{syncWith:a}}},t8rf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));n("ZzK0"),n("z6RN"),n("BzOf");var i=n("3twG");const r=function(e,t){document.querySelectorAll(e).forEach((function(e){return e.classList.toggle("hidden",!t)}))},a=function(e,t,n){const r=document.querySelector(e);r&&(r.action=Object(i.A)(t,n))}},tnyU:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"setStarStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ProjectID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"starred"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"starProject"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"ObjectField",name:{kind:"Name",value:"starred"},value:{kind:"Variable",name:{kind:"Name",value:"starred"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:154}};n.loc.source={body:"mutation setStarStatus($projectId: ProjectID!, $starred: Boolean!) {\n  starProject(input: { projectId: $projectId, starred: $starred }) {\n    count\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.setStarStatus=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"setStarStatus")},tsC0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("fX3J");const r=Object(i.a)("blob_hash_state",{currentHash:window.location.hash}),a=function(e){r.currentHash=e}},uLzL:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));n("3UXl"),n("iyoE");var i=n("FxFN"),r=n("bDAs"),a=n("6aXW");const o=function({id:e,nameWithNamespace:t,mergeRequestsAccessLevel:n,issuesAccessLevel:o,forkingAccessLevel:s,maxAccessLevel:l,fullPath:c,...d},u=function(){}){const p={...d,id:Object(i.e)(e),nameWithNamespace:t,avatarLabel:t,mergeRequestsAccessLevel:null==n?void 0:n.stringValue,issuesAccessLevel:null==o?void 0:o.stringValue,forkingAccessLevel:null==s?void 0:s.stringValue,isForked:!1,accessLevel:l,availableActions:Object(r.a)(d),fullPath:c,relativeWebUrl:Object(a.h)(c)};return{...p,...u(p)}},s=function(e,t=function(){}){return e.map((function(e){return o(e,t)}))}},"v+Mp":function(e,t,n){"use strict";n.r(t),n.d(t,"LOCAL_MOUSETRAP_DATA_KEY",(function(){return v})),n.d(t,"default",(function(){return y}
7));n("B++/"),n("z6RN"),n("47t/"),n("Tznw"),n("IYH6"),n("6yen"),n("OeRx"),n("l/dT"),n("RqS2"),n("Zy7a"),n("cjZU"),n("OAhk"),n("X42P"),n("mHhP"),n("fn0I"),n("UB/6"),n("imhG"),n("dHQd"),n("yoDG"),n("KeS/"),n("tWNI"),n("8d6S"),n("VwWG"),n("IYHS"),n("rIA9"),n("MViX"),n("zglm"),n("GDOA"),n("hlbI"),n("a0mT"),n("u3H1"),n("ta8/"),n("IKCR"),n("nmTw"),n("W2kU"),n("58fc"),n("7dtT"),n("Rhav"),n("uhEP"),n("eppl"),n("ZzK0"),n("BzOf");var i=n("EmJ/"),r=n.n(i),a=n("I87h"),o=n("ewH8"),s=n("d8P8"),l=n("ygVz"),c=n("C83f"),d=n("O6Bj"),u=n("NmEs"),p=n("rrtD"),h=n("1OWu"),f=n("yQ8t"),m=n("3twG"),g=n("d08M"),b=n("DCaA");const v="local-mousetrap-instance";function k(e){const t=e.closest(".md-area").find(".js-md"),n=new Map;return t.each((function(){const e=r()(this),t=e.data("md-shortcuts");null!=t&&t.length&&n.set(e,t)})),n}class y{constructor(){var e;this.extensions=new Map,this.onToggleHelp=this.onToggleHelp.bind(this),this.helpModalElement=null,this.helpModalVueInstance=null,this.addAll([[g.Gb,this.onToggleHelp],[g.Cb,y.focusSearchFile],[g.Bb,y.focusSearch],[g.i,this.focusFilter.bind(this)],[g.Ib,y.onTogglePerfBar],[g.K,y.hideAppearingContent],[g.Eb,y.onToggleCanary],[g.k,function(){return Object(f.a)(".brand-logo")}],[g.J,function(){return Object(f.a)(".shortcuts-todos")}],[g.j,function(){return Object(f.a)(".dashboard-shortcuts-activity")}],[g.E,function(){return Object(f.a)(".dashboard-shortcuts-issues")}],[g.F,function(){return Object(f.a)(".dashboard-shortcuts-merge_requests, .js-merge-request-dashboard-shortcut")}],[g.H,function(){return Object(f.a)(".dashboard-shortcuts-review_requests, .js-merge-request-dashboard-shortcut")}],[g.G,function(){return Object(f.a)(".dashboard-shortcuts-projects")}],[g.D,function(){return Object(f.a)(".dashboard-shortcuts-groups")}],[g.l,function(){return Object(f.a)(".dashboard-shortcuts-milestones")}],[g.I,function(){return Object(f.a)(".dashboard-shortcuts-snippets")}],[g.Hb,y.toggleMarkdownPreview],[g.b,y.focusDuoChat]]),Object(d.c)((function(e,t,n){return!Object(g.Mb)(g.Hb).includes(n)&&void 0})),null!==(e=gon)&&void 0!==e&&null!==(e=e.features)&&void 0!==e&&e.findAndReplace&&(this.add(g.c,y.toggleFindAndReplaceBar),Object(d.c)((function(e,t,n){return!Object(g.Mb)(g.c).includes(n)&&void 0}))),r()(document).on("click",".js-shortcuts-modal-trigger",this.onToggleHelp),Object(b.a)()&&d.b.pause(),this.filterSelectors=["input[type=search]:not(#diff-tree-search)",".gl-filtered-search-term-input",".filtered-search"]}addExtension(e,t=[],n=new Set){n.add(e);let i=this.extensions.get(e);if(!i){for(const t of null!==(r=e.dependencies)&&void 0!==r?r:[]){var r;n.has(t)||t===y||(n.add(t),this.addExtension(t,[],n))}i=new e(this,...t),this.extensions.set(e,i)}return n.delete(e),i}add(e,t){d.b.bind(Object(g.Mb)(e),t)}addAll(e){var t=this;e.forEach((function(e){return t.add(...e)}))}onToggleHelp(e){var t=this;null!=e&&e.preventDefault&&e.preventDefault(),this.helpModalElement&&this.helpModalVueInstance?(this.helpModalVueInstance.$destroy(),this.helpModalElement.remove(),this.helpModalElement=null,this.helpModalVueInstance=null):(Object(d.d)(),this.helpModalElement=document.createElement("div"),document.body.append(this.helpModalElement),this.helpModalVueInstance=new o.default({el:this.helpModalElement,name:"ShortcutsHelpRoot",components:{ShortcutsHelp:Object(o.defineAsyncComponent)((function(){return Promise.all([n.e("eb3ec019"),n.e("85a2dfb8"),n.e("0dcf7166"),n.e("448174c8")]).then(n.bind(null,"exIq"))}))},render:function(e){return e("shortcuts-help",{on:{hidden:t.onToggleHelp}})}}))}static onTogglePerfBar(e){e.preventDefault();Object(u.G)(Object(u.j)("perf_bar_enabled"))?Object(u.M)("perf_bar_enabled","false",{path:"/"}):Object(u.M)("perf_bar_enabled","true",{path:"/"}),Object(m.F)()}static onToggleCanary(e){e.preventDefault(),Object(p.b)(!Object(p.a)()),Object(m.F)()}static toggleMarkdownPreview(e){document.dispatchEvent(new CustomEvent(s.c,{detail:{keyboardEvent:e}}))}static toggleFindAndReplaceBar(e){r()(document).triggerHandler("markdown-editor:find-and-replace",[e])}focusFilter(e){const t=document.querySelectorAll(this.filterSelectors.join(",")),n=Array.from(t).find((function(e){return e.offsetParent}));null==n||n.focus(),e.preventDefault()}static focusSearch(e){var t;Object(d.d)(),null===(t=document.querySelector("#super-sidebar-search"))||void 0===t||t.click(),l.a.trackEvent("press_keyboard_shortcut_to_activate_command_palette"),e.preventDefault&&e.preventDefault()}static async focusSearchFile(e){var t,n;if(!/^projects:/.test(document.body.dataset.page))return;null!=e&&e.key&&l.a.trackEvent(c.f),null==e||e.preventDefault(),Object(d.d)(),null===(t=document.querySelector("#super-sidebar-search"))||void 0===t||t.click();const i=await Object(h.o)("#super-sidebar-search-modal #search");if(!i)return;const r=null===(n=document.querySelector(".js-repo-breadcrumbs"))||void 0===n?void 0:n.dataset.currentPath;i.value="~"+(r?r+"/":""),i.dispatchEvent(new Event("input"))}static hideAppearingContent(e){document.querySelectorAll(".tooltip, .popover").forEach((function(e){e.style.display="none"})),e.preventDefault&&e.preventDefault()}static focusDuoChat(e){var t;Object(d.d)(),null===(t=document.querySelector(".js-tanuki-bot-chat-toggle"))||void 0===t||t.click(),e.preventDefault&&e.preventDefault()}static initMarkdownEditorShortcuts(e,t){const n=k(e),i=new d.b(e[0]);
7e.data(v,i),n.forEach((function(e,n){i.bind(e,(function(e){e.preventDefault(),t(n)}))}));const r=Object(a.a)([...n.values()]),o=d.b.prototype.stopCallback;i.stopCallback=function(e,t,n){return!r.includes(n)&&o.call(this,e,t,n)}}static removeMarkdownEditorShortcuts(e){const t=e.data(v);t&&k(e).forEach((function(e){t.unbind(e)}))}}},vxCR:function(e,t,n){"use strict";var i={name:"GlCard",props:{headerClass:{type:[String,Object,Array],required:!1,default:""},bodyClass:{type:[String,Object,Array],required:!1,default:""},footerClass:{type:[String,Object,Array],required:!1,default:""}}},r=n("tBpV"),a=Object(r.a)(i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-card"},[e.$scopedSlots.header?t("div",{staticClass:"gl-card-header",class:e.headerClass},[e._t("header")],2):e._e(),e._v(" "),t("div",{staticClass:"gl-card-body",class:e.bodyClass},[e._t("default")],2),e._v(" "),e.$scopedSlots.footer?t("div",{staticClass:"gl-card-footer",class:e.footerClass},[e._t("footer")],2):e._e()])}),[],!1,null,null,null);t.a=a.exports},x5Io:function(e,t,n){"use strict";n.d(t,"a",(function(){return tt}));n("byxs");var i=n("hcsH"),r=n("NmEs"),a=n("SbXM"),o=n("QJd2"),s=n("FIKT"),l=n.n(s),c=n("h6C7"),d=n.n(c),u=n("ewH8"),p=n("CbCZ"),h=n("zIFf"),f=n("8T/f"),m=n("/lV4"),g=n("v+Mp"),b=n("DCaA"),v=n("d08M"),k=n("D+x4"),y=n("C83f"),w=n("3twG"),_=n("FxFN"),j=n("fIfI"),S=n("QUS0"),O=n("2o4f"),x=n("IqcB"),P=n("SXCz"),T=(n("aFm2"),n("z6RN"),n("R9qC"),n("B++/"),n("47t/"),n("NnjE")),C=n("8Igx"),I=n("9uJu"),B=n("7F3p"),N=n("jlnU"),E=n("jEr0"),F=n("sHIo"),q=n("U5ZW"),D=n("ygVz"),A=n("Xt54"),$=n("C1HF"),R=n("20aQ"),L=n.n(R),V=n("fVTn"),U=n.n(V),G=n("xUBk"),M=n.n(G),z=n("ITU6"),H=n("Fbrt"),W=n("2TqH"),Q=n("YmFK"),K=n("OvWE"),J=n.n(K),Z=n("7bJy"),Y=n("uQq6"),X=n("AxB5"),ee=n("nuJP"),te=n("CSd6");var ne={name:"CEBlobButtonGroup",i18n:{replace:Object(m.a)("Replace")},replaceBlobModalId:"modal-replace-blob",components:{GlDisclosureDropdownItem:X.a,GlDisclosureDropdownGroup:ee.a,UploadBlobModal:te.a},mixins:[E.a],inject:{selectedBranch:{default:""},originalBranch:{default:""},blobInfo:{default:function(){return Y.d.repository.blobs.nodes[0]}}},props:{currentRef:{type:String,required:!0},isUsingLfs:{type:Boolean,required:!1,default:!1},userPermissions:{type:Object,required:!0},isReplaceDisabled:{type:Boolean,required:!0}},emits:["show-fork-suggestion"],computed:{replaceFileItem(){return{text:this.$options.i18n.replace,extraAttrs:{"data-testid":"replace",disabled:this.isReplaceDisabled||!this.userPermissions.createMergeRequestIn}}},replaceCommitMessage(){return Object(m.j)(Object(m.a)("Replace %{name}"),{name:this.blobInfo.name})},shouldShowForkSuggestion(){return Object(A.c)(this.userPermissions,this.isUsingLfs,this.blobInfo)}},methods:{showModal(){this.shouldShowForkSuggestion?this.$emit("show-fork-suggestion"):this.$refs[this.$options.replaceBlobModalId].show()}}},ie=n("tBpV"),re=Object(ie.a)(ne,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-group",{attrs:{bordered:""}},[e._t("lock-file-item"),e._v(" "),t("gl-disclosure-dropdown-item",{attrs:{item:e.replaceFileItem,"data-testid":"replace-dropdown-item"},on:{action:e.showModal}}),e._v(" "),t("upload-blob-modal",{ref:e.$options.replaceBlobModalId,attrs:{"modal-id":e.$options.replaceBlobModalId,"commit-message":e.replaceCommitMessage,"target-branch":e.selectedBranch||e.currentRef,"original-branch":e.originalBranch||e.currentRef,"can-push-code":e.userPermissions.pushCode,"can-push-to-branch":e.blobInfo.canCurrentUserPushToBranch,path:e.blobInfo.path,"replace-path":e.blobInfo.replacePath}})],2)}),[],!1,null,null,null).exports,ae=n("VQLg");const oe={btnCopyContentsTitle:Object(m.i)("BlobViewer|Copy contents"),btnDownloadTitle:Object(m.a)("Download"),btnRawTitle:Object(m.i)("BlobViewer|Open raw")};var se={name:"BlobDefaultActionsGroup",i18n:oe,components:{GlDisclosureDropdownItem:X.a,GlDisclosureDropdownGroup:ee.a},inject:{blobHash:{default:""},canDownloadCode:{default:!0},blobInfo:{default:function(){return Y.d.repository.blobs.nodes[0]}}},props:{activeViewerType:{type:String,required:!0},hasRenderError:{type:Boolean,required:!0},isBinaryFileType:{type:Boolean,required:!0},isEmpty:{type:Boolean,required:!0},overrideCopy:{type:Boolean,required:!0}},emits:["copy"],computed:{copyFileContentsItem(){return{text:oe.btnCopyContentsTitle,extraAttrs:{"data-testid":"copy-contents-button","data-clipboard-target":this.getBlobHashTarget,disabled:this.copyDisabled}}},openRawItem(){return{text:oe.btnRawTitle,href:this.blobInfo.rawPath||this.blobInfo.externalStorageUrl,extraAttrs:{target:"_blank"}}},downloadItem(){return{text:oe.btnDownloadTitle,href:this.downloadUrl,extraAttrs:{target:"_blank","data-testid":"download-button"}}},environmentItem(){return{text:this.environmentTitle,href:this.blobInfo.environmentExternalUrlForRouteMap,extraAttrs:{target:"_blank","data-testid":"environment"}}},showCopyButton(){return!this.hasRenderError&&!this.isBinaryFileType},copyDisabled(){return"rich"===this.activeViewerType},getBlobHashTarget(){return this.overrideCopy?null:`[data-blob-hash="${this.blobHash}"]`}
7,downloadUrl(){return Object(w.N)({inline:!1},{url:Object(w.H)(this.blobInfo.rawPath,Object(w.l)())})},showEnvironmentItem(){return this.blobInfo.environmentFormattedExternalUrl&&this.blobInfo.environmentExternalUrlForRouteMap},environmentTitle(){return Object(m.j)(Object(m.i)("BlobViewer|View on %{environmentName}"),{environmentName:this.blobInfo.environmentFormattedExternalUrl})}},methods:{onCopy(){this.overrideCopy&&this.$emit("copy")}}},le=Object(ie.a)(se,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-group",{staticClass:"@sm/panel:gl-hidden",attrs:{bordered:""}},[e.showCopyButton?t("gl-disclosure-dropdown-item",{staticClass:"js-copy-blob-source-btn",attrs:{"data-testid":"copy-item",item:e.copyFileContentsItem},on:{action:e.onCopy}}):e._e(),e._v(" "),e.isBinaryFileType?e._e():t("gl-disclosure-dropdown-item",{attrs:{"data-testid":"open-raw-item",item:e.openRawItem}}),e._v(" "),!e.isEmpty&&e.canDownloadCode?t("gl-disclosure-dropdown-item",{attrs:{"data-test":"download-item",item:e.downloadItem}}):e._e(),e._v(" "),e.showEnvironmentItem?t("gl-disclosure-dropdown-item",{attrs:{"data-testid":"environment-item",item:e.environmentItem}}):e._e()],1)}),[],!1,null,null,null).exports,ce=n("ho4C"),de=n("2ibD"),ue=n("CGBp"),pe=n("O4EH"),he={name:"DeleteBlobModal",components:{CommitChangesModal:pe.a},mixins:[ue.a],props:{deletePath:{type:String,required:!0}},data:()=>({loading:!1}),methods:{show(){this.$refs.modal.show()},handleBlobDelete(e){var t=this;return this.loading=!0,Object(de.a)({method:"post",url:this.deletePath,data:e}).then((function(e){Object(w.T)(e.data.filePath)})).catch((function(e){Object(C.b)("Failed to delete file. See exception details for more information.",e),Object(N.createAlert)({message:Object(m.a)("Failed to delete file! Please try again."),error:e})})).finally((function(){t.loading=!1}))}}},fe=Object(ie.a)(he,(function(){var e=this._self._c;return e("commit-changes-modal",this._g(this._b({ref:"modal",attrs:{loading:this.loading},on:{"submit-form":this.handleBlobDelete},scopedSlots:this._u([{key:"form-fields",fn:function(){return[e("input",{attrs:{type:"hidden",name:"_method",value:"delete"}})]},proxy:!0}])},"commit-changes-modal",this.$attrs,!1),this.glListeners()))}),[],!1,null,null,null).exports,me={name:"BlobDeleteFileGroup",components:{GlDisclosureDropdownGroup:ee.a,GlDisclosureDropdownItem:X.a,DeleteBlobModal:fe},inject:{selectedBranch:{default:""},originalBranch:{default:""},blobInfo:{default:function(){return Y.d.repository.blobs.nodes[0]}}},props:{currentRef:{type:String,required:!0},isEmptyRepository:{type:Boolean,required:!1,default:!1},isUsingLfs:{type:Boolean,required:!1,default:!1},userPermissions:{type:Object,required:!0},disabled:{type:Boolean,required:!1,default:!1}},emits:["show-fork-suggestion"],computed:{deleteFileItem(){return{text:Object(m.a)("Delete"),extraAttrs:{"data-testid":"delete",disabled:this.disabled||!this.userPermissions.createMergeRequestIn}}},deleteModalId:()=>Object(ce.a)("delete-modal"),deleteModalCommitMessage(){return Object(m.j)(Object(m.a)("Delete %{name}"),{name:this.blobInfo.name})},shouldShowForkSuggestion(){return Object(A.c)(this.userPermissions,this.isUsingLfs,this.blobInfo)}},methods:{showModal(){this.disabled||(this.shouldShowForkSuggestion?this.$emit("show-fork-suggestion"):this.$refs[this.deleteModalId].show())}}},ge=Object(ie.a)(me,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-group",{attrs:{bordered:""}},[t("gl-disclosure-dropdown-item",{attrs:{item:e.deleteFileItem,variant:"danger"},on:{action:e.showModal}}),e._v(" "),t("delete-blob-modal",{ref:e.deleteModalId,attrs:{"delete-path":e.blobInfo.webPath,"modal-id":e.deleteModalId,"commit-message":e.deleteModalCommitMessage,"target-branch":e.selectedBranch||e.currentRef,"original-branch":e.originalBranch||e.currentRef,"can-push-code":e.userPermissions.pushCode,"can-push-to-branch":e.blobInfo.canCurrentUserPushToBranch,"empty-repo":e.isEmptyRepository,"is-using-lfs":e.isUsingLfs}})],1)}),[],!1,null,null,null).exports,be=n("0Q6N"),ve=n("O6Bj"),ke=n("tsC0"),ye=n("D9dR"),we={name:"PermalinkDropdownItem",components:{GlDisclosureDropdownItem:X.a},mixins:[D.a.mixin(),be.a],props:{permalinkPath:{type:String,required:!0},source:{type:String,required:!0,validator:function(e){return["blob","repository"].includes(e)}}},data:()=>({mousetrap:null}),computed:{permalinkShortcutKey:()=>Object(v.Mb)(v.ob)[0],shortcutsDisabled:()=>Object(b.a)(),currentQueryParams(){var e;const t={};return null!==(e=this.$route)&&void 0!==e&&null!==(e=e.query)&&void 0!==e&&e.blame&&(t.blame=this.$route.query.blame),t},absolutePermalinkPath(){return Object(ye.a)(this.permalinkPath,ke.a.currentHash,this.currentQueryParams)}},mounted(){this.mousetrap=new ve.b,this.mousetrap.bind(Object(v.Mb)(v.ob),this.triggerCopyPermalink),window.addEventListener("hashchange",this.onHashChange)},beforeDestroy(){this.mousetrap.unbind(Object(v.Mb)(v.ob)),window.removeEventListener("hashchange",this.onHashChange)},methods:{onHashChange(){Object(ke.b)(window.location.hash||"")},triggerCopyPermalink(){this.$refs.copyPermalinkButton.$el.click(),this.onCopyPermalink("shortcut")},onCopyPermalink(e){this.$toast.show(Object(m.a)("Permalink copied to clipboard.")),this.trackEvent("click_permalink_button_in_overflow_menu",{label:e,property:this.source})}}},_e=Object(ie.a)(we,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-item",{ref:"copyPermalinkButton",attrs:{"aria-keyshortcuts":e.permalinkShortcutKey,"data-testid":"permalink","data-clipboard-text":e.absolutePermalinkPath,"data-clipboard-handle-tooltip":"false"},on:{action:function(t){return e.onCopyPermalink("click")}},scopedSlots:e._u([{key:"list-item",fn:function(){return[t("span",{staticClass:"gl-flex gl-items-center gl-justify-between"},[t("span",[e._v(e._s(e.__("Copy permalink")))]),e._v(" "),e.permalinkShortcutKey&&!e.shortcutsDisabled?t("kbd",{staticClass:"flat"}
7,[e._v(e._s(e.permalinkShortcutKey))]):e._e()])]},proxy:!0}])})}),[],!1,null,null,null).exports,je={name:"BlobRepositoryActionsGroup",components:{GlDisclosureDropdownGroup:ee.a,GlDisclosureDropdownItem:X.a,PermalinkDropdownItem:_e},inject:["blobInfo"],props:{permalinkPath:{type:String,required:!0}},computed:{findFileShortcutKey:()=>Object(v.Mb)(v.Cb)[0],shortcutsDisabled:()=>Object(b.a)(),blameItem(){return{text:Object(m.a)("Blame"),href:this.blobInfo.blamePath,extraAttrs:{"data-testid":"blame"}}},showBlameButton(){return Object($.b)(this.blobInfo)}},methods:{handleFindFile(){D.a.trackEvent(y.e),g.default.focusSearchFile()}}},Se=Object(ie.a)(je,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown-group",[t("gl-disclosure-dropdown-item",{staticClass:"@sm/panel:gl-hidden",attrs:{"aria-keyshortcuts":e.findFileShortcutKey,"data-testid":"find"},on:{action:e.handleFindFile},scopedSlots:e._u([{key:"list-item",fn:function(){return[t("span",{staticClass:"gl-flex gl-items-center gl-justify-between"},[t("span",[e._v(e._s(e.__("Find file")))]),e._v(" "),e.findFileShortcutKey&&!e.shortcutsDisabled?t("kbd",{staticClass:"flat"},[e._v(e._s(e.findFileShortcutKey))]):e._e()])]},proxy:!0}])}),e._v(" "),e.showBlameButton?t("gl-disclosure-dropdown-item",{staticClass:"js-blob-blame-link @sm/panel:gl-hidden",attrs:{item:e.blameItem,"data-testid":"blame-dropdown-item"}}):e._e(),e._v(" "),t("permalink-dropdown-item",{attrs:{"permalink-path":e.permalinkPath,source:"blob"}})],1)}),[],!1,null,null,null).exports;var Oe={name:"CEBlobOverflowMenu",i18n:{dropdownLabel:Object(m.a)("File actions"),dropdownTooltip:Object(m.a)("Actions"),fetchError:Object(m.a)("An error occurred while fetching lock information, please try again.")},components:{BlobRepositoryActionsGroup:Se,GlDisclosureDropdown:W.a,BlobDefaultActionsGroup:le,BlobButtonGroup:re,BlobDeleteFileGroup:ge},directives:{GlTooltipDirective:h.a},mixins:[Object(Q.a)()],inject:["blobInfo","currentRef"],provide(){var e=this;return{blobInfo:Object(u.computed)((function(){var t;return null!==(t=e.blobInfo)&&void 0!==t?t:{}}))}},props:{projectPath:{type:String,required:!0},isBinaryFileType:{type:Boolean,required:!1,default:!1},overrideCopy:{type:Boolean,required:!1,default:!1},isEmptyRepository:{type:Boolean,required:!1,default:!1},isUsingLfs:{type:Boolean,required:!1,default:!1},eeCanModifyFile:{type:Boolean,required:!1,default:!1},eeCanCreateLock:{type:Boolean,required:!1,default:!1},eeCanDestroyLock:{type:Boolean,required:!1,default:!1},eeIsLocked:{type:Boolean,required:!1,default:!1}},emits:["copy","show-fork-suggestion"],apollo:{projectInfo:{query:J.a,variables(){return{projectPath:this.projectPath}},update({project:e}={}){this.userPermissions=(null==e?void 0:e.userPermissions)||Y.d.userPermissions},error(){Object(N.createAlert)({message:this.$options.i18n.fetchError})}}},data(){return{userPermissions:Y.d.userPermissions,activeViewerType:Z.n,isLoggedIn:Object(r.z)(),dropdownTooltipText:this.$options.i18n.dropdownTooltip}},computed:{isLoading(){var e;return null===(e=this.$apollo)||void 0===e?void 0:e.queries.projectInfo.loading},viewer(){return this.activeViewerType===Z.k?this.blobInfo.richViewer:this.blobInfo.simpleViewer},hasRenderError(){var e;return Boolean(null===(e=this.viewer)||void 0===e?void 0:e.renderError)},canModifyFile(){return!this.glLicensedFeatures.fileLocks||this.eeCanModifyFile},isLocked(){return!!this.glLicensedFeatures.fileLocks&&this.eeIsLocked}},watch:{"$route.query.plain":{handler(e){this.updateViewerFromQueryParam(e)}}},mounted(){var e,t;this.updateViewerFromQueryParam(null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.plain);const n=null===(t=this.$refs.disclosureDropdown)||void 0===t?void 0:t.$el;n&&(n.addEventListener("mouseover",this.updateDropdownTooltipText),n.addEventListener("mouseleave",this.updateDropdownTooltipText))},beforeDestroy(){var e;const t=null===(e=this.$refs.disclosureDropdown)||void 0===e?void 0:e.$el;t&&(t.removeEventListener("mouseover",this.updateDropdownTooltipText),t.removeEventListener("mouseleave",this.updateDropdownTooltipText))},methods:{updateDropdownTooltipText(e){var t,n,i;const r=null===(t=this.$refs.buttonGroup)||void 0===t||null===(t=t.$el)||void 0===t||null===(n=t.contains)||void 0===n?void 0:n.call(t,e.target),a=null===(i=this.$refs.deleteFileGroup)||void 0===i||null===(i=i.$el)||void 0===i?void 0:i.contains(e.target);!r&&!a||this.userPermissions.createMergeRequestIn?this.dropdownTooltipText=this.$options.i18n.dropdownTooltip:this.dropdownTooltipText=ae.f},updateViewerFromQueryParam(e){const t=Boolean(this.blobInfo.richViewer),n="1"===e||!t;this.switchViewer(n?Z.n:Z.k)},switchViewer(e){this.activeViewerType=e||Z.n},onCopy(){this.overrideCopy&&this.$emit("copy")},onShowForkSuggestion(){this.$emit("show-fork-suggestion")}}},xe=Object(ie.a)(Oe,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown",{directives:[{name:"gl-tooltip-directive",rawName:"v-gl-tooltip-directive.hover",value:e.dropdownTooltipText,expression:"dropdownTooltipText",modifiers:{hover:!0}}],ref:"disclosureDropdown",staticClass:"gl-mr-0",attrs:{"no-caret":"",icon:"ellipsis_v","data-testid":"blob-overflow-menu","toggle-text":e.$options.i18n.dropdownLabel,"text-sr-only":"",category:"tertiary"}},[t("blob-repository-actions-group",{attrs:{"permalink-path":e.blobInfo.permalinkPath}}),e._v(" "),e.isLoggedIn&&!e.blobInfo.archived?t("blob-button-group",{ref:"buttonGroup",attrs:{"current-ref":e.currentRef,"project-path":e.projectPath,"is-using-lfs":e.isUsingLfs,"user-permissions":e.userPermissions,"is-loading":e.isLoading,"can-create-lock":e.eeCanCreateLock,"can-destroy-lock":e.eeCanDestroyLock,"is-replace-disabled":!e.canModifyFile&&e.
7isLocked,"is-locked":e.isLocked},on:{"show-fork-suggestion":e.onShowForkSuggestion}}):e._e(),e._v(" "),t("blob-default-actions-group",{attrs:{"active-viewer-type":e.activeViewerType,"has-render-error":e.hasRenderError,"is-binary-file-type":e.isBinaryFileType,"is-empty":e.isEmptyRepository,"override-copy":e.overrideCopy},on:{copy:e.onCopy}}),e._v(" "),e.isLoggedIn&&!e.blobInfo.archived?t("blob-delete-file-group",{ref:"deleteFileGroup",attrs:{"current-ref":e.currentRef,"is-empty-repository":e.isEmptyRepository,"is-using-lfs":e.isUsingLfs,"user-permissions":e.userPermissions,disabled:!e.canModifyFile&&e.isLocked},on:{"show-fork-suggestion":e.onShowForkSuggestion}}):e._e()],1)}),[],!1,null,null,null).exports,Pe={name:"ForkSuggestionModal",components:{GlModal:n("Oxu3").a},mixins:[ue.a],props:{visible:{type:Boolean,required:!0},forkPath:{type:String,required:!0}},computed:{primaryAction(){return{text:Object(m.a)("Fork"),attributes:{variant:"confirm",href:this.forkPath,class:"gl-w-full sm:gl-w-auto","data-method":"post","data-testid":"fork"}}},secondaryAction:()=>({text:Object(m.a)("Cancel"),attributes:{class:"gl-w-full sm:gl-w-auto","data-testid":"cancel"}})}},Te=Object(ie.a)(Pe,(function(){var e=this,t=e._self._c;return t("gl-modal",e._g({ref:"forkSuggestionModal",attrs:{"modal-id":"fork-suggestion-modal","no-focus-on-show":"",visible:e.visible,title:e.__("Fork to make changes"),"action-primary":e.primaryAction,"action-secondary":e.secondaryAction}},e.glListeners()),[t("p",{attrs:{"data-testid":"message"}},[e._v("\n    "+e._s(e.__("You're not allowed to make changes to this project directly. Create a fork to make changes and submit a merge request."))+"\n  ")])])}),[],!1,null,null,null).exports,Ce={name:"BlobControls",i18n:{findFile:Object(m.a)("Find file"),blame:Object(m.a)("Blame"),errorMessage:Object(m.a)("An error occurred while loading file controls. Refresh the page."),archivedProjectTooltip:Object(m.a)("You cannot edit files in archived projects"),noPermissionTooltip:ae.f,lfsFileTooltip:Object(m.a)("You cannot edit files stored in LFS")},buttonClassList:"@sm/panel:gl-w-auto gl-w-full @sm/panel:gl-mt-0 gl-mt-3",components:{OpenMrBadge:H.a,GlButton:p.a,GlLoadingIcon:T.a,BlobOverflowMenu:xe,ForkSuggestionModal:Te,WebIdeLink:Object(u.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"hTgk"))})),LockButton:Object(u.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"4b03"))}))},directives:{GlTooltip:h.a},mixins:[E.a,Object(F.a)(),D.a.mixin()],inject:["currentRef","showWebIdeButton"],provide(){var e=this;return{blobInfo:Object(u.computed)((function(){var t;return null!==(t=e.blobInfo)&&void 0!==t?t:Y.d.repository.blobs.nodes[0]})),currentRef:Object(u.computed)((function(){var t;return null!==(t=e.currentRef)&&void 0!==t?t:e.blobInfo.ref}))}},props:{projectPath:{type:String,required:!0},projectIdAsNumber:{type:Number,required:!0},refType:{type:String,required:!1,default:null},isBinary:{type:Boolean,required:!1,default:!1}},apollo:{project:{query:L.a,variables(){return{projectPath:this.projectPath,filePath:this.filePath,ref:this.ref,refType:Object(z.a)(this.refType)}},skip(){return!this.filePath},error(e){this.hasProjectQueryErrors=!0,Object(N.createAlert)({message:this.$options.i18n.errorMessage}),Object(C.b)("Failed to fetch blob controls. See exception details for more information.",e),B.b(e)}},currentUser:{query:U.a,error(e){Object(N.createAlert)({message:this.$options.i18n.errorMessage}),Object(C.b)("Failed to fetch current user. See exception details for more information.",e),B.b(e)}},gitpodEnabled:{query:M.a,error(e){Object(N.createAlert)({message:this.$options.i18n.errorMessage}),Object(C.b)("Failed to fetch application info. See exception details for more information.",e),B.b(e)}}},data:()=>({project:{},currentUser:{},gitpodEnabled:!1,isForkSuggestionModalVisible:!1,hasProjectQueryErrors:!1}),computed:{isLoadingRepositoryBlob(){return this.$apollo.queries.project.loading},filePath(){return this.$route.params.path},blobInfo(){var e;return(null===(e=this.project)||void 0===e||null===(e=e.repository)||void 0===e||null===(e=e.blobs)||void 0===e?void 0:e.nodes[0])||{}},repository(){var e;return(null===(e=this.project)||void 0===e?void 0:e.repository)||Y.d.repository},userPermissions(){var e;return(null===(e=this.project)||void 0===e?void 0:e.userPermissions)||Y.d.userPermissions},showBlameButton(){return!this.glFeatures.inlineBlame&&Object($.b)(this.blobInfo)},isUsingLfs(){return Object($.a)(this.blobInfo)},isBinaryFileType(){var e,t;return this.isBinary||(null===(e=this.blobInfo.simpleViewer)||void 0===e?void 0:e.fileType)!==Y.y&&(null===(t=this.blobInfo.simpleViewer)||void 0===t?void 0:t.fileType)!==Y.e},shortcuts:()=>({findFile:Object(v.Mb)(v.Cb)[0]}),findFileTooltip(){if(Object(b.a)())return null;const{description:e}=v.Cb,t=this.shortcuts.findFile;return this.formatTooltipWithShortcut(e,t)},shouldShowSingleFileEditorForkSuggestion(){return Object(A.d)(this.userPermissions,this.isUsingLfs,this.blobInfo.canModifyBlob)},shouldShowWebIdeForkSuggestion(){return Object(A.e)(this.userPermissions,this.isUsingLfs,this.blobInfo.canModifyBlobWithWebIde)},isWebIdeDisabled(){return Object.values(this.webIdeDisabledReasons).some((function({condition:e}){return!0===e()}))},webIdeDisabledTooltip(){var e;const t=Object.values(this.webIdeDisabledReasons).find((function(e){return e.condition()}));return null!==(e=null==t?void 0:t.message)&&void 0!==e?e:""},webIdeDisabledReasons(){var e=this;return{queryErrors:{condition:function(){return e.hasProjectQueryErrors},message:this.$options.i18n.errorMessage},archived:{condition:function(){return e.blobInfo.archived},message:this.$options.i18n.archivedProjectTooltip},lfs:{condition:function(){return e.isUsingLfs},message:this.$options.i18n.lfsFileTooltip},fileModifyPermission:{condition:function(){return!e.showWebIdeButton},message:this.$options.i18n.noPermissionTooltip}}}},watch:{blobInfo(){Object(q.a)()}},methods:{formatTooltipWithShortcut:(e,t)=>Object(k.b)(`${e} <kbd class="flat gl-ml-1" aria-hidden=true>${t}</kbd>
7`),handleFindFile(){this.trackEvent(y.e),g.default.focusSearchFile()},handleBlameClick(){this.trackEvent(y.c)},onCopy(){Object(I.a)(this.blobInfo.rawTextBlob)},onShowForkSuggestion(){this.isForkSuggestionModalVisible=!0},onEdit(e){const{ideEditPath:t,editBlobPath:n}=this.blobInfo;Object(A.a)(e,this.shouldShowWebIdeForkSuggestion,this.shouldShowSingleFileEditorForkSuggestion)?this.isForkSuggestionModalVisible=!0:Object(w.T)(Object(A.b)(e)?t:n)}}},Ie=Object(ie.a)(Ce,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gl-flex gl-flex-wrap gl-items-center gl-gap-3 gl-self-end",attrs:{"data-testid":"blob-controls"}},[t("open-mr-badge",{attrs:{"project-path":e.projectPath,"blob-path":e.filePath,"current-ref":e.currentRef}}),e._v(" "),e.blobInfo.path?t("lock-button",{attrs:{"project-path":e.projectPath,path:e.blobInfo.path}}):e._e(),e._v(" "),t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.html",value:e.findFileTooltip,expression:"findFileTooltip",modifiers:{html:!0}}],staticClass:"gl-hidden @md/panel:gl-inline-flex",class:e.$options.buttonClassList,attrs:{title:e.findFileTooltip,"aria-keyshortcuts":e.shortcuts.findFile,"data-testid":"find"},on:{click:e.handleFindFile}},[e._v("\n    "+e._s(e.$options.i18n.findFile)+"\n  ")]),e._v(" "),e.showBlameButton?t("gl-button",{staticClass:"js-blob-blame-link gl-hidden @md/panel:gl-inline-flex",class:e.$options.buttonClassList,attrs:{"data-testid":"blame",href:e.blobInfo.blamePath},on:{click:e.handleBlameClick}},[e._v("\n    "+e._s(e.$options.i18n.blame)+"\n  ")]):e._e(),e._v(" "),t("web-ide-link",{staticClass:"!gl-m-0",attrs:{"show-edit-button":!e.isBinaryFileType,"show-web-ide-button":e.showWebIdeButton,"edit-url":e.blobInfo.editBlobPath,"web-ide-url":e.blobInfo.ideEditPath,"needs-to-fork":e.shouldShowSingleFileEditorForkSuggestion,"needs-to-fork-with-web-ide":e.shouldShowWebIdeForkSuggestion,"show-pipeline-editor-button":Boolean(e.blobInfo.pipelineEditorPath),"pipeline-editor-url":e.blobInfo.pipelineEditorPath,"gitpod-url":e.blobInfo.gitpodBlobUrl,"is-gitpod-enabled-for-instance":e.gitpodEnabled,"is-gitpod-enabled-for-user":e.currentUser&&e.currentUser.gitpodEnabled,"project-path":e.projectPath,"project-id":e.projectIdAsNumber,"user-preferences-gitpod-path":e.currentUser&&e.currentUser.preferencesGitpodPath,"user-profile-enable-gitpod-path":e.currentUser&&e.currentUser.profileEnableGitpodPath,"is-blob":"","disable-fork-modal":"",disabled:e.isWebIdeDisabled,"custom-tooltip-text":e.webIdeDisabledTooltip},on:{edit:e.onEdit}}),e._v(" "),e.isLoadingRepositoryBlob||e.hasProjectQueryErrors?e._e():t("fork-suggestion-modal",{attrs:{visible:e.isForkSuggestionModalVisible,"fork-path":e.blobInfo.forkAndViewPath},on:{hide:function(t){e.isForkSuggestionModalVisible=!1}}}),e._v(" "),e.isLoadingRepositoryBlob?t("gl-loading-icon",{staticClass:"gl-p-3",attrs:{label:e.__("Loading file actions"),size:"sm",color:"dark",variant:"spinner",inline:!1}}):e._e(),e._v(" "),e.isLoadingRepositoryBlob||e.hasProjectQueryErrors?e._e():t("blob-overflow-menu",{attrs:{"project-path":e.projectPath,"is-binary-file-type":e.isBinaryFileType,"override-copy":!0,"is-empty-repository":e.repository.empty,"is-using-lfs":e.isUsingLfs},on:{copy:e.onCopy,"show-fork-suggestion":e.onShowForkSuggestion}})],1)}),[],!1,null,null,null).exports,Be=n("bmCv"),Ne=n.n(Be);const Ee={dropdownLabel:Object(m.a)("Actions"),compare:Object(m.a)("Compare")};var Fe={name:"RepositoryOverflowMenu",i18n:Ee,components:{GlDisclosureDropdown:W.a,GlDisclosureDropdownItem:X.a,PermalinkDropdownItem:_e},directives:{GlTooltipDirective:h.a},inject:["comparePath"],props:{fullPath:{type:String,required:!0},path:{type:String,required:!1,default:""},currentRef:{type:String,required:!0}},apollo:{permalinkPath:{query:Ne.a,variables(){return this.queryVariables},update(e){var t;return null==e||null===(t=e.project)||void 0===t||null===(t=t.repository)||void 0===t||null===(t=t.paginatedTree)||void 0===t||null===(t=t.nodes[0])||void 0===t?void 0:t.permalinkPath},error(e){Object(C.b)("Failed to fetch permalink. See exception details for more information.",e),B.b(e)}}},data:()=>({permalinkPath:""}),computed:{compareItem(){return{text:Ee.compare,href:this.comparePath,extraAttrs:{"data-testid":"tree-compare-control",rel:"nofollow"}}},queryVariables(){return{fullPath:this.fullPath,path:this.path,ref:this.currentRef}}},watch:{queryVariables:{handler(){this.$apollo.queries.permalinkPath.refetch()},deep:!0}}},qe=Object(ie.a)(Fe,(function(){var e=this,t=e._self._c;return t("gl-disclosure-dropdown",{directives:[{name:"gl-tooltip-directive",rawName:"v-gl-tooltip-directive",value:e.$options.i18n.dropdownLabel,expression:"$options.i18n.dropdownLabel"}],attrs:{"no-caret":"",icon:"ellipsis_v","data-testid":"repository-overflow-menu",placement:"bottom-end",category:"tertiary","toggle-text":e.$options.i18n.dropdownLabel,"text-sr-only":""}},[e.permalinkPath?t("permalink-dropdown-item",{attrs:{"permalink-path":e.permalinkPath,source:"repository"}}
7):e._e(),e._v(" "),e.comparePath?t("gl-disclosure-dropdown-item",{staticClass:"shortcuts-compare",attrs:{item:e.compareItem}}):e._e()],1)}),[],!1,null,null,null).exports,De=(n("UezY"),n("hG7+"),n("5lKJ")),Ae=n("GuZl"),$e=n("o5TZ"),Re=n.n($e),Le=n("L78D"),Ve=n("hvGG");const Ue=Object(m.a)("Directory name"),Ge=Object(m.a)("Add new directory");var Me={name:"NewDirectoryModal",components:{GlFormGroup:Le.a,GlFormInput:Ve.a,CommitChangesModal:pe.a},mixins:[ue.a],i18n:{DIR_LABEL:Ue,COMMIT_MESSAGE:Ge},props:{modalId:{type:String,required:!0},targetBranch:{type:String,required:!0},originalBranch:{type:String,required:!0},path:{type:String,required:!0},canPushCode:{type:Boolean,required:!0},canPushToBranch:{type:Boolean,required:!0}},data:()=>({dir:null,loading:!1,error:null}),computed:{isValid(){return Boolean(this.dir)}},methods:{submitForm(e){var t=this;return this.loading=!0,this.error=null,e.append("dir_name",this.dir),e.has("branch_name")||e.append("branch_name",this.originalBranch),de.a.post(this.path,e).then((function(e){Object(w.T)(e.data.filePath)})).catch((function({response:e}){var n;t.error=null==e||null===(n=e.data)||void 0===n?void 0:n.error})).finally((function(){t.loading=!1}))}}},ze=Object(ie.a)(Me,(function(){var e=this,t=e._self._c;return t("commit-changes-modal",e._g(e._b({ref:e.modalId,attrs:{loading:e.loading,error:e.error,valid:e.isValid,"modal-id":e.modalId,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,"commit-message":e.$options.i18n.COMMIT_MESSAGE,"target-branch":e.targetBranch,"original-branch":e.originalBranch},on:{"submit-form":e.submitForm},scopedSlots:e._u([{key:"body",fn:function(){return[t("gl-form-group",{attrs:{label:e.$options.i18n.DIR_LABEL,"label-for":"dir_name"}},[t("gl-form-input",{attrs:{id:"dir_name",disabled:e.loading,name:"dir_name"},model:{value:e.dir,callback:function(t){e.dir=t},expression:"dir"}})],1)]},proxy:!0}])},"commit-changes-modal",e.$attrs,!1),e.glListeners()))}),[],!1,null,null,null).exports,He={name:"AddToTree",components:{GlDisclosureDropdown:W.a,UploadBlobModal:te.a,NewDirectoryModal:ze},directives:{GlModal:De.a,GlTooltip:h.a},mixins:[D.a.mixin()],props:{currentPath:{type:String,required:!1,default:""},canEditTree:{type:Boolean,required:!1,default:!1},canCollaborate:{type:Boolean,required:!1,default:!1},newBlobPath:{type:String,required:!1,default:null},forkNewBlobPath:{type:String,required:!1,default:null},forkNewDirectoryPath:{type:String,required:!1,default:null},forkUploadBlobPath:{type:String,required:!1,default:null},newBranchPath:{type:String,required:!1,default:null},newTagPath:{type:String,required:!1,default:null},uploadPath:{type:String,required:!1,default:""},newDirPath:{type:String,required:!1,default:""},selectedBranch:{type:String,required:!1,default:""},originalBranch:{type:String,required:!1,default:""},canPushCode:{type:Boolean,required:!1,default:!1},canPushToBranch:{type:Boolean,required:!1,default:!1}},apollo:{projectPath:{query:d.a},userPermissions:{query:Re.a,variables(){return{projectPath:this.projectPath}},update:function(e){var t;return null===(t=e.project)||void 0===t?void 0:t.userPermissions}}},data:()=>({projectPath:"",userPermissions:{}}),computed:{uploadBlobModalId:()=>Object(ce.a)("modal-upload-blob"),newDirectoryModalId:()=>Object(ce.a)("modal-new-directory"),canCreateMrFromFork(){var e,t;return(null===(e=this.userPermissions)||void 0===e?void 0:e.forkProject)&&(null===(t=this.userPermissions)||void 0===t?void 0:t.createMergeRequestIn)},hasPushCodePermission(){var e;return null===(e=this.userPermissions)||void 0===e?void 0:e.pushCode},dropdownDirectoryItems(){var e=this;return this.canEditTree?[{text:Object(m.i)("Repository|New file"),action:async function(){await e.trackEvent(ae.d),Object(w.T)(Object(w.A)(e.newBlobPath,e.currentPath?encodeURIComponent(e.currentPath):""))},extraAttrs:{"data-testid":"new-file-menu-item"}},{text:Object(m.i)("Repository|Upload file"),action:function(){e.trackEvent(ae.g),e.$root.$emit(Ae.c,e.uploadBlobModalId)},extraAttrs:{"data-testid":"upload-file-menu-item"}},{text:Object(m.i)("Repository|New directory"),action:function(){e.trackEvent(ae.c),e.$root.$emit(Ae.c,e.newDirectoryModalId)},extraAttrs:{"data-testid":"new-directory-menu-item"}}]:this.canCreateMrFromFork?[{text:Object(m.i)("Repository|New file"),href:this.forkNewBlobPath,extraAttrs:{"data-method":"post"}},{text:Object(m.i)("Repository|Upload file"),href:this.forkUploadBlobPath,extraAttrs:{"data-method":"post"}},{text:Object(m.i)("Repository|New directory"),href:this.forkNewDirectoryPath,extraAttrs:{"data-method":"post"}}]:[]},dropdownRepositoryItems(){var e=this;return this.hasPushCodePermission?[{text:Object(m.i)("Repository|New branch"),action:async function(){await e.trackEvent(ae.b),Object(w.T)(e.newBranchPath)},extraAttrs:{"data-testid":"new-branch-menu-item"}},{text:Object(m.i)("Repository|New tag"),action:async function(){await e.trackEvent(ae.e),Object(w.T)(e.newTagPath)},extraAttrs:{"data-testid":"new-tag-menu-item"}}]:[]},dropdownItems(){var e,t;return this.canCollaborate||this.canCreateMrFromFork?[(null===(e=this.dropdownDirectoryItems)||void 0===e?void 0:e.length)&&{name:Object(m.i)("Repository|This directory"),items:this.dropdownDirectoryItems},(null===(t=this.dropdownRepositoryItems)||void 0===t?void 0:t.length)&&{name:Object(m.i)("Repository|This repository"),items:this.dropdownRepositoryItems}
7].filter(Boolean):[]},renderAddToTreeDropdown(){return this.dropdownItems.length},showUploadModal(){return this.canEditTree&&!this.$apollo.queries.userPermissions.loading},showNewDirectoryModal(){return this.canEditTree&&!this.$apollo.queries.userPermissions.loading},newDirectoryPath(){return Object(w.A)(this.newDirPath,this.currentPath)}},methods:{onDropdownShown(){this.trackEvent(ae.a)}}},We=Object(ie.a)(He,(function(){var e=this,t=e._self._c;return t("div",[e.renderAddToTreeDropdown?t("gl-disclosure-dropdown",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:e.__("Add to tree"),expression:"__('Add to tree')"}],attrs:{"toggle-text":e.__("Add to tree"),"toggle-class":"add-to-tree","data-testid":"add-to-tree","text-sr-only":"",icon:"plus",items:e.dropdownItems},on:{shown:e.onDropdownShown}}):e._e(),e._v(" "),e.showUploadModal?t("upload-blob-modal",{attrs:{"modal-id":e.uploadBlobModalId,"commit-message":e.__("Upload New File"),"target-branch":e.selectedBranch,"original-branch":e.originalBranch,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,path:e.uploadPath}}):e._e(),e._v(" "),e.showNewDirectoryModal?t("new-directory-modal",{attrs:{"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,"modal-id":e.newDirectoryModalId,"target-branch":e.selectedBranch,"original-branch":e.originalBranch,path:e.newDirectoryPath}}):e._e()],1)}),[],!1,null,null,null).exports,Qe=n("9dZE"),Ke=n("emEv"),Je={name:"RepositoryHeaderArea",i18n:{compare:Object(m.a)("Compare"),findFile:Object(m.a)("Find file")},components:{GlButton:p.a,FileIcon:Qe.a,RefSelector:x.a,Breadcrumbs:P.a,RepositoryOverflowMenu:qe,BlobControls:Ie,CompactCodeDropdown:Object(u.defineAsyncComponent)((function(){return Promise.all([n.e("f50c829c"),n.e("67e5e2cb")]).then(n.bind(null,"WLsB"))})),AddToTree:We,WebIdeLink:Object(u.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"hTgk"))})),LockDirectoryButton:Object(u.defineAsyncComponent)((function(){return Promise.resolve().then(n.bind(null,"4b03"))})),FileTreeBrowserToggle:j.a},directives:{GlTooltip:h.a},mixins:[D.a.mixin(),Object(S.a)(),ue.a],inject:["canCollaborate","canEditTree","canPushCode","canPushToBranch","originalBranch","selectedBranch","newBranchPath","newTagPath","newBlobPath","forkNewBlobPath","forkNewDirectoryPath","forkUploadBlobPath","uploadPath","newDirPath","projectRootPath","comparePath","isReadmeView","isFork","needsToFork","isGitpodEnabledForUser","isBlob","showEditButton","showWebIdeButton","isGitpodEnabledForInstance","showPipelineEditorButton","webIdeUrl","editUrl","pipelineEditorUrl","gitpodUrl","userPreferencesGitpodPath","userProfileEnableGitpodPath","httpUrl","xcodeUrl","sshUrl","kerberosUrl","downloadLinks","downloadArtifacts","isBinary","rootRef","showNoSshKeyMessage","userSettingsSshKeysPath"],provide(){return{currentRef:this.currentRef}},props:{projectPath:{type:String,required:!0},refType:{type:String,required:!1,default:null},currentRef:{type:String,required:!1,default:null},projectId:{type:String,required:!0}},computed:{...Object(f.f)(Ke.a,["fileTreeBrowserIsVisible","fileTreeBrowserIsExpanded"]),isTreeView(){return!["blobPathDecoded","blobPathEncoded"].includes(this.$route.name)},isProjectOverview(){return"projectRoot"===this.$route.name},isRoot(){return!this.currentPath||"/"===this.currentPath},directoryName(){return this.currentPath?this.currentPath.split("/").pop():this.projectPath.split("/").pop()},fileIconName(){return this.isTreeView?"folder-open":this.directoryName},getRefType(){return this.$route.query.ref_type},currentPath(){return this.$route.params.path},refSelectorQueryParams:()=>({sort:"updated_desc"}),refSelectorValue(){return this.refType?Object(w.A)("refs",this.refType,this.currentRef):this.currentRef},webIDEUrl(){var e;return this.isBlob?this.webIdeUrl:Object(w.V)(Object(w.A)("/",this.projectPath,"edit",this.currentRef,"-",(null===(e=this.$route)||void 0===e?void 0:e.params.path)||"","/"))},projectIdAsNumber(){return Object(_.e)(this.projectId)},findFileTooltip(){const{description:e}=v.Cb,t=this.findFileShortcutKey;return Object(b.a)()?null:Object(k.b)(`${e} <kbd class="flat gl-ml-1" aria-hidden=true>${t}</kbd>`)},findFileShortcutKey:()=>Object(v.Mb)(v.Cb)[0],showBlobControls(){return this.$route.params.path&&["blobPathDecoded","blobPathEncoded"].includes(this.$route.name)},showFileTreeBrowserToggle(){return!this.isProjectOverview&&!this.fileTreeBrowserIsExpanded},toggleFileBrowserShortcutKey(){return this.shortcutsEnabled?Object(v.Mb)(v.Fb)[0]:null},shortcutsEnabled:()=>!Object(b.a)()},mounted(){this.isReadmeView||(this.initializeFileTreeBrowser(),this.bindShortcuts())},beforeDestroy(){this.unbindShortcuts()},methods:{...Object(f.e)(Ke.a,["initializeFileTreeBrowser","handleFileTreeBrowserToggleClick"]),onShortcutToggle(){this.handleFileTreeBrowserToggleClick(),this.trackEvent(this.fileTreeBrowserIsVisible?Y.g:Y.f,{label:"shortcut"})},bindShortcuts(){this.shortcutsEnabled&&ve.b.bind(Object(v.Mb)(v.Fb),this.onShortcutToggle)},unbindShortcuts(){this.shortcutsEnabled&&ve.b.unbind(Object(v.Mb)(v.Fb))},onInput(e){this.trackEvent(y.m),Object(w.T)(Object(O.a)(this.projectRootPath,this.originalBranch,e))}
7,handleFindFile(){this.trackEvent(y.e),g.default.focusSearchFile()}}},Ze=Object(ie.a)(Je,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"gl-items-center gl-justify-between",class:{"@md/panel:gl-flex":e.isProjectOverview}},[t("div",{staticClass:"tree-ref-container !gl-mb-3 gl-flex gl-flex-wrap gl-items-center gl-gap-3 @md/panel:!gl-mb-0",class:{"gl-flex-grow":e.isProjectOverview}},[e.isReadmeView?e._e():t("file-tree-browser-toggle",{directives:[{name:"show",rawName:"v-show",value:e.showFileTreeBrowserToggle,expression:"showFileTreeBrowserToggle"}],ref:"toggle",attrs:{"aria-keyshortcuts":e.toggleFileBrowserShortcutKey,inert:e.fileTreeBrowserIsVisible}}),e._v(" "),e.isReadmeView?e._e():t("ref-selector",{staticClass:"tree-ref-holder gl-max-w-full @sm/panel:gl-max-w-4/10 @md/panel:gl-max-w-xs",attrs:{"fluid-width":"","data-testid":"ref-dropdown-container","project-id":e.projectId,value:e.refSelectorValue,"default-branch":e.rootRef,"use-symbolic-ref-names":"","query-params":e.refSelectorQueryParams},on:{input:e.onInput}}),e._v(" "),e.isReadmeView?e._e():t("breadcrumbs",{staticClass:"js-repo-breadcrumbs",attrs:{"current-path":e.currentPath,"ref-type":e.getRefType}})],1),e._v(" "),t("div",{class:["gl-flex gl-flex-col gl-items-stretch gl-justify-end @md/panel:gl-flex-row @md/panel:gl-items-center @md/panel:gl-gap-5",{"gl-my-5":!e.isProjectOverview}]},[e.isReadmeView||e.isProjectOverview?e._e():t("h1",{staticClass:"gl-heading-1 gl-mt-2 gl-inline-flex gl-flex-1 gl-items-center gl-gap-3 gl-break-words @md/panel:gl-mb-0",attrs:{"data-testid":"repository-heading"}},[t("file-icon",{staticClass:"gl-inline-flex",class:{"gl-text-subtle":e.isTreeView},attrs:{"file-name":e.fileIconName,folder:e.isTreeView,opened:"","aria-hidden":"true"}}),e._v(e._s(e.directoryName)+"\n    ")],1),e._v(" "),e.showBlobControls?e._e():t("div",{staticClass:"tree-controls gl-mb-3 gl-flex gl-flex-wrap gl-gap-3 @md/panel:gl-mb-0",attrs:{"data-testid":"tree-controls-container"}},[e.isReadmeView?e._e():t("add-to-tree",{staticClass:"gl-hidden @md/panel:gl-block",attrs:{"current-path":e.currentPath,"can-collaborate":e.canCollaborate,"can-edit-tree":e.canEditTree,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,"original-branch":e.originalBranch,"selected-branch":e.selectedBranch,"new-branch-path":e.newBranchPath,"new-tag-path":e.newTagPath,"new-blob-path":e.newBlobPath,"fork-new-blob-path":e.forkNewBlobPath,"fork-new-directory-path":e.forkNewDirectoryPath,"fork-upload-blob-path":e.forkUploadBlobPath,"upload-path":e.uploadPath,"new-dir-path":e.newDirPath}}),e._v(" "),e.isRoot?e._e():t("lock-directory-button",{attrs:{"project-path":e.projectPath,path:e.currentPath}}),e._v(" "),t("gl-button",{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip.html",value:e.findFileTooltip,expression:"findFileTooltip",modifiers:{html:!0}}],staticClass:"gl-w-full @md/panel:gl-w-auto",attrs:{"aria-keyshortcuts":e.findFileShortcutKey,"data-testid":"tree-find-file-control"},on:{click:e.handleFindFile}},[e._v("\n        "+e._s(e.$options.i18n.findFile)+"\n      ")]),e._v(" "),t("web-ide-link",e._g({staticClass:"gl-w-full @sm/panel:!gl-ml-0 @md/panel:gl-w-auto",attrs:{"data-testid":"js-tree-web-ide-link","project-id":e.projectIdAsNumber,"project-path":e.projectPath,"is-fork":e.isFork,"needs-to-fork":e.needsToFork,"is-gitpod-enabled-for-user":e.isGitpodEnabledForUser,"is-blob":e.isBlob,"show-edit-button":e.showEditButton,"show-web-ide-button":e.showWebIdeButton,"is-gitpod-enabled-for-instance":e.isGitpodEnabledForInstance,"show-pipeline-editor-button":e.showPipelineEditorButton,"web-ide-url":e.webIDEUrl,"edit-url":e.editUrl,"pipeline-editor-url":e.pipelineEditorUrl,"gitpod-url":e.gitpodUrl,"user-preferences-gitpod-path":e.userPreferencesGitpodPath,"user-profile-enable-gitpod-path":e.userProfileEnableGitpodPath,"git-ref":e.currentRef,"disable-fork-modal":""}},e.glListeners())),e._v(" "),t("div",{staticClass:"project-code-holder gl-w-full @md/panel:gl-w-auto"},[t("div",{staticClass:"gl-flex gl-justify-end gl-gap-3"},[e.isReadmeView?e._e():t("add-to-tree",{staticClass:"@md/panel:gl-hidden",attrs:{"current-path":e.currentPath,"can-collaborate":e.canCollaborate,"can-edit-tree":e.canEditTree,"can-push-code":e.canPushCode,"can-push-to-branch":e.canPushToBranch,"original-branch":e.originalBranch,"selected-branch":e.selectedBranch,"new-branch-path":e.newBranchPath,"new-tag-path":e.newTagPath,"new-blob-path":e.newBlobPath,"fork-new-blob-path":e.forkNewBlobPath,"fork-new-directory-p
7ath":e.forkNewDirectoryPath,"fork-upload-blob-path":e.forkUploadBlobPath,"upload-path":e.uploadPath,"new-dir-path":e.newDirPath}}),e._v(" "),t("compact-code-dropdown",{staticClass:"gl-ml-auto",attrs:{"ssh-url":e.sshUrl,"http-url":e.httpUrl,"kerberos-url":e.kerberosUrl,"xcode-url":e.xcodeUrl,"web-ide-url":e.webIDEUrl,"gitpod-url":e.gitpodUrl,"current-path":e.currentPath,"directory-download-links":e.downloadLinks,"show-no-ssh-key-message":e.showNoSshKeyMessage,"user-settings-ssh-keys-path":e.userSettingsSshKeysPath,"project-id":e.projectId,"project-path":e.projectPath,"git-ref":e.currentRef,"show-web-ide-button":e.showWebIdeButton,"is-gitpod-enabled-for-instance":e.isGitpodEnabledForInstance,"is-gitpod-enabled-for-user":e.isGitpodEnabledForUser}}),e._v(" "),t("repository-overflow-menu",{attrs:{"full-path":e.projectPath,path:e.currentPath,"current-ref":e.currentRef}})],1)])],1),e._v(" "),e.showBlobControls?t("blob-controls",{attrs:{"project-path":e.projectPath,"project-id-as-number":e.projectIdAsNumber,"ref-type":e.getRefType,"is-binary":e.isBinary}}):e._e()],1)])}),[],!1,null,null,null).exports,Ye=n("htAy"),Xe=n("f/vg"),et=n.n(Xe);function tt({router:e,isReadmeView:t=!1}){const n=document.getElementById("js-repository-blob-header-app");if(n){const{ref:s,escapedRef:c,refType:u,rootRef:p,projectId:h,breadcrumbsCanCollaborate:f,breadcrumbsCanEditTree:m,breadcrumbsCanPushCode:g,breadcrumbsCanPushToBranch:b,breadcrumbsSelectedBranch:v,breadcrumbsNe
7wBranchPath:k,breadcrumbsNewTagPath:y,breadcrumbsNewBlobPath:w,breadcrumbsForkNewBlobPath:_,breadcrumbsForkNewDirectoryPath:j,breadcrumbsForkUploadBlobPath:S,breadcrumbsUploadPath:O,breadcrumbsNewDirPath:x,projectRootPath:P,comparePath:T,projectPath:C,webIdeButtonOptions:I,sshUrl:B,httpUrl:N,xcodeUrl:E,kerberosUrl:F,downloadLinks:q,downloadArtifacts:D,showNoSshKeyMessage:A,userSettingsSshKeysPath:$,projectShortPath:R,isBinary:L,newWorkspacePath:V,organizationId:U,fullName:G}=n.dataset,{isFork:M,needsToFork:z,gitpodEnabled:H,isBlob:W,showEditButton:Q,showWebIdeButton:K,showGitpodButton:J,showPipelineEditorButton:Z,webIdeUrl:Y,editUrl:X,pipelineEditorUrl:ee,gitpodUrl:te,userPreferencesGitpodPath:ne,userProfileEnableGitpodPath:ie}=Object(r.g)(I?JSON.parse(I):{});!function({projectPath:e,projectShortPath:t,ref:n,escapedRef:i}){e&&o.a.clients.defaultClient.cache.writeQuery({query:d.a,data:{projectPath:e}}),t&&o.a.clients.defaultClient.cache.writeQuery({query:l.a,data:{projectShortPath:t}}),(n||i)&&o.a.clients.defaultClient.cache.writeQuery({query:et.a,data:{ref:n,escapedRef:i}})}({projectPath:C,projectShortPath:R,ref:s,escapedRef:c}),Object(i.a)({el:n,name:"RepositoryHeaderAreaRoot",pinia:a.a,provide:{canCollaborate:Object(r.G)(f),canEditTree:Object(r.G)(m),canPushCode:Object(r.G)(g),canPushToBranch:Object(r.G)(b),originalBranch:s,selectedBranch:v,newBranchPath:k,newTagPath:y,newBlobPath:w,forkNewBlobPath:_,forkNewDirectoryPath:j,forkUploadBlobPath:S,uploadPath:O,newDirPath:x,projectRootPath:P,comparePath:T,isReadmeView:t,isFork:Object(r.G)(M),needsToFork:Object(r.G)(z),isGitpodEnabledForUser:Object(r.G)(H),isBlob:Object(r.G)(W),showEditButton:Object(r.G)(Q),showWebIdeButton:Object(r.G)(K),isGitpodEnabledForInstance:Object(r.G)(J),showPipelineEditorButton:Object(r.G)(Z),webIdeUrl:Y,editUrl:X,pipelineEditorUrl:ee,gitpodUrl:te,userPreferencesGitpodPath:ne,userProfileEnableGitpodPath:ie,httpUrl:N,xcodeUrl:E,sshUrl:B,kerberosUrl:F,newWorkspacePath:V,downloadLinks:q?JSON.parse(q):null,downloadArtifacts:D?JSON.parse(D):[],showNoSshKeyMessage:Object(r.G)(A),userSettingsSshKeysPath:$,isBinary:Object(r.G)(L),rootRef:p,organizationId:U},apolloProvider:o.a,router:e||Object(Ye.a)(C,c,G),component:Ze,props:{refType:u,currentRef:s,projectPath:C,projectId:h}})}}},xUBk:function(e,t){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getApplicationInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gitpodEnabled"},arguments:[],directives:[]}]}}],loc:{start:0,end:45}};n.loc.source={body:"query getApplicationInfo {\n  gitpodEnabled\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}n.definitions.forEach((function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach((function(t){e(t,n)})),t.variableDefinitions&&t.variableDefinitions.forEach((function(t){e(t,n)})),t.definitions&&t.definitions.forEach((function(t){e(t,n)}))}(e,t),i[e.name.value]=t}})),e.exports=n,e.exports.getApplicationInfo=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=i[t]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(t){var i=r(e,t);i&&n.definitions.push(i)})),n}(n,"getApplicationInfo")},yGxX:function(e,t,n){"use strict";n.d(t,"k",(function(){return i})),n.d(t,"f",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h}));const i="vscode://vscode.git/clone?url=",r="jetbrains://idea/checkout/git?idea.required.plugins.id=Git4Idea&checkout.repo=",a="click_code_dropdown",o="copy_ssh_clone_url",s="copy_https_clone_url",l="open_vscode_ssh",c="open_vscode_https",d="open_intellij_ssh",u="open_intellij_https",p="vscode",h="intellij"},ykpR:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}
7));const i="edit",r="webide",a="gitpod",o="pipeline_editor"},zHLb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a}));n("ZzK0"),n("z6RN"),n("BzOf"),n("dHQd"),n("yoDG"),n("KeS/"),n("tWNI"),n("8d6S"),n("VwWG"),n("IYHS"),n("rIA9"),n("MViX"),n("zglm"),n("GDOA"),n("hlbI"),n("a0mT"),n("u3H1"),n("ta8/"),n("IKCR"),n("nmTw"),n("W2kU"),n("58fc"),n("7dtT"),n("Rhav"),n("uhEP"),n("eppl");const i=function(e,{rootElement:t=null,scrollMargin:n="1500px",once:i=!1}={}){const r=new IntersectionObserver((function(t){return null==t?void 0:t.forEach((function({target:t,isIntersecting:n}){var a;if(i&&!n)return;e(null===(a=t.dataset)||void 0===a?void 0:a.itemId,n);const o=t.querySelector("[data-placeholder-item]")===document.activeElement;n&&o&&requestAnimationFrame((function(){var e;return null===(e=t.querySelector("button"))||void 0===e?void 0:e.focus()})),i&&n&&r.unobserve(t)}))}),{root:t,scrollMargin:n});return r},r=function(e,t,n="[data-item-id]"){return null==e?void 0:e.querySelectorAll(n).forEach((function(e){return null==t?void 0:t.observe(e)}))},a=function(e,t,n){const i=new Set(n);null==e||e.querySelectorAll("[data-item-id]").forEach((function(e){i.has(e.dataset.itemId)&&(null==t||t.observe(e))}))}}},[[328,"runtime","main","commons-pages.projects-pages.projects.activity-pages.projects.activity.vue3-pages.projects.alert_man-a5fec459","commons-graphql_explorer-pages.admin.application_settings.service_accounts-pages.admin.applications--1ccd7d89","8632254b","32327915","commons-pages.admin.application_settings.service_accounts-pages.explore.analytics_dashboards-pages.e-306889d5","commons-pages.groups.saved_views.show-pages.groups.work_items-pages.groups.work_items.show-pages.pro-27e63f02","commons-pages.projects.blob.show-pages.projects.blob.show.vue3-pages.projects.show-pages.projects.sh-7aa92eaa","commons-pages.admin.groups.index-pages.admin.projects.index-pages.dashboard.groups.index-pages.dashb-d9f1a9f5","commons-pages.projects.blob.show-pages.projects.blob.show.vue3-pages.projects.show-pages.projects.sh-350895e9","commons-pages.projects.blob.edit-pages.projects.blob.edit.vue3-pages.projects.blob.new-pages.project-d16b70ea","9440c85a","commons-pages.projects.blob.show-pages.projects.blob.show.vue3-pages.projects.show-pages.projects.sn-bdf5cb8c","commons-pages.admin.projects.index-pages.dashboard.projects-pages.explore.projects-pages.groups.show-a1c4592e","commons-pages.projects.blob.show-pages.projects.show-pages.projects.tree.show-pages.search.show-page-9619fd99","commons-pages.projects.blob.show-pages.projects.show-pages.projects.snippets.show-pages.projects.tre-c684fcf6","commons-pages.projects.blob.edit-pages.projects.blob.new-pages.projects.blob.show-pages.projects.sho-ec79e51c","commons-pages.projects.blob.show-pages.projects.commits.show-pages.projects.show-pages.projects.tree.show","commons-pages.groups.show-pages.projects.blob.show-pages.projects.show-pages.projects.tree.show"]]]);
8//# sourceMappingURL=pages.projects.show.92cd669a.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.