PageSourceSearch

https://quikirr.com/_next/static/chunks/14493.67aa043ba191d561.js

js quikirr.com collected 2026-10-04 06:48:42 UTC 43,555 bytes, 1 lines download raw bytes

1(()=>{var e,r,t,o,n,a,i={14493:(e,r,t)=>{"use strict";let o=(e,r)=>console.error(e,r??""),n=["arrAsIs","mrrTimes12","qrrTimes4","ltm","l3ma","l3m"],a=["ltm","l3ma","l3m"],i=new Set(n),l=new Set(a),s={arrAsIs:!0,mrrTimes12:!0,qrrTimes4:!0,ltm:!0,l3ma:!0,l3m:!1},u={ltm:12,l3ma:4,l3m:3};n.filter(function(e){return!0===s[e]});let d="include",c="directQuarterEnd",f=/^\d{4}-(0[1-9]|1[0-2])$/;function m(e){return"include"===e||"exclude"===e}function p(e){return"directQuarterEnd"===e||"monthlyVintageRollup"===e}function y(e){return"string"==typeof e&&f.test(e)}let h="inter";function g(e){return"inter"===e||"intra"===e||"intraRollups"===e}function w(e){return"intra"===e}function b(e){return String(e??"").trim().toLowerCase().replace(/[_\s]+/g,"")}function v(e){return String(e??"").replace(/\s+/g," ").trim()}function _(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function C(e){let r=e??{},t=[],o=[],n=e=>{if(!Object.prototype.hasOwnProperty.call(r,e))return t.push(e),!0;let n=r[e];return"boolean"==typeof n?n:(o.push(e),!0)};return{showCrossSellRowsInCustomerProductWaterfalls:n("showCrossSellRowsInCustomerProductWaterfalls"),showProductChurnRowsInCustomerProductWaterfalls:n("showProductChurnRowsInCustomerProductWaterfalls"),legacyDefaultedFields:t,invalidFields:o}}Object.freeze({customers:5,revenueBps:50}),Object.freeze({customers:10,revenueBps:100});let R=new Set(["none","treatAsNew","treatAsExisting","hybrid"]),I=new Set(["actual","thousands","millions","billions"]),x=["dataAnnualizationFlag","dataAnnualizationType","revenueAnnualization","isRevenue","showYoYRetentionInWaterfall"];function A(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function P(e){return"number"==typeof e&&Number.isFinite(e)?e:void 0}function S(e){return"boolean"==typeof e?e:void 0}function k(e){return"string"==typeof e?e:void 0}function M(e,r){let t=function(e,r){var t;let n,s;if(!A(e)){let t=C(r);return o("[sanitizeCalculationRules] Non-object calculation rules payload; using defaults",{fallback_state:"calculation_rules_non_object_defaults_applied",inputType:Array.isArray(e)?"array":typeof e,customerProductMovementRuleDefaults:{showCrossSellRowsInCustomerProductWaterfalls:t.showCrossSellRowsInCustomerProductWaterfalls,showProductChurnRowsInCustomerProductWaterfalls:t.showProductChurnRowsInCustomerProductWaterfalls}}),{rules:{...r,showCrossSellRowsInCustomerProductWaterfalls:t.showCrossSellRowsInCustomerProductWaterfalls,showProductChurnRowsInCustomerProductWaterfalls:t.showProductChurnRowsInCustomerProductWaterfalls},removedLegacyKeys:[]}}let f=[];for(let r of x)r in e&&f.push(r);let M=e.arrCalculationMethod,$="string"==typeof M&&i.has(M)?M:r.arrCalculationMethod,j=S(e.dataAnnualizationFlag),N=e.dataAnnualizationType,O=12===N||"12"===N?12:4===N||"4"===N?4:null,D=function(e){for(let r of a){let t=u[r];if(e===t||e===String(t))return r}return null}(e.revenueAnnualization);"arrAsIs"===$&&(!0===j&&12===O?(n={from:M,to:"mrrTimes12",reason:"legacy dataAnnualizationFlag/type indicates monthly-to-annual conversion"},$="mrrTimes12"):!0===j&&4===O?(n={from:M,to:"qrrTimes4",reason:"legacy dataAnnualizationFlag/type indicates quarterly-to-annual conversion"},$="qrrTimes4"):D&&(n={from:M,to:D,reason:`legacy revenueAnnualization indicates ${D.toUpperCase()} revenue methodology`},$=D));let B=function(e){if(void 0===e.arrWaterfallDisplayConfig&&void 0===e.customerWaterfallDisplayConfig)return e;let{arrWaterfallDisplayConfig:r,customerWaterfallDisplayConfig:t,...o}=e;return o}(r),E={cohortPartialPeriodPolicy:Object.prototype.hasOwnProperty.call(e,"cohortPartialPeriodPolicy")?e.cohortPartialPeriodPolicy:B.cohortPartialPeriodPolicy,quarterlyCohortMethod:Object.prototype.hasOwnProperty.call(e,"quarterlyCohortMethod")?e.quarterlyCohortMethod:B.quarterlyCohortMethod,cohortPriorCutoffMonth:Object.prototype.hasOwnProperty.call(e,"cohortPriorCutoffMonth")?e.cohortPriorCutoffMonth:B.cohortPriorCutoffMonth};try{s=function(e){let r=e?.cohortPartialPeriodPolicy;if(null!=r&&!m(r))throw Error(`Unrecognized cohortPartialPeriodPolicy: ${JSON.stringify(r)}`);let t=e?.quarterlyCohortMethod;if(null!=t&&!p(t))throw Error(`Unrecognized quarterlyCohortMethod: ${JSON.stringify(t)}`);let o=e?.cohortPriorCutoffMonth;if(null!=o&&!y(o))throw Error(`Unrecognized cohortPriorCutoffMonth: ${JSON.stringify(o)}`);return{cohortPartialPeriodPolicy:m(r)?r:d,quarterlyCohortMethod:p(t)?t:c,cohortPriorCutoffMonth:y(o)?o:null}}(E)}catch(e){throw o("[sanitizeCalculationRules] Invalid cohort methodology rule;
1 blocking hydration",{fallback_state:"blocked_invalid_cohort_methodology_rule",cohortPartialPeriodPolicy:E.cohortPartialPeriodPolicy??null,quarterlyCohortMethod:E.quarterlyCohortMethod??null,cohortPriorCutoffMonth:E.cohortPriorCutoffMonth??null,error:e}),e}let T={...B,arrCalculationMethod:$,...s},U=C(e);if(U.invalidFields.length>0)throw o("[sanitizeCalculationRules] Invalid Customer x Product waterfall movement rule; blocking hydration",{fallback_state:"blocked_invalid_customer_product_waterfall_movement_rule",invalidFields:U.invalidFields,invalidValues:Object.fromEntries(U.invalidFields.map(r=>[r,e[r]]))}),Error(`Invalid Customer x Product waterfall movement rule: ${U.invalidFields.join(", ")}`);U.legacyDefaultedFields.length>0&&o("[sanitizeCalculationRules] Legacy Customer x Product waterfall movement rules absent; using enabled precedent",{fallback_state:"legacy_customer_product_waterfall_movement_rules_enabled",legacyDefaultedFields:U.legacyDefaultedFields}),T.showCrossSellRowsInCustomerProductWaterfalls=U.showCrossSellRowsInCustomerProductWaterfalls,T.showProductChurnRowsInCustomerProductWaterfalls=U.showProductChurnRowsInCustomerProductWaterfalls;let F=k(e.reactivationTreatment);F&&R.has(F)&&(T.reactivationTreatment=F);let z=P(e.tempLossResurrectThreshold);void 0!==z&&(T.tempLossResurrectThreshold=z);let K=S(e.includeNonRecurringRevenue);void 0!==K&&(T.includeNonRecurringRevenue=K);let L=S(e.separateReactivationMetrics);void 0!==L?T.separateReactivationMetrics=L:void 0!==z&&z>0&&(T.separateReactivationMetrics=!0);let W=S(e.customerProductConsolidations);void 0!==W&&(T.customerProductConsolidations=W);let V=Object.prototype.hasOwnProperty.call(e,"intraPeriodCalculation"),q=Object.prototype.hasOwnProperty.call(e,"intraPeriodRetentionCalcMode");if(V||q){let r=S(e.intraPeriodCalculation),t=function(e){let r=e?.intraPeriodRetentionCalcMode;if(null!=r&&""!==r&&!g(r))throw Error(`Unrecognized intraPeriodRetentionCalcMode: ${JSON.stringify(r)}`);let t=g(r)?r:void 0,o="boolean"==typeof e?.intraPeriodCalculation?e.intraPeriodCalculation:void 0;return"intra"===t||"intraRollups"===t?{intraPeriodRetentionCalcMode:t,intraPeriodCalculation:w(t)}:!0===o?{intraPeriodRetentionCalcMode:"intra",intraPeriodCalculation:!0}:"inter"===t?{intraPeriodRetentionCalcMode:"inter",intraPeriodCalculation:!1}:{intraPeriodRetentionCalcMode:h,intraPeriodCalculation:w(h)}}({intraPeriodRetentionCalcMode:g(e.intraPeriodRetentionCalcMode)?e.intraPeriodRetentionCalcMode:void 0,intraPeriodCalculation:r});T.intraPeriodRetentionCalcMode=t.intraPeriodRetentionCalcMode,T.intraPeriodCalculation=t.intraPeriodCalculation}let Y=S(e.nonIntraPeriodCalculationMonthlyQuarterly);void 0!==Y&&(T.nonIntraPeriodCalculationMonthlyQuarterly=Y);let J=S(e.rollingLTMActiveCustomerCurrent);void 0!==J&&(T.rollingLTMActiveCustomerCurrent=J);let H=S(e.annualRollupsEnabled);void 0!==H&&(T.annualRollupsEnabled=H);let G=S(e.combineTempLossAndChurn);void 0!==G&&(T.combineTempLossAndChurn=G);let Q=S(e.showPeriodRetentionInWaterfall);void 0!==Q&&(T.showPeriodRetentionInWaterfall=Q);let Z=S(e.showLTMRetentionInWaterfall);void 0!==Z&&(T.showLTMRetentionInWaterfall=Z);let X=S(e.showRollingLTMRetentionInWaterfall);void 0!==X&&(T.showRollingLTMRetentionInWaterfall=X);let ee=P(e.fiscalYearEndMonth);void 0!==ee&&ee>=1&&ee<=12&&(T.fiscalYearEndMonth=Math.floor(ee));let er=k(e.inputUnits);er&&I.has(er)&&(T.inputUnits=er);let et=k(e.outputUnits);et&&I.has(et)&&(T.outputUnits=et);let eo=P(e.decimals);void 0!==eo&&(T.decimals=Math.max(0,Math.floor(eo)));let en=function(e,r){if(null===e)return;if(!A(e))return r;let t=e.mode,o="extended"===t||"standard"===t?t:r?.mode??"standard",n={...r??{mode:o},mode:o};for(let r of["allowNegativeNew","zeroCrossingsAsNetChange","churnRequiresZeroEnd","newRequiresPriorZero","newUsesCurrentPeriodValue","allowNegativeComebacks","cohortRetentionIncludesNegatives"]){let t=S(e[r]);void 0!==t&&(n[r]=t)}return n}(e.negativeHandling,r.negativeHandling);void 0!==en&&(T.negativeHandling=en);let ea=function(e){if(null==e||!A(e))return;let{config:r}=function(e,r={}){let t,o,n;if(!_(e))return{config:null,provenance:{outerKeySource:"none",attributeKeySource:"none",methodByValueSource:"none",columnIdSource:"none",usedLegacyAlias:!1}};let a=!0===e.enabled,l=function(e){for(let[r,t]of[["attributeKey",e.attributeKey],["attribute_key",e.attribute_key],["streamKeyDescriptor",e.streamKeyDescriptor],["stream_key_descriptor",e.stream_key_descriptor]]){let e=String(t??"").trim();if(e.length>0)return{value:e,source:r}}return{value:"",source:"none"}}(e),s=function(e){let r=e.methodByValue;if(_(r))return{value:r,source:"methodByValue"};let t=e.method_by_value;return _(t)?{value:t,source:"method_by_value"}:{value:{},source:"none"}}(e),u=function(e,r,t){let o=String(e.streamKeyColumnId??"").trim();if(o)return{value:o,source:"streamKeyColumnId"};let n=String(e.stream_key_column_id??"").trim();if(n)return{value:n,source:"stream_key_column_id"};let a=t.descriptorCatalog;if(r&&a&&a.length>0){let e=b(r),t=a.filter(r=>b(r.name)===e);if(1===t.length&&t[0].columnId)return{value:String(t[0].columnId).trim(),source:"derived_by_name"}}return{value:"",source:"none"}}(e,l.value,r),d=function(e,r,t){let o=t?.allowEmpty??!0,n={},a=new Set;for(let[t,i]of Object.entries(e??{})){let e=v(t);if(!o&&""===e)continue;let l=String(i??"").trim();if(!r.has(l))continue;let s=v(e).toLowerCase();a.has(s)||(a.add(s),n[e]=l)}return n}(s.value,i,{allowEmpty:!0}),c=(t=e.streamValueUniverse,o=e.stream_value_universe,(n=Array.isArray(t)?t:Array.isArray(o)?o:null)?function(e,r){let t=r?.
1includeEmpty??!1,o=new Set,n=[];for(let r of e){let e=v(r);if(!t&&""===e)continue;let a=e.toLowerCase();o.has(a)||(o.add(a),n.push(e))}return n}(n,{includeEmpty:!0}):[]),f="attribute_key"===l.source||"streamKeyDescriptor"===l.source||"stream_key_descriptor"===l.source||"method_by_value"===s.source||"stream_key_column_id"===u.source;return{config:{enabled:a,streamKeyColumnId:u.value,attributeKey:l.value,methodByValue:d,streamValueUniverse:c},provenance:{outerKeySource:"inline",attributeKeySource:l.source,methodByValueSource:s.source,columnIdSource:u.source,usedLegacyAlias:f}}}(e);if(r&&(r.enabled||r.attributeKey||r.streamKeyColumnId||0!==Object.keys(r.methodByValue).length||0!==r.streamValueUniverse.length))return{enabled:r.enabled,attributeKey:r.attributeKey,methodByValue:r.methodByValue,...r.streamKeyColumnId?{streamKeyColumnId:r.streamKeyColumnId}:{},...r.streamValueUniverse.length?{streamValueUniverse:r.streamValueUniverse}:{}}}(e.arrAnnualizationByRevenueStream);void 0!==ea?T.arrAnnualizationByRevenueStream=ea:null===e.arrAnnualizationByRevenueStream&&(T.arrAnnualizationByRevenueStream=void 0);let ei=e.descriptorCriticalThresholds;return null!=ei&&(!function(e){if(!e||"object"!=typeof e)return!1;let{customers:r,revenueBps:t}=e;return"number"==typeof r&&Number.isInteger(r)&&r>=1&&"number"==typeof t&&Number.isFinite(t)&&t>0&&t<=1e4}(ei)?o("[sanitizeCalculationRules] Dropping unusable descriptor cutoffs; the defaults classify",{fallback_state:"calculation_rules_descriptor_critical_thresholds_invalid",descriptorCriticalThresholds:ei}):T.descriptorCriticalThresholds={customers:ei.customers,revenueBps:ei.revenueBps}),void 0!==e.arrWaterfallDisplayConfig&&f.push("arrWaterfallDisplayConfig"),void 0!==e.customerWaterfallDisplayConfig&&f.push("customerWaterfallDisplayConfig"),"string"==typeof(t=T.arrCalculationMethod)&&l.has(t)&&(T.intraPeriodRetentionCalcMode="inter",T.intraPeriodCalculation=!1),{rules:T,removedLegacyKeys:f,...n?{arrMethodCoercion:n}:{}}}(e,r);return{...t,rules:t.rules}}let $={reactivationTreatment:"treatAsNew",separateReactivationMetrics:!1,tempLossResurrectThreshold:0,includeNonRecurringRevenue:!1,arrCalculationMethod:"arrAsIs",customerProductConsolidations:!1,showCrossSellRowsInCustomerProductWaterfalls:!0,showProductChurnRowsInCustomerProductWaterfalls:!0,intraPeriodRetentionCalcMode:h,intraPeriodCalculation:w(h),annualRollupsEnabled:!1,cohortPartialPeriodPolicy:d,quarterlyCohortMethod:c,cohortPriorCutoffMonth:null,fiscalYearEndMonth:12,inputUnits:"actual",outputUnits:"actual",decimals:0,negativeHandling:{mode:"standard",allowNegativeNew:!1,allowNegativeComebacks:!1,zeroCrossingsAsNetChange:!1,churnRequiresZeroEnd:!1,newRequiresPriorZero:!1,newUsesCurrentPeriodValue:!1,cohortRetentionIncludesNegatives:!1},combineTempLossAndChurn:!1,showPeriodRetentionInWaterfall:!0,showLTMRetentionInWaterfall:!0};function j(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>j(e)).join(",")}]`;let r=Object.entries(e).sort(([e],[r])=>e<r?-1:+(e>r));return`{${r.map(([e,r])=>`${JSON.stringify(e)}:${j(r)}`).join(",")}}`}var N=t(79179),O=t(56002);let D=["volume","gross_profit","gmv"],B=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),E=e=>Number.isSafeInteger(e)&&e>=0,T=(e,r=400)=>"string"==typeof e&&e.trim().length>0&&e.length<=r,U=/^col_[1-9]\d{0,4}$/,F=new Set(["shared_field","block_values","excluded","measure_label"]),z=new Set(["agent_proposed","user_decided"]),K=new Set(["monthly","quarterly","annual"]),L=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),W=e=>"string"==typeof e&&e.trim().length>0,V=N.Ie(function(e){if(!L(e)||1!==e.planVersion&&2!==e.planVersion&&3!==e.planVersion||!L(e.sourceDimensions))return!1;let{rowCount:r,columnCount:t}=e.sourceDimensions;return"number"==typeof r&&"number"==typeof t&&0===function(e,r,t){let o=[],n=(e,r={},t="plan_shape_malformed")=>{o.push({code:t,at:r,detail:e})},a=(e,r,t,o,a={})=>L(e)?!!Number.isSafeInteger(e[r])&&!!Number.isSafeInteger(e[t])||(n(`${o} needs safe-integer bounds.`,a),!1):(n(`${o} is not a span object.`,a),!1),i=(e,r,t={})=>
1{if(!L(e))return void n(`${r} is not a decision object.`,t,"decision_shape_malformed");if(W(e.value)||n(`${r} carries no value; a blank choice is not a decision.`,t,"decision_shape_malformed"),W(e.rationale)||n(`${r} carries no rationale.`,t,"decision_rationale_missing"),"string"!=typeof e.decidedBy||!z.has(e.decidedBy))return void n(`${r} names an unknown decision source.`,t,"decision_shape_malformed");if("agent_proposed"===e.decidedBy){Array.isArray(e.evidenceRefs)&&0!==e.evidenceRefs.length&&e.evidenceRefs.every(W)||n(`${r} is agent-proposed but cites no usable evidence ids.`,t,"decision_shape_malformed");return}W(e.receiptId)||n(`${r} is user-decided but cites no receipt id.`,t,"decision_shape_malformed")};function l(e,r){for(let t of e){if(!L(t)){n("A region is not an object.",r);continue}if(a(t.columns,"startColumnIndex","endColumnIndex","Region columns",r),"string"!=typeof t.role||!F.has(t.role)){n(`A region declares the role ${JSON.stringify(t.role)}, which is not one this validator understands. Unresolved meaning is not a declared exclusion.`,r,"region_role_unknown");continue}null!==t.reason&&"string"!=typeof t.reason&&n("A region's reason is neither a string nor null.",r),null!==t.blockId&&"string"!=typeof t.blockId&&n("A region's blockId is neither a string nor null.",r),"block_values"!==t.role||W(t.blockId)||n("A value region names no block.",r)}}if(Array.isArray(e.blocks)||n("`blocks` is not an array."),Array.isArray(e.regions)||n("`regions` is not an array."),Array.isArray(e.sharedFieldColumns)||n("`sharedFieldColumns` is not an array."),Array.isArray(e.excludedBodyRows)||n("`excludedBodyRows` is not an array."),L(e.source)||n("`source` is not an object."),L(e.sourceDimensions)||n("`sourceDimensions` is not an object."),void 0!==e.rowSelection&&null!==e.rowSelection){let r=e.rowSelection;if(L(r)){if(W(r.measureLabelColumnId)||n("`rowSelection.measureLabelColumnId` is not a column id.",{},"row_selection_shape_malformed"),L(r.anchor)&&W(r.anchor.columnId)||n("`rowSelection.anchor.columnId` is not a column id.",{},"row_selection_shape_malformed"),"anchor_row"!==r.sharedFieldsFrom&&n("`rowSelection.sharedFieldsFrom` must state `anchor_row`: where a carried identifier comes from is declared, never assumed.",{},"row_selection_shape_malformed"),Array.isArray(r.droppedFamilies))for(let e of r.droppedFamilies)L(e)&&W(e.label)&&W(e.reason)||n("A dropped family needs a non-blank label and a non-blank reason: a left-out row is a declared decision.",{},"row_selection_shape_malformed");else n("`rowSelection.droppedFamilies` is not an array.",{},"row_selection_shape_malformed");void 0===r.familyBands||Array.isArray(r.familyBands)&&0!==r.familyBands.length&&r.familyBands.every(W)||n("`rowSelection.familyBands` must list at least one family label, each non-blank.",{},"row_selection_shape_malformed"),void 0!==r.familyBandRoles&&(void 0===r.familyBands&&n("`rowSelection.familyBandRoles` suggests roles for bands, so it needs `familyBands`.",{},"row_selection_shape_malformed"),Array.isArray(r.familyBandRoles)&&r.familyBandRoles.every(e=>L(e)&&W(e.family)&&W(e.metricKey)&&W(e.rationale))||n("`rowSelection.familyBandRoles` must list roles, each with a family, a metricKey and a non-blank rationale.",{},"row_selection_shape_malformed"))}else n("`rowSelection` is not an object.",{},"row_selection_shape_malformed")}if(3===e.planVersion){let r=function(e){let r=[],t=(e,t)=>{r.length<40&&r.push({field:e,message:t})},o=(e,r)=>B(e)&&E(e.startRowIndex)&&E(e.endRowIndex)&&!(e.endRowIndex<=e.startRowIndex)?{startRowIndex:e.startRowIndex,endRowIndex:e.endRowIndex}:(t(r,"must be {startRowIndex, endRowIndex}, 0-based and end-exclusive, not empty"),null),n=(e,r)=>B(e)&&E(e.startColumnIndex)&&E(e.endColumnIndex)&&!(e.endColumnIndex<=e.startColumnIndex)?{startColumnIndex:e.startColumnIndex,endColumnIndex:e.endColumnIndex}:(t(r,"must be {startColumnIndex, endColumnIndex}, 0-based and end-exclusive, not empty"),null),a=(e,r)=>B(e)&&T(e.value,200)&&T(e.rationale,1e3)?"agent_proposed"===e.decidedBy?Array.isArray(e.evidenceRefs)&&0!==e.evidenceRefs.length&&e.evidenceRefs.every(e=>T(e,200))?{value:e.value,decidedBy:"agent_proposed",evidenceRefs:[...e.evidenceRefs],rationale:e.rationale}:(t(`${r}.evidenceRefs`,"an agent decision cites at least one evidence ref"),null):"user_decided"===e.decidedBy&&T(e.receiptId,200)?{value:e.value,decidedBy:"user_decided",re
1ceiptId:e.receiptId,rationale:e.rationale}:(t(`${r}.decidedBy`,"is agent_proposed with evidenceRefs, or user_decided with receiptId"),null):(t(r,"must be a decision {value, decidedBy, evidenceRefs or receiptId, rationale}"),null),i=(e,r)=>{if(!B(e))return t(r,"must say where the label is read from"),null;if("header_row"===e.from&&E(e.rowIndex)&&"boolean"==typeof e.carryRight)return void 0!==e.text&&"whole"!==e.text&&"words_before_period"!==e.text?(t(`${r}.text`,"is whole or words_before_period"),null):{from:"header_row",rowIndex:e.rowIndex,carryRight:e.carryRight,..."words_before_period"===e.text?{text:"words_before_period"}:{}};if("label_column"===e.from&&"string"==typeof e.columnId&&U.test(e.columnId)&&"boolean"==typeof e.carryDown)return{from:"label_column",columnId:e.columnId,carryDown:e.carryDown};if("decision"===e.from){let t=a(e.decision,`${r}.decision`);return t?{from:"decision",decision:t}:null}return t(r,"is {from: header_row, rowIndex, carryRight}, {from: label_column, columnId, carryDown}, or {from: decision, decision}"),null},l=(e,r)=>null==e?[]:Array.isArray(e)?e:(t(r,"must be a list"),[]),s=(e,r)=>l(e,r).flatMap((e,n)=>{let a=o(B(e)?e.rows:null,`${r}[${n}].rows`);return B(e)&&T(e.reason,400)||t(`${r}[${n}].reason`,"states why the rows are left out"),a&&B(e)&&T(e.reason,400)?[{rows:a,reason:e.reason}]:[]});if(!B(e))return{status:"malformed",issues:[{field:"rule",message:"must be an object"}]};let u=e.granularity;"monthly"!==u&&"quarterly"!==u&&"annual"!==u&&t("granularity","is monthly, quarterly or annual");let d=[];!Array.isArray(e.regions)||0===e.regions.length||e.regions.length>12?t("regions","lists 1 to 12 regions"):e.regions.forEach((e,r)=>{var a,u;let c=`regions[${r}]`;if(!B(e))return void t(c,"must be an object");let f=T(e.regionId,60)?e.regionId:null;f||t(`${c}.regionId`,"names the region");let m=(a=e.headerRows,u=`${c}.headerRows`,B(a)&&E(a.startRowIndex)&&a.endRowIndex===a.startRowIndex?{startRowIndex:a.startRowIndex,endRowIndex:a.startRowIndex}:o(a,u)),p=o(e.bodyRows,`${c}.bodyRows`),y=s(e.excludedRows,`${c}.excludedRows`),h=Array.isArray(e.identifierColumns)?e.identifierColumns:null;h&&0!==h.length&&h.every(e=>"string"==typeof e&&U.test(e))||t(`${c}.identifierColumns`,"lists the row key's columns as col_N ids, the customer first"),"boolean"!=typeof e.identifiersCarryDown&&t(`${c}.identifiersCarryDown`,"is true or false");let g=Array.isArray(e.valueColumns)&&e.valueColumns.length>0?e.valueColumns.map((e,r)=>n(e,`${c}.valueColumns[${r}]`)):(t(`${c}.valueColumns`,"lists at least one column span"),[]),w=[];l(e.excludedColumns,`${c}.excludedColumns`).forEach((e,r)=>{let o=`${c}.excludedColumns[${r}]`;if(!B(e)||!T(e.reason,400))return void t(`${o}.reason`,"states why the columns are left out");let a={reason:e.reason};if(void 0!==e.columns){let r=n(e.columns,`${o}.columns`);r&&(a.columns=r)}if(void 0!==e.whereHeader){let r=e.whereHeader;B(r)&&E(r.rowIndex)&&T(r.contains,80)?a.whereHeader={rowIndex:r.rowIndex,contains:r.contains}:t(`${o}.whereHeader`,"is {rowIndex, contains}")}!a.columns==!a.whereHeader&&t(o,"names its columns by span or by header, exactly one"),void 0!==e.control&&("preceding_group"===e.control||"same_period"===e.control?a.control=e.control:t(`${o}.control`,"is preceding_group or same_period")),w.push(a)});let b=i(e.offering,`${c}.offering`),v=i(e.measure,`${c}.measure`),_=[],C=B(e.period)?e.period.parts:null;!Array.isArray(C)||0===C.length||C.length>3?t(`${c}.period.parts`,"lists 1 to 3 parts"):C.forEach((e,r)=>{let o=B(e)?e.reads:null;B(e)&&E(e.rowIndex)&&("label"===o||"label_after_words"===o||"year"===o||"quarter"===o||"month"===o)&&"boolean"==typeof e.carryRight?_.push({rowIndex:e.rowIndex,reads:o,carryRight:e.carryRight}):t(`${c}.period.parts[${r}]`,"is {rowIndex, reads: label|label_after_words|year|quarter|month, carryRight}")}),f&&m&&p&&h&&b&&v&&"boolean"==typeof e.identifiersCarryDown&&g.every(Boolean)&&d.push({regionId:f,headerRows:m,bodyRows:p,excludedRows:y,identifierColumns:h,identifiersCarryDown:e.identifiersCarryDown,valueColumns:g,excludedColumns:w,offering:b,period:{parts:_},measure:v})});let c=s(e.excludedRows,"excludedRows"),f=[];l(e.excludedColumns,"excludedColumns").forEach((e,r)=>{let o=n(B(e)?e.columns:null,`excludedColumns[${r}].columns`);B(e)&&T(e.reason,400)?o&&f.push({columns:o,reason:e.reason}):t(`excludedColumns[${r}].reason`,"states why the columns are left out")});let m=null;if(void 0!==e.labelField&&null!==e.labelField){let r=e.labelField;B(r)&&T(r.name,60)&&("product"===r.role||"attribute"===r.role)?m={name:r.name.trim(),role:r.role}:t("labelField","is {name, role: product|attribute} or null")}let p=void 0===e.primaryMeasure||null===e.primaryMeasure?null:a(e.primaryMeasure,"primaryMeasure"),y=[];l(e.rowKeyLabels,"rowKeyLabels").forEach((e,r)=>{let o=B(e)?a(e.label,`rowKeyLabels[${r}].label`):null;B(e)&&T(e.cellText,200)?o&&y.push({cellText:e.cellText.trim(),label:o}):t(`rowKeyLabels[${r}].cellText`,"is the row-key cell's text")});let h=[];l(e.bandRoles,"bandRoles").forEach((e,r)=>
1{B(e)&&T(e.measure,200)&&D.includes(e.metricKey)&&T(e.rationale,1e3)?h.push({measure:e.measure.trim(),metricKey:e.metricKey,rationale:e.rationale}):t(`bandRoles[${r}]`,`is {measure, metricKey: ${D.join("|")}, rationale}`)});let g=[];return(l(e.labelDecisions,"labelDecisions").forEach((e,r)=>{let o=B(e)?a(e.decision,`labelDecisions[${r}].decision`):null;B(e)&&T(e.label,200)?o&&o.value!==e.label.trim()?t(`labelDecisions[${r}].decision`,"confirms the label as its cells state it, unchanged"):o&&g.push({label:e.label.trim(),decision:o}):t(`labelDecisions[${r}].label`,"is the offering label as its cells state it")}),r.length>0)?{status:"malformed",issues:r}:{status:"parsed",rule:{granularity:u,regions:d,excludedRows:c,excludedColumns:f,labelField:m,primaryMeasure:p,rowKeyLabels:y,bandRoles:h,labelDecisions:g}}}(e.rule);"malformed"===r.status&&n(`The plan's rule is malformed: ${r.issues.slice(0,3).map(e=>`${e.field} ${e.message}`).join("; ")}.`,{},"rule_malformed")}else void 0!==e.rule&&n("Only a version-3 plan carries a rule.",{},"rule_malformed");let s=e.sheets;if(void 0!==s)if(2!==e.planVersion)n("Only a version-2 plan reads other tabs: `sheets` is refused here.",{},"sheet_plan_invalid");else if(Array.isArray(s))for(let e of s){if(!L(e)||!W(e.worksheetName)||"string"!=typeof e.rangeAddress||!L(e.sourceDimensions)||!Number.isSafeInteger(e.sourceDimensions.rowCount)||!Number.isSafeInteger(e.sourceDimensions.columnCount)||!Array.isArray(e.regions)){n("A tab needs its name, range, size and regions.",{},"sheet_plan_invalid");continue}l(e.regions,{worksheetName:e.worksheetName})}else n("`sheets` is not a list of tabs.",{},"sheet_plan_invalid");if(void 0!==e.labelField){let r=e.labelField;L(r)&&W(r.name)&&("product"===r.role||"attribute"===r.role)&&W(r.rationale)||n("`labelField` needs a non-blank name, a role of product or attribute, and a rationale.",{},"table_shape_malformed")}if("string"==typeof e.granularity&&K.has(e.granularity)||n("`granularity` is not a supported period granularity."),a(e.bodyRows,"startRowIndex","endRowIndex","`bodyRows`"),a(e.headerRows,"startRowIndex","endRowIndex","`headerRows`"),(!Number.isSafeInteger(r)||!Number.isSafeInteger(t)||r<=0||t<=0)&&n("Source dimensions must be positive safe integers."),o.length>0)return o;let u=e.sourceDimensions;for(let r of(Number.isSafeInteger(u.rowCount)&&Number.isSafeInteger(u.columnCount)||n("`sourceDimensions` needs safe-integer row and column counts."),i(e.measure,"The measure"),e.sharedFieldColumns))W(r)||n("A shared-field column id is not a string.");for(let r of e.excludedBodyRows){if(!L(r)){n("An excluded body-row entry is not an object.");continue}a(r.rows,"startRowIndex","endRowIndex","An excluded row span"),"string"!=typeof r.reason&&n("An excluded body-row entry carries a non-string reason.")}for(let r of e.blocks){if(!L(r)){n("A block is not an object.");continue}let t="string"==typeof r.blockId?{blockId:r.blockId}:{};if(W(r.blockId)||n("A block has no usable blockId.",t),a(r.columns,"startColumnIndex","endColumnIndex","Block columns",t),i(r.offeringLabel,"A block's offering label",t),void 0!==r.table){let o=r.table,i=e=>n(e,t,"table_shape_malformed");if(L(o)){if(a(o.headerRows,"startRowIndex","endRowIndex","A table's headerRows",t),a(o.bodyRows,"startRowIndex","endRowIndex","A table's bodyRows",t),Array.isArray(o.excludedRows))for(let e of o.excludedRows){if(!L(e)||"string"!=typeof e.reason){i("A table's excluded row entry needs its rows and a reason.");continue}a(e.rows,"startRowIndex","endRowIndex","A table's excluded rows",t)}else i("A table's `excludedRows` is not an array.");Array.isArray(o.sharedFieldColumns)&&o.sharedFieldColumns.every(W)||i("A table's `sharedFieldColumns` is not a list of column ids."),void 0!==o.worksheetName&&(2!==e.planVersion?n("Only a version-2 plan names another tab: a table's `worksheetName` is refused here.",t,"sheet_plan_invalid"):W(o.worksheetName)||i("A table's `worksheetName` names no tab."))}else i("A block's `table` is not an object.")}if(!Array.isArray(r.periodColumns)){n("A block's `periodColumns` is not an array.",t);continue}for(let e of r.periodColumns){if(!L(e)){n("A period column entry is not an object.",t);continue}W(e.columnId)||n("A period column has no usable columnId.",t),W(e.periodKey)||n("A period column has no usable periodKey.",t)}}return l(e.regions,{}),o}(e,t,r).length},"Invalid persisted source-preparation plan."),q=N.Ik({storageKey:N.Yj().min(1),bucket:N.eu("raw-uploads"),compression:N.eu("gzip"),sizeBytes:N.ai().int().positive(),checksum:N.Yj().min(1),version:N.eu(1)}).strict();N.Ik({version:N.eu(1),preparationId:N.uR(),actorUserId:N.ai().int().positive(),acceptedAtIso:O.w$(),proposalPlan:V,acceptedPlan:V,originalContentSha256:N.Yj().regex(/^[a-f0-9]{64}$/),materializationSha256:N.Yj().regex(/^[a-f0-9]{64}$/),planSha256:N.Yj().regex(/^[a-f0-9]{64}$/),reviewedReference:N.Ik({localAttemptId:N.Yj().min(1),sourceRevisionId:N.Yj().min(1),planProofId:N.Yj().min(1),candidateId:N.Yj().min(1)}).strict(),artifact:q,materializationVersion:N.eu(1),preparedRows:N.ai().int().positive(),preparedColumns:N.ai().int().positive(),checkedValueSlots:N.ai().int().nonnegative()}).strict();let Y=N.Ik({preparationId:N.uR(),planSha256:N.Yj().regex(/^[a-f0-9]{64}$/),materializationSha256:N.Yj().regex(/^[a-f0-9]{64}$/),originalContentSha256:N.Yj().regex(/^[a-f0-9]{64}$/)}).strict();N.Ik({schemaVersion:N.k5(["source_data_replay_authority.v1","source_data_replay_authority.v2"]),analysisId:N.Yj().min(1),dataCubeRequestId:N.Yj().min(1),rawUploadId:N.ai().int().positive(),bindingUpdatedAtMs:N.ai().int().nonnegative(),stateUpdatedAtMs:N.ai().int().nonnegative(),generationUpdatedAtMs:N.ai().int().nonnegative().optional(),gridAuthority:N.k5(["raw","transactional_cube","prepared_cube"]),sourcePreparation:Y.optional(),sourceFingerprint:N.Ik({storageChecksum:N.Yj().nullable(),storageVersion:N.ai().int().nullable(),contentHash:N.Yj().nullable()}).strict()}).strict().superRefine((e,r)=>{let t="prepared_cube"===e.gridAuthority;(!!e.sourcePreparation!==t||t!==("source_data_replay_authority.v2"===e.schemaVersion))&&r.addIssue({code:"custom",path:["sourcePreparation"],message:"Prepared replay authority requires its complete versioned acceptance identity."}
1),null!=e.generationUpdatedAtMs&&e.generationUpdatedAtMs<e.bindingUpdatedAtMs&&r.addIssue({code:"custom",path:["generationUpdatedAtMs"],message:"Source Data replay generation cannot predate binding authority."}),null!=e.generationUpdatedAtMs&&e.generationUpdatedAtMs>e.stateUpdatedAtMs&&r.addIssue({code:"custom",path:["generationUpdatedAtMs"],message:"Source Data replay generation cannot exceed complete-state freshness."})});let J="customerSourceIdentity.v1",H="customerSourceIdentity.v2",G=["compact_retained_same_generation","compact_retained_enrichment_transition"];function Q(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}let Z=["schemaVersion","analysisId","processingVersion","publishedContractSha256","savedAtMs","customerSourceIdentity","cleaningSignature"];Symbol("validatedCompactBody");class X extends Error{constructor(e){super(`[${e}] Saved analysis values could not be verified.`),this.code=e,this.name="LargeLocalCompactBodyIntegrityError"}}async function ee(e){if(!Q(e)||!Object.hasOwn(e,"largeLocalCompactSession"))return null;let r=function(e){let r=function(e){if(!Q(e))return null;let r=e.largeLocalCompactSession;if(!Q(r))return null;let t=String(e.analysis_id??"").trim(),o=String(e.processing_version??"").trim();return!("large_local_compact_persisted_session_v1"!==r.schemaVersion||!t||String(r.analysisId??"").trim()!==t||!o||String(r.processingVersion??"").trim()!==o||"string"!=typeof r.publishedContractSha256||!/^[a-f0-9]{64}$/i.test(r.publishedContractSha256)||"number"!=typeof r.savedAtMs||!Number.isFinite(r.savedAtMs)||null!=r.cleaningSignature&&("string"!=typeof r.cleaningSignature||!r.cleaningSignature.trim())||null!=r.committedPeriodKeys&&(!Array.isArray(r.committedPeriodKeys)||0===r.committedPeriodKeys.length||r.committedPeriodKeys.some(e=>"string"!=typeof e||!e.trim())))&&(null==r.rebuildBasis||G.includes(r.rebuildBasis))&&(null==r.customerSourceIdentity||function(e){let r;if(null===e||"object"!=typeof e||Array.isArray(e)||e.schema_version!==J&&e.schema_version!==H)return null;let t=e.identity_basis;if("grid_row_offset"!==t&&"compacted_reference"!==t||"boolean"!=typeof e.product_axis)return null;let o=e.source_row_count,n=e.header_row_count;if("number"!=typeof o||!Number.isInteger(o)||o<0||"number"!=typeof n||!Number.isInteger(n)||n<0)return null;let a=e.grid_identity_fingerprint;if(null!==a&&"string"!=typeof a)return null;if(void 0!==e.row_id_map){if(!Array.isArray(e.row_id_map))return null;r=[];for(let t=0;t<e.row_id_map.length;t+=1){let o=e.row_id_map[t];if("number"!=typeof o||!Number.isInteger(o)||o<-1)return null;r.push(o)}}let i=e.row_presence_bitmap;return e.schema_version===J&&void 0!==i||e.schema_version===H&&(void 0===i||"grid_row_offset"!==t)||void 0!==r&&void 0!==i||void 0!==i&&!function(e,r){if("string"!=typeof e||e.length!==Math.ceil(r/6))return!1;let t=!1;for(let o=0;o<e.length;o+=1){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(e.charAt(o));if(n<0||(0!==n&&(t=!0),o===e.length-1&&r%6!=0&&n>=1<<r%6))return!1}return t}(i,o)?null:{schema_version:e.schema_version,identity_basis:t,product_axis:e.product_axis,source_row_count:o,header_row_count:n,grid_identity_fingerprint:null===a?null:a,...void 0!==r?{row_id_map:r}:{},...void 0!==i?{row_presence_bitmap:i}:{}}}(r.customerSourceIdentity))?Object.fromEntries(Z.map(e=>[e,r[e]])):null}(e);if(!r||!Q(e)||!Q(e.largeLocalCompactSession))return null;let t=e.largeLocalCompactSession,o=t.completenessManifest;if(!Q(o)||!Q(t.defaultCustomerRankings)||"complete_read_only_processed_data_manifest_v1"!==o.schemaVersion||String(o.analysisId??"").trim()!==r.analysisId||String(o.processingVersion??"").trim()!==r.processingVersion||!Q(o.slices))return null;let n=t.calculationRulesSlice;return void 0===n||Q(n)&&Q(n.data)&&Number.isSafeInteger(n.clientUpdatedAtMs)&&!(n.clientUpdatedAtMs<0)&&n.updatedAt===n.clientUpdatedAtMs&&n.data.lastUpdated===n.clientUpdatedAtMs&&1===n.data.version&&Q(n.data.rules)&&j(M(n.data.rules,$).rules)===j(M(e.calculationRules,$).rules)?t:null}(e);
1if(!r)throw new X("large_local_compact_saved_body_invalid");var o=e;let n=[o],a=new WeakSet;for(;n.length;){let e=n.pop();if(!a.has(e)){for(let r of(a.add(e),Object.values(e)))null!==r&&"object"==typeof r&&n.push(r);Object.freeze(e)}}let{buildFoundationPublishedOutputFromAnalysisData:i,sha256FoundationPublishedOutput:l}=await t.e(6785).then(t.bind(t,6785)),s=await l(i(e));if(s.sha256!==r.publishedContractSha256)throw new X("large_local_compact_saved_body_hash_mismatch");return s.sha256}var er=t(26348);class et extends SyntaxError{constructor(e){super(e),this.name="RawUploadSnapshotParseError",Object.setPrototypeOf(this,et.prototype)}}function eo(e){return 32===e||10===e||13===e||9===e}function en(e,r){let t=r;for(;t<e.length&&eo(e[t]);)t+=1;return t}function ea(e,r){let t=r+1;for(;t<e.length;){let r=e[t];if(92===r){t+=2;continue}if(t+=1,34===r)return t}throw new et("Raw source snapshot ends inside a string.")}function ei(e,r){let t=e[r];if(34===t)return ea(e,r);if(123!==t&&91!==t){let t=r;for(;t<e.length&&44!==e[t]&&125!==e[t]&&93!==e[t]&&!eo(e[t]);)t+=1;if(t===r)throw new et("Raw source snapshot has an empty value.");return t}let o=0,n=r;for(;n<e.length;){let r=e[n];if(34===r){n=ea(e,n);continue}if(123===r||91===r)o+=1;else if((125===r||93===r)&&0==(o-=1))return n+1;n+=1}throw new et("Raw source snapshot ends inside a value.")}function el(e){for(;;){let r=e.next();if(r.done)return r.value}}function*es(e,r,t,o,n){if(123!==e[r])throw new et("Raw source snapshot is not a JSON object.");let a=en(e,r+1);if(125===e[a])return a+1;for(;;){if(34!==e[a])throw new et("Raw source snapshot has a malformed member key.");let r=a,i=ea(e,a),l=JSON.parse(t.decode(e.subarray(r,i)));if(a=en(e,i),58!==e[a])throw new et("Raw source snapshot member has no value.");let s=en(e,a+1),u=(yield*o({key:l,start:r,valueStart:s}))??ei(e,s);if(n.push({key:l,start:r,valueStart:s,valueEnd:u}),a=en(e,u),44===e[a]){a=en(e,a+1);continue}if(125===e[a])return a+1;throw new et("Raw source snapshot object is malformed.")}}function*eu(){return null}var ed=t(30165);class ec extends Error{constructor(e,r){super(`[${e}] ${r}`),this.name="VerifiedGzipArtifactReadError",this.code=e}}async function ef(e){return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",e)),e=>e.toString(16).padStart(2,"0")).join("")}async function em(e,r){let t=e=>void 0!==r&&e>r;if("u">typeof DecompressionStream){let o=new ReadableStream({start(r){r.enqueue(e),r.close()}}).pipeThrough(new DecompressionStream("gzip")).pipeThrough(new TextDecoderStream).getReader(),n=[],a=0;for(;;){let{value:e,done:i}=await o.read();if(i)break;if(t(a+=e.length))throw await o.cancel(),RangeError(`decoded artifact exceeds the ${r}-char budget`);n.push(e)}return n.join("")}let o=ed.default.ungzip(e,{to:"string"});if(t(o.length))throw RangeError(`decoded artifact exceeds the ${r}-char budget`);return o}async function ep(e,r){let t;if(e.byteLength!==r.expected.sizeBytes||await ef(e)!==r.expected.sha256)throw new ec("artifact_integrity_failed",`${r.label} (expected ${r.expected.sizeBytes} bytes, read ${e.byteLength})`);try{t=await em(e,r.maxDecodedChars)}catch(e){throw new ec("artifact_decode_failed",`${r.label}: ${e instanceof Error?e.message:String(e)}`)}try{return JSON.parse(t)}catch(e){throw new ec("artifact_malformed",`${r.label}: ${e instanceof Error?e.message:String(e)}`)}}class ey extends Error{constructor(e){super(`Failed to fetch ${e.store} pointer payload (${e.status}): ${e.errorText}`),this.name="StoragePointerFetchError",this.status=e.status,this.requestId=e.requestId}}async function eh(e,r){let t=e.statusText;try{let r=await e.json();t="string"==typeof r?.error?r.error:JSON.stringify(r)}catch(r){try{t=await e.text()}catch(r){t=e.statusText}}throw new ey({store:r,status:e.status,errorText:t,requestId:e.headers?.get?.("x-quikirr-request-id")??e.headers?.get?.("x-request-id")??null})}function eg(e,r){if(null==r||e<=r)return;let t=Error("Storage pointer response exceeded its safe size limit");throw t.name="StoragePointerResponseTooLargeError",t}function ew(e,r){return"source-data"===r?function(e,r={}){return el(function*(e,r){let t=new TextDecoder,o=en(e,0);if(123!==e[o])return JSON.parse(t.decode(e));let n={grid:null,nestedGridCut:null},a=[],i=yield*es(e,o,t,function*({key:o,valueStart:a}){if("excelData"===o&&91===e[a]&&null===n.grid){let o=yield*function*(e,r,t,o){if(91!==e[r])throw new et("Raw source snapshot grid is not an array.");let n=[],a=-1,i=-1,l=()=>{if(a<0)return;let r=JSON.parse(`[${t.decode(e.subarray(a,i))}]`);for(let e=0;e<r.length;e+=1)n.push(r[e]);a=-1},s=en(e,r+1);if(93===e[s])return{rows:n,end:s+1};for(;;){let r=ei(e,s);if(a<0&&(a=s),(i=r)-a>=o&&(l(),yield),s=en(e,r),44===e[s]){s=en(e,s+1);continue}if(93===e[s])return l(),{rows:n,end:s+1};throw new et("Raw source snapshot grid is malformed.")}}(e,a,t,r);return n.grid=o.rows,o.end}if("excelPayload"===o&&123===e[a]){let r=[],o=el(es(e,a,t,eu,r)),i=r.find(e=>"excelData"===e.key);return i&&(n.nestedGridCut=function(e,r){let t=r.indexOf(e),o=r[t+1];if(o)return[e.start,o.start];let n=r[t-1];return n?[n.valueEnd,e.valueEnd]:[e.start,e.valueEnd]}(i,r)),o}return null},a);if(en(e,i)!==e.length)throw new et("Raw source snapshot has trailing content.");let l=null===n.grid?void 0:a.find(e=>"excelData"===e.key);if(!l)return JSON.parse(t.decode(e));let s=[[l.valueStart,l.valueEnd,"[]"]];n.nestedGridCut&&s.push([n.nestedGridCut[0],n.nestedGridCut[1],""]),s.sort((e,r)=>e[0]-r[0]);let u="",d=o;for(let[r,o,n]of s)u+=t.decode(e.subarray(d,r))+n,d=o;let c=JSON.parse(u+=t.decode(e.subarray(d,i)));return c.excelData=n.grid,c}(e,Math.max(1,r.batchBytes??4194304)))}(e):JSON.parse(new TextDecoder().decode(e))}async function eb(e,r,t){let o="processed-data"===r&&"processed-data-slice"!==t?await ee(e):null;return{schemaVersion:"storage_pointer_parsed_v2",payload:"source-data"===r?function(e){if(!e||"object"!=typeof e||Array.isArray(e)||!Array.isArray(e.excelData))return e;let r=function(e){if(!e||"object"!=typeof e||Array.isArray(e)||!("excelData"in e))return e;let r={...e};return delete r.excelData,r}(e.excelPayload);return r===e.excelPayload?e:{...e,excelPayload:r}}(e):e,compactPublishedHash:o}}(0,er.p)({ping:async()=>"ok",async fetchJson(e){var r,t;let o=await fetch(e.url,{credentials:"same-origin",headers:{Accept:"application/json"}});o.ok||await eh(o,e.store);let n=Number(o.headers.get("content-length"));Number.isFinite(n)&&eg(n,e.maxResponseBytes);let a=await o.arrayBuffer();
1return eg(a.byteLength,e.maxResponseBytes),eb((r=ew(new Uint8Array(a),e.store),t=e.store,"version"===t?function e(r,t){let o=function(e){if(null==e)return null;let r=function(e){if("number"==typeof e&&Number.isFinite(e)&&e>=0)return Math.trunc(e);if("string"==typeof e&&e.trim().length>0){let r=Number(e);if(Number.isFinite(r)&&r>=0)return Math.trunc(r)}return null}(e);if("number"!=typeof r||!Number.isSafeInteger(r)||r<0)throw Error("Saved version revision is invalid.");return 0===r?null:r}(t);if(null==o)return r;if(null==r||"object"!=typeof r||Array.isArray(r))throw Error("Saved version payload is invalid.");return!0===r.success&&null!=r.versionStore?{...r,versionStore:e(r.versionStore,o)}:{...r,lastUpdated:o}}(r,o.headers?.get?.("x-quikirr-version-revision")??null):r),e.store,e.payloadKind)},parseJsonStream:async(e,r,t)=>eb("source-data"===r?ew(new Uint8Array(await new Response(e).arrayBuffer()),r):await new Response(e).json(),r,t),parseJsonBuffer:async(e,r,t)=>eb(ew(new Uint8Array(e),r),r,t),decodeVerifiedGzipArtifact:async(e,r)=>eb(await ep(new Uint8Array(e),r),"compute-artifact")})}},l={};function s(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}},o=!0;try{i[e](t,t.exports,s),o=!1}finally{o&&delete l[e]}return t.exports}s.m=i,s.x=()=>{var e=s.O(void 0,[85033,42443,34648,90075],()=>s(14493));return s.O(e)},e=[],s.O=(r,t,o,n)=>{if(t){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[t,o,n];return}for(var i=1/0,a=0;a<e.length;a++){for(var[t,o,n]=e[a],l=!0,u=0;u<t.length;u++)(!1&n||i>=n)&&Object.keys(s.O).every(e=>s.O[e](t[u]))?t.splice(u--,1):(l=!1,n<i&&(i=n));if(l){e.splice(a--,1);var d=o();void 0!==d&&(r=d)}}return r},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((r,t)=>(s.f[t](e,r),r),[])),s.u=e=>85033===e?"static/chunks/2f0b94e8-1ac74514ea07bbd2.js":42443===e?"static/chunks/"+e+"-d8d6b0673458e4dc.js":"static/chunks/"+e+"."+({6785:"6dbb564b0d0bd83c",34648:"13c04dcb76b92461",90075:"df0666552c35a61e"})[e]+".js",s.miniCssF=e=>{},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.j=14493,s.tt=()=>(void 0===r&&(r={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/";var u=/[?&]dpl=([^&#]*)/.exec(self.location.search),d=u?u[1]:"";if(d&&!s.u.quikirrWorkerChunkDeploymentPin){var c=s.u,f=function(e){var r=c(e);return/[?&]dpl=/.test(r)?r:r.split("/").map(function(e){return encodeURIComponent(e)}).join("/")+"?dpl="+d};f.quikirrWorkerChunkDeploymentPin=!0,s.u=f}t={14493:1},s.f.i=(e,r)=>{t[e]||importScripts(s.tu(s.p+s.u(e)))},n=(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(o),o.push=e=>{var[r,o,a]=e;for(var i in o)s.o(o,i)&&(s.m[i]=o[i]);for(a&&a(s);r.length;)t[r.pop()]=1;n(e)},a=s.x,s.x=()=>Promise.all([85033,42443,34648,90075].map(s.e,s)).then(a),_N_E=s.x()})();

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.