LOS ANGELES — California gas prices continued surging Friday, adding another 17 cents per gallon on average, and the increases are expected to continue for at least several more days, ensuring long lines and short tempers at pumps around the state.A week of soaring costs has led some stations to close and others to charge record prices — in some places $5 or more — as California leapfrogged Hawaii as the state with the most expensive fuel. The average price for a gallon of regular unleaded across California was nearly $4.49 on Friday, 32 cents more than a week ago and the highest statewide average in the nation, according to AAA’s Daily Fuel Gauge report.The national average is about $3.79 a gallon, the highest ever for this time of year. However, gas prices in many other states have started decreasing, which is typical for October.The average price for regular gasoline in California hit an all-time high of $4.61 per gallon in June 2008. That could be eclipsed this weekend. Patrick DeHaan, senior petroleum analyst at GasBuddy.com, expects the increase in prices will slow for several days and then level off. He predicted the average price would peak around $4.85.A web of refinery and transmission problems is to blame, analysts said. The situation is compounded by a pollution law that requires a special blend of cleaner-burning gasoline from April to October, said Denton Cinquegrana, executive editor of the Oil Price Information Service, which helps AAA compile its price survey. “We use the phrase ‘the perfect storm,’ and you know what, this current one makes those other perfect storms look like a drizzle. I don’t want to scare anyone, but this is a big problem,” Cinquegrana said. “Run-outs are happening left and right.”Among the recent disruptions, an Aug. 6 fire at a Chevron Corp. refinery in Richmond left one of the region’s largest refineries producing at a reduced capacity, and a Chevron pipeline that moves crude oil to Northern California also was shut down.There was some good news. Exxon Mobil Corp. said a refinery in Torrance returned to normal operations Friday after a power failure limited production for most of the week.But gasoline inventories in California are still at their lowest point in more than 10 years, a situation made worse by the mandate for the special summer gasoline blend. Few refineries outside the state can make it, meaning there are few outside sources to draw from for help, Cinquegrana said.The California Air Resources Board was reviewing a request from the California Independent Oil Marketers Association for a waiver that would allow gas stations to begin selling winter-blend gasoline before Halloween. David Clegern, a spokesman for the air board, said there is no timeline for a decision. The California Energy Commission must review gas inventories to confirm there is a shortage and assess what effect the switch would have on air quality, he said. Gil Duran, a spokesman for Gov. Jerry Brown, said in an email that his office is “monitoring the situation closely.”While prices were higher everywhere in the state, there were variances. Yuba City had the lowest average price at $4.33, according to AAA, while San Francisco was highest at $4.60. Prices averaged $4.54 in the Los Angeles area, $4.52 in San Diego, $4.40 in Fresno and $4.36 in Sacramento.The price of diesel fuel has also increased, adding significant costs for truckers who typically put hundreds of dollars’ worth of gas in their tanks. The average price for diesel statewide was $4.48 a gallon Friday — 35 cents more than a year ago, according to AAA.