@nuanst-one/ngitdb 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5ec044=_0x439b;function _0x439b(_0x2e6b37,_0x339082){_0x2e6b37=_0x2e6b37-0x142;const _0x2f1a1c=_0x2f1a();let _0x439bf4=_0x2f1a1c[_0x2e6b37];if(_0x439b['KYnIZH']===undefined){var _0x13b4a3=function(_0x2a5ee1){const _0x25a272='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18d3d3='',_0x1b31ca='';for(let _0xcead4c=0x0,_0x446538,_0x5ddfcd,_0x58b390=0x0;_0x5ddfcd=_0x2a5ee1['charAt'](_0x58b390++);~_0x5ddfcd&&(_0x446538=_0xcead4c%0x4?_0x446538*0x40+_0x5ddfcd:_0x5ddfcd,_0xcead4c++%0x4)?_0x18d3d3+=String['fromCharCode'](0xff&_0x446538>>(-0x2*_0xcead4c&0x6)):0x0){_0x5ddfcd=_0x25a272['indexOf'](_0x5ddfcd);}for(let _0x5a3720=0x0,_0x15ef1d=_0x18d3d3['length'];_0x5a3720<_0x15ef1d;_0x5a3720++){_0x1b31ca+='%'+('00'+_0x18d3d3['charCodeAt'](_0x5a3720)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b31ca);};_0x439b['rVEgNs']=_0x13b4a3,_0x439b['glKnAx']={},_0x439b['KYnIZH']=!![];}const _0x4d8ebc=_0x2f1a1c[0x0],_0x4a44e4=_0x2e6b37+_0x4d8ebc,_0x591c49=_0x439b['glKnAx'][_0x4a44e4];return!_0x591c49?(_0x439bf4=_0x439b['rVEgNs'](_0x439bf4),_0x439b['glKnAx'][_0x4a44e4]=_0x439bf4):_0x439bf4=_0x591c49,_0x439bf4;}(function(_0x237798,_0x2c9a3e){const _0x431c2c={_0x2c5eca:0x1e8,_0x33c9d3:0x209,_0x276102:0x1d4},_0x343292=_0x439b,_0x4363a4=_0x237798();while(!![]){try{const _0x57b210=-parseInt(_0x343292(0x145))/0x1+parseInt(_0x343292(0x19d))/0x2*(-parseInt(_0x343292(0x21f))/0x3)+parseInt(_0x343292(_0x431c2c._0x2c5eca))/0x4+parseInt(_0x343292(0x20e))/0x5*(parseInt(_0x343292(0x1ff))/0x6)+-parseInt(_0x343292(0x1b8))/0x7+-parseInt(_0x343292(_0x431c2c._0x33c9d3))/0x8+-parseInt(_0x343292(_0x431c2c._0x276102))/0x9*(-parseInt(_0x343292(0x166))/0xa);if(_0x57b210===_0x2c9a3e)break;else _0x4363a4['push'](_0x4363a4['shift']());}catch(_0x16975c){_0x4363a4['push'](_0x4363a4['shift']());}}}(_0x2f1a,0x19f68));import{mkdir as _0x906cc7,readFile as _0x37d3cf,writeFile as _0x601dcf}from'node:fs/promises';import*as _0x5cc4e2 from'node:path';var c=class extends Error{constructor(_0x247619){const _0x4445d9=_0x439b;super(_0x247619),this[_0x4445d9(0x173)]=new.target.name;}},G=class extends c{},g=class extends c{},R=class extends c{},u=class extends c{},P=class extends c{constructor(_0x252b87,_0x5e1d5,_0x2c908b){const _0x58bbfa={_0x594fb5:0x1e5},_0x270dec=_0x439b;super(_0x270dec(0x180)+'atch\x20\x22'+_0x5e1d5+'\x22\x20on\x20\x22'+_0x252b87+('\x22\x20becaus'+_0x270dec(_0x58bbfa._0x594fb5))+_0x2c908b+'.'),this['resource'+_0x270dec(0x181)]=_0x252b87,this['fieldPat'+'h']=_0x5e1d5,this[_0x270dec(0x1a7)]=_0x2c908b;}['resource'+_0x5ec044(0x181)];[_0x5ec044(0x18f)+'h'];['owner'];},S=class extends c{constructor(_0x53274b,_0x3e7193){const _0x4739c4={_0x9cd1e4:0x153,_0x2c2ee6:0x164,_0x117e1d:0x202,_0xdafa14:0x18b},_0x2e75c9=_0x5ec044;super('Validati'+_0x2e75c9(_0x4739c4._0x9cd1e4)+'d\x20for\x20\x22'+_0x53274b+'\x22:\x20'+_0x3e7193[_0x2e75c9(_0x4739c4._0x2c2ee6)](';\x20')),this[_0x2e75c9(_0x4739c4._0x117e1d)+'Path']=_0x53274b,this[_0x2e75c9(_0x4739c4._0xdafa14)]=_0x3e7193;}['resource'+_0x5ec044(0x181)];['issues'];},j=class extends c{},y=class extends c{constructor(_0x2db3f0,_0x1bb649,_0x1aca99,_0x4bf7cd){const _0x369aea={_0x70d511:0x1ca},_0x306748=_0x5ec044;super(_0x306748(0x1e0)+_0x306748(_0x369aea._0x70d511)+_0x2db3f0+'\x20'+_0x1bb649+('\x20failed\x20'+_0x306748(0x198))+_0x1aca99+':\x20'+_0x4bf7cd),this['method']=_0x2db3f0,this['path']=_0x1bb649,this[_0x306748(0x215)]=_0x1aca99,this[_0x306748(0x183)+_0x306748(0x186)]=_0x4bf7cd;}['method'];['path'];[_0x5ec044(0x215)];[_0x5ec044(0x183)+'Body'];},C=class extends c{constructor(_0x4bb7a1,_0xfa726f,_0x4e379d,_0x16a1f7){const _0x298a51=_0x5ec044;super('GitHub\x20A'+'PI\x20'+_0x4bb7a1+'\x20'+_0xfa726f+(_0x298a51(0x1f8)+_0x298a51(0x20d)+'e\x20confli'+'ct\x20(')+_0x4e379d+_0x298a51(0x170)+_0x16a1f7),this['method']=_0x4bb7a1,this['path']=_0xfa726f,this[_0x298a51(0x215)]=_0x4e379d,this[_0x298a51(0x183)+_0x298a51(0x186)]=_0x16a1f7;}['method'];[_0x5ec044(0x19c)];[_0x5ec044(0x215)];[_0x5ec044(0x183)+_0x5ec044(0x186)];};import{Buffer as _0x23612d}from'node:buffer';var U=_0x5ec044(0x1d6)+'28',D=_0x4597a1=>{const _0x1ce7fe=_0x5ec044;let _0x1bda65=globalThis[_0x1ce7fe(0x1dd)]?.[_0x1ce7fe(0x1b0)]?.[_0x4597a1];return _0x1bda65===void 0x0||_0x1bda65['trim']()===''?void 0x0:_0x1bda65;},_=_0x57927e=>{if(_0x57927e===void 0x0)return;let [_0x2d9e74,_0x436cd9]=_0x57927e['split']('/');if(!(_0x2d9e74===void 0x0||_0x436cd9===void 0x0||_0x2d9e74===''||_0x436cd9===''))return{'owner':_0x2d9e74,'repo':_0x436cd9};},B=_0x266a87=>_0x266a87===void 0x0||_0x266a87[_0x5ec044(0x193)]()===''?void 0x0:_0x266a87,V=_0x114cd7=>_0x114cd7[_0x5ec044(0x14d)](/[\\/]+/)[_0x5ec044(0x17c)](encodeURIComponent)[_0x5ec044(0x164)]('/'),z=_0x9e412c=>(_0x9e412c??'https://'+_0x5ec044(0x1f1)+_0x5ec044(0x195))[_0x5ec044(0x1f6)](/\/+$/u,''),h=_0x6c9970=>_0x6c9970!==null&&typeof _0x6c9970==_0x5ec044(0x1e1)&&!Array['isArray'](_0x6c9970),J=_0x1b4e7a=>{const _0x21b85c={_0x3c19cd:0x1ce,_0x4d8cb1:0x15a,_0x4d311d:0x1ba,_0x4efc39:0x1cd,_0x1f8014:0x1e1},_0x9cb441=_0x5ec044;if(!h(_0x1b4e7a)||!h(_0x1b4e7a[_0x9cb441(0x1e1)])||typeof _0x1b4e7a[_0x9cb441(0x1e1)][_0x9cb441(0x1cd)]!=_0x9cb441(_0x21b85c._0x3c19cd))throw new Error(_0x9cb441(_0x21b85c._0x4d8cb1)+'ef\x20respo'+'nse\x20did\x20'+_0x9cb441(0x20b)+_0x9cb441(_0x21b85c._0x4d311d)+_0x9cb441(0x190));const _0x378c7a={};_0x378c7a[_0x9cb441(_0x21b85c._0x4efc39)]=_0x1b4e7a['object'][_0x9cb441(_0x21b85c._0x4efc39)];const _0x3b78a0={};return _0x3b78a0[_0x9cb441(_0x21b85c._0x1f8014)]=_0x378c7a,_0x3b78a0;},T=_0x1df855=>{const _0x3a1ca2={_0x16d43d:0x1cd,_0x34cb82:0x1ce,_0x37d7c1:0x1ad,_0x2b2041:0x197,_0x1d67b9:0x21e},_0x105546=_0x5ec044;if(!h(_0x1df855)||typeof _0x1df855[_0x105546(_0x3a1ca2._0x16d43d)]!=_0x105546(_0x3a1ca2._0x34cb82)||!h(_0x1df855[_0x105546(0x1a4)])||typeof _0x1df855[_0x105546(0x1a4)][_0x105546(0x1cd)]!=_0x105546(0x1ce))throw new Error(_0x105546(0x171)+'ommit\x20re'+_0x105546(0x1a2)+_0x105546(0x201)+_0x105546(_0x3a1ca2._0x37d7c1)+_0x105546(0x1c5)+_0x105546(_0x3a1ca2._0x2b2041));const _0xc66423={'sha':_0x1df855['sha'],'tree':{'sha':_0x1df855[_0x105546(0x1a4)][_0x105546(0x1cd)]},...typeof _0x1df855['url']==_0x105546(0x1ce)?{'url':_0x1df855[_0x105546(0x165)]}:{},...typeof _0x1df855['html_url']==_0x105546(0x1ce)?{'html_url':_0x1df855[_0x105546(_0x3a1ca2._0x1d67b9)]}:{}};return _0xc66423;},M=_0x5c97c7=>{const _0x344d0a={_0x158949:0x1ce,_0x33993a:0x1cd},_0x2e3f81=_0x5ec044;if(!h(_0x5c97c7)||typeof _0x5c97c7[_0x2e3f81(0x1cd)]!=_0x2e3f81(_0x344d0a._0x158949))throw new Error('GitHub\x20t'+_0x2e3f81(0x168)+'onse\x20did'+_0x2e3f81(0x1ed)+'tain\x20sha'+'.');const _0x3eec96={};return _0x3eec96[_0x2e3f81(_0x344d0a._0x33993a)]=_0x5c97c7['sha'],_0x3eec96;},L=_0x3775ee=>{const _0xa260ba={_0x3ba78:0x1ce,_0x28a123:0x206},_0x3316e3=_0x5ec044;if(!h(_0x3775ee)||typeof _0x3775ee[_0x3316e3(0x1c6)]!=_0x3316e3(_0xa260ba._0x3ba78)||typeof _0x3775ee['encoding']!=_0x3316e3(0x1ce))throw new Error('GitHub\x20c'+_0x3316e3(0x207)+'esponse\x20'+'did\x20not\x20'+_0x3316e3(0x214)+_0x3316e3(0x1be)+_0x3316e3(0x19a)+_0x3316e3(_0xa260ba._0x28a123));const _0x2a4d15={};return _0x2a4d15['content']=_0x3775ee[_0x3316e3(0x1c6)],_0x2a4d15[_0x3316e3(0x21b)]=_0x3775ee[_0x3316e3(0x21b)],_0x2a4d15;},k=_0x4fc3ea=>{const _0x3647d0={_0x4ca1ad:0x1da,_0x396fe5:0x1b2,_0x4c65d7:0x1c2,_0x4663ae:0x1e3,_0x5aba51:0x1ce,_0x5236c7:0x165,_0x4252f1:0x165,_0x5283ba:0x172,_0x332eee:0x1ac,_0x2c0c6d:0x159,_0x58437c:0x1b7},_0x70d3f9=_0x5ec044;if(!h(_0x4fc3ea)||typeof _0x4fc3ea[_0x70d3f9(0x1e3)]!=_0x70d3f9(0x1e3)||typeof _0x4fc3ea[_0x70d3f9(0x1bc)]!=_0x70d3f9(0x1ce))throw new Error(_0x70d3f9(_0x3647d0._0x4ca1ad)+_0x70d3f9(_0x3647d0._0x396fe5)+_0x70d3f9(0x1e7)+_0x70d3f9(0x194)+_0x70d3f9(0x1ed)+_0x70d3f9(_0x3647d0._0x4c65d7)+_0x70d3f9(0x21c)+'title.');return{'number':_0x4fc3ea[_0x70d3f9(_0x3647d0._0x4663ae)],'title':_0x4fc3ea[_0x70d3f9(0x1bc)],'body':typeof _0x4fc3ea[_0x70d3f9(0x16e)]==_0x70d3f9(0x1ce)?_0x4fc3ea[_0x70d3f9(0x16e)]:null,...typeof _0x4fc3ea[_0x70d3f9(0x21e)]==_0x70d3f9(_0x3647d0._0x5aba51)?{'html_url':_0x4fc3ea[_0x70d3f9(0x21e)]}:{},...typeof _0x4fc3ea[_0x70d3f9(_0x3647d0._0x5236c7)]==_0x70d3f9(0x1ce)?{'url':_0x4fc3ea[_0x70d3f9(_0x3647d0._0x4252f1)]}:{},...typeof _0x4fc3ea['state']==_0x70d3f9(0x1ce)?{'state':_0x4fc3ea[_0x70d3f9(_0x3647d0._0x5283ba)]}:{},...h(_0x4fc3ea['head'])&&typeof _0x4fc3ea[_0x70d3f9(0x1ac)]['ref']=='string'?{'head':{'ref':_0x4fc3ea[_0x70d3f9(_0x3647d0._0x332eee)][_0x70d3f9(_0x3647d0._0x2c0c6d)]}}:{},...h(_0x4fc3ea['base'])&&typeof _0x4fc3ea['base'][_0x70d3f9(0x159)]=='string'?{'base':{'ref':_0x4fc3ea[_0x70d3f9(_0x3647d0._0x58437c)][_0x70d3f9(0x159)]}}:{}};},K=_0x582423=>{const _0x4ac540={_0xf779fc:0x143},_0x1aee56=_0x5ec044;if(!Array['isArray'](_0x582423))throw new Error(_0x1aee56(0x1da)+'ull\x20requ'+'est\x20list'+_0x1aee56(_0x4ac540._0xf779fc)+_0x1aee56(0x161)+_0x1aee56(0x1a3)+'ay.');return _0x582423[_0x1aee56(0x17c)](k);},$=class{#e;#t;#r;#n;constructor(_0x543bea){const _0xca16a1={_0x5f3c64:0x17e,_0x290f3e:0x1c8,_0x281ff5:0x15f,_0x267c64:0x14c,_0x1ee246:0x1c3,_0xf696fc:0x208,_0x5de7ca:0x1a7,_0x5d4e06:0x211},_0x2f8cf7=_0x5ec044;let _0x5d0341=_(D(_0x2f8cf7(0x1a6)+_0x2f8cf7(_0xca16a1._0x5f3c64)+'Y')),_0x5ca3e6=B(_0x543bea[_0x2f8cf7(0x1a7)])??_0x5d0341?.['owner'],_0x103763=B(_0x543bea[_0x2f8cf7(0x211)])??_0x5d0341?.['repo'],_0x2dcc50=B(_0x543bea[_0x2f8cf7(0x14f)])??D(_0x2f8cf7(0x188)+'OKEN');if(_0x5ca3e6===void 0x0||_0x103763===void 0x0||_0x2dcc50===void 0x0)throw new j(_0x2f8cf7(0x1bf)+'ackend\x20r'+_0x2f8cf7(0x208)+_0x2f8cf7(_0xca16a1._0x290f3e)+_0x2f8cf7(0x1e4)+_0x2f8cf7(0x1fa)+'Provide\x20'+'them\x20in\x20'+_0x2f8cf7(0x1ee)+'r\x20set\x20GI'+_0x2f8cf7(_0xca16a1._0x281ff5)+_0x2f8cf7(0x1df)+_0x2f8cf7(_0xca16a1._0x267c64)+_0x2f8cf7(0x1b4)+'.');let _0x353273=_0x543bea[_0x2f8cf7(_0xca16a1._0x1ee246)]??globalThis['fetch'];if(_0x353273===void 0x0)throw new j(_0x2f8cf7(0x1bf)+_0x2f8cf7(0x167)+_0x2f8cf7(_0xca16a1._0xf696fc)+'a\x20fetch\x20'+_0x2f8cf7(0x205)+'tation.');const _0x2310d6={};_0x2310d6[_0x2f8cf7(_0xca16a1._0x5de7ca)]=_0x5ca3e6,_0x2310d6[_0x2f8cf7(_0xca16a1._0x5d4e06)]=_0x103763,_0x2310d6[_0x2f8cf7(0x14f)]=_0x2dcc50,(this.#e=_0x2310d6,this.#t=z(_0x543bea[_0x2f8cf7(0x157)+'rl']),this.#r=_0x543bea['apiVersi'+'on']??U,this.#n=_0x353273);}async[_0x5ec044(0x16a)+'anch'](_0x906d27,_0x3b1d8a){const _0xe83bdd={_0x47e09e:0x14b},_0x461db1=_0x5ec044;let _0x4baf68=await this.#i(_0x906d27);if(_0x4baf68!==void 0x0)return _0x4baf68['object'][_0x461db1(0x1cd)];let _0x3d4548=await this[_0x461db1(0x20c)](_0x3b1d8a);try{const _0x3fd479={};return _0x3fd479[_0x461db1(0x159)]=_0x461db1(0x1a1)+_0x461db1(_0xe83bdd._0x47e09e)+_0x906d27,_0x3fd479['sha']=_0x3d4548[_0x461db1(0x1e1)][_0x461db1(0x1cd)],(await this.#s(_0x461db1(0x1a9),_0x461db1(0x204)+'s',_0x3fd479,J))[_0x461db1(0x1e1)][_0x461db1(0x1cd)];}catch(_0x4be19d){if(_0x4be19d instanceof y&&_0x4be19d[_0x461db1(0x215)]===0x1a6)return(await this[_0x461db1(0x20c)](_0x906d27))[_0x461db1(0x1e1)]['sha'];throw _0x4be19d;}}async[_0x5ec044(0x1d9)](_0x54f901,_0x232ed5){const _0x381508={_0x4a011b:0x1a8,_0x25412a:0x15c,_0x5dea64:0x156,_0x4609ef:0x21b},_0x482e1d=_0x5ec044,_0x296ee6={};_0x296ee6['ref']=_0x232ed5;let _0x44cfbd=await this.#s(_0x482e1d(0x1db),_0x482e1d(_0x381508._0x4a011b)+'s/'+V(_0x54f901),void 0x0,L,_0x296ee6);if(_0x44cfbd[_0x482e1d(0x21b)]!=='base64')throw new Error(_0x482e1d(_0x381508._0x25412a)+_0x482e1d(0x203)+_0x482e1d(0x16c)+_0x482e1d(0x16f)+_0x482e1d(_0x381508._0x5dea64)+_0x44cfbd[_0x482e1d(_0x381508._0x4609ef)]);return JSON[_0x482e1d(0x210)](_0x23612d['from'](_0x44cfbd[_0x482e1d(0x1c6)][_0x482e1d(0x1f6)](/\s+/gu,''),_0x482e1d(0x1ec))['toString']('utf8'));}async['commitFi'+_0x5ec044(0x1b6)](_0x377700){const _0x52337d={_0xa0b064:0x20c,_0x13a035:0x1e1,_0xae2dec:0x15b},_0x1ebc0a=_0x5ec044;let _0x2061cd=await this[_0x1ebc0a(_0x52337d._0xa0b064)](_0x377700['branchNa'+'me']),_0x5c31db=await this.#s(_0x1ebc0a(0x1db),'/git/com'+'mits/'+encodeURIComponent(_0x2061cd[_0x1ebc0a(0x1e1)]['sha']),void 0x0,T),_0x2efa2b=await this.#s('POST','/git/tre'+'es',{'base_tree':_0x5c31db['tree'][_0x1ebc0a(0x1cd)],'tree':_0x377700['files'][_0x1ebc0a(0x17c)](_0x175bb3=>({'path':_0x175bb3[_0x1ebc0a(0x19c)],'mode':'100644','type':_0x1ebc0a(0x17a),'content':_0x175bb3[_0x1ebc0a(0x1c6)]}))},M),_0x29cfbc=await this.#s('POST',_0x1ebc0a(0x149)+_0x1ebc0a(0x1cb),{'message':_0x377700['message'],'tree':_0x2efa2b[_0x1ebc0a(0x1cd)],'parents':[_0x2061cd[_0x1ebc0a(_0x52337d._0x13a035)]['sha']]},T);const _0x1f05e7={};return _0x1f05e7['sha']=_0x29cfbc[_0x1ebc0a(0x1cd)],_0x1f05e7[_0x1ebc0a(0x1e9)]=!0x1,(await this.#s('PATCH','/git/ref'+'s/heads/'+_0x377700[_0x1ebc0a(_0x52337d._0xae2dec)+'me'],_0x1f05e7,()=>{}),_0x29cfbc);}async[_0x5ec044(0x1fd)+'UpdatePu'+_0x5ec044(0x154)+'t'](_0x2e94d3){const _0x244865={_0x1fad9a:0x15b,_0x563a00:0x1bc,_0x577c11:0x1ac,_0x23d5e9:0x1a9},_0x57a529=_0x5ec044;let _0x53ea27=await this.#o(_0x2e94d3[_0x57a529(_0x244865._0x1fad9a)+'me'],_0x2e94d3['baseBran'+'ch']),_0xa7dcca=_0x2e94d3[_0x57a529(0x1cc)]['body']??'';if(_0x53ea27!==void 0x0){const _0x3265b3={};_0x3265b3['title']=_0x2e94d3[_0x57a529(0x1cc)][_0x57a529(_0x244865._0x563a00)],_0x3265b3[_0x57a529(0x16e)]=_0xa7dcca;let _0x2af684=await this.#s(_0x57a529(0x1c4),_0x57a529(0x21a)+_0x53ea27['number'],_0x3265b3,k);const _0x52b222={};return _0x52b222['created']=!0x1,_0x52b222['updated']=!0x0,this.#a(_0x2af684,_0x2e94d3,_0x52b222);}const _0x39f038={};_0x39f038['title']=_0x2e94d3['metadata'][_0x57a529(0x1bc)],_0x39f038[_0x57a529(0x16e)]=_0xa7dcca,_0x39f038[_0x57a529(_0x244865._0x577c11)]=_0x2e94d3[_0x57a529(_0x244865._0x1fad9a)+'me'],_0x39f038['base']=_0x2e94d3['baseBran'+'ch'];let _0x325a57=await this.#s(_0x57a529(_0x244865._0x23d5e9),'/pulls',_0x39f038,k);const _0x58eab6={};return _0x58eab6[_0x57a529(0x1c7)]=!0x0,_0x58eab6['updated']=!0x1,this.#a(_0x325a57,_0x2e94d3,_0x58eab6);}async['getRef'](_0x758d3f){const _0x39bc6b={_0x10aaea:0x1bf,_0x34280d:0x19f},_0x1e8715=_0x5ec044;try{return await this.#s('GET',_0x1e8715(0x204)+'/heads/'+_0x758d3f,void 0x0,J);}catch(_0x464a2f){throw _0x464a2f instanceof y&&_0x464a2f[_0x1e8715(0x215)]===0x194?new g(_0x1e8715(_0x39bc6b._0x10aaea)+_0x1e8715(0x1fe)+_0x1e8715(_0x39bc6b._0x34280d)+'\x20'+_0x758d3f):_0x464a2f;}}async #i(_0x2b0e74){const _0x14bda6=_0x5ec044;try{return await this[_0x14bda6(0x20c)](_0x2b0e74);}catch(_0x1e044f){if(_0x1e044f instanceof g)return;throw _0x1e044f;}}async #o(_0x20493b,_0x2992c9){const _0x161ace={_0x366508:0x199,_0x1a2d29:0x1f0},_0x39fe07=_0x5ec044;return(await this.#s('GET',_0x39fe07(_0x161ace._0x366508),void 0x0,K,{'state':_0x39fe07(_0x161ace._0x1a2d29),'head':this.#e['owner']+':'+_0x20493b,'base':_0x2992c9}))[0x0];}#a(_0xf64c83,_0x57d835,_0x4920d0){const _0x1e6767={_0x908cdb:0x15b,_0x1f42b7:0x1e3,_0x3dcf0b:0x1c7},_0x13e2c1=_0x5ec044,_0x1c468a={'title':_0xf64c83[_0x13e2c1(0x1bc)],'body':_0xf64c83['body']??'','headBranch':_0x57d835[_0x13e2c1(_0x1e6767._0x908cdb)+'me'],'baseBranch':_0x57d835['baseBran'+'ch'],'committedResources':[..._0x57d835['committe'+_0x13e2c1(0x1d5)+'es']],'number':_0xf64c83[_0x13e2c1(_0x1e6767._0x1f42b7)],'created':_0x4920d0[_0x13e2c1(_0x1e6767._0x3dcf0b)],'updated':_0x4920d0[_0x13e2c1(0x142)],..._0xf64c83['url']===void 0x0?{}:{'url':_0xf64c83['url']},..._0xf64c83[_0x13e2c1(0x21e)]===void 0x0?{}:{'htmlUrl':_0xf64c83[_0x13e2c1(0x21e)]},..._0xf64c83['state']===void 0x0?{}:{'state':_0xf64c83[_0x13e2c1(0x172)]}};return _0x1c468a;}async #s(_0x327366,_0x14036f,_0x3b3bf6,_0x106a8e,_0x5ae714){const _0x298d05={_0x2a8fc8:0x212},_0x112e40=_0x5ec044,_0x39ceeb={};_0x39ceeb['accept']=_0x112e40(_0x298d05._0x2a8fc8)+_0x112e40(0x1d0)+_0x112e40(0x175)+'son',_0x39ceeb[_0x112e40(0x1f3)+'ation']='Bearer\x20'+this.#e[_0x112e40(0x14f)],_0x39ceeb['content-'+'type']=_0x112e40(0x212)+_0x112e40(0x196),_0x39ceeb['x-github'+_0x112e40(0x1de)+'sion']=this.#r;let _0x519016={'method':_0x327366,'headers':_0x39ceeb,..._0x3b3bf6===void 0x0?{}:{'body':JSON[_0x112e40(0x148)+'y'](_0x3b3bf6)}},_0x32d305=await this.#n(this.#c(_0x14036f,_0x5ae714),_0x519016);if(!_0x32d305['ok']){let _0x3224eb=await _0x32d305[_0x112e40(0x15e)]();throw _0x32d305[_0x112e40(0x215)]===0x199?new C(_0x327366,_0x14036f,_0x32d305[_0x112e40(0x215)],_0x3224eb):new y(_0x327366,_0x14036f,_0x32d305['status'],_0x3224eb);}return _0x32d305[_0x112e40(0x215)]===0xcc?_0x106a8e(void 0x0):_0x106a8e(await _0x32d305['json']());}#c(_0x465a35,_0x22f772){const _0x4059ee={_0x103cde:0x20a},_0x32caae=_0x5ec044;let _0xc82963=new URL(this.#t+'/repos/'+encodeURIComponent(this.#e['owner'])+'/'+encodeURIComponent(this.#e[_0x32caae(0x211)])+_0x465a35);for(let [_0x3717c8,_0x458b6b]of Object['entries'](_0x22f772??{}))_0xc82963[_0x32caae(0x16d)+_0x32caae(_0x4059ee._0x103cde)]['set'](_0x3717c8,_0x458b6b);return _0xc82963['toString']();}},Y=(_0x2f7e75,_0x4ffa17)=>{const _0x3bd582={_0x19c492:0x1f7},_0x33adbb=_0x5ec044;let _0x29ffaa=_0x4ffa17[_0x33adbb(0x14d)]('.');for(let _0x122e8a=_0x29ffaa['length'];_0x122e8a>0x0;_0x122e8a-=0x1){let _0x2c03d1=_0x29ffaa[_0x33adbb(_0x3bd582._0x19c492)](0x0,_0x122e8a)[_0x33adbb(0x164)]('.'),_0x5d1ec7=_0x2f7e75[_0x2c03d1];if(_0x5d1ec7!==void 0x0)return _0x5d1ec7;}return _0x2f7e75['*'];},q=(_0x5c704a,_0x122181,_0x335a5e)=>{const _0x4fa89c={_0x595bdf:0x17f},_0x483aa0=_0x5ec044;let _0x5c65cd=_0x122181[_0x483aa0(0x144)+'p'];if(_0x5c65cd===void 0x0)return;let _0x390c77=Y(_0x5c65cd,_0x335a5e);if(_0x390c77===void 0x0)throw new P(_0x5c704a,_0x335a5e,_0x483aa0(0x191));if(_0x390c77!==_0x483aa0(_0x4fa89c._0x595bdf)+'owned')throw new P(_0x5c704a,_0x335a5e,_0x390c77);},Q=_0x3766e1=>structuredClone(_0x3766e1),W=(_0x290e73,_0x5388da)=>{const _0xf31186={_0x36ff73:0x1d7},_0x2235ff=_0x5ec044;let _0x2ab65f=_0x290e73;for(let _0x6d7e75 of _0x5388da){let _0x4609bb=_0x2ab65f[_0x6d7e75];if(_0x4609bb===void 0x0){let _0x58488b={};_0x2ab65f[_0x6d7e75]=_0x58488b,_0x2ab65f=_0x58488b;continue;}if(Array['isArray'](_0x4609bb)||_0x4609bb===null||typeof _0x4609bb!='object')throw new Error('Cannot\x20a'+_0x2235ff(_0xf31186._0x36ff73)+_0x2235ff(0x1af)+_0x2235ff(0x200)+'h\x20scalar'+'\x20field\x20\x22'+_0x6d7e75+'\x22.');_0x2ab65f=_0x4609bb;}return _0x2ab65f;},H=(_0x23eb45,_0x57066c)=>{const _0x65c039={_0x376e8f:0x14d,_0x51728f:0x19b},_0x139016=_0x5ec044;let _0x157ba6=structuredClone(_0x23eb45),_0x4fb5f4=Object[_0x139016(0x20f)](_0x57066c)[_0x139016(0x1e6)](([_0x519d65],[_0x5c3ab3])=>_0x519d65['localeCo'+'mpare'](_0x5c3ab3));for(let [_0x5d01f9,_0x555bd6]of _0x4fb5f4){let _0x492dbc=_0x5d01f9[_0x139016(_0x65c039._0x376e8f)]('.')[_0x139016(_0x65c039._0x51728f)](Boolean);if(_0x492dbc['length']===0x0)continue;let _0x3c2a85=W(_0x157ba6,_0x492dbc[_0x139016(0x1f7)](0x0,-0x1)),_0x4627cf=_0x492dbc['at'](-0x1);_0x4627cf!==void 0x0&&(_0x3c2a85[_0x4627cf]=Q(_0x555bd6));}return _0x157ba6;};import*as _0x1ba77c from'node:path';var w=(_0x55c01c,_0x2c03fe)=>{const _0x136518={_0x1693ba:0x1aa,_0x1ae28d:0x1b5,_0x37f437:0x178,_0x2fac11:0x179,_0x22250d:0x202,_0x50d3fe:0x1fb,_0x5b3423:0x218,_0x2b30d4:0x189},_0x5c42cb=_0x5ec044;let _0x19c9b6=_0x2c03fe[_0x5c42cb(0x193)]()[_0x5c42cb(0x21d)+'ll']('\x5c','/'),_0x45586=_0x19c9b6['split']('/')[_0x5c42cb(0x19b)](Boolean);if(_0x45586[_0x5c42cb(_0x136518._0x1693ba)]!==0x2)throw new R(_0x5c42cb(0x1e2)+_0x5c42cb(0x1bb)+_0x2c03fe+('\x22\x20must\x20b'+'e\x20in\x20\x22<c'+_0x5c42cb(_0x136518._0x1ae28d)+_0x5c42cb(_0x136518._0x37f437)+_0x5c42cb(0x1ae)));let [_0x1d992d,_0x305405]=_0x45586;if(_0x1d992d===void 0x0||_0x305405===void 0x0)throw new R(_0x5c42cb(0x1e2)+'\x20path\x20\x22'+_0x2c03fe+('\x22\x20must\x20b'+_0x5c42cb(_0x136518._0x2fac11)+_0x5c42cb(0x1b5)+'n>/<id>\x22'+'\x20format.'));let _0x356e03=_0x55c01c[_0x5c42cb(_0x136518._0x22250d)+'s'][_0x1d992d];if(_0x356e03===void 0x0)throw new G(_0x5c42cb(0x219)+_0x5c42cb(0x1bd)+'nition\x20f'+_0x5c42cb(_0x136518._0x50d3fe)+_0x5c42cb(_0x136518._0x5b3423)+'ion\x20\x22'+_0x1d992d+'\x22.');let _0x194569=_0x1ba77c['join'](_0x55c01c['resource'+_0x5c42cb(_0x136518._0x2b30d4)]??'data',_0x1d992d,_0x305405,_0x356e03['fileName']);return{'resourcePath':_0x19c9b6,'collection':_0x1d992d,'identifier':_0x305405,'definition':_0x356e03,'relativeFilePath':_0x194569,'absoluteFilePath':_0x1ba77c[_0x5c42cb(0x164)](_0x55c01c['reposito'+'ryRoot'],_0x194569)};},Z=_0x2f7ad8=>_0x2f7ad8[_0x5ec044(0x193)]()['toLowerC'+_0x5ec044(0x1ef)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x5ec044(0x21d)+'ll']('/','-')[_0x5ec044(0x1f6)](/-+/g,'-')['replace'](/^-|-$/g,''),v=_0x11c5da=>_0x11c5da['toISOStr'+'ing']()[_0x5ec044(0x1f7)](0x0,0xa),I=async _0x45d045=>{const _0x5296b9={_0x34a497:0x1c0},_0x1e8bf1=_0x5ec044;try{let _0x7ee218=await _0x37d3cf(_0x45d045,_0x1e8bf1(0x1f4));return JSON[_0x1e8bf1(0x210)](_0x7ee218);}catch(_0x4fc622){throw _0x4fc622[_0x1e8bf1(_0x5296b9._0x34a497)]===_0x1e8bf1(0x1d1)?new g('Resource'+'\x20file\x20no'+_0x1e8bf1(0x19f)+'\x20'+_0x45d045):_0x4fc622;}},O=class{#e;#t;#r;#n=new Map();#i=[];constructor(_0x1a6d6e){const _0x58514a={_0xf4d121:0x1dc},_0x478bf0=_0x5ec044;this.#e=_0x1a6d6e,_0x1a6d6e['backend']?.['type']===_0x478bf0(0x16b)&&(this.#t=new $(_0x1a6d6e[_0x478bf0(_0x58514a._0xf4d121)]));}async[_0x5ec044(0x151)](_0x144951){const _0x38f81c={_0x3a16ba:0x169,_0x413990:0x1c1,_0x48da12:0x18e},_0x5c71ed=_0x5ec044;let _0x25f25f=w(this.#e,_0x144951);return this.#t!==void 0x0?this.#t[_0x5c71ed(0x1d9)](_0x25f25f[_0x5c71ed(0x14e)+_0x5c71ed(0x18e)]['replaceA'+'ll'](_0x5cc4e2[_0x5c71ed(_0x38f81c._0x3a16ba)],'/'),this.#r?.[_0x5c71ed(0x15b)+'me']??this.#o()):I(_0x25f25f[_0x5c71ed(_0x38f81c._0x413990)+_0x5c71ed(_0x38f81c._0x48da12)]);}async['startSes'+_0x5ec044(0x1a5)](_0x5c65e0){const _0x366e5b={_0x150caf:0x213,_0x50a315:0x18d},_0x169d38=_0x5ec044;let _0x4688ab=this.#e['currentD'+'ate']??new Date(),_0x180737=Z(_0x5c65e0);return this.#r={'key':_0x5c65e0,'branchName':'session/'+_0x180737+'-'+v(_0x4688ab),'startedAt':_0x4688ab[_0x169d38(_0x366e5b._0x150caf)+'ing']()},this.#n[_0x169d38(_0x366e5b._0x50a315)](),this.#i['length']=0x0,this.#t!==void 0x0&&await this.#t['ensureBr'+_0x169d38(0x17d)](this.#r[_0x169d38(0x15b)+'me'],this.#o()),this.#r;}['getCurre'+_0x5ec044(0x192)+'n'](){return this.#r;}async[_0x5ec044(0x1b3)](_0x27c5f9,_0x24d875){const _0x273456={_0x8fc23d:0x158,_0x279904:0x18e,_0xf8aeaf:0x1d9,_0x3e752c:0x18e,_0x43a057:0x1cf},_0x4c6dc9=_0x5ec044;let _0x747115=this.#r;if(_0x747115===void 0x0)throw new u(_0x4c6dc9(0x1d2)+_0x4c6dc9(_0x273456._0x8fc23d)+'\x20an\x20acti'+'ve\x20sessi'+_0x4c6dc9(0x1fc));let _0x3d5e1c=w(this.#e,_0x27c5f9);for(let _0x421cad of Object[_0x4c6dc9(0x1a0)](_0x24d875))q(_0x27c5f9,_0x3d5e1c['definiti'+'on'],_0x421cad);let _0x5d2cf5=this.#n[_0x4c6dc9(0x17b)](_0x27c5f9)??(this.#t===void 0x0?await I(_0x3d5e1c['absolute'+_0x4c6dc9(_0x273456._0x279904)]):await this.#t[_0x4c6dc9(_0x273456._0xf8aeaf)](_0x3d5e1c[_0x4c6dc9(0x14e)+_0x4c6dc9(_0x273456._0x3e752c)][_0x4c6dc9(0x21d)+'ll'](_0x5cc4e2['sep'],'/'),_0x747115[_0x4c6dc9(0x15b)+'me'])),_0x2c5083=H(_0x5d2cf5,_0x24d875);return this.#n[_0x4c6dc9(_0x273456._0x43a057)](_0x27c5f9,_0x2c5083),_0x2c5083;}async['commit'](_0x30159a){const _0x4797e5={_0x1deb81:0x1ea,_0x1d5502:0x20f,_0x59c0bf:0x1aa,_0x413c80:0x177,_0x10c532:0x213,_0x17dbda:0x165,_0x15d976:0x164,_0x4e6f0d:0x14e,_0xef9e14:0x216,_0x25279b:0x1f5,_0x318c22:0x1f4,_0x2ad830:0x213,_0xbd23cd:0x18a,_0x46b850:0x162},_0x1d414b={_0x2f7431:0x146,_0x273a27:0x15d,_0x56ffc3:0x14e,_0x2b53be:0x148},_0x42066a=_0x5ec044;let _0x5a9aad=this.#r;if(_0x5a9aad===void 0x0)throw new u(_0x42066a(0x152)+'\x20require'+_0x42066a(0x1b1)+_0x42066a(0x14a)+_0x42066a(0x150));if(this.#n[_0x42066a(0x174)]===0x0)throw new u('commit()'+_0x42066a(0x182)+'s\x20staged'+_0x42066a(_0x4797e5._0x1deb81)+'.');for(let [_0x352d7a,_0x7da61f]of this.#n[_0x42066a(_0x4797e5._0x1d5502)]()){let _0x55277c=w(this.#e,_0x352d7a)[_0x42066a(0x217)+'on'][_0x42066a(0x18c)];if(_0x55277c===void 0x0)continue;let _0x2da158=_0x55277c(_0x7da61f);if(_0x2da158[_0x42066a(_0x4797e5._0x59c0bf)]>0x0)throw new S(_0x352d7a,_0x2da158);}if(this.#t!==void 0x0){let _0x10b7f9=[...this.#n[_0x42066a(0x1a0)]()][_0x42066a(0x1e6)](),_0x83feed=await this.#t[_0x42066a(_0x4797e5._0x413c80)+_0x42066a(0x1b6)]({'branchName':_0x5a9aad[_0x42066a(0x15b)+'me'],'message':_0x30159a,'files':_0x10b7f9[_0x42066a(0x17c)](_0x50e7fd=>{const _0x5586b5=_0x42066a;let _0x2c10ae=this.#n['get'](_0x50e7fd);if(_0x2c10ae===void 0x0)throw new u(_0x5586b5(0x187)+_0x5586b5(_0x1d414b._0x2f7431)+_0x5586b5(0x1b9)+_0x5586b5(_0x1d414b._0x273a27)+_0x50e7fd+'.');return{'path':w(this.#e,_0x50e7fd)[_0x5586b5(_0x1d414b._0x56ffc3)+_0x5586b5(0x18e)]['replaceA'+'ll'](_0x5cc4e2['sep'],'/'),'content':JSON[_0x5586b5(_0x1d414b._0x2b53be)+'y'](_0x2c10ae,null,0x2)+'\x0a'};})});return this.#i[_0x42066a(0x1c9)]({'message':_0x30159a,'createdAt':new Date()[_0x42066a(_0x4797e5._0x10c532)+_0x42066a(0x1eb)](),'resources':_0x10b7f9}),{'branchName':_0x5a9aad[_0x42066a(0x15b)+'me'],'message':_0x30159a,'committedResources':_0x10b7f9,'commitFilePath':'','commitSha':_0x83feed['sha'],..._0x83feed[_0x42066a(_0x4797e5._0x17dbda)]===void 0x0?{}:{'commitUrl':_0x83feed['url']},..._0x83feed[_0x42066a(0x21e)]===void 0x0?{}:{'htmlUrl':_0x83feed['html_url']}};}let _0x5a764c=_0x5cc4e2[_0x42066a(_0x4797e5._0x15d976)](this.#e['reposito'+'ryRoot'],this.#a(),_0x5a9aad['branchNa'+'me']);const _0x9719a5={};_0x9719a5[_0x42066a(0x216)+'e']=!0x0,await _0x906cc7(_0x5a764c,_0x9719a5);for(let [_0x169c25,_0x33b57e]of this.#n[_0x42066a(0x20f)]()){let _0x23082f=w(this.#e,_0x169c25),_0x317eff=_0x5cc4e2[_0x42066a(0x164)](_0x5a764c,_0x23082f[_0x42066a(_0x4797e5._0x4e6f0d)+'FilePath']);const _0x2b2d16={};_0x2b2d16[_0x42066a(_0x4797e5._0xef9e14)+'e']=!0x0,(await _0x906cc7(_0x5cc4e2[_0x42066a(_0x4797e5._0x25279b)](_0x317eff),_0x2b2d16),await _0x601dcf(_0x317eff,JSON['stringif'+'y'](_0x33b57e,null,0x2)+'\x0a',_0x42066a(_0x4797e5._0x318c22)));}let _0x4ae674=new Date()[_0x42066a(_0x4797e5._0x2ad830)+_0x42066a(0x1eb)](),_0x3144e9=[...this.#n['keys']()][_0x42066a(0x1e6)](),_0x31efac=this.#i[_0x42066a(_0x4797e5._0x59c0bf)]+0x1,_0x270828=_0x5cc4e2['join'](_0x5a764c,_0x42066a(_0x4797e5._0xbd23cd)+String(_0x31efac)[_0x42066a(0x184)](0x4,'0')+_0x42066a(_0x4797e5._0x46b850)),_0x13e948={'message':_0x30159a,'createdAt':_0x4ae674,'resources':_0x3144e9};return await _0x601dcf(_0x270828,JSON['stringif'+'y'](_0x13e948,null,0x2)+'\x0a',_0x42066a(0x1f4)),this.#i['push'](_0x13e948),{'branchName':_0x5a9aad[_0x42066a(0x15b)+'me'],'message':_0x30159a,'committedResources':_0x3144e9,'commitFilePath':_0x270828};}async[_0x5ec044(0x1d3)+_0x5ec044(0x154)+'t'](_0x1b6334){const _0x20b444={_0x1c8b50:0x1d3,_0x21ba2d:0x160,_0x366421:0x185,_0x4a4a22:0x1aa,_0xe2f645:0x176,_0x5af86c:0x16e},_0x21436f=_0x5ec044;let _0x2835b1=this.#r;if(_0x2835b1===void 0x0)throw new u(_0x21436f(_0x20b444._0x1c8b50)+_0x21436f(0x154)+_0x21436f(0x19e)+_0x21436f(_0x20b444._0x21ba2d)+_0x21436f(0x155)+_0x21436f(_0x20b444._0x366421));if(this.#i[_0x21436f(_0x20b444._0x4a4a22)]===0x0)throw new u(_0x21436f(0x1d3)+_0x21436f(0x154)+_0x21436f(0x19e)+_0x21436f(_0x20b444._0xe2f645)+_0x21436f(0x163)+'e\x20commit'+'ted\x20chan'+_0x21436f(0x147));let _0x17228a=this.#i['flatMap'](_0x4c5757=>_0x4c5757['resource'+'s']);return this.#t!==void 0x0?this.#t['createOr'+'UpdatePu'+'llReques'+'t']({'branchName':_0x2835b1['branchNa'+'me'],'baseBranch':this.#o(),'metadata':_0x1b6334,'committedResources':[...new Set(_0x17228a)]['sort']()}):{'title':_0x1b6334['title'],'body':_0x1b6334[_0x21436f(_0x20b444._0x5af86c)]??'','headBranch':_0x2835b1['branchNa'+'me'],'baseBranch':this.#o(),'committedResources':[...new Set(_0x17228a)]['sort']()};}#o(){const _0x282dd9=_0x5ec044;return this.#e[_0x282dd9(0x1f2)+'ch']??_0x282dd9(0x1d8);}#a(){const _0x120940=_0x5ec044;return this.#e['backend']?.['type']===_0x120940(0x1f9)&&this.#e['backend'][_0x120940(0x1ab)+'Root']!==void 0x0?this.#e[_0x120940(0x1dc)][_0x120940(0x1ab)+'Root']:_0x5cc4e2[_0x120940(0x164)]('.ngitdb',_0x120940(0x1ab));}},be=_0x1a0743=>new O(_0x1a0743);export{O as GitDB,c as GitDBError,y as GitHubApiError,j as GitHubConfigurationError,C as GitHubConflictError,R as InvalidResourcePathError,P as OwnershipViolationError,G as ResourceDefinitionError,g as ResourceNotFoundError,u as SessionMisuseError,S as ValidationFailureError,be as createGitDB};function _0x2f1a(){const _0x1c9584=['ignVBgXLy3q','tM8GCMvZB3u','l3b1BgXZlW','zw5JB2rPBMC','yMvYigfUzca','CMvWBgfJzue','AhrTBf91CMW','ndGXnJi2yLf3Bu15','DxbKyxrLza','ihjLC3bVBNm','B3DUzxjZAgK','mtm1nJG4rgTHDe9b','C3rHz2vKigq','z2uU','C3rYAw5NAwy','l2DPDc9JB20','AxzLihnLC3m','zhmV','yw5KieDjveG','C3bSAxq','CMvSyxrPDMu','Dg9Rzw4','Aw9UlG','CMvHza','y29TBwL0kcK','B24GzMfPBgu','BgXszxf1zxm','ywn0AxzLihm','Aw5NoIa','yxbPqMfZzvu','CMvXDwLYzxm','CMvM','r2L0shvIihi','yNjHBMnOtMe','vw5ZDxbWB3i','zM9Yia','Dgv4Da','veHvqL9srva','AxjLCYbHBIa','zsb3yxmGBM8','lMPZB24','BgvHC3qGB24','AM9PBG','DxjS','mJGZnJbpCxPmuMC','ywnRzw5Kihi','CMvLihjLC3a','C2vW','zw5ZDxjLqNi','z2L0AhvI','DwiGy29UDgu','C2vHCMnOuge','yM9KEq','BNqGzw5JB2q','ktOG','r2L0shvIigm','C3rHDgu','BMfTzq','C2L6zq','z2L0AhvIk2O','AxjLCYbHDca','y29TBwL0rMK','BJ4VpgLKpIi','zsbPBIaIpgm','yMXVyG','z2v0','BwfW','yw5JAa','rvbpu0Lut1i','BwfJAgLUzs0','q2fUBM90iha','ugf0Aa','ihjLCxvPCMu','CMvZCg9UC2u','CgfKu3rHCNq','zxnZAw9UlG','qM9KEq','twLZC2LUzYa','r0Lusfvcx1q','uM9VDa','y29TBwL0lq','AxnZDwvZ','DMfSAwrHDgu','y2XLyxi','rMLSzvbHDgG','zMLLBgrqyxq','y3qUC2HHlG','Dw5VD25Lza','BNrtzxnZAw8','DhjPBq','B25ZzsbKAwq','DwiUy29T','Aw9Ul2PZB24','CMvLlNnOys4','D2L0Aca','l3b1BgXZ','yw5KigvUy28','zMLSDgvY','Cgf0Aa','mMPTBLnhtq','DcGPihjLCxu','DcbMB3vUzdO','A2v5CW','CMvMCY9Ozwe','C3bVBNnLigq','DcbHBIbHCNi','DhjLzq','C2LVBG','r0Lusfvcx1i','B3DUzxi','l2nVBNrLBNq','ue9tva','BgvUz3rO','C2vZC2LVBNm','AgvHza','B250ywLUihm','igzVCM1HDc4','zwn0ihbHDgm','zw52','CYbHBIbHy3q','DwXSihjLCxu','Cgf0y2G','vujFve9lru4','B2XSzwn0Aw8','BgvZ','yMfZzq','odGXmZaWqxf3v2Lr','B2n1BwvUDca','ywLUig9IAMu','ihbHDgGGiG','DgL0Bgu','CMnLigrLzMK','y29UDgvUDca','r2L0shvIigi','y29Kzq','ywjZB2X1Dgu','DgfPBIbUDw0','zMv0y2G','uefuq0G','AgeGyw5Kihq','y29UDgvUDa','y3jLyxrLza','B3DUzxiSihi','ChvZAa','ueKG','BwL0CW','Bwv0ywrHDge','C2HH','C3rYAw5N','C2v0','Aw9Ul3zUzc4','ru5pru5u','Cgf0y2GOksa','y3jLyxrLuhu','mtq4nurIBfvvCq','zfjLC291CMm','mJaYmI0Xms0','ChbSEsbVyMO','BwfPBG','CMvHzePZB24','r2L0shvIiha','r0vu','yMfJA2vUza','ChjVy2vZCW','lwfWAs12zxi','t1njve9swsa','r2L0shvIiee','B2jQzwn0','uMvZB3vYy2u','BNvTyMvY','zxbVlcbHBMq','zsbPDcbPCYa','C29YDa','zxn0ihjLC3a','nty5mZqWqKfctuXV','zM9Yy2u','ignOyw5Nzxm','Aw5N','yMfZzty0','ig5VDcbJB24','y29UzMLNig8','yxnL','B3bLBG','yxbPlMDPDgG','yMfZzujYyw4','yxv0Ag9YAxO','DxrMoa','zgLYBMfTzq','CMvWBgfJzq','C2XPy2u','ihjLCg9YDgu','Bg9JywW','ihrVA2vUlIa','B3vUzcbMB3i','B24U','y3jLyxrLt3i','CMfUy2GGBM8','mZu0tLPRB3HL','AcbIzw5Lyxq','AwqGBM90igm','CMvZB3vYy2u','DgvKieDPDeG','l2DPDc9Yzwy','Aw1WBgvTzw4','zgLUzY4','B250zw50ihi','zxf1AxjLCYa','mtm4otC4ngjWC25eDW','CMfTCW','BM90ignVBNq','z2v0uMvM','zcbHihDYAxq','nZC5me51DLL5yG','zw50CMLLCW','CgfYC2u','CMvWBW','yxbWBgLJyxq','Dg9ju09tDhi','y29UDgfPBIa','C3rHDhvZ','CMvJDxjZAxy','zgvMAw5PDgK'];_0x2f1a=function(){return _0x1c9584;};return _0x2f1a();}
1
+ const _0x2da9d1=_0x5c11;(function(_0x43e6f8,_0x5e266e){const _0xb0f230={_0x496cd6:0x14f},_0x40e023=_0x5c11,_0x38b495=_0x43e6f8();while(!![]){try{const _0x1cc6de=-parseInt(_0x40e023(0xfb))/0x1+-parseInt(_0x40e023(0x11e))/0x2*(parseInt(_0x40e023(0x14d))/0x3)+-parseInt(_0x40e023(0x147))/0x4+parseInt(_0x40e023(_0xb0f230._0x496cd6))/0x5*(-parseInt(_0x40e023(0xe3))/0x6)+parseInt(_0x40e023(0x140))/0x7*(parseInt(_0x40e023(0xaa))/0x8)+parseInt(_0x40e023(0xdf))/0x9*(-parseInt(_0x40e023(0xa0))/0xa)+parseInt(_0x40e023(0x78))/0xb;if(_0x1cc6de===_0x5e266e)break;else _0x38b495['push'](_0x38b495['shift']());}catch(_0x43ff0d){_0x38b495['push'](_0x38b495['shift']());}}}(_0x342e,0x59995));import{mkdir as _0x3dfa35,readFile as _0x43c376,writeFile as _0x10c5ba}from'node:fs/promises';import*as _0x434132 from'node:path';var c=class extends Error{constructor(_0x4e4596){super(_0x4e4596),this['name']=new.target.name;}},G=class extends c{},g=class extends c{},R=class extends c{},u=class extends c{},P=class extends c{constructor(_0x577b22,_0x4939fc,_0x538a77){const _0x39dba6={_0x39fd3c:0x114,_0x574301:0xe0,_0x42e09f:0x137},_0x51b1a8=_0x5c11;super(_0x51b1a8(_0x39dba6._0x39fd3c)+_0x51b1a8(_0x39dba6._0x574301)+_0x4939fc+_0x51b1a8(0xb3)+_0x577b22+(_0x51b1a8(0x91)+_0x51b1a8(0xc0))+_0x538a77+'.'),this[_0x51b1a8(0x105)+'Path']=_0x577b22,this['fieldPat'+'h']=_0x4939fc,this[_0x51b1a8(_0x39dba6._0x42e09f)]=_0x538a77;}[_0x2da9d1(0x105)+_0x2da9d1(0xbc)];[_0x2da9d1(0x121)+'h'];[_0x2da9d1(0x137)];},S=class extends c{constructor(_0x397321,_0x3d7f48){const _0x55a0c0={_0x199438:0x9f,_0x171c1e:0x105},_0x255f13=_0x2da9d1;super('Validati'+'on\x20faile'+_0x255f13(_0x55a0c0._0x199438)+_0x397321+_0x255f13(0x15d)+_0x3d7f48['join'](';\x20')),this[_0x255f13(_0x55a0c0._0x171c1e)+'Path']=_0x397321,this[_0x255f13(0xb5)]=_0x3d7f48;}['resource'+_0x2da9d1(0xbc)];['issues'];},j=class extends c{},y=class extends c{constructor(_0x2394fc,_0xebaadf,_0x3ecf23,_0x1ba8c8){const _0x343082={_0x46a646:0xe5,_0x5b1331:0xe9},_0x567323=_0x2da9d1;super('GitHub\x20A'+_0x567323(0x126)+_0x2394fc+'\x20'+_0xebaadf+(_0x567323(0x9d)+_0x567323(_0x343082._0x46a646))+_0x3ecf23+':\x20'+_0x1ba8c8),this[_0x567323(_0x343082._0x5b1331)]=_0x2394fc,this[_0x567323(0xc5)]=_0xebaadf,this[_0x567323(0x118)]=_0x3ecf23,this[_0x567323(0x8d)+_0x567323(0x144)]=_0x1ba8c8;}[_0x2da9d1(0xe9)];[_0x2da9d1(0xc5)];[_0x2da9d1(0x118)];[_0x2da9d1(0x8d)+_0x2da9d1(0x144)];},C=class extends c{constructor(_0x80fba,_0xcfbc26,_0x3611f1,_0x348a2c){const _0x22ebdc={_0x28897a:0x126,_0x37b855:0xfc},_0x2b1e28=_0x2da9d1;super('GitHub\x20A'+_0x2b1e28(_0x22ebdc._0x28897a)+_0x80fba+'\x20'+_0xcfbc26+(_0x2b1e28(_0x22ebdc._0x37b855)+'d\x20a\x20writ'+_0x2b1e28(0xb1)+'ct\x20(')+_0x3611f1+_0x2b1e28(0xe7)+_0x348a2c),this['method']=_0x80fba,this['path']=_0xcfbc26,this['status']=_0x3611f1,this[_0x2b1e28(0x8d)+_0x2b1e28(0x144)]=_0x348a2c;}[_0x2da9d1(0xe9)];[_0x2da9d1(0xc5)];['status'];['response'+'Body'];};import{Buffer as _0x51d5b4}from'node:buffer';function _0x5c11(_0x1129eb,_0x513331){_0x1129eb=_0x1129eb-0x74;const _0x342e97=_0x342e();let _0x5c11af=_0x342e97[_0x1129eb];if(_0x5c11['MQDHRn']===undefined){var _0xd4f7c=function(_0x3f46b0){const _0x53db8d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f365a='',_0x2015f8='';for(let _0x4cb07c=0x0,_0x59fb43,_0x56cda5,_0x121b36=0x0;_0x56cda5=_0x3f46b0['charAt'](_0x121b36++);~_0x56cda5&&(_0x59fb43=_0x4cb07c%0x4?_0x59fb43*0x40+_0x56cda5:_0x56cda5,_0x4cb07c++%0x4)?_0x1f365a+=String['fromCharCode'](0xff&_0x59fb43>>(-0x2*_0x4cb07c&0x6)):0x0){_0x56cda5=_0x53db8d['indexOf'](_0x56cda5);}for(let _0x32caa8=0x0,_0x1e4a5d=_0x1f365a['length'];_0x32caa8<_0x1e4a5d;_0x32caa8++){_0x2015f8+='%'+('00'+_0x1f365a['charCodeAt'](_0x32caa8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2015f8);};_0x5c11['FvHzSr']=_0xd4f7c,_0x5c11['MBXLYb']={},_0x5c11['MQDHRn']=!![];}const _0x25bc71=_0x342e97[0x0],_0x3c1520=_0x1129eb+_0x25bc71,_0x22f58e=_0x5c11['MBXLYb'][_0x3c1520];return!_0x22f58e?(_0x5c11af=_0x5c11['FvHzSr'](_0x5c11af),_0x5c11['MBXLYb'][_0x3c1520]=_0x5c11af):_0x5c11af=_0x22f58e,_0x5c11af;}var U=_0x2da9d1(0x95)+'28',D=_0xe61702=>{const _0x4bca5d={_0x240d36:0xea},_0x19a1b9=_0x2da9d1;let _0xec37b6=globalThis[_0x19a1b9(0xe6)]?.[_0x19a1b9(0x12c)]?.[_0xe61702];return _0xec37b6===void 0x0||_0xec37b6[_0x19a1b9(_0x4bca5d._0x240d36)]()===''?void 0x0:_0xec37b6;},_=_0x193879=>{const _0x3e7f39={_0x45f497:0x85},_0x3eb5f5=_0x2da9d1;if(_0x193879===void 0x0)return;let [_0x17dfa2,_0x2e5075]=_0x193879[_0x3eb5f5(_0x3e7f39._0x45f497)]('/');if(!(_0x17dfa2===void 0x0||_0x2e5075===void 0x0||_0x17dfa2===''||_0x2e5075===''))return{'owner':_0x17dfa2,'repo':_0x2e5075};},B=_0x589d12=>_0x589d12===void 0x0||_0x589d12['trim']()===''?void 0x0:_0x589d12,V=_0x2da991=>_0x2da991[_0x2da9d1(0x85)](/[\\/]+/)['map'](encodeURIComponent)['join']('/'),z=_0x13d5c5=>(_0x13d5c5??'https://'+_0x2da9d1(0x100)+'ub.com')[_0x2da9d1(0x8a)](/\/+$/u,''),h=_0x1e417a=>_0x1e417a!==null&&typeof _0x1e417a==_0x2da9d1(0x116)&&!Array[_0x2da9d1(0xa9)](_0x1e417a),J=_0x52f4b5=>{const _0x42bfa7={_0x3b71c5:0x111,_0x58efc9:0x13b,_0x2094c2:0x116},_0x509d86=_0x2da9d1;if(!h(_0x52f4b5)||!h(_0x52f4b5[_0x509d86(0x116)])||typeof _0x52f4b5[_0x509d86(0x116)][_0x509d86(0x10d)]!=_0x509d86(_0x42bfa7._0x3b71c5))throw new Error(_0x509d86(0x8c)+'ef\x20respo'+_0x509d86(0x7c)+_0x509d86(_0x42bfa7._0x58efc9)+_0x509d86(0x15a)+_0x509d86(0xed));const _0x2aca72={};_0x2aca72['sha']=_0x52f4b5[_0x509d86(_0x42bfa7._0x2094c2)][_0x509d86(0x10d)];const _0x4573a1={};return _0x4573a1[_0x509d86(0x116)]=_0x2aca72,_0x4573a1;},T=_0x327e6c=>{const _0x5f487a={_0x197441:0x111,_0x143ae8:0xf6,_0x153d40:0x10d,_0x566d50:0xbf,_0x59c794:0x12e,_0x1f8bb6:0x10d,_0x4c9ba1:0x156},_0x442a32=_0x2da9d1;if(!h(_0x327e6c)||typeof _0x327e6c[_0x442a32(0x10d)]!=_0x442a32(_0x5f487a._0x197441)||!h(_0x327e6c[_0x442a32(_0x5f487a._0x143ae8)])||typeof _0x327e6c['tree'][_0x442a32(_0x5f487a._0x153d40)]!='string')throw new Error(_0x442a32(_0x5f487a._0x566d50)+_0x442a32(0x138)+_0x442a32(_0x5f487a._0x59c794)+'id\x20not\x20c'+'ontain\x20s'+_0x442a32(0xeb)+'ree.sha.');const _0x500e13={'sha':_0x327e6c[_0x442a32(0x10d)],'tree':{'sha':_0x327e6c[_0x442a32(0xf6)][_0x442a32(_0x5f487a._0x1f8bb6)]},...typeof _0x327e6c[_0x442a32(0x125)]==_0x442a32(0x111)?{'url':_0x327e6c[_0x442a32(0x125)]}:{},...typeof _0x327e6c['html_url']==_0x442a32(0x111)?{'html_url':_0x327e6c[_0x442a32(_0x5f487a._0x4c9ba1)]}:{}};return _0x500e13;},M=_0x46f8a4=>{const _0x18f2d7={_0xe11cc4:0x111,_0x27003a:0x110,_0x3d8c31:0x10d},_0x516797=_0x2da9d1;if(!h(_0x46f8a4)||typeof _0x46f8a4[_0x516797(0x10d)]!=_0x516797(_0x18f2d7._0xe11cc4))throw new Error('GitHub\x20t'+'ree\x20resp'+_0x516797(0x74)+_0x516797(_0x18f2d7._0x27003a)+'tain\x20sha'+'.');const _0x33a125={};return _0x33a125[_0x516797(_0x18f2d7._0x3d8c31)]=_0x46f8a4['sha'],_0x33a125;},L=_0x217d99=>{const _0x20364d={_0x1b4aab:0xf4,_0x122f83:0xad,_0x2734f3:0xe2,_0x1aa501:0xce,_0x281ddf:0xfe,_0x1022d9:0x12f,_0x238e9d:0xd9,_0x2113e8:0xd9,_0x486bc0:0x117},_0xf1e683=_0x2da9d1;if(!h(_0x217d99)||typeof _0x217d99['content']!='string'||typeof _0x217d99[_0xf1e683(0x117)]!=_0xf1e683(0x111))throw new Error('GitHub\x20c'+_0xf1e683(_0x20364d._0x1b4aab)+_0xf1e683(_0x20364d._0x122f83)+_0xf1e683(_0x20364d._0x2734f3)+_0xf1e683(_0x20364d._0x1aa501)+_0xf1e683(0xa4)+_0xf1e683(_0x20364d._0x281ddf)+_0xf1e683(_0x20364d._0x1022d9));const _0x3a875d={};return _0x3a875d[_0xf1e683(_0x20364d._0x238e9d)]=_0x217d99[_0xf1e683(_0x20364d._0x2113e8)],_0x3a875d[_0xf1e683(_0x20364d._0x486bc0)]=_0x217d99[_0xf1e683(0x117)],_0x3a875d;},k=_0x34a50b=>{const _0x20e274={_0x2c31c2:0xf3,_0x19863d:0x88,_0x3d2602:0x136,_0x4e7600:0x111,_0x201cc1:0x112,_0x5f2cfd:0x104,_0xf002b5:0x10e,_0x3d917e:0xee,_0x24ec76:0x111,_0xfd3fed:0xee},_0x4f4fd7=_0x2da9d1;if(!h(_0x34a50b)||typeof _0x34a50b['number']!='number'||typeof _0x34a50b[_0x4f4fd7(0x88)]!='string')throw new Error(_0x4f4fd7(_0x20e274._0x2c31c2)+'ull\x20requ'+'est\x20resp'+_0x4f4fd7(0x74)+_0x4f4fd7(0x110)+'tain\x20num'+'ber\x20and\x20'+_0x4f4fd7(0x89));return{'number':_0x34a50b['number'],'title':_0x34a50b[_0x4f4fd7(_0x20e274._0x19863d)],'body':typeof _0x34a50b[_0x4f4fd7(0x136)]=='string'?_0x34a50b[_0x4f4fd7(_0x20e274._0x3d2602)]:null,...typeof _0x34a50b[_0x4f4fd7(0x156)]==_0x4f4fd7(_0x20e274._0x4e7600)?{'html_url':_0x34a50b[_0x4f4fd7(0x156)]}:{},...typeof _0x34a50b['url']==_0x4f4fd7(0x111)?{'url':_0x34a50b['url']}:{},...typeof _0x34a50b['state']==_0x4f4fd7(0x111)?{'state':_0x34a50b[_0x4f4fd7(_0x20e274._0x201cc1)]}:{},...h(_0x34a50b['head'])&&typeof _0x34a50b[_0x4f4fd7(_0x20e274._0x5f2cfd)][_0x4f4fd7(0x10e)]=='string'?{'head':{'ref':_0x34a50b[_0x4f4fd7(0x104)][_0x4f4fd7(_0x20e274._0xf002b5)]}}:{},...h(_0x34a50b[_0x4f4fd7(_0x20e274._0x3d917e)])&&typeof _0x34a50b[_0x4f4fd7(0xee)]['ref']==_0x4f4fd7(_0x20e274._0x24ec76)?{'base':{'ref':_0x34a50b[_0x4f4fd7(_0x20e274._0xfd3fed)][_0x4f4fd7(_0x20e274._0xf002b5)]}}:{}};},K=_0x1e804d=>{const _0x25e3b3={_0xb394fc:0xa9,_0x2e9a5f:0x10c},_0x44715b=_0x2da9d1;if(!Array[_0x44715b(_0x25e3b3._0xb394fc)](_0x1e804d))throw new Error(_0x44715b(0xf3)+_0x44715b(0x14b)+'est\x20list'+_0x44715b(0xb0)+_0x44715b(0x13e)+_0x44715b(0x127)+_0x44715b(0x93));return _0x1e804d[_0x44715b(_0x25e3b3._0x2e9a5f)](k);},$=class{#e;#t;#r;#n;constructor(_0x355686){const _0x37d2b2={_0x3b1b77:0x137,_0x3a8197:0x9b,_0x39df01:0xdb,_0x5d4a55:0xc6,_0x102cf0:0xb4,_0x10e2db:0x106,_0x145274:0x103,_0x28db4c:0x149},_0x462ed6=_0x2da9d1;let _0x1099b5=_(D('GITHUB_R'+'EPOSITOR'+'Y')),_0x1515a1=B(_0x355686[_0x462ed6(_0x37d2b2._0x3b1b77)])??_0x1099b5?.[_0x462ed6(0x137)],_0x4baa12=B(_0x355686[_0x462ed6(0x149)])??_0x1099b5?.[_0x462ed6(0x149)],_0x3ab83a=B(_0x355686['token'])??D(_0x462ed6(0xf1)+_0x462ed6(0xaf));if(_0x1515a1===void 0x0||_0x4baa12===void 0x0||_0x3ab83a===void 0x0)throw new j(_0x462ed6(0x8b)+_0x462ed6(0xd4)+_0x462ed6(0x106)+'owner,\x20r'+_0x462ed6(0x12d)+'\x20token.\x20'+_0x462ed6(0xd7)+'them\x20in\x20'+_0x462ed6(_0x37d2b2._0x3a8197)+_0x462ed6(0x133)+_0x462ed6(_0x37d2b2._0x39df01)+'OSITORY\x20'+_0x462ed6(_0x37d2b2._0x5d4a55)+_0x462ed6(_0x37d2b2._0x102cf0)+'.');let _0x1cdc7f=_0x355686['fetch']??globalThis[_0x462ed6(0x8e)];if(_0x1cdc7f===void 0x0)throw new j(_0x462ed6(0x8b)+_0x462ed6(0xd4)+_0x462ed6(_0x37d2b2._0x10e2db)+_0x462ed6(0x10b)+_0x462ed6(0x87)+_0x462ed6(_0x37d2b2._0x145274));const _0x5b2415={};_0x5b2415['owner']=_0x1515a1,_0x5b2415[_0x462ed6(_0x37d2b2._0x28db4c)]=_0x4baa12,_0x5b2415[_0x462ed6(0xcb)]=_0x3ab83a,(this.#e=_0x5b2415,this.#t=z(_0x355686['apiBaseU'+'rl']),this.#r=_0x355686['apiVersi'+'on']??U,this.#n=_0x1cdc7f);}async['ensureBr'+_0x2da9d1(0xcc)](_0x33f1b2,_0x52f373){const _0x245659={_0x453987:0x116,_0x3d00fb:0x10d,_0xe48cc2:0xb7,_0x3ea4a3:0x118,_0x1c9858:0x10d},_0x4c4394=_0x2da9d1;let _0x5015e7=await this.#i(_0x33f1b2);if(_0x5015e7!==void 0x0)return _0x5015e7[_0x4c4394(_0x245659._0x453987)][_0x4c4394(0x10d)];let _0x3905ed=await this['getRef'](_0x52f373);try{const _0xfb8f2={};return _0xfb8f2['ref']='refs/hea'+'ds/'+_0x33f1b2,_0xfb8f2[_0x4c4394(_0x245659._0x3d00fb)]=_0x3905ed[_0x4c4394(0x116)]['sha'],(await this.#s(_0x4c4394(_0x245659._0xe48cc2),_0x4c4394(0xa6)+'s',_0xfb8f2,J))[_0x4c4394(0x116)]['sha'];}catch(_0x302a37){if(_0x302a37 instanceof y&&_0x302a37[_0x4c4394(_0x245659._0x3ea4a3)]===0x1a6)return(await this['getRef'](_0x33f1b2))[_0x4c4394(0x116)][_0x4c4394(_0x245659._0x1c9858)];throw _0x302a37;}}async[_0x2da9d1(0x109)](_0x425730,_0x476b87){const _0x895bf1={_0x161df8:0x7b,_0x53736a:0xbd,_0xb67d86:0xd9},_0x2c2cf1=_0x2da9d1,_0x23f40c={};_0x23f40c['ref']=_0x476b87;let _0x594c58=await this.#s(_0x2c2cf1(0x113),'/content'+'s/'+V(_0x425730),void 0x0,L,_0x23f40c);if(_0x594c58['encoding']!==_0x2c2cf1(_0x895bf1._0x161df8))throw new Error('Unsuppor'+_0x2c2cf1(0x131)+_0x2c2cf1(_0x895bf1._0x53736a)+_0x2c2cf1(0x96)+_0x2c2cf1(0x11b)+_0x594c58['encoding']);return JSON[_0x2c2cf1(0xb2)](_0x51d5b4['from'](_0x594c58[_0x2c2cf1(_0x895bf1._0xb67d86)][_0x2c2cf1(0x8a)](/\s+/gu,''),_0x2c2cf1(0x7b))[_0x2c2cf1(0x107)](_0x2c2cf1(0xdc)));}async[_0x2da9d1(0x115)+'les'](_0x375b4d){const _0x2ff6b8={_0x238fda:0x11d,_0x222d45:0x113,_0x1d04a2:0x116,_0x2d258c:0xb7,_0x2dcdcb:0xde,_0xb366e9:0x7d},_0x1e1d64=_0x2da9d1;let _0x38c36c=await this[_0x1e1d64(_0x2ff6b8._0x238fda)](_0x375b4d[_0x1e1d64(0x13d)+'me']),_0x36eb3c=await this.#s(_0x1e1d64(_0x2ff6b8._0x222d45),'/git/com'+'mits/'+encodeURIComponent(_0x38c36c[_0x1e1d64(_0x2ff6b8._0x1d04a2)]['sha']),void 0x0,T),_0x44d8e8=await this.#s(_0x1e1d64(_0x2ff6b8._0x2d258c),_0x1e1d64(0x120)+'es',{'base_tree':_0x36eb3c[_0x1e1d64(0xf6)][_0x1e1d64(0x10d)],'tree':_0x375b4d['files'][_0x1e1d64(0x10c)](_0xc674cb=>({'path':_0xc674cb[_0x1e1d64(0xc5)],'mode':'100644','type':_0x1e1d64(0x152),'content':_0xc674cb[_0x1e1d64(0xd9)]}))},M),_0x2b2fc2=await this.#s(_0x1e1d64(0xb7),_0x1e1d64(_0x2ff6b8._0x2dcdcb)+_0x1e1d64(0x9c),{'message':_0x375b4d['message'],'tree':_0x44d8e8['sha'],'parents':[_0x38c36c['object'][_0x1e1d64(0x10d)]]},T);const _0x4b831c={};return _0x4b831c[_0x1e1d64(0x10d)]=_0x2b2fc2['sha'],_0x4b831c[_0x1e1d64(0xe4)]=!0x1,(await this.#s(_0x1e1d64(0x10f),_0x1e1d64(0xa6)+_0x1e1d64(_0x2ff6b8._0xb366e9)+_0x375b4d['branchNa'+'me'],_0x4b831c,()=>{}),_0x2b2fc2);}async['createOr'+'UpdatePu'+_0x2da9d1(0x128)+'t'](_0x1f13dc){const _0x33ce63={_0x36458f:0x10f},_0x4870c6=_0x2da9d1;let _0x5cbb91=await this.#o(_0x1f13dc['branchNa'+'me'],_0x1f13dc[_0x4870c6(0xcd)+'ch']),_0x50c802=_0x1f13dc[_0x4870c6(0x13c)][_0x4870c6(0x136)]??'';if(_0x5cbb91!==void 0x0){const _0x3af5f2={};_0x3af5f2[_0x4870c6(0x88)]=_0x1f13dc[_0x4870c6(0x13c)][_0x4870c6(0x88)],_0x3af5f2['body']=_0x50c802;let _0xc0dde9=await this.#s(_0x4870c6(_0x33ce63._0x36458f),'/pulls/'+_0x5cbb91[_0x4870c6(0x122)],_0x3af5f2,k);const _0x35a419={};return _0x35a419[_0x4870c6(0x158)]=!0x1,_0x35a419[_0x4870c6(0xe8)]=!0x0,this.#a(_0xc0dde9,_0x1f13dc,_0x35a419);}const _0xbaabb8={};_0xbaabb8['title']=_0x1f13dc['metadata']['title'],_0xbaabb8[_0x4870c6(0x136)]=_0x50c802,_0xbaabb8[_0x4870c6(0x104)]=_0x1f13dc[_0x4870c6(0x13d)+'me'],_0xbaabb8[_0x4870c6(0xee)]=_0x1f13dc['baseBran'+'ch'];let _0x37079b=await this.#s(_0x4870c6(0xb7),_0x4870c6(0x151),_0xbaabb8,k);const _0x46d654={};return _0x46d654[_0x4870c6(0x158)]=!0x0,_0x46d654[_0x4870c6(0xe8)]=!0x1,this.#a(_0x37079b,_0x1f13dc,_0x46d654);}async[_0x2da9d1(0x11d)](_0x41314f){const _0x38ae8c={_0xfbf17:0x113,_0x569bc9:0x118},_0x56bf72=_0x2da9d1;try{return await this.#s(_0x56bf72(_0x38ae8c._0xfbf17),'/git/ref'+_0x56bf72(0x11a)+_0x41314f,void 0x0,J);}catch(_0x1033c9){throw _0x1033c9 instanceof y&&_0x1033c9[_0x56bf72(_0x38ae8c._0x569bc9)]===0x194?new g('GitHub\x20b'+'ranch\x20no'+_0x56bf72(0x7e)+'\x20'+_0x41314f):_0x1033c9;}}async #i(_0x4a303b){try{return await this['getRef'](_0x4a303b);}catch(_0x5f4071){if(_0x5f4071 instanceof g)return;throw _0x5f4071;}}async #o(_0x4180cd,_0x541ad2){const _0x15c0b0={_0x162941:0x113},_0x464e0f=_0x2da9d1;return(await this.#s(_0x464e0f(_0x15c0b0._0x162941),'/pulls',void 0x0,K,{'state':_0x464e0f(0x9e),'head':this.#e['owner']+':'+_0x4180cd,'base':_0x541ad2}))[0x0];}#a(_0x2a8335,_0x2a2e26,_0x5848e4){const _0x3cc9da={_0x269f02:0xae,_0x5d654b:0x125,_0x36eb6f:0x156},_0x4110d9=_0x2da9d1,_0x4b4aa0={'title':_0x2a8335[_0x4110d9(0x88)],'body':_0x2a8335[_0x4110d9(0x136)]??'','headBranch':_0x2a2e26[_0x4110d9(0x13d)+'me'],'baseBranch':_0x2a2e26['baseBran'+'ch'],'committedResources':[..._0x2a2e26[_0x4110d9(_0x3cc9da._0x269f02)+_0x4110d9(0x7f)+'es']],'number':_0x2a8335['number'],'created':_0x5848e4['created'],'updated':_0x5848e4['updated'],..._0x2a8335[_0x4110d9(0x125)]===void 0x0?{}:{'url':_0x2a8335[_0x4110d9(_0x3cc9da._0x5d654b)]},..._0x2a8335['html_url']===void 0x0?{}:{'htmlUrl':_0x2a8335[_0x4110d9(_0x3cc9da._0x36eb6f)]},..._0x2a8335[_0x4110d9(0x112)]===void 0x0?{}:{'state':_0x2a8335[_0x4110d9(0x112)]}};return _0x4b4aa0;}async #s(_0x533065,_0x2491ad,_0x3b5d32,_0x1b1d43,_0x513a7e){const _0x403250={_0x434555:0xc1,_0x141b76:0x15c,_0x582d6a:0xcb,_0x275dbe:0xf5,_0x4e33ed:0xc7,_0x5b71f6:0xf8,_0x59e0d5:0x118,_0x2b812a:0x8f},_0x49c875=_0x2da9d1,_0x2b545f={};_0x2b545f[_0x49c875(0xb9)]=_0x49c875(0xc7)+_0x49c875(0x7a)+_0x49c875(0x101)+_0x49c875(_0x403250._0x434555),_0x2b545f[_0x49c875(0xec)+_0x49c875(_0x403250._0x141b76)]=_0x49c875(0xf9)+this.#e[_0x49c875(_0x403250._0x582d6a)],_0x2b545f[_0x49c875(0x132)+_0x49c875(_0x403250._0x275dbe)]=_0x49c875(_0x403250._0x4e33ed)+'ion/json',_0x2b545f[_0x49c875(_0x403250._0x5b71f6)+_0x49c875(0x124)+_0x49c875(0x86)]=this.#r;let _0x5ea53b={'method':_0x533065,'headers':_0x2b545f,..._0x3b5d32===void 0x0?{}:{'body':JSON[_0x49c875(0x123)+'y'](_0x3b5d32)}},_0x21b033=await this.#n(this.#c(_0x2491ad,_0x513a7e),_0x5ea53b);if(!_0x21b033['ok']){let _0x3b1138=await _0x21b033['text']();throw _0x21b033['status']===0x199?new C(_0x533065,_0x2491ad,_0x21b033[_0x49c875(_0x403250._0x59e0d5)],_0x3b1138):new y(_0x533065,_0x2491ad,_0x21b033['status'],_0x3b1138);}return _0x21b033[_0x49c875(0x118)]===0xcc?_0x1b1d43(void 0x0):_0x1b1d43(await _0x21b033[_0x49c875(_0x403250._0x2b812a)]());}#c(_0x3d550e,_0x4d1ba5){const _0x3a3840={_0x5d23b8:0x134,_0x51858f:0x12b},_0x3d8961=_0x2da9d1;let _0x30e3f3=new URL(this.#t+_0x3d8961(_0x3a3840._0x5d23b8)+encodeURIComponent(this.#e[_0x3d8961(0x137)])+'/'+encodeURIComponent(this.#e[_0x3d8961(0x149)])+_0x3d550e);for(let [_0x15a3ac,_0xabb13]of Object['entries'](_0x4d1ba5??{}))_0x30e3f3[_0x3d8961(0xf2)+_0x3d8961(0xa5)][_0x3d8961(_0x3a3840._0x51858f)](_0x15a3ac,_0xabb13);return _0x30e3f3[_0x3d8961(0x107)]();}},Y=(_0x28bc60,_0x92be6f)=>{const _0x3e7006=_0x2da9d1;let _0x2cafca=_0x92be6f['split']('.');for(let _0x47253e=_0x2cafca[_0x3e7006(0xfa)];_0x47253e>0x0;_0x47253e-=0x1){let _0x2f2408=_0x2cafca[_0x3e7006(0xd3)](0x0,_0x47253e)[_0x3e7006(0x155)]('.'),_0x13d240=_0x28bc60[_0x2f2408];if(_0x13d240!==void 0x0)return _0x13d240;}return _0x28bc60['*'];},q=(_0xdec549,_0x454b95,_0x22bcd1)=>{const _0x22eb42={_0x23267d:0x154},_0x1eb8be=_0x2da9d1;let _0x1e05a3=_0x454b95['ownershi'+'p'];if(_0x1e05a3===void 0x0)return;let _0x4d3d99=Y(_0x1e05a3,_0x22bcd1);if(_0x4d3d99===void 0x0)throw new P(_0xdec549,_0x22bcd1,_0x1eb8be(0x11f));if(_0x4d3d99!==_0x1eb8be(_0x22eb42._0x23267d)+_0x1eb8be(0x143))throw new P(_0xdec549,_0x22bcd1,_0x4d3d99);},Q=_0x41f885=>structuredClone(_0x41f885),W=(_0x228bd7,_0x21bbf4)=>{const _0x3784d1=_0x2da9d1;let _0x14e307=_0x228bd7;for(let _0x4818ad of _0x21bbf4){let _0x65d4c4=_0x14e307[_0x4818ad];if(_0x65d4c4===void 0x0){let _0x136b72={};_0x14e307[_0x4818ad]=_0x136b72,_0x14e307=_0x136b72;continue;}if(Array[_0x3784d1(0xa9)](_0x65d4c4)||_0x65d4c4===null||typeof _0x65d4c4!=_0x3784d1(0x116))throw new Error(_0x3784d1(0x14c)+_0x3784d1(0x97)+_0x3784d1(0x81)+_0x3784d1(0x142)+'h\x20scalar'+_0x3784d1(0x75)+_0x4818ad+'\x22.');_0x14e307=_0x65d4c4;}return _0x14e307;},H=(_0x60ffb5,_0xc1f2ee)=>{const _0x2f53c8={_0x3b62a2:0x85,_0x2f61bc:0xfa},_0x440c11=_0x2da9d1;let _0x915738=structuredClone(_0x60ffb5),_0x1d4c06=Object[_0x440c11(0x80)](_0xc1f2ee)['sort'](([_0x4674a9],[_0x238c50])=>_0x4674a9[_0x440c11(0x84)+_0x440c11(0x159)](_0x238c50));for(let [_0x4bd386,_0x95699b]of _0x1d4c06){let _0x2b7f0f=_0x4bd386[_0x440c11(_0x2f53c8._0x3b62a2)]('.')['filter'](Boolean);if(_0x2b7f0f[_0x440c11(_0x2f53c8._0x2f61bc)]===0x0)continue;let _0x15698b=W(_0x915738,_0x2b7f0f['slice'](0x0,-0x1)),_0x140dbd=_0x2b7f0f['at'](-0x1);_0x140dbd!==void 0x0&&(_0x15698b[_0x140dbd]=Q(_0x95699b));}return _0x915738;};import*as _0x24805f from'node:path';var w=(_0x7be7bd,_0x106e11)=>{const _0x22eff5={_0x20788a:0xda,_0x23a84f:0xda,_0x1e15c3:0xc8,_0x2e9cda:0x155,_0x4d07df:0x155},_0x145555=_0x2da9d1;let _0x2856c9=_0x106e11['trim']()[_0x145555(0x76)+'ll']('\x5c','/'),_0x176818=_0x2856c9[_0x145555(0x85)]('/')[_0x145555(0x14a)](Boolean);if(_0x176818[_0x145555(0xfa)]!==0x2)throw new R(_0x145555(0xa2)+_0x145555(0xc3)+_0x106e11+(_0x145555(0x15b)+'e\x20in\x20\x22<c'+_0x145555(_0x22eff5._0x20788a)+_0x145555(0xa1)+'\x20format.'));let [_0x3fe9b7,_0xcc020a]=_0x176818;if(_0x3fe9b7===void 0x0||_0xcc020a===void 0x0)throw new R(_0x145555(0xa2)+_0x145555(0xc3)+_0x106e11+(_0x145555(0x15b)+'e\x20in\x20\x22<c'+_0x145555(_0x22eff5._0x23a84f)+_0x145555(0xa1)+'\x20format.'));let _0x564670=_0x7be7bd['resource'+'s'][_0x3fe9b7];if(_0x564670===void 0x0)throw new G(_0x145555(0x13f)+'rce\x20defi'+'nition\x20f'+_0x145555(0xfd)+_0x145555(0x108)+_0x145555(_0x22eff5._0x1e15c3)+_0x3fe9b7+'\x22.');let _0x2cbd39=_0x24805f[_0x145555(_0x22eff5._0x2e9cda)](_0x7be7bd['resource'+_0x145555(0x94)]??_0x145555(0x157),_0x3fe9b7,_0xcc020a,_0x564670[_0x145555(0x145)]);return{'resourcePath':_0x2856c9,'collection':_0x3fe9b7,'identifier':_0xcc020a,'definition':_0x564670,'relativeFilePath':_0x2cbd39,'absoluteFilePath':_0x24805f[_0x145555(_0x22eff5._0x4d07df)](_0x7be7bd[_0x145555(0xd1)+'ryRoot'],_0x2cbd39)};},Z=_0x3a5fbb=>_0x3a5fbb['trim']()[_0x2da9d1(0xb8)+_0x2da9d1(0xef)]()['replace'](/[^a-z0-9/-]+/g,'-')[_0x2da9d1(0x76)+'ll']('/','-')['replace'](/-+/g,'-')[_0x2da9d1(0x8a)](/^-|-$/g,''),v=_0x2366d6=>_0x2366d6[_0x2da9d1(0xa3)+_0x2da9d1(0xc2)]()[_0x2da9d1(0xd3)](0x0,0xa),I=async _0xf6dc76=>{const _0x1e64fe={_0x26d8cc:0x83},_0x5950c3=_0x2da9d1;try{let _0x5250a3=await _0x43c376(_0xf6dc76,'utf8');return JSON['parse'](_0x5250a3);}catch(_0x4316c9){throw _0x4316c9[_0x5950c3(0x102)]===_0x5950c3(0x99)?new g(_0x5950c3(0xa2)+_0x5950c3(_0x1e64fe._0x26d8cc)+_0x5950c3(0x7e)+'\x20'+_0xf6dc76):_0x4316c9;}},O=class{#e;#t;#r;#n=new Map();#i=[];constructor(_0x44c099){const _0x467ff8={_0x557194:0x119,_0x1e1e82:0x146},_0x409f34=_0x2da9d1;this.#e=_0x44c099,_0x44c099[_0x409f34(0x146)]?.['type']===_0x409f34(_0x467ff8._0x557194)&&(this.#t=new $(_0x44c099[_0x409f34(_0x467ff8._0x1e1e82)]));}async[_0x2da9d1(0xba)](_0x203fe9){const _0x325c03={_0x4172cf:0xd2,_0x118814:0x150},_0x525636=_0x2da9d1;let _0x271735=w(this.#e,_0x203fe9);return this.#t!==void 0x0?this.#t['readJson'](_0x271735[_0x525636(0x90)+_0x525636(_0x325c03._0x4172cf)][_0x525636(0x76)+'ll'](_0x434132['sep'],'/'),this.#r?.['branchNa'+'me']??this.#o()):I(_0x271735[_0x525636(_0x325c03._0x118814)+_0x525636(0xd2)]);}async['startSes'+_0x2da9d1(0x86)](_0x49dee2){const _0x17ddc1={_0x8a7233:0x98,_0x7af0ee:0xc2,_0x338698:0xd6,_0x2dfa92:0xcc},_0x7c417c=_0x2da9d1;let _0x5b07a1=this.#e[_0x7c417c(_0x17ddc1._0x8a7233)+'ate']??new Date(),_0x125436=Z(_0x49dee2);return this.#r={'key':_0x49dee2,'branchName':_0x7c417c(0x10a)+_0x125436+'-'+v(_0x5b07a1),'startedAt':_0x5b07a1[_0x7c417c(0xa3)+_0x7c417c(_0x17ddc1._0x7af0ee)]()},this.#n[_0x7c417c(_0x17ddc1._0x338698)](),this.#i[_0x7c417c(0xfa)]=0x0,this.#t!==void 0x0&&await this.#t[_0x7c417c(0xab)+_0x7c417c(_0x17ddc1._0x2dfa92)](this.#r[_0x7c417c(0x13d)+'me'],this.#o()),this.#r;}[_0x2da9d1(0x82)+'ntSessio'+'n'](){return this.#r;}async[_0x2da9d1(0xb6)](_0x371682,_0x22042b){const _0x4fb295={_0x2008fb:0x109,_0x3e03fd:0x90,_0x31507e:0xd2,_0x1a914b:0x9a,_0x28b9ba:0x13d},_0x1da782=_0x2da9d1;let _0x22ed24=this.#r;if(_0x22ed24===void 0x0)throw new u('patch()\x20'+'requires'+_0x1da782(0xe1)+'ve\x20sessi'+_0x1da782(0x15e));let _0x2ede60=w(this.#e,_0x371682);for(let _0x16799b of Object[_0x1da782(0x130)](_0x22042b))q(_0x371682,_0x2ede60[_0x1da782(0xa7)+'on'],_0x16799b);let _0x393cab=this.#n['get'](_0x371682)??(this.#t===void 0x0?await I(_0x2ede60[_0x1da782(0x150)+_0x1da782(0xd2)]):await this.#t[_0x1da782(_0x4fb295._0x2008fb)](_0x2ede60[_0x1da782(_0x4fb295._0x3e03fd)+_0x1da782(_0x4fb295._0x31507e)]['replaceA'+'ll'](_0x434132[_0x1da782(_0x4fb295._0x1a914b)],'/'),_0x22ed24[_0x1da782(_0x4fb295._0x28b9ba)+'me'])),_0x62e38=H(_0x393cab,_0x22042b);return this.#n['set'](_0x371682,_0x62e38),_0x62e38;}async[_0x2da9d1(0xd8)](_0x2f1e25){const _0x3cdc69={_0xd73c43:0x13a,_0x44b8dd:0xc4,_0x5a0652:0xac,_0x3cf9b2:0x141,_0x1b25e2:0x130,_0x3251c5:0x115,_0x2241d4:0xc9,_0x10a802:0x13d,_0x5a6fef:0xbe,_0x3831e4:0x125,_0x325794:0x155,_0x5a2e50:0xd2,_0xd996f6:0xa8,_0x45b16e:0x148},_0x4d40c2={_0xed6a2d:0x15f,_0x350bea:0x76,_0x4987e7:0x9a},_0x5cdc50=_0x2da9d1;let _0x65d06a=this.#r;if(_0x65d06a===void 0x0)throw new u(_0x5cdc50(0x153)+'\x20require'+_0x5cdc50(0x79)+_0x5cdc50(_0x3cdc69._0xd73c43)+'ion.');if(this.#n['size']===0x0)throw new u(_0x5cdc50(0x153)+_0x5cdc50(_0x3cdc69._0x44b8dd)+'s\x20staged'+_0x5cdc50(_0x3cdc69._0x5a0652)+'.');for(let [_0x340708,_0x4307c8]of this.#n[_0x5cdc50(0x80)]()){let _0x20cb20=w(this.#e,_0x340708)[_0x5cdc50(0xa7)+'on'][_0x5cdc50(_0x3cdc69._0x3cf9b2)];if(_0x20cb20===void 0x0)continue;let _0x24d4f2=_0x20cb20(_0x4307c8);if(_0x24d4f2['length']>0x0)throw new S(_0x340708,_0x24d4f2);}if(this.#t!==void 0x0){let _0xd0f5c1=[...this.#n[_0x5cdc50(_0x3cdc69._0x1b25e2)]()][_0x5cdc50(0x92)](),_0x4e1d11=await this.#t[_0x5cdc50(_0x3cdc69._0x3251c5)+_0x5cdc50(_0x3cdc69._0x2241d4)]({'branchName':_0x65d06a[_0x5cdc50(_0x3cdc69._0x10a802)+'me'],'message':_0x2f1e25,'files':_0xd0f5c1['map'](_0x30c8f1=>{const _0x5b8d0d=_0x5cdc50;let _0x93f892=this.#n[_0x5b8d0d(0xbb)](_0x30c8f1);if(_0x93f892===void 0x0)throw new u(_0x5b8d0d(_0x4d40c2._0xed6a2d)+'staged\x20d'+'ocument\x20'+_0x5b8d0d(0xd0)+_0x30c8f1+'.');return{'path':w(this.#e,_0x30c8f1)[_0x5b8d0d(0x90)+_0x5b8d0d(0xd2)][_0x5b8d0d(_0x4d40c2._0x350bea)+'ll'](_0x434132[_0x5b8d0d(_0x4d40c2._0x4987e7)],'/'),'content':JSON['stringif'+'y'](_0x93f892,null,0x2)+'\x0a'};})});return this.#i[_0x5cdc50(_0x3cdc69._0x5a6fef)]({'message':_0x2f1e25,'createdAt':new Date()[_0x5cdc50(0xa3)+_0x5cdc50(0xc2)](),'resources':_0xd0f5c1}),{'branchName':_0x65d06a[_0x5cdc50(0x13d)+'me'],'message':_0x2f1e25,'committedResources':_0xd0f5c1,'commitFilePath':'','commitSha':_0x4e1d11['sha'],..._0x4e1d11[_0x5cdc50(_0x3cdc69._0x3831e4)]===void 0x0?{}:{'commitUrl':_0x4e1d11[_0x5cdc50(_0x3cdc69._0x3831e4)]},..._0x4e1d11['html_url']===void 0x0?{}:{'htmlUrl':_0x4e1d11[_0x5cdc50(0x156)]}};}let _0x3bc38a=_0x434132[_0x5cdc50(0x155)](this.#e[_0x5cdc50(0xd1)+_0x5cdc50(0xd5)],this.#a(),_0x65d06a['branchNa'+'me']);const _0x2d54da={};_0x2d54da[_0x5cdc50(0x135)+'e']=!0x0,await _0x3dfa35(_0x3bc38a,_0x2d54da);for(let [_0x4bd708,_0x539c9d]of this.#n[_0x5cdc50(0x80)]()){let _0x4bd6ae=w(this.#e,_0x4bd708),_0x4b7db2=_0x434132[_0x5cdc50(_0x3cdc69._0x325794)](_0x3bc38a,_0x4bd6ae[_0x5cdc50(0x90)+_0x5cdc50(_0x3cdc69._0x5a2e50)]);const _0x3777db={};_0x3777db['recursiv'+'e']=!0x0,(await _0x3dfa35(_0x434132['dirname'](_0x4b7db2),_0x3777db),await _0x10c5ba(_0x4b7db2,JSON[_0x5cdc50(0x123)+'y'](_0x539c9d,null,0x2)+'\x0a','utf8'));}let _0x3ae058=new Date()[_0x5cdc50(0xa3)+_0x5cdc50(0xc2)](),_0x4bf508=[...this.#n['keys']()]['sort'](),_0x21f26a=this.#i[_0x5cdc50(0xfa)]+0x1,_0x9f2dba=_0x434132[_0x5cdc50(0x155)](_0x3bc38a,_0x5cdc50(_0x3cdc69._0xd996f6)+String(_0x21f26a)[_0x5cdc50(0x139)](0x4,'0')+_0x5cdc50(_0x3cdc69._0x45b16e)),_0x41d6f9={'message':_0x2f1e25,'createdAt':_0x3ae058,'resources':_0x4bf508};return await _0x10c5ba(_0x9f2dba,JSON[_0x5cdc50(0x123)+'y'](_0x41d6f9,null,0x2)+'\x0a',_0x5cdc50(0xdc)),this.#i['push'](_0x41d6f9),{'branchName':_0x65d06a['branchNa'+'me'],'message':_0x2f1e25,'committedResources':_0x4bf508,'commitFilePath':_0x9f2dba};}async[_0x2da9d1(0xf7)+_0x2da9d1(0x128)+'t'](_0x2f7321){const _0x371775={_0x211412:0xfa,_0x5cd3ee:0xf7,_0x104cb2:0x128,_0x36f0aa:0x12a,_0x3549a6:0xff,_0x532867:0x13d},_0x220507=_0x2da9d1;let _0x52a01f=this.#r;if(_0x52a01f===void 0x0)throw new u(_0x220507(0xf7)+_0x220507(0x128)+'t()\x20requ'+_0x220507(0x14e)+_0x220507(0xdd)+_0x220507(0x129));if(this.#i[_0x220507(_0x371775._0x211412)]===0x0)throw new u(_0x220507(_0x371775._0x5cd3ee)+_0x220507(_0x371775._0x104cb2)+'t()\x20requ'+'ires\x20at\x20'+_0x220507(_0x371775._0x36f0aa)+_0x220507(0xf0)+_0x220507(0xca)+'ge.');let _0x59c756=this.#i[_0x220507(_0x371775._0x3549a6)](_0x4aa93c=>_0x4aa93c[_0x220507(0x105)+'s']);return this.#t!==void 0x0?this.#t[_0x220507(0x11c)+'UpdatePu'+'llReques'+'t']({'branchName':_0x52a01f[_0x220507(_0x371775._0x532867)+'me'],'baseBranch':this.#o(),'metadata':_0x2f7321,'committedResources':[...new Set(_0x59c756)]['sort']()}):{'title':_0x2f7321['title'],'body':_0x2f7321[_0x220507(0x136)]??'','headBranch':_0x52a01f[_0x220507(0x13d)+'me'],'baseBranch':this.#o(),'committedResources':[...new Set(_0x59c756)][_0x220507(0x92)]()};}#o(){return this.#e['baseBran'+'ch']??'main';}#a(){const _0xcd3267={_0x1e5a8b:0xf5,_0xb6e766:0x146,_0x4e5bdf:0xcf},_0x3af747=_0x2da9d1;return this.#e[_0x3af747(0x146)]?.[_0x3af747(_0xcd3267._0x1e5a8b)]==='local'&&this.#e[_0x3af747(_0xcd3267._0xb6e766)][_0x3af747(0x77)+'Root']!==void 0x0?this.#e[_0x3af747(0x146)][_0x3af747(0x77)+_0x3af747(0x94)]:_0x434132[_0x3af747(0x155)](_0x3af747(_0xcd3267._0x4e5bdf),'sessions');}},be=_0x26072b=>new O(_0x26072b);export{O as GitDB,c as GitDBError,y as GitHubApiError,j as GitHubConfigurationError,C as GitHubConflictError,R as InvalidResourcePathError,P as OwnershipViolationError,G as ResourceDefinitionError,g as ResourceNotFoundError,u as SessionMisuseError,S as ValidationFailureError,be as createGitDB};function _0x342e(){const _0x112c70=['zM9Yia','CMvWB3nPDg8','rMLSzvbHDgG','C2XPy2u','ywnRzw5Kihi','CNLsB290','y2XLyxi','uhjVDMLKzsa','y29TBwL0','y29UDgvUDa','B2XSzwn0Aw8','veHvqL9srva','DxrMoa','ywn0AxzLihm','l2DPDc9JB20','nJiZmZe2nKnxALrVrW','yxrJAcaI','igfUigfJDgK','zgLKig5VDca','odu5ntC4t2r1uM1X','zM9Yy2u','D2L0Aca','ChjVy2vZCW','ktOG','DxbKyxrLza','Bwv0Ag9K','DhjPBq','AgeGyw5Kihq','yxv0Ag9YAxO','y3qUC2HHlG','yMfZzq','yxnL','zsbJB21TAxq','r0Lusfvcx1q','C2vHCMnOuge','r2L0shvIiha','B250zw50ihi','DhLWzq','DhjLzq','y3jLyxrLuhu','Ec1NAxrODwi','qMvHCMvYia','BgvUz3rO','nJq3mdiZyKzAshb3','ihjLCg9YDgu','B3vUzcbMB3i','yw5KigvUy28','zMXHDe1HCa','yxbPlMDPDgG','z2L0AhvIk2O','y29Kzq','Dgf0Aw9UlG','AgvHza','CMvZB3vYy2u','zxf1AxjLCYa','Dg9tDhjPBMC','ignVBgXLy3q','CMvHzePZB24','C2vZC2LVBI8','ysbMzxrJAca','BwfW','C2HH','CMvM','uefuq0G','ig5VDcbJB24','C3rYAw5N','C3rHDgu','r0vu','q2fUBM90iha','y29TBwL0rMK','B2jQzwn0','zw5JB2rPBMC','C3rHDhvZ','z2L0AhvI','l2HLywrZlW','Aw5NoIa','y3jLyxrLt3i','z2v0uMvM','nJHxseDlA0m','Dw5VD25Lza','l2DPDc90CMu','zMLLBgrqyxq','BNvTyMvY','C3rYAw5NAwy','lwfWAs12zxi','DxjS','ueKG','DcbHBIbHCNi','BgXszxf1zxm','zxnZAw9UlG','BgvHC3qGB24','C2v0','zw52','zxbVlcbHBMq','C3bVBNnLigq','zgLUzY4','A2v5CW','DgvKieDPDeG','y29UDgvUDc0','CIbZzxqGr0K','l3jLCg9ZlW','CMvJDxjZAxy','yM9KEq','B3DUzxi','B21TAxqGCMu','CgfKu3rHCNq','AxzLihnLC3m','BM90ignVBNq','Bwv0ywrHDge','yNjHBMnOtMe','zsb3yxmGBM8','tM8GCMvZB3u','ndi3sNnLAuLN','DMfSAwrHDgu','AcbIzw5Lyxq','B3DUzwq','qM9KEq','zMLSzu5HBwu','yMfJA2vUza','mtmWnZC0ngrKD3DYzG','lMPZB24','CMvWBW','zMLSDgvY','DwXSihjLCxu','q2fUBM90ige','mZuWndngCeXAtuC','AxjLCYbHBIa','mJbjBgjszMe','ywjZB2X1Dgu','l3b1BgXZ','yMXVyG','y29TBwL0kcK','BwfJAgLUzs0','AM9PBG','AhrTBf91CMW','zgf0yq','y3jLyxrLza','BxbHCMu','ywLUig9IAMu','iIbTDxn0igi','yxrPB24','iJOG','B24U','twLZC2LUzYa','B25ZzsbKAwq','igzPzwXKici','CMvWBgfJzue','C2vZC2LVBNm','mJu0mtm4mZLnzhvLrMi','CYbHBIbHy3q','Aw9Ul3zUzc4','yMfZzty0','BNnLigrPzca','CY9OzwfKCY8','DcbMB3vUzdO','zfjLC291CMm','zw50CMLLCW','zwn0ihbHDgm','z2v0q3vYCMu','igzPBguGBM8','Bg9JywXLq28','C3bSAxq','C2LVBG','Aw1WBgvTzw4','DgL0Bgu','DgL0BguU','CMvWBgfJzq','r2L0shvIigi','r2L0shvIihi','CMvZCg9UC2u','zMv0y2G','ANnVBG','CMvSyxrPDMu','iIbIzwnHDxm','C29YDa','yxKU','uM9VDa','mJaYmI0Xms0','BNqGzw5JB2q','ChbSEsbVyMO','y3vYCMvUDeq','ru5pru5u','C2vW','y29UzMLNig8','BwL0CW','igzHAwXLzca','B3bLBG','zcbMB3iGiG','mtb0wevtseS','BJ4VpgLKpIi','uMvZB3vYy2u','Dg9ju09tDhi','y29UDgvUDca','CMfTCW','l2DPDc9Yzwy','zgvMAw5PDgK','y29TBwL0lq','AxnbCNjHEq','ota5mZz6vfDUB2W','zw5ZDxjLqNi','ignOyw5Nzxm','zxnWB25Zzsa','y29TBwL0Dgu','t0TftG','ihjLC3bVBNm','zsbJB25MBgK','CgfYC2u','iIbVBIaI','vujFve9lru4','AxnZDwvZ','Cgf0y2G','ue9tva','Dg9mB3DLCKm','ywnJzxb0','CMvHza','z2v0','ugf0Aa','DwiGy29UDgu','ChvZAa','r2L0shvIigm','zsbPDcbPCYa','C29U','Aw5N','ihbHDgGGiG','ihjLCxvPCMu','Cgf0Aa','yw5KieDjveG','yxbWBgLJyxq','Aw9Uici','BgvZ','DgvKignOyw4','Dg9Rzw4','yw5JAa','yMfZzujYyw4','y29UDgfPBIa','lM5NAxrKyG'];_0x342e=function(){return _0x112c70;};return _0x342e();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuanst-one/ngitdb",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Git-native structured data layer for JSON resources in GitHub repositories.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",