1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1548],{81548:function(t,e,r){function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e,r){return(i=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&o(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return i(t,arguments,n(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,t)})(t)}r.d(e,{pz:function(){return y}});var f=function(t){function e(e,r){var n;return void 0===r&&(r="Failed to resolve asset ID from source"),(n=t.call(this,r)||this).unresolvable=!0,n.input=e,n}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t),e}(u(Error)),a="https://cdn.sanity.io",c=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,s=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})-\d+x\d+\.[a-z0-9]+$/,p=/^(images|files)\/([a-z0-9]+)\/([a-z0-9][-\w]*)\//,l=/^(?:image-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+|file-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+)$/;function d(t){return null!==t&&!Array.isArray(t)&&"object"==typeof t}function y(t){var e=function(t){var e=t.split("-"),r=e[1],n=e[2],o=e[3],i=(n||"").split("x").map(Number),u=i[0],f=i[1];if(!r||!n||!o||!(u>0)||!(f>0))throw Error("Malformed asset ID '"+t+'\'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".');return{type:"image",assetId:r,width:u,height:f,extension:o}}(function(t){var e,r,n,o,i=d(e=t)&&e.asset&&"object"==typeof e.asset?t.asset:t,u="";if("string"==typeof i?u=function(t){if(l.test(t))return t;if(0===t.indexOf(a+"/images")||0===t.indexOf(a+"/files"))return h(t);if(p.test(t))return h(a+"/"+t);if(c.test(t))return h(a+"/files/a/b/"+t);if(s.test(t))return h(a+"/images/a/b/"+t);throw new f(t)}(i):d(r=i)&&"string"==typeof r._ref?u=i._ref:d(i)&&"string"==typeof i._id?u=i._id:d(n=i)&&"string"==typeof n.path?u=h(a+"/"+i.path):d(o=i)&&"string"==typeof o.url&&(u=h(i.url)),!(u&&l.test(u)))throw new f(t);return u}(t)),r=e.width,n=e.height;return{width:r,height:n,aspectRatio:r/n}}function h(t){var e=(function(t){if(p.test(t))return t;if(!t.startsWith(a+"/"))throw new f('Failed to resolve path from URL "'+t+'"');var e=t.indexOf("?"),r=-1===e?void 0:e;return t.slice(a.length+1,r)})(t).split("/"),r=e[0],n=e[3];return r.replace(/s$/,"")+"-"+n.replace(/\./g,"-")}}}]);
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.