{"version":3,"sources":["jsdelivr-header.js","/npm/isotope-cells-by-column@1.1.4/cells-by-column.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;CCEE,SAAU,EAAQ,GAGK,mBAAX,QAAyB,OAAO,IAE1C,OAAQ,CACJ,iCAEF,GAC2B,iBAAZ,QAEjB,OAAO,QAAU,EACf,QAAQ,kCAIV,EACE,EAAO,QAAQ,WAIrB,CArBA,CAqBG,QAAQ,SAAkB,GAC3B,aAEA,IAAI,EAAgB,EAAW,OAAQ,iBACnC,EAAQ,EAAc,UAkC1B,OAhCA,EAAM,aAAe,WAEnB,KAAK,UAAY,EAEjB,KAAK,iBACL,KAAK,eAEL,KAAK,KAAO,KAAK,MAAO,KAAK,QAAQ,KAAK,YAAc,KAAK,WAC7D,KAAK,KAAO,KAAK,IAAK,KAAK,KAAM,EACnC,EAEA,EAAM,uBAAyB,SAAU,GACvC,EAAK,UACL,IAAI,EAAM,KAAK,MAAO,KAAK,UAAY,KAAK,MACxC,EAAM,KAAK,UAAY,KAAK,KAE5B,GAAM,EAAM,IAAQ,KAAK,YAAc,EAAK,KAAK,WAAa,EAC9D,GAAM,EAAM,IAAQ,KAAK,UAAY,EAAK,KAAK,YAAc,EAEjE,OADA,KAAK,YACE,CAAE,EAAG,EAAG,EAAG,EACpB,EAEA,EAAM,kBAAoB,WACxB,MAAO,CACL,MAAO,KAAK,KAAM,KAAK,UAAY,KAAK,MAAS,KAAK,YAE1D,EAEA,EAAM,kBAAoB,WACxB,OAAO,KAAK,2BACd,EAEO,CAET","file":"/npm/isotope-cells-by-column@1.1.4/cells-by-column.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/isotope-cells-by-column@1.1.4/cells-by-column.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*!\n * cellsByColumn layout mode for Isotope\n * v1.1.4\n * https://isotope.metafizzy.co/layout-modes/cellsbycolumn.html\n */\n\n/*jshint browser: true, devel: false, strict: true, undef: true, unused: true */\n\n( function( window, factory ) {\n  // universal module definition\n  /* jshint strict: false */ /*globals define, module, require */\n  if ( typeof define === 'function' && define.amd ) {\n    // AMD\n    define( [\n        'isotope-layout/js/layout-mode'\n      ],\n      factory );\n  } else if ( typeof exports === 'object' ) {\n    // CommonJS\n    module.exports = factory(\n      require('isotope-layout/js/layout-mode')\n    );\n  } else {\n    // browser global\n    factory(\n      window.Isotope.LayoutMode\n    );\n  }\n\n}( window, function factory( LayoutMode ) {\n  'use strict';\n\n  var CellsByColumn = LayoutMode.create( 'cellsByColumn' );\n  var proto = CellsByColumn.prototype;\n\n  proto._resetLayout = function() {\n    // reset properties\n    this.itemIndex = 0;\n    // measurements\n    this.getColumnWidth();\n    this.getRowHeight();\n    // set rows\n    this.rows = Math.floor( this.isotope.size.innerHeight / this.rowHeight );\n    this.rows = Math.max( this.rows, 1 );\n  };\n\n  proto._getItemLayoutPosition = function( item ) {\n    item.getSize();\n    var col = Math.floor( this.itemIndex / this.rows );\n    var row = this.itemIndex % this.rows;\n    // center item within cell\n    var x = ( col + 0.5 ) * this.columnWidth - item.size.outerWidth / 2;\n    var y = ( row + 0.5 ) * this.rowHeight - item.size.outerHeight / 2;\n    this.itemIndex++;\n    return { x: x, y: y };\n  };\n\n  proto._getContainerSize = function() {\n    return {\n      width: Math.ceil( this.itemIndex / this.rows ) * this.columnWidth\n    };\n  };\n\n  proto.needsResizeLayout = function() {\n    return this.needsVerticalResizeLayout();\n  };\n\n  return CellsByColumn;\n\n}));\n"]}