1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1183],{18250:(e,t,a)=>{a.d(t,{Qx:()=>l,a6:()=>u,h4:()=>H,jM:()=>X,ss:()=>L,yD:()=>G});var r,s=Symbol.for("immer-nothing"),n=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function c(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var o=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function u(e){return!!e&&(h(e)||Array.isArray(e)||!!e[n]||!!e.constructor?.[n]||b(e)||g(e))}var p=Object.prototype.constructor.toString(),f=new WeakMap;function h(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let a=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(a===Object)return!0;if("function"!=typeof a)return!1;let r=f.get(a);return void 0===r&&(r=Function.toString.call(a),f.set(a,r)),r===p}function d(e,t,a=!0){0===y(e)?(a?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((a,r)=>t(r,a,e))}function y(e){let t=e[i];return t?t.type_:Array.isArray(e)?1:b(e)?2:3*!!g(e)}function _(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,a){let r=y(e);2===r?e.set(t,a):3===r?e.add(a):e[t]=a}function b(e){return e instanceof Map}function g(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function O(e,t){if(b(e))return new Map(e);if(g(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let a=h(e);if(!0!==t&&("class_only"!==t||a)){let t=o(e);return null!==t&&a?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[i];let a=Reflect.ownKeys(t);for(let r=0;r<a.length;r++){let s=a[r],n=t[s];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(t[s]={configurable:!0,writable:!0,enumerable:n.enumerable,value:e[s]})}return Object.create(o(e),t)}}function v(e,t=!1){return T(e)||l(e)||!u(e)||(y(e)>1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>v(e,!0))),e}var S={value:function(){c(2)}};function T(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var E={};function N(e){let t=E[e];return t||c(0,e),t}function P(e,t){t&&(N("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function x(e){j(e),e.drafts_.forEach(D),e.drafts_=null}function j(e){e===r&&(r=e.parent_)}function $(e){return r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D(e){let t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function z(e,t){t.unfinalizedDrafts_=t.drafts_.length;let a=t.drafts_[0];return void 0!==e&&e!==a?(a[i].modified_&&(x(t),c(4)),u(e)&&(e=I(t,e),t.parent_||C(t,e)),t.patches_&&N("Patches").generateReplacementPatches_(a[i].base_,e,t.patches_,t.inversePatches_)):e=I(t,a,[]),x(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==s?e:void 0}function I(e,t,a){if(T(t))return t;let r=e.immer_.shouldUseStrictIteration(),s=t[i];if(!s)return d(t,(r,n)=>A(e,s,t,r,n,a),r),t;if(s.scope_!==e)return t;if(!s.modified_)return C(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;let t=s.copy_,n=t,i=!1;3===s.type_&&(n=new Set(t),t.clear(),i=!0),d(n,(r,n)=>A(e,s,t,r,n,a,i),r),C(e,t,!1),a&&e.patches_&&N("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function A(e,t,a,r,s,n,i){if(null==s||"object"!=typeof s&&!i)return;let c=T(s);if(!c||i){if(l(s)){let i=I(e,s,n&&t&&3!==t.type_&&!_(t.assigned_,r)?n.concat(r):void 0);if(m(a,r,i),!l(i))return;e.canAutoFreeze_=!1}else i&&a.add(s);if(u(s)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===s&&c)return;I(e,s),(!t||!t.scope_.parent_)&&"symbol"!=typeof r&&(b(a)?a.has(r):Object.prototype.propertyIsEnumerable.call(a,r))&&C(e,s)}}}function C(e,t,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&v(t,a)}var F={get(e,t){if(t===i)return e;let a=w(e);if(!_(a,t)){var r=e,s=a,n=t;let i=U(s,n);return i?"value"in i?i.value:i.get?.call(r.draft_):void 0}let c=a[t];return e.finalized_||!u(c)?c:c===q(e.base_,t)?(R(e),e.copy_[t]=K(c,e)):c},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,a){let r=U(w(e),t);if(r?.set)return r.set.call(e.draft_,a),!0;if(!e.modified_){let r=q(w(e),t),s=r?.[i];if(s&&s.base_===a)return e.copy_[t]=a,e.assigned_[t]=!1,!0;if((a===r?0!==a||1/a==1/r:a!=a&&r!=r)&&(void 0!==a||_(e.base_,t)))return!0;R(e),M(e)}return!!(e.copy_[t]===a&&(void 0!==a||t in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[t]))||
1(e.copy_[t]=a,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==q(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,R(e),M(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let a=w(e),r=Reflect.getOwnPropertyDescriptor(a,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:a[t]}:r},defineProperty(){c(11)},getPrototypeOf:e=>o(e.base_),setPrototypeOf(){c(12)}},k={};function q(e,t){let a=e[i];return(a?w(a):e)[t]}function U(e,t){if(!(t in e))return;let a=o(e);for(;a;){let e=Object.getOwnPropertyDescriptor(a,t);if(e)return e;a=o(a)}}function M(e){!e.modified_&&(e.modified_=!0,e.parent_&&M(e.parent_))}function R(e){e.copy_||(e.copy_=O(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function K(e,t){let a=b(e)?N("MapSet").proxyMap_(e,t):g(e)?N("MapSet").proxySet_(e,t):function(e,t){let a=Array.isArray(e),s={type_:+!!a,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},n=s,i=F;a&&(n=[s],i=k);let{revoke:c,proxy:o}=Proxy.revocable(n,i);return s.draft_=o,s.revoke_=c,o}(e,t);return(t?t.scope_:r).drafts_.push(a),a}function L(e){return l(e)||c(10,e),function e(t){let a;if(!u(t)||T(t))return t;let r=t[i],s=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,a=O(t,r.scope_.immer_.useStrictShallowCopy_),s=r.scope_.immer_.shouldUseStrictIteration()}else a=O(t,!0);return d(a,(t,r)=>{m(a,t,e(r))},s),r&&(r.finalized_=!1),a}(e)}d(F,(e,t)=>{k[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),k.deleteProperty=function(e,t){return k.set.call(this,e,t,void 0)},k.set=function(e,t,a){return F.set.call(this,e[0],t,a,e[0])};var W=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,a)=>{let r;if("function"==typeof e&&"function"!=typeof t){let a=t;t=e;let r=this;return function(e=a,...s){return r.produce(e,e=>t.call(this,e,...s))}}if("function"!=typeof t&&c(6),void 0!==a&&"function"!=typeof a&&c(7),u(e)){let s=$(this),n=K(e,void 0),i=!0;try{r=t(n),i=!1}finally{i?x(s):j(s)}return P(s,a),z(r,s)}if(e&&"object"==typeof e)c(1,e);else{if(void 0===(r=t(e))&&(r=e),r===s&&(r=void 0),this.autoFreeze_&&v(r,!0),a){let t=[],s=[];N("Patches").generateReplacementPatches_(e,r,t,s),a(t,s)}return r}},this.produceWithPatches=(e,t)=>{let a,r;return"function"==typeof e?(t,...a)=>this.produceWithPatches(t,t=>e(t,...a)):[this.produce(e,t,(e,t)=>{a=e,r=t}),a,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){u(e)||c(8),l(e)&&(e=L(e));let t=$(this),a=K(e,void 0);return a[i].isManual_=!0,j(t),a}finishDraft(e,t){let a=e&&e[i];a&&a.isManual_||c(9);let{scope_:r}=a;return P(r,t),z(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let a;for(a=t.length-1;a>=0;a--){let r=t[a];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}a>-1&&(t=t.slice(a+1));let r=N("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,e=>r(e,t))}},X=W.produce,G=W.setUseStrictIteration.bind(W);function H(e){return e}},83554:(e,t,a)=>{a.d(t,{hX:()=>l});var r=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown="CommitStateUnknownException"===t.icebergType||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return 404===this.status}isConflict(){return 409===this.status}isAuthenticationTimeout(){return 419===this.status}};async function s(e){return e&&"none"!==e.type?"bearer"===e.type?{Authorization:`Bearer ${e.token}`}:"header"===e.type?{[e.name]:e.value}:"custom"===e.type?await e.getHeaders():{}:{}}function n(e){return e.join("\x1f")}var i=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){let t=e?{parent:n(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){let a={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:a})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${n(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${n(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${n(e.namespace)}`}),!0}catch(e){if(e instanceof r&&404===e.status)return!1;throw e}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(e){if(e instanceof r&&409===e.status)return;throw e}}};function c(e){return e.join("\x1f")}var o=class{constructor(e,t="",a){this.client=e,this.prefix=t,this.accessDelegation=a}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){let a={};return this.accessDelegation&&(a["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables`,body:t,headers:a})).data.metadata}async updateTable(e,t){let a=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":a.data["metadata-location"],metadata:a.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){let t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){let t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${c(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(e){if(e instanceof r&&404===e.status)return!1;throw e}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(a){if(a instanceof r&&409===a.status)return await this.loadTable({namespace:e.namespace,name:t.name});throw a}}},l=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);let a=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=function(e){let t=e.fetchImpl??globalThis.fetch;return{async request({method:a,path:n,query:i,body:c,headers:o}){let l=function(e,t,a){let r=new URL(t,e);if(a)for(let[e,t]of Object.entries(a))void 0!==t&&r.searchParams.set(e,t);return r.toString()}(e.baseUrl,n,i),u=await s(e.auth),p=await t(l,{method:a,headers:{...c?{"Content-Type":"application/json"}:{},...u,...o},body:c?JSON.stringify(c):void 0}),f=await p.text(),h=(p.headers.get("content-type")||"").includes("application/json"),d=h&&f?JSON.parse(f):f;if(!p.ok){let e=h?d:void 0,t=e?.error;throw new r(t?.message??`Request failed with status ${p.status}`,{status:p.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:p.status,headers:p.headers,data:d}}}}({baseUrl:a,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new i(this.client,t),this.tableOps=new o(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
1async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}}}}]);
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.